How Post-Training Breaks the Base Model Ceiling: A Practical Engineering Guide
This article breaks down why a post-trained model can outperform its base model by several times in multi-turn, tool-using agent evaluations, and how to make those gains reproducible. It covers aligning training rewards with scoring metrics, four verifiable sources of improvement (task distribution alignment, trajectory-level credit assignment, difficulty curricula, and role-based agent orchestration), building verifiable reward environments, evaluation governance, common pitfalls, and a practical rollout path. The core takeaway: verifiable rewards are the load-bearing wall, and evaluation discipline is the safety valve.
How Post-Training Breaks the Base Model Ceiling
In code evaluations, we often see a counterintuitive result: a specialized model produced by post-training a base model can score several times higher than its base version in agent matches that require multiple rounds of tool calls. The comparison in the source material is a case in point: two post-trained variants of the same base model reached score rates of roughly 38.9% and 58.2%; in single-player mode, the latter entered the top tier at about 66.0%. This article discusses no specific product. Instead, it abstracts the phenomenon into a general engineering problem: how to use post-training and agent orchestration to push a model beyond its base capability ceiling on real software engineering tasks, and make the evaluation conclusions trustworthy.
1. First, Get the Concepts Right: Score Rate Is Not Accuracy
The “score rate” in the source material comes from win/draw/loss scoring, not a simple pass ratio over samples. This distinction is critical because it shapes the optimization objective:
- Accuracy-style metrics (such as single-turn case pass rate) are sparse 0/1 signals with high variance.
- Match-style metrics separate “partial completion,” “draw,” and “failure,” which effectively adds intermediate tiers to the reward function and yields smoother gradients.
- Goals scored versus conceded (output-to-consumption ratio) implicitly measures efficiency, i.e., effective progress gained per unit of interaction cost.
So the first principle of post-training is: make the training reward as isomorphic as possible to the evaluation scoring scheme. If training uses a binary reward while evaluation uses three-tier scoring, a systematic gap opens between the policy the model learns and what the evaluation prefers.
2. Where the Gains Come From: Four Verifiable Sources
2.1 Task Distribution Alignment
A base model’s pretraining corpus is mostly “code snippets,” whereas real tasks are repository-sized: cross-file dependencies, implicit conventions, build scripts, and historical commit style. Post-training raises the sample unit from function level to repository level, and only then does the model “see” the real shape of the work for the first time.
2.2 Credit Assignment over Interaction Trajectories
In multi-turn tool calls, a final failure often traces back to a wrong assumption at step 3. Only by propagating the final return back along the trajectory can the model learn to “verify before acting.” In practice, you can use trajectory-level return plus step-level discounting:
def credit(trajectory, final_score, gamma=0.95):# Steps closer to the end get more credit; early exploration keeps a small return to encourage information gatheringn = len(trajectory)return [final_score * (gamma ** (n - 1 - i)) for i in range(n)]
2.3 Difficulty Curriculum
Bucket tasks by “solvability” (for example, by the pass rate over multiple base-model samples) and sample preferentially from the 20%–70% pass-rate band. Fully passing samples provide no gradient, fully failing samples are too noisy, and this band carries the most information.
2.4 Agent Role Specialization
The “primary model + secondary model (with automatic sub-agent routing)” structure in the source material shows that combining models under a cost constraint is itself an architectural design. In engineering terms, it abstracts into three roles:
| Role | Responsibility | Selection Preference |
|---|---|---|
| Planner | Decompose the task, define the verification plan | Strong reasoning, long context |
| Executor | Write patches, run tests | High throughput, low cost |
| Reviewer | Re-check the diff, find counterexamples | Heterogeneous from the executor to avoid shared bias |
Reviewer heterogeneity is the most overlooked point: same-source models tend to share the same blind spots, and swapping in a model trained with a different recipe can significantly raise the defect detection rate.
3. Verifiable Rewards: The Load-Bearing Wall of the Whole Approach
Without a reliable verification signal, all of the techniques above degrade into overfitting the reward. A minimum viable verification environment should include:
- An isolated build and dependency environment to guarantee reproducibility;
- Separation of hidden and public test sets to prevent “hardcoding against visible cases”;
- Triple limits on timeout, memory, and network so the policy cannot learn to “bypass” instead of “solve”;
- Regression checks: fixing A must not break B.
An illustrative reward aggregation:
def reward(patch, env):if not env.builds(patch): return -1.0 # Breaks the build, strong penaltyif not env.hidden_tests(patch): return 0.3 # Partial progressif env.regression(patch): return 0.2 # Introduces a regression, offsets the gainreturn 1.0 - 0.01 * env.diff_size(patch) # Passes, slight preference for small changes
Explicitly penalizing change size in the reward suppresses bloated patches; giving a strong negative value for build failures teaches the model to “not break the repository” first.
4. Evaluation Credibility: Don’t Build Conclusions on Noise
The large gap between the two groups of numbers in the source material (21.5% and 20.3% are nearly in the same tier, while 58.2% and 38.9% differ by nearly 20 percentage points) suggests that the impact of model combinations may exceed single-model differences. To make conclusions hold up, you need:
- Fix the sampling temperature and maximum number of rounds, otherwise score rates are not comparable;
- Repeat experiments and report confidence intervals; match-style metrics have non-trivial variance;
- Run ablations: swap only the planner, only the executor, only the reviewer, and quantify each contribution;
- Separate capability gains from cost gains: an improvement from a low-cost secondary model may just move budget into more calls;
- Keep a failure sample set and manually spot-check for evaluation environment defects.
5. Common Pitfalls
- Reward hacking: the model learns to modify test files or skip checks, so read-only isolation must be enforced at the environment layer;
- Context bloat: long repository context brings gains but also attention dilution, so pair it with retrieval-based trimming;
- Overfitting public cases: rotate the hidden set regularly;
- Same-source review failure: when the reviewer and executor are trained with similar recipes, the miss rate rises sharply;
- Metric mismatch: evaluating a multi-turn agent with single-turn pass rate underestimates the value of planning and verification.
6. Rollout Path
- Build the evaluation and environment first, then talk about training, to avoid the rework of “train first, test later”;
- Use multiple base-model samples to label task difficulty and form a curriculum;
- Validate the reward function at small scale, confirm there is no hacking path, then scale up;
- Adopt the “plan–execute–review” triangle orchestration and run per-item ablations;
- Report conclusions externally with repeated experiments and confidence intervals.
On a general cloud environment, this loop is typically carried by a container platform for isolated builds, object storage for saving trajectories and patches, a message queue for scheduling tasks, and logging plus monitoring and alerting services for observing failure and cost rates, turning “train–evaluate–rollback” into a sustainable pipeline.
Conclusion: The so-called “post-training overtakes the base model by several times” is essentially not a single model getting stronger, but the systematic result of five things stacking up: task distribution alignment, trajectory-level credit assignment, difficulty curriculum, role-based orchestration, and trustworthy evaluation. Among them, verifiable rewards are the load-bearing wall and evaluation governance is the stop-loss valve; missing either one makes the gains non-reproducible.
