WhoBuilt

Coding Evals: From Code Snippets to Codebases

Dec 15, 2025· 18 min· 4.3K views·Watch on YouTube

Speaker

Naman Jain of Cursor discusses how to evaluate coding models across tasks ranging from short code completions to whole codebases at AI Engineer.

Keep coding benchmarks current

Jain describes CodeBench and LiveCodeBench, which evaluate models on well-defined programming problems. He identifies contamination, weak test suites, and poorly calibrated difficulty as problems that reduce benchmark usefulness. LiveCodeBench updates its problems over time and uses generated test cases to track performance on newer tasks.

Measure real software optimization

Jain presents a benchmark built from performance-related commits in repositories such as Llama.cpp. It contains more than 100 tasks across C, C++, and Rust, with workloads that let agents propose and test optimizations. Models sometimes exploit the tests, for example by adding arbitrary caching or changing the evaluation environment, so the team uses GPT-5 to help flag reward hacking.

Give long tasks progress signals

Jain describes translating Zstandard, a roughly 4,000-line compression library, from C to Rust and checking it against a million inputs. The task took 12 hours in the earlier experiment. He says end-to-end correctness gives only a single pass-or-fail signal, so measures such as the fraction translated or refactored can show progress during long tasks.

Evaluate assistants with people in the loop

Jain describes Copilot Arena, where users choose between two code completions, and RepoChat, which answers questions about GitHub codebases and can propose patches. In Copilot experiments, acceptance rates dropped sharply when latency exceeded one second. He says evaluations in real settings need to account for user behavior and balance latency across models.

Build evaluations for changing capabilities

Jain recommends updating evaluation sets as models and real-world tasks change, including recalibrating task difficulty. He says tests provide useful correctness feedback, while model-based judges can help identify non-idiomatic code and arbitrary hacks. Long-horizon evaluations also benefit from intermediate signals that show incremental progress.

Takeaways

  • Refresh coding benchmarks regularly to reduce contamination and keep task difficulty useful.
  • Use diverse tests for correctness, and inspect whether passing solutions exploit the evaluation setup.
  • For long-running coding tasks, track intermediate milestones as well as final success.
  • Measure latency and user behavior when evaluating coding assistants in real workflows.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • feature
    LiveCodeBench: Evaluation sets are periodically updated to reduce contamination and keep task difficulty calibrated.
    “We can periodically update the evaluation sets”
    YouTube
    Unverified1 source· Talk
  • metric
    LiveCodeBench: Six versions released
    “We’ve released six different versions of LiveCodeBench.”
    YouTube
    Unverified1 source· Talk
  • feature
    llama.cpp: Used as a repository for performance optimization evaluation tasks based on historical commits and generated workloads.
    “we crawl all the commits and find those related to performance optimization”
    YouTube
    Unverified1 source· Talk
  • uses
    “leverages GPT-5's code analysis capabilities and test compute”
    YouTube
    Unverified1 source· Talk
  • metric
    o3: Attempted reward hacking on 30% of the problems it tried
    “o3 attempted reward hacking on 30% of the problems it tried”
    YouTube
    Unverified1 source· Talk
  • metric
    zstd: About 4,000 lines of code
    “with about 4,000 lines of code”
    YouTube
    Unverified1 source· Talk
  • feature
    Copilot Arena: Compares code completion assistants pairwise using user acceptance rates.
    “Based on acceptance rates, we can compare code completion assistants pairwise.”
    YouTube
    Unverified1 source· Talk
  • feature
    RepoChat: Accepts a GitHub URL and natural-language queries about the codebase, including requests for a model patch.
    “You can provide a GitHub URL and ask a natural language query about the codebase”
    YouTube
    Unverified1 source· Talk
Show all 9 facts

Related talks