Skip to main content
Back

NVIDIA and UC Berkeley Find a Faster Way to Pick AI Coding Agents

A new NVIDIA-led method predicts how well a base model will perform as a coding agent after post-training, without the costly agent run.

Pro

Paper, Full Access
  • NVIDIA and Berkeley researchers propose three cheap probes to predict post-training agent performance from a base checkpoint.
  • Idea: replay a successful agent trajectory, find the decisive step where tests flip to passing, and score the base model there.
  • Three screens: Decisive-Action BPB, Patch MCQ against verifier-rejected distractors, and prefix-conditioned pass@K.
  • Across ten base/post-trained model pairs, all three rank checkpoints in close agreement with SWE-bench Verified pass@1.
  • Decisive-step BPB raises Spearman correlation to 0.964 versus 0.915 for all-step BPB, fixing concrete misorderings.
  • Full paper on arXiv; approach generalizes to any benchmark with trajectories and a verifier.

Choosing a base checkpoint for expensive agentic post-training remains an empirical bet. Confirming the choice can require days of reinforcement learning (RL) or supervised fine-tuning (SFT), followed by a full agent evaluation on SWE-bench. A study from NVIDIA and UC Berkeley researchers proposes three cheaper probes that score base models at the decisive point in successful coding trajectories and produce rankings that closely track downstream agent performance.

The paper, Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models, addresses a weakness in end-to-end pass@K evaluation. Pass@K samples K complete attempts and counts a task as solved when at least one succeeds. For raw base models, the result mixes coding ability with reliable tool syntax, state tracking, and interaction over many turns. Malformed tool calls can end a run before the model’s proposed fix is tested.

One-shot patches hide agent skill

Single-shot patch evaluations remove the tool protocol by presenting a fixed prompt and requesting one edit. That setup measures patch generation under supplied context. Coding agents face a longer task: they must preserve relevant state across file reads, shell commands, test results, and successive edits while the repository changes beneath them. Compressing the interaction removes capabilities that agentic post-training is designed to develop.

Find the action that flips the tests

To isolate a verifier-backed target, the researchers replay successful trajectories from an already post-trained reference agent. After every code-changing action, they apply the cumulative patch and rerun the benchmark verifier. The first action after which the repository changes from failing to passing becomes the decisive step. This label certifies the cumulative solution at that point, including all earlier edits.

A 40-step trajectory may contain extensive exploration before one patch completes the fix. Every observation and action before that patch forms the prefix supplied to the base model. Later cleanup is excluded, keeping the evaluation focused on the transition that first solves the task.

Diagram showing successful agent trajectories being replayed to identify a decisive action and evaluate base models
The framework derives fixed evaluation points from successful, verifier-checked agent trajectories.

Three probes, no autonomous rollout

With the decisive prefix and certified action identified, the authors evaluate each base checkpoint through three complementary measurements:

Probe What it measures How to read it
Decisive-Action BPB The negative log-likelihood of the certified action, normalized by its length in bytes. Lower bits per byte means the model assigns more probability to the successful action. Byte normalization supports comparisons across actions and tokenizers.
Patch MCQ The model’s choice between the certified patch and alternatives rejected by the same verifier. Higher accuracy indicates stronger recognition of the valid fix among plausible failures.
Prefix-conditioned pass@K K continuations sampled from the decisive-step prefix and executed against the verifier. A task receives credit when any continuation passes, allowing valid fixes that differ from the recorded action.

Each probe conditions on authentic long-horizon context while the reference trajectory supplies valid interaction history and tool syntax. Cold-start tool use remains outside the measurement, so teams still need end-to-end evaluations after post-training.

The decisive action sharpens the ranking

Across ten matched pairs of public base and post-trained models, all three probe rankings closely matched the corresponding agents’ SWE-bench Verified pass@1 ranking, which measures the share of tasks solved in one attempt. The paper reports agreement using Spearman rank correlation, where 1.0 represents identical ordering.

Chart comparing rank correlations for whole-trajectory BPB and decisive-action BPB
Restricting BPB to the verifier-certified action improves agreement with post-trained SWE-bench performance.
Reported validation results
Evaluation Finding
SWE-bench Verified Decisive-Action BPB reached a Spearman correlation of about 0.964, compared with 0.915 for BPB averaged across every trajectory step. The narrower score also corrected pairwise model misorderings.
SWE-bench Multilingual The probe rankings continued to agree with downstream agent performance across multilingual repository tasks.
Terminal-Bench 2.1 Prefix-conditioned pass@K with K=32 was the strongest predictor among the tested probes.

A cheaper checkpoint screen

For teams comparing pretraining variants, data mixtures, or scaling runs, the cheapest probe requires only a few hundred recorded actions and forward passes. The paper describes Decisive-Action BPB as a minutes-scale evaluation, compared with days of multi-GPU post-training and full agent rollouts. Patch MCQ also uses fixed candidates, while prefix-conditioned pass@K adds generation and verifier costs but still skips post-training.

A four-stage screening loop

  1. Collect successful trajectories from a post-trained reference agent.
  2. Replay each trajectory, rerunning the verifier after every code-changing action.
  3. Extract the first passing prefix and score candidate base checkpoints with one or more probes.
  4. Reserve full RL, SFT, and agent evaluation for the highest-ranked candidates.

Where the shortcut stops

  • Successful traces are required. A new benchmark needs a working verifier and reference-agent successes before the probes can be built.
  • The output is a relative ranking. The method provides no estimate of an agent’s eventual absolute SWE-bench score.
  • Reference solutions shape the target. A checkpoint that favors a substantially different valid approach may receive a weaker BPB or MCQ score.
  • Task coverage is selective. Only tasks solved by the reference agent contribute decisive steps, which can bias the set toward easier or familiar problems.
  • Autonomous tool reliability is excluded. The probes cannot replace deployment tests of long-horizon tool use.
  • The evidence covers a limited cohort. Broader model families and post-training recipes require further validation.

Benchmark traces become training signals

The paper’s broader recipe applies to any agentic benchmark with recorded successful trajectories and an executable verifier. Identifying the first verifier-certified transition converts those traces into fixed tests for base checkpoints. Benchmarks such as SWE-bench can therefore support model selection before agent training, provided a reference system has already produced successful runs.

At publication, no code release appears in the arXiv listing, which provides PDF and HTML versions. Both include ablations covering tool-token masking and alternative Patch MCQ scoring rules.