Post-Training Over Parameters: How Open-Source LLMs Are Making a Generational Leap in Coding
Open-source LLM teams are shifting from scaling parameters to long-duration, multi-domain reinforcement learning coupled with agent toolchains. This article breaks down the strategy, reward design, evaluation methods, and cost engineering behind the cross-generational improvement in coding performance.
1. An Industry Case Worth Studying
Over the past year, the open-source LLM ecosystem has delivered a textbook-level technical playbook. Stripping away brand names, its roadmap offers valuable lessons for any engineering team.
One open-source team first released a trillion-parameter base model that proved the engineering ceiling of the open-source route on hardcore tasks such as operator optimization and compiler principles. But on terminal-based benchmarks that test real command-line fundamentals, the previous version scored only around 13%, showing a visible generational gap compared to leading closed-source flagship models. This pointed to one conclusion: the base model already had sufficient knowledge density; what it lacked was alignment of “engineering behavior.”
Over the next three-plus months, instead of rushing to build an even larger next-generation model, the team split its efforts into two tracks:
- External tooling: Iterating rapidly on the accompanying coding agent and desktop client, polishing execution environments such as sandboxes, terminals, and browsers to production readiness, while introducing visual annotations and a dual “plan/goal” mode to support long-horizon autonomous tasks.
- Internal training: Running roughly 99 days of reinforcement learning post-training on the existing base model, jointly retraining across more than one hundred domains.
The results were validated by third-party blind evaluations: the new version improved its composite intelligence index by about 11 points over its predecessor, entering the global top tier. Frontend and 3D generation quality were widely confirmed by community testing. During the same period, API pricing dropped by about one-third, creating a cost advantage of roughly 5x relative to closed-source flagship models.
Abstracting this route into a general recipe gives us the central thesis of this article:
Cross-generational improvement = frozen full-scale base model + multi-domain joint reinforcement learning + agent toolchain synergy + inference cost engineering
| Stage | Key Action | Problem Solved |
|---|---|---|
| Base model stage | Release trillion-parameter open-source base model; validate on hardcore tasks | Knowledge and reasoning ceiling |
| Toolchain stage | Sandbox, terminal, browser, dual-mode client | Agent execution environment |
| Retraining stage | Long-duration multi-domain joint reinforcement learning | Engineering behavior alignment |
| Delivery stage | Third-party blind evaluation, price reduction | Commercial viability |
2. Choosing the Route: Why Not Scale Parameters First
The industry’s inertia is the “point-one release trap”: most vendors ship minor version iterations with only lightweight fine-tuning — swapping data mixes, fixing a few failure cases, and seeing small score fluctuations. This approach is low-risk and easy to ship, but it cannot break through the ceiling at the behavioral level.
Freezing the base model and retraining behavior is an alternative route: keep the parameter count unchanged, and invest compute into reinforcement learning so the model learns to “get things done in real environments.” Its payoff structure is clear:
- The floor is preserved: the base model is not destructively altered, so general knowledge and reasoning remain stable.
- The ceiling is raised: reinforcement learning directly optimizes the final metric of “task completion rate,” rather than proxy metrics.
- Cost stays manageable: compared with training a larger model from scratch, post-training compute is an order of magnitude cheaper, and iteration cycles shrink from years to months.
In short: when the weakness lies not in “what the model knows” but in “how it behaves,” scaling parameters yields far lower marginal returns than alignment training.
3. The Core of Post-Training: Multi-Domain Joint Reinforcement Learning
3.1 Verifiable Rewards Are the Foundation
The biggest advantage of coding tasks is that rewards can be automatically verified: whether compilation passes, whether tests turn green, and whether acceptance scripts succeed are all objective signals. A simplified reward function can be designed as follows:
def compute_reward(traj) -> float:r = 0.0# Hard signal: compilable, unit tests passr += 1.0 if traj.build_success else -0.5r += 0.8 * (traj.tests_passed / max(1, traj.tests_total))# Process signal: valid tool calls, no repeated ineffective actionsr -= 0.3 * traj.illegal_tool_callsr -= 0.2 * traj.repeated_action_count# End-to-end signal: task acceptance scriptr += 2.0 if traj.e2e_check() else 0.0return r
Three points matter most: hard signals act as a veto (compilation failure immediately yields negative reward), process signals suppress gaming behavior, and end-to-end signals carry the largest weight.
3.2 Multi-Domain Joint Training, Not Single-Task Specialization
Running reinforcement learning on only one task category easily produces a lopsided model. The approach validated by industry practice is multi-domain joint training: programming, mathematical reasoning, tool use, and long-horizon planning task families are mixed into the same training loop with a controlled ratio, supported by curriculum learning — starting with short-context, low-complexity tasks, then gradually increasing task duration and environmental complexity. The result is a general “task completion capability” rather than an overfit benchmark scorer.
3.3 The Engineering Meaning of Continuous Retraining
Nearly one hundred days of continuous training is not about accumulating time for its own sake; it is about fighting two persistent problems:
- Reward hacking: the model may learn to forge test outputs or bypass acceptance scripts, requiring continuous tightening of the reward function.
- Capability drift: when old and new task families are mixed in training, gains in one capability may squeeze another, requiring continuous full regression evaluation to monitor the waterline.
Post-training is essentially a long closed loop of “training — evaluation — reward repair.” What matters is not a single training technique but engineering quality.
4. The Agent Toolchain: The Underrated Other Half
Model capability and toolchain quality have a multiplicative relationship: no matter how strong the model is, it cannot perform inside a broken execution environment. Key components validated in this round of industry practice include:
- Sandbox: each task runs in a clean container, isolating dependencies, ensuring reproducibility and rollback, while doubling as a natural evaluation environment.
- Terminal: genuine command-line interaction capability is a prerequisite for the leap in terminal-benchmark scores from the 13% range.
- Browser: lets the agent “see” the pages it renders, forming a perception — modification — re-perception loop.
- Visual feedback: feeds interface screenshots back to a multimodal model to directly optimize visual effects rather than merely comparing code diffs.
- Plan/goal dual mode: complex tasks first generate a step-by-step plan before execution (reducing mid-course deviation), while simple tasks are driven directly by the goal (reducing latency). The two modes switch based on task complexity.
Teams that want to replicate this capability should treat the execution environment as a product: tool-call failure rate, average steps per task, and anomaly recovery success rate are all core metrics worth tracking over time.
5. How to Evaluate a Coding Model Scientifically
A single leaderboard score is highly prone to distortion. A three-layer evaluation matrix is recommended:
- Static benchmarks: function-level and project-level code generation, measuring correctness and code quality.
- Dynamic benchmarks: terminal operations and long-horizon multi-step tasks, measuring real engineering behavior.
- In-house workload sampling: extracting bug-fixing, refactoring, and migration tasks from the company’s real codebase — the layer closest to business reality.
For frontend and 3D generation, rendered output should participate in scoring, not just text comparison. A simplified evaluation pipeline looks like this:
for task in benchmark:env = Sandbox(task.env_image) # Clean containeragent = Agent(model, tools=[terminal, browser, editor])trace = agent.run(task.prompt, budget=task.max_steps)score = weighted(env.run_tests(), # Functional correctnessenv.screenshot_diff(), # Visual consistency (frontend/3D)trace.cost(), # Token and time cost)report.add(task, score)
The value of anonymous blind testing and arena mechanisms is also worth borrowing: hiding model identities and letting real users vote effectively suppresses benchmark-targeted optimization.
6. The Cost Equation: Where the 5x Price Advantage Comes From
The real cost metric is not the price per million tokens, but cost per completed task:
Cost per task ≈ cost per call × number of turns required × (1 − first-pass success rate)
Post-training reduces total cost substantially by increasing the first-pass success rate and reducing rework loops, even when the unit price stays the same. Combined with conventional inference-side optimizations — quantization, KV cache reuse, speculative decoding, and sparse activation architectures — this produces a significant price gap against closed-source flagships.
For deployment, teams typically face two paths: self-hosting open weights (data stays in-domain, deep customization possible, but requires GPU clusters and operations) or calling a cloud API directly (fast to start, pay-as-you-go). A middle-ground approach is to build your own evaluation harness while using cloud inference: for teams that do not want to maintain infrastructure, platforms such as Baidu AI Cloud can provide compute, container platforms, and model inference services, turning environment setup and scaling costs into operational expenses.
7. An Action Checklist for Teams
- Evaluation first: before choosing a model, build an in-house benchmark suite to avoid being led around by public leaderboards.
- Treat the execution environment as a product: sandbox, terminal, and browser stability determine the ceiling of model capability.
- Watch cost per task: turns and first-pass success rate reflect real cost better than unit price.
- Build a data flywheel: desensitize online failure trajectories and feed them back as training/evaluation data, creating an organization-specific moat.
- Validate in parallel: run small-scale trials on both API and self-hosted routes, then decide based on compliance and total cost.
Conclusion
The lesson from this round of industry practice is straightforward: once base model scale crosses a critical threshold, the competitive center shifts from “who has more parameters” to “who builds a more solid post-training and engineering closed loop.” For most teams, instead of waiting for the next larger model, it is better to complete the evaluation system, execution environment, and cost accounting now — these three things are the real foundation for getting flagship-level experience out of any model.
