Why Pure Reinforcement Learning Post-Training Can Multiply Coding Performance

    This article explains why a general-purpose open-source base model can more than double its score on coding benchmarks after pure reinforcement learning post-training, and why the same model can still vary by several percentage points across evaluation harnesses. It breaks down where the gains come from, why coding abilities can rise while general capabilities regress, and the three real sources of leaderboard gaps: shared authorship between benchmarks and models, inconsistent harnesses, and differing objectives between specialized and general models. It also outlines how to build a trustworthy internal evaluation pipeline and what to check before treating a score jump as meaningful.

    1. The Phenomenon: The Same Base Model, Multiplied Score Gaps on Code

    A notable pattern has recently emerged in the industry: an open-source base model known for its general capabilities can, after a single round of pure reinforcement learning post-training targeting code alone, more than double its score on several programming benchmarks. Meanwhile, when the same base model is evaluated inside different execution frameworks and prompt templates, the score gap between runs can easily stretch to several percentage points.

    These two kinds of gaps are often conflated, but their causes are completely different. The former is a capability reshuffle driven by the training objective; the latter is measurement bias introduced by the evaluation environment and task design. Separating them is the only way to judge what a sudden “score surge” actually means.

    2. Pure Reinforcement Learning Post-Training: Where the Gains Come From

    Pure reinforcement learning—which does not rely on human annotation of answers one by one, and uses only automatically verifiable reward signals—works quickly on coding tasks because code is one of the few domains with a natural “objective verifier.”

    • Reward signals can be automated: unit tests, compilation results, static checks, and execution timeouts can all be converted directly into scalar rewards, with no human scoring required.
    • The search space is structured: a fix is usually confined to a patch spanning a handful of files and lines, an action space far smaller than open-ended writing.
    • The feedback loop is short: candidate patches can be executed in a sandbox immediately, forming a high-frequency “generate–execute–score–update” loop.

    A schematic training loop can be written as the following pseudocode:

    1. for step in range(total_steps):
    2. task = sampler.sample_repo_task() # Sample a real repository task
    3. prompt = build_prompt(task.issue, task.repo_context)
    4. patch = policy.generate(prompt) # Generate a candidate patch
    5. reward = verifier.run(task, patch) # Compile + unit tests + static checks
    6. reward = reward - penalty(len(patch)) # Discourage meaningless large changes
    7. policy.update(reward) # Policy update

    In engineering practice, what really determines success or failure is often not the algorithm but verifier quality: sandbox isolation, reproducible dependencies, uncontaminated tests, timeout and resource limits, and removal of flaky cases. The noisier the verifier, the more likely the model learns to “please the tests” rather than “fix the problem.”

    3. The Capability Seesaw: Why Code Rises While Other Abilities Drop

    Post-training is a distribution redirection on top of a base model. When the reward covers only code, the model’s probability mass concentrates on code-related patterns, and general writing, multi-turn dialogue, and multimodal understanding often regress noticeably—drops of 20% to 50% are not uncommon. Tool-calling ability and coding ability can also trade off against each other: the former emphasizes “when to call and what arguments to pass,” while the latter emphasizes “getting it right in one shot,” and their optimal strategies do not align.

    For this reason, official releases of general-purpose models usually preserve a general-purpose mix, while specialized models can drop those constraints and put the entire budget on a single objective. When you see that “a specialized model scores twice as high on code as a general model,” the first reaction should be: what did it give up?

    4. Three Real Sources of Leaderboard Differences

    4.1 Benchmark Authors and Model Trainers Are the Same Team

    When a benchmark and a model come from the same team, the details of the scoring criteria are most easily understood internally. Newer versions of benchmarks often make substantial changes: prompts deliberately leave things open rather than spelling out requirements, and introduce veto items closer to open-source maintainer review standards. For example, a task may only require fixing a defect on path A, but if the same problem exists on path B, or if other input types already present in the repository are not handled, passing all ordinary unit tests can still result in a zero score. Such designs are extremely sensitive to “targeted adaptation,” and models without that adaptation generally lose points.

    4.2 Inconsistent Execution Frameworks (Harnesses)

    The same model running the same benchmark in different AI coding tools can differ by several percentage points. The reason is that prompt assembly, context retrieval, tool permissions, retry strategies, and patch application methods all differ. A model that completed reinforcement learning within a particular framework is naturally better adapted to that framework’s prompt format and tool protocol, and switching frameworks puts it at a disadvantage. The practical implication is direct: comparing scores across frameworks is meaningless; you must fix the framework, fix the version, and fix the decoding parameters.

    4.3 Specialized and General Models Have Different Objective Functions

    A specialized model only needs to be strong at code; a general model must simultaneously handle long text, multimodality, office work, and research, so its capacity and training budget are spread thin. This is not a matter of higher or lower capability, but of different constraints.

    5. How to Build a Trustworthy Internal Evaluation

    Rather than chasing public leaderboards, build your own evaluation set:

    1. Extract tasks from real repositories, preserving the original issue descriptions and reproduction steps;
    2. Fix the execution framework and prompt template, and record version numbers;
    3. Use containers for isolation, pin dependency lock files, and remove unstable cases;
    4. Sample the same task multiple times, and report the mean and variance rather than the single best run;
    5. Evaluate both “whether the fix is correct” and “whether the change is clean”: whether unrelated changes are introduced and whether existing input compatibility is broken.

    Schematic:

    1. eval:
    2. harness: fixed-cli@<version>
    3. samples_per_task: 5
    4. sandbox: container
    5. metrics: [pass_rate, mean_reward, patch_size, regression_rate]
    6. report: mean + std

    6. Conclusion

    A multiplied improvement in coding scores is not mathematically surprising; it may come from the real gains of specialized reinforcement learning, or from same-source leaderboards, framework differences, and the trade-off of sacrificed general capabilities. To judge whether a release is worth learning from, look at three things: whether the verifier is trustworthy, whether the evaluation is reproducible, and whether the capability trade-offs are clearly disclosed. For a team, investing the budget in the verifier and an internal evaluation loop yields far more than chasing any public score; if you need to carry training and evaluation workloads, you can build a reproducible pipeline on general cloud capabilities such as container platforms, object storage, log services, and monitoring and alerting.