Decoding Benchmark Score Differences in Coding Agents: Evaluation and Training Factors

    This article examines the factors behind significant score differences on software engineering benchmarks for coding agents, particularly when comparing post-trained models to new base models. It deconstructs benchmark results into three coupled layers: task and benchmark design, scoring criteria, and execution frameworks. By analyzing post-training data, reward functions, and long-horizon task stability, it emphasizes the necessity of ablation studies, controlled comparisons, and multi-benchmark validation to distinguish genuine capability improvements from overfitting to specific evaluation rules.

    Recent public discussions have highlighted a concerning trend: a reinforcement learning (RL) post-trained version scored roughly twice as high as a new base model on a software engineering benchmark, leading to claims that the post-trained version “comprehensively outperforms” the new base. This reasoning over-extrapolates results from a “single benchmark, single execution framework, and single scoring standard” into a conclusion about general coding capability. A more reasonable approach is to break down the score difference into three coupled layers: task and benchmark design, scoring and acceptance criteria, and model execution framework. Further investigation into post-training data, reward functions, and long-horizon task stability is necessary. Only by separating these factors can we determine whether the difference stems from genuine capability improvement, evaluation adaptation, or a high overlap between training objectives and benchmark rules.

    I. Clarifying the Baseline: Benchmark Scores are Coupled Results of “Task-Scoring-Execution”

    A coding agent’s score on a benchmark does not equate to its bare model capability. It is determined by at least three components: first, whether the task set covers the real-world software development distribution; second, how the scorer determines if a patch is correct, compatible, and maintainable; and third, how the execution framework manages context, tool calls, retries, timeouts, and patch formatting. A change in any layer can cause a drift of several percentage points or more. In public retests, simply switching the execution framework for the same model resulted in significant score differences: lower on a specialized framework and higher on a general one. This indicates that the “model score” is essentially a joint metric of “model + execution strategy + scoring rules.” Comparing two versions across different frameworks, prompts, and acceptance standards and deriving a “2x capability” by dividing scores is not rigorous. A safer conclusion would be: under a specific benchmark version, execution framework, and scoring criteria, the post-trained version performs better; its generalizability still requires cross-validation across multiple benchmarks.

    II. Benchmark Design: Prompt Blanks and Veto Votes Amplify Distribution Shift

    The original discussion noted that the new benchmark version intentionally leaves significant blanks in the prompts, avoiding rigid requirement specifications. Instead, it incorporates multiple veto-vote evaluations based on the standards of open-source maintainers reviewing merge requests. For example, a prompt might only ask to fix a bug in Path A, but if Path B has a similar issue or the patch lacks compatibility with the repository’s original input types, the benchmark scores it as zero, even if standard unit tests pass. This design resembles real code reviews, testing the model’s ability to proactively identify implicit requirements, maintain compatibility, and control change scope, but it also significantly alters the task distribution. For models not trained for this scoring criteria, a drop in score is expected. Conversely, systems post-trained on similar data and reward signals will see their score gains amplified. If the benchmark and the post-trained version come from the same team, the advantage of familiarity with the evaluation criteria cannot be ignored. Therefore, when seeing a “2x” score, one should first ask: Does the benchmark reward specific behaviors? Does the post-training data cover these implicit acceptance items? Is there overfitting to the scoring rules? If the answers lean positive, the benchmark score is better treated as evidence of a “specific capability slice” rather than a general capability assessment.

    III. Execution Framework: Changing Harnesses Causes Score Drift

    A coding agent’s execution framework determines how much context it can see, how it searches the repository, how it generates patches, whether it retries upon failure, how tool outputs are truncated, and the maximum number of steps. If the post-trained version was optimized via RL within a specific command-line execution framework, it naturally adapts better to that framework’s observation and action spaces. Placing the new base model into the same framework might disadvantage it due to mismatched tool calling habits, patch format preferences, or long-context management strategies. Conversely, placing the post-trained version into a different general execution framework may not preserve its advantage. Engineering practice should adhere to the control principle of “same model, same task, same framework, same budget”: fixing maximum steps, toolsets, retry limits, context window, and scoring scripts; retesting on at least two to three execution frameworks; and reporting means, variances, and confidence intervals instead of just a single highest score. Otherwise, framework differences are easily misread as model capability differences.

    IV. Post-Training Mechanisms: How Data, Rewards, and Long-Horizon Stability Change Performance

    From an RL perspective, the post-trained version might have implemented several key improvements: first, increasing the proportion of long-horizon tasks, cross-file modifications, and compatibility fixes in the training data; second, introducing reward functions with cost penalties to suppress meaningless long trajectories and high-cost exploration; third, using length-weighted reward baselines to mitigate advantage estimation bias across different task lengths; and fourth, stabilizing trajectory sampling length oscillations. Length oscillation refers to the model’s output trajectory length fluctuating during training, leading to increased reward variance, unstable advantage estimation, and subsequent impacts on policy updates. Solutions typically include: binning success rates by length, dynamically adjusting sampling budgets, applying segmented rewards or downsampling to ultra-long trajectories, monitoring gradient variance across length buckets, and explicitly balancing task benefits and execution costs in the reward. A generic reward design can be expressed with the following pseudocode:

    1. def compute_reward(trajectory, patch, task_score, cost):
    2. # task_score: score for task correctness and compatibility
    3. length_penalty = beta * len(trajectory)
    4. cost_penalty = gamma * cost
    5. return task_score - length_penalty - cost_penalty
    6. def length_weighted_baseline(returns, length_buckets):
    7. # Calculate weighted baseline by length bucket to reduce variance caused by length distribution changes
    8. baselines = {}
    9. for bucket in length_buckets:
    10. baselines[bucket] = weighted_mean(returns[bucket])
    11. return baselines

    These modifications can indeed make the model more stable on long-horizon tasks with less invalid exploration, thereby gaining an advantage on benchmarks emphasizing multi-file modifications and review criteria. However, it optimizes “performance under this specific reward and data distribution” and does not automatically imply a “2x improvement on all programming tasks.” If the new base model allocated more training to general capabilities like gaming, 3D, or other domains, a relative shift on code benchmarks might occur; this requires ablation studies to verify, rather than an assertion based solely on a single leaderboard.

    V. Is the New Base Model “Regressing”? Capability Trade-offs and Ablation

    The new base model scoring lower than the post-trained version on a specific benchmark does not mean it lacks value. Base models typically pursue broader general capabilities, better instruction following, and multimodal/multi-scenario balance. In contrast, post-trained versions might have concentrated data mixes and reward shaping specifically for software engineering tasks. Their goals differ, so comparisons should involve ablation: fix the execution framework and evaluate the base model, the post-trained version, and intermediate checkpoints (data-only change, reward-only change, long-horizon training-only change) across multiple software engineering benchmarks, real-world repository tasks, code review pass rates, average fix costs, and long-horizon task completion rates. If the post-trained version only leads significantly on one new benchmark with limited advantages elsewhere, a more plausible explanation is “high alignment between the benchmark and training objectives” rather than “base model regression.”

    VI. Trustworthy Evaluation and Engineering Practice Recommendations

    To avoid being misled by a single leaderboard, it is recommended to establish a layered evaluation pipeline: Layer 1 uses multiple benchmarks to cover bug fixes, cross-file refactoring, compatibility modifications, and long-horizon tasks; Layer 2 fixes the execution framework and budget for controlled comparisons; Layer 3 introduces independent reproduction and contamination checks to ensure no overlap between training data and evaluation tasks; Layer 4 reports cost metrics, such as average steps, tool call counts, patch sizes, and failure retry rates. On the RL training side, continuous monitoring of trajectory length distribution, success rates across length buckets, reward means and variances, advantage estimation bias, and policy update magnitudes is essential. Only by decomposing “score improvements” into explainable capability slices and cost changes can we determine if it is a reusable engineering advancement or a localized advantage under specific evaluation conditions.

    In conclusion, a post-trained version scoring roughly twice as high as a new base model on a specific benchmark might be caused by benchmark prompt blanks, veto-vote scoring, execution framework adaptation, and post-training data and reward design. While this is a technical signal worth researching, it is insufficient to prove a doubling of general coding capability. A more professional approach is to adhere to controlled comparisons, multi-benchmark retests, ablation analysis, and cost reporting, returning leaderboards to their rightful place as “evidence of capability slices” rather than a replacement for comprehensive engineering judgment.