Post-Training Capability Boundaries and Evaluation Bias in Coding Benchmarks

    This article explains why domain-specific post-training can sharply raise coding benchmark scores without a real jump in model capability. It covers the three mechanisms behind distribution alignment, the capability seesaw that makes writing, tool use, safety boundaries, and long-horizon planning degrade, how newer maintainer-style benchmarks and execution harnesses systematically amplify the gap, and a practical regression checklist plus multi-objective reward sketch for deciding when a specialized policy should replace a general model — or when routing is the better architecture.

    Why specialized post-training pushes coding scores up so much

    Large models already absorb a large distribution of code, documentation, and dialogue during pre-training. Post-training does not teach programming from scratch; it reallocates existing capability toward one class of reward signal. If reinforcement learning or preference optimization rewards only “the patch passes the tests and the change gets merged,” the policy will more often produce repository-level edits, longer tool-call chains, and completions that closely match the reviewer’s expectations. The score increase usually comes from distribution alignment, not from a sudden increase in parameter capacity.

    This alignment has three direct mechanisms. First, sampling is constrained to code trajectories, so the model spends less on chit-chat, summarization, and open-ended Q&A. Second, the reward is sparse but the objective is clear: successful trajectories get amplified repeatedly while failure modes are suppressed. Third, if the training environment shares the same prompts, sandbox, and scoring rules as the evaluation environment, the policy learns “what kind of output scores points” rather than generalizing to arbitrary maintenance scenarios.

    So when a coding leaderboard nearly doubles after one specialized run, the first questions should be: is the baseline model still expected to handle multimodal, long-context, office, and research tasks as well; did the evaluation change its prompts and rejection rules; and does the result hold only inside one execution framework. Separate those three things and the large gap stops being mysterious.

    The capability seesaw: why other skills drop when one gets stronger

    Under a fixed parameter budget, different capabilities share representations and decoding habits. Narrowing the optimization target to a coding agent produces common side effects:

    • Weaker open-ended writing. Narrative, structure, and tone are no longer rewarded, so the model tends to output patches, commands, and very short explanations.
    • Narrower tool use. If training only covers retrieval, editing, and testing inside a code repository, switching to a browser, spreadsheets, or enterprise systems degrades both call ordering and failure recovery.
    • Drifting refusal and safety boundaries. When the reward only looks at task completion, the model may over-execute ambiguous instructions or force code changes when information is insufficient.
    • Changed long-horizon planning style. A specialized model spends its context budget on logs and diffs, and the quality of summarization and citation for non-code material drops.

    A pattern that keeps recurring in the community can be abstracted into a rule of thumb: after coding-specialized post-training on the same base model, a 20–50% drop in other capabilities is not unusual; and if you then switch to a stronger agentic objective, the coding score itself may fall back. This is not an accidental defect of one implementation but the result of the objective function and the data mixture. A general model has to compromise among many rewards; a specialized model only has to max out the code task. If a vendor intends to ship a general assistant, it cannot bet the entire capacity on a single leaderboard.

    Evaluation design amplifies the gap on its own

    Coding benchmarks have moved from “requirements fully specified, pass the unit tests and you score” to “requirements left partly open, vetoed outright by maintainer standards,” and most models drop together. Typical vetoes include: fixing only the path named in the prompt while the same class of defect remains in other modules; failing to stay compatible with input types already present in the repository; breaking existing conventions with the change style; and tests passing while the review standard deems the work incomplete. Ordinary unit tests do not cover these constraints, and the new benchmark simply records a zero.

    Such leaderboards are extremely unfriendly to models that were “not trained against this rubric.” If the training side also holds the scoring details, the failure examples, and the execution scaffolding, its specialized model has effectively seen the grading rubric before a closed-book exam. The general baseline model only gets the public prompt, so the gap is amplified systematically. When reading results, check at least four things: whether prompts deliberately omit parts of the requirement; whether scoring introduces human-review-style rules; whether failures are functional errors or style and coverage vetoes; and whether题目 and thresholds are comparable across benchmark versions. Citing a single new leaderboard multiple does not show that a model leads equally on older tasks or in real repositories.

    The execution framework changes the same model’s performance

    Agentic evaluation is not plain text completion. The model acts over multiple turns inside a terminal, an editor, a test runner, and a context-truncation policy. The same weights will show different visible scores under a different command-line wrapper: tool return formats differ, error messages are truncated differently, and allowed retries and timeouts differ. A policy trained with reinforcement learning in one framework adapts to that observation and action space; moving it into another wrapper is effectively changing the environment dynamics, and a score drop is the expected outcome.

    Comparisons on a third-party unified scaffold are usually more informative than “we only publish results in the same environment we trained in,” but they are still not an absolute measure of capability. When reading a report, record these separately: base model, post-training objective, temperature and number of samples, maximum steps, whether hidden tests are visible, timeout and retry settings. A “doubling” without these conditions looks more like in-environment overfitting than transferable engineering capability.

    How to use specialized post-training sensibly

    Specialized models fit workflows with clear boundaries and automatic scoring — for example fixing defects under fixed repository conventions, adding tests, or generating migration patches. Before shipping, run three kinds of regression rather than only looking at a coding leaderboard:

    1. Code tasks: keep repositories, languages, and build systems that differ from the training distribution, so you are not only testing failure modes seen during training.
    2. Non-code tasks: sample writing, summarization, structured extraction, and multi-step retrieval, quantify the drop, and decide whether a general model still needs to act as a fallback.
    3. Toolchain migration: run the same set of problems on another agent runtime and observe the score gap. A large gap means the gains are bound to the environment.

    A sketch of the reward should not look only at whether the final tests pass. The following platform-agnostic pseudocode illustrates multi-objective constraints; it is not a runnable interface:

    1. reward = pass_hidden_tests
    2. - penalty_if_unrelated_files_changed
    3. - penalty_if_style_rules_broken
    4. - penalty_if_only_prompt_path_fixed
    5. + small_bonus_if_explanation_is_factual

    Hidden tests prevent overfitting to public examples; penalties for unrelated files and style reduce “make it green” patches; the path-coverage penalty corresponds to “the same class of problem left unfixed means a veto”; and a small reward for factual explanations slows the decline in writing and auditability. The weights must be tuned on a validation set. If one weight is too large, the model sacrifices the others and the seesaw simply tips the other way.

    Practices on the data and training pipeline side are equally ordinary but effective: keep a proportion of general instruction data so writing and tool calling do not fall off a cliff; validate with an executor different from the evaluation scaffold to reduce environment memorization; classify error types on failed trajectories, separating compile failures, missed edits, over-modification, and misunderstood requirements; and limit top-score marketing for each round of public results to clearly stated conditions, so the best result of a lottery-like set of samples is not treated as stable capability.

    How to read claims of “several-fold improvement”

    Embodied control, computer operation, and coding agents all easily produce multiples, because the baseline is often very low and the new reward is drawn from the same distribution as the leaderboard. A large multiple does not mean the model surpasses general models across the board. A safer order of judgment: first confirm whether the task boundary narrowed; then confirm whether the evaluation rules became stricter and whether the training side knew them fully; then re-test the same weights on an independent scaffold; finally run regression on non-target capabilities. Only when all four steps hold is a specialized model worth swapping in for a general model in the corresponding pipeline. Otherwise the more reasonable architecture is routing: repository tasks go to the specialized policy, while writing, research, and cross-system operation stay with the general policy, with unified logging and human spot checks to track the real rework rate.

    A score is a screening signal, not a delivery standard. The delivery standard should be whether defects are fixed to the maintainer’s expectations, whether changes are reviewable, and whether other business capabilities remain within an acceptable range. Designing post-training and evaluation against that standard is how you avoid mistaking a high in-environment score for an overall leap in model capability.