Why Code Post-Training Benchmark Scores Double: The Real Causes and Evaluation Traps

    A code-focused post-trained model can post double-digit or even multiples improvement on coding benchmarks, yet that jump is rarely what it appears to be. This article breaks the gap down into four overlapping causes — benchmark scoring changes, execution harness differences, capability trade-offs from post-training, and sampling variance — and shows why cross-harness score comparisons are meaningless. It closes with a practical evaluation workflow: a private regression set built from real PRs, a fixed model-plus-harness-plus-prompt-plus-sampling tuple, multi-dimensional capability checks, repeated sampling with confidence intervals, and a tiered deployment strategy that routes general and code/agent traffic to different models.

    1. The phenomenon: a “doubled” score is not surprising

    A recent pattern worth noting: an open-source base model, after reinforcement learning post-training targeted at code, produced a code-specialized variant that scored several times higher than the previous general-purpose generation on some programming benchmarks. Results like this recur across the open-source community and are not rare. The real question is not whether a score can double, but where the doubling comes from, what it costs, and whether it can be reproduced.

    Breaking the score down yields four overlapping causes, corresponding to the evaluation side, the environment side, the model side, and the statistical side. Any one of them is enough to produce a large gap.

    2. Evaluation criteria: how a scoring philosophy change causes a collective drop

    The first and most easily overlooked cause is that the benchmark itself changed its scoring philosophy between versions. The newer leaderboard made extensive adjustments, and the result was that the vast majority of models scored lower — not that a few models regressed.

    Two changes are typical:

    • Deliberately underspecified prompts: instead of spelling out every requirement, the benchmark simulates the real situation of an open-source maintainer reviewing a PR. Only the goal is given, and the model must infer the boundaries itself.
    • Automatic-zero conditions: even if the main path is fixed correctly and all unit tests pass, the task scores zero if the model misses other code paths with the same class of problem, or fails to stay compatible with other input types already present in the repository.

    This design is closer to real engineering review, but it raises the bar from “pass the tests” to “proactively complete the work.” A schematic reward function looks like this:

    1. def score(patch, repo):
    2. if not applies_cleanly(patch, repo):
    3. return 0.0
    4. if not passes_target_tests(patch):
    5. return 0.0
    6. # Automatic zero: sibling defects uncovered / legacy input types broken
    7. if has_sibling_defects(repo, patch) and not patch.covers_siblings:
    8. return 0.0
    9. if breaks_legacy_inputs(patch, repo):
    10. return 0.0
    11. return weighted_quality(patch)

    The key point: when a leaderboard and a post-trained model come from the same ecosystem, the training side has a natural advantage in understanding the scoring details, and the payoff from optimizing against it (colloquially, leaderboard gaming) is very high. So when one benchmark shows a gap far larger than the others, suspect the criteria before the capability.

    3. Execution environment: score differences from the same model under different harnesses

    The second cause is the difference between execution harnesses. A coding agent does not work from model weights alone; it depends on surrounding infrastructure: file retrieval, patch application, command execution, retry on failure, context trimming, and termination decisions. The same model under a different harness will normally see its score move.

    Third-party evaluation data cited in the original article is illustrative (numbers indicate order of magnitude only): the same general model scores about 19.9% under harness A, rises to 22.0% under harness B, and reaches 25.5% under the evaluator’s general-purpose harness. If a specialized model did its reinforcement learning inside harness A, its fit with A is far better than with any other environment, while the general model is structurally disadvantaged.

    The engineering implication is direct: comparing scores across harnesses is an invalid comparison. An evaluation conclusion must be bound to the four-element tuple of model + harness + prompt template + sampling parameters.

    4. The model side: the capability seesaw and capacity competition

    The third cause is the capability reallocation that post-training brings. Running specialized reinforcement learning on a base model of fixed parameter count is essentially redistributing weight within a limited capacity: while code ability improves, writing, multi-turn dialogue, and instruction following generally regress by roughly 20%–50%, and tool calling and agent planning ability may also decline.

    Community practice has confirmed this pattern repeatedly: after a branch version with stronger agent capabilities was released, its coding performance dropped noticeably; and most community-made code post-trained variants regress substantially on general benchmarks, with writing tasks hit especially hard. For large general-purpose models, it typically takes the community about half a year to gradually converge on versions that compress long chains of thought while basically preserving code ability.

    So the high score of a specialized model is not free: it trades generality for specialization. When a vendor officially releases a general model, it must also serve multimodal, long-context, office, and research goals, and cannot put the entire training budget into code. A score gap against a specialized model is a structural result, not a quality difference.

    5. The statistical side: sampling variance and the “lottery” effect

    The fourth cause is evaluation noise. Sampling-based pass-rate metrics such as pass@k are highly sensitive to temperature, random seed, number of retries, and timeout thresholds; re-evaluating the same model on the same task often moves by several percentage points. Combined with a limited number of tasks and an uneven difficulty distribution, small differences are not statistically significant. In emerging directions such as embodied intelligence and computer operation, the multiples improvements from specialized post-training also partly stem from extremely weak baselines and metrics that have not yet stabilized.

    6. A practical evaluation method

    For model selection and acceptance, the following process is recommended:

    1. Build a private regression set: extract 100–300 historical PRs with review standards from real repositories, keeping the original review comments as automatic-zero criteria.
    2. Fix the execution environment: standardize the harness, prompt template, timeout and retry policy, and change only the model; record the four-element tuple so results can be reproduced.
    3. Run a multi-dimensional capability check: score code, tool calling, long context, writing, and instruction following separately, and see whether the seesaw magnitude is acceptable.
    4. Estimate variance with repeated sampling: sample each task multiple times, report the mean and confidence interval, and avoid drawing conclusions from a single run.
    5. Adopt a tiered deployment strategy: route general requests to a well-rounded model and code and agent tasks to the specialized model, using a container platform for sandboxed execution, object storage for artifacts, and logging and monitoring services to track failure modes.

    7. Conclusion

    Multiples improvements in benchmark scores are common in the open-source post-training ecosystem, and their sources decompose into four layers: evaluation criteria changes, harness differences, the capability seesaw, and sampling variance. The rational approach is not to chase a single leaderboard ranking, but to bind evaluation to a reproducible environment and a private set close to your own workload, and to use multi-dimensional regression to confirm that the specialized gain was not bought with an unacceptable loss of general capability.