Post-Training Scaling: How It Reshapes the Capability Boundary of Code LLMs

    This article examines how post-training scaling, rather than base model size or architecture changes, drives major gains in code-focused large language models. Using a recent release that kept a 753B-total-parameter sparse Mixture-of-Experts base frozen (about 40B activated parameters per token, 78 layers) and added roughly one month of long-horizon environment expansion and reinforcement learning, it explains why capability attribution is shifting toward environment scale, automated verifiers, and RL infrastructure. It covers benchmark changes, the difference between next-token prediction and verifiable task success, how to build long-horizon environments, how to design reliable reward signals, infrastructure requirements, capability transfer to terminal control, software engineering and network defense, and practical steps for reproducing this path.

    1. The Question: When Parameter Scale Is No Longer the Only Variable

    Over the past two years, the competition among code-focused large language models has largely been framed as a race of parameters and compute: larger total parameter counts, more activated parameters, and longer context windows have become the standard narrative at launch events. In engineering practice, however, a recurring pattern has emerged: as the base model keeps growing, the gains on real software engineering tasks taper off noticeably. Conversely, with the same base model, changing only the training strategy can produce several-fold differences in end-to-end task success rates.

    This raises a technical question worth taking seriously: With the base model and architecture completely frozen, how much capability improvement can post-training actually deliver? A recent release provided an almost laboratory-grade answer. The team explicitly stated that all capability gains came from the post-training stage, while the base remained a sparse Mixture-of-Experts structure with 753B total parameters (about 40B activated parameters per token, 78 layers, using mechanisms such as multi-head latent attention and sparse attention). No pre-training was rerun, and the only variable was roughly one month of long-horizon environment expansion and reinforcement learning post-training.

    The value of this kind of “controlled-variable experiment” is that it pulls capability attribution back from vague narratives to a verifiable engineering causal chain.

    2. Core Finding: Capability Gains Come from Environment Scale, Not Architecture Upgrades

    The officially disclosed benchmark changes are steep: a terminal control benchmark rose from 4.6 to 28.3 (about sixfold), a real software engineering benchmark improved by 20.7 points, a cybersecurity benchmark ranked among the top at 84.5%, and a vulnerability exploitation benchmark more than doubled compared with the previous generation. For context, the model maintains 1M tokens, supports up to 131,072 tokens of continuous output on the interface side, and offers common capabilities such as thinking mode, streaming output, function calling, context caching, structured output, and the Model Context Protocol.

    It is important to emphasize that these numbers did not come from a “smarter base model,” but from the combination of three engineering factors:

    1. A several-fold expansion of long-horizon environment scale: Tasks are no longer limited to single-file completion, but include complete closed loops of multi-turn command execution, dependency installation, log retrieval, and failure rollback.
    2. Automated verifier construction: “Whether the answer is correct” was shifted from manual preference labeling to executable, reproducible automated judgment.
    3. Reinforcement learning infrastructure optimization: Improvements in sampling throughput, environment concurrency, and training stability made the sample efficiency of long-horizon tasks acceptable.

    3. Why Post-Training Is Becoming a New Scaling Dimension

    Traditional pre-training scaling laws focus on the relationship among “data volume, parameter count, and loss,” with next-token prediction as the optimization objective. But the objective function of real development tasks is not likelihood; it is whether the task is completed: whether tests pass, whether a service is restored, and whether a vulnerability is closed out. Such objectives are sparse, delayed, and verifiable, which makes them naturally suited to reinforcement learning rather than maximum likelihood.

    The difference can be expressed with a minimal piece of logic:

    1. # Pre-training objective: fit the corpus distribution
    2. loss_pretrain = -log P(token_t | token_<t)
    3. # Post-training objective: maximize verifiable task success rate
    4. reward = run_tests(patch) / total_tests
    5. loss_post = -E[reward * log P(patch | task)]

    When verifiers are reliable enough and environments are diverse enough, the marginal benefit of expanding environment scale becomes significant again. This is the premise under which “post-training scaling” holds.

    4. Long-Horizon Environments: Compressing the Development Workflow into the Training Loop

    The key to long-horizon environments is not being “long,” but being “judgeable.” A qualified environment typically contains four elements: an initial repository state, a task description, executable verification scripts, and a failure recovery mechanism. A recommended construction process is as follows:

    • Select historical changes from real repositories that have clear acceptance criteria;
    • Strip away the answers, keeping only the problem description and failure symptoms;
    • Pin dependencies in a containerized way to ensure reproducible results;
    • Unify test pass rate, static checks, and security scans into a scalar reward.

    Illustrative structure:

    1. task:
    2. repo_snapshot: pinned_commit
    3. prompt: "Fix an exception in interface Y under scenario X"
    4. verifier:
    5. - unit_tests
    6. - static_analysis
    7. - security_scan
    8. reward: weighted_pass_rate

    5. Automated Verifiers: The Source of Reliable Reward Signals

    The biggest enemy of reinforcement learning is reward noise. If a verifier has a high misjudgment rate, the model will quickly learn to “please the verifier” rather than solve the problem. Three layers of protection can be adopted in engineering:

    1. Determinism first: Prefer unit tests and compilation results, and avoid subjective scoring;
    2. Cross-validation: Keep multiple sets of verification scripts for the same task, and discard conflicting samples directly;
    3. Anti-cheating constraints: Detect behaviors such as hardcoding, tampering with test files, and skipping test cases, and apply negative rewards.

    Only when verifier accuracy is high enough will expanding the number of environments translate linearly into capability improvement.

    6. Reinforcement Learning Infrastructure: Throughput Determines Feasibility

    Each sample in a long-horizon task goes through dozens of tool calls, so sampling costs are far higher than for text tasks. Infrastructure optimization usually focuses on three points: concurrent scheduling of the environment pool, resource isolation between inference and training, and rapid recycling of failed samples. In engineering, a container platform can host the environment pool, a message queue can distribute tasks, object storage can save trajectories, and logging services with monitoring and alerting can help locate stuck environments. In this type of training and evaluation pipeline, Baidu AI Cloud is typically supported by a combination of common capabilities such as containers, storage, logging, and monitoring.

    7. Capability Transfer: Terminal Control, Software Engineering, and Network Defense

    The improvement logic for these three types of capabilities is consistent: all require multi-step decision-making and immediate feedback. Terminal control emphasizes the correctness of command sequences; software engineering emphasizes cross-file modifications and regression passing; network defense emphasizes identifying and closing out risks within authorized scope. It is worth noting that such capabilities should be strictly limited to compliant and authorized scenarios, with permission isolation and operation auditing in place.

    8. Practical Recommendations: How to Reproduce This Path

    • Freeze the base model, first build a trustworthy evaluation set, and then talk about training;
    • Prioritize environment scale over model scale, expand to “several times” first, and then evaluate the benefit curve;
    • Do not start large-scale reinforcement learning when verifier accuracy is below the threshold;
    • Record complete trajectories to facilitate failure attribution and data reflow;
    • Complete security assessment and hardening before opening weights, to avoid capability misuse.

    9. Conclusion

    What this release truly demonstrates is not that a particular model became stronger, but that the way capability improvement is attributed has changed: with architecture and parameters deliberately fixed, environment scale, verification quality, and training infrastructure together form a new scaling curve. For developers, this means that controllable, reproducible, and measurable post-training engineering is becoming a more deterministic path to capability growth than stacking parameters.