Post-Training Scaling on a Fixed Base: Leaps in Coding and Security Capabilities

    This article explores how large language models can achieve significant leaps in coding and security capabilities through systematic post-training engineering, even when the base model architecture and parameters remain fixed. By isolating variables, it demonstrates that scaling long-horizon environments, deploying robust automatic verifiers, and optimizing reinforcement learning (RL) infrastructure can substantially enhance multi-step interaction and tool utilization. The article also outlines the boundaries of this approach, emphasizing that while post-training shapes behavior strategies effectively, it does not replace the knowledge and capability ceilings established during pre-training.

    Post-Training Scaling on a Fixed Base: Leaps in Coding and Security Capabilities

    1. Core Conclusion: Deconstructing “Model Upgrades” into Attributable Post-Training Engineering

    To evaluate the capability leap of a cutting-edge coding model, we must first answer an attribution question: Does the improvement stem from architectural changes, pre-training data expansion, or systematic engineering during the post-training phase? In a publicly discussed case, the model retained the base and overall architecture of its previous version, keeping a Mixture of Experts (MoE) structure with approximately 750 billion total parameters and 40 billion activated parameters per token unchanged. Instead of conducting large-scale pre-training again, it expanded the scale of long-horizon environments and the compute for reinforcement learning (RL) post-training over a period of about a month. Its public technical documentation attributes the capability improvements primarily to post-training scaling.

    The value of such a “controlled variable experiment” lies in decoupling model capability improvements from the narrative of “stacking parameters and changing architectures,” transforming it into a discussable engineering problem: When the representational capacity of the base model is largely fixed, can we significantly improve the model’s behavioral performance in terminal operations, repository-level code modifications, and security offense/defense tasks through more realistic task environments, more reliable automatic verifiers, and higher-throughput RL infrastructure?

    Public results show that terminal operation benchmarks improved from single digits to nearly thirty, a roughly six-fold increase; real-world software engineering benchmarks increased by over twenty points; cybersecurity benchmarks reached over eighty percent; and vulnerability exploitation benchmarks more than doubled compared to the previous generation. These figures indicate that post-training scaling has real potential in “behavior shaping” and “tool usage,” but they cannot be directly extrapolated to represent a comprehensive capability leap. A more accurate conclusion is: With a fixed base, post-training scaling can significantly enhance multi-step interaction, tool calling, error recovery, and security policy execution capabilities; however, it does not replace the new knowledge, new languages, and new architectural ceilings brought by pre-training.

    2. Why a Fixed Base Can Still Improve: Capability Sources and Boundaries

    Pre-training addresses “what the model has seen and what general representations and knowledge base it possesses,” whereas post-training addresses “how the model acts in specific tasks, how it follows constraints, and how it corrects itself from feedback.” Coding and security tasks rely heavily on the latter.

    Take terminal operations as an example. A task often does not involve generating code in one shot but rather a multi-step loop of reading files, executing commands, observing outputs, locating errors, modifying configurations, and verifying again. The model must maintain state, understand tool returns, control action granularity, and recover from failures. Such capabilities are difficult to acquire solely from static data; they require repeated trial and error in interactive environments. Real-world software engineering tasks go further: cross-file dependencies, test failures, interface constraints, and regression risks collectively form sparse rewards, forcing the model to learn task decomposition and intermediate result verification. Cybersecurity tasks require the model to identify configuration flaws, understand the attack surface, and generate defensive fixes within a controlled range, while avoiding boundary-crossing behaviors.

    The reasons why a fixed base can still improve can be summarized in three points:

    1. Behavioral strategies can be reshaped by post-training. The base provides language understanding and code representation, while post-training uses reward signals to guide the model from “knowing how to write code” to “knowing how to complete tasks according to tool protocols.”
    2. Long-horizon environments provide real feedback. As environment scale expands, the model encounters more state transitions and failure modes, enhancing its policy generalization.
    3. Automatic verifiers reduce labeling costs. Unit tests, static checks, behavior assertions, and security policy checks can automatically determine outcomes, enabling RL to scale.

    However, the boundaries are equally clear. Without re-pre-training the base, the model struggles to gain significant improvements in entirely new domain knowledge, the latest interface specifications, or unseen programming languages. No matter how large the context window is, it does not equate to the ability to stably handle infinitely long dependencies. Furthermore, high scores on security benchmarks do not equal comprehensive reliability in real-world attack and defense scenarios. When evaluating, one should separate “interaction capability improvements” from “knowledge boundaries.”

    3. Method Breakdown: Long-Horizon Environments, Automatic Verifiers, and Training Infrastructure

    1. Scaling Long-Horizon Environments: From “Problems” to “Reproducible Worlds”

    The first element of post-training scaling is not simply increasing the number of tasks but expanding the scale and diversity of long-horizon environments. A long-horizon environment typically refers to a task container that supports multi-step actions, state persistence, tool returns, and failure recovery. It involves at least four layers of design:

    • Task Layer: Defines the goal, initial state, success conditions, and constraints, such as fixing a failing test, completing terminal configurations, or eliminating vulnerabilities in a range.
    • Action Layer: Specifies the tools and action space the model can invoke, such as reading/writing files, executing commands, querying logs, and submitting patches.
    • Observation Layer: Returns structured or semi-structured results, including exit codes, standard output, error stacks, test reports, and security alerts.
    • Reset Layer: Ensures that each trajectory is reproducible, rollbackable, and parallelizable, preventing environmental residue from causing data contamination.

    Expanding the environment by “tens of times” does not necessarily bring capability improvements; the key is whether the task distribution covers real difficulties. High-quality environments should feature a difficulty curriculum: from single-step fixes to multi-file refactoring, from explicit errors to implicit regressions, and from single-round tool calls to long-chain troubleshooting. Concurrently, it is crucial to prevent the model from “cheating” by exploiting environment vulnerabilities, such as directly reading answers, bypassing tests, or modifying verification logic. Therefore, environment isolation, answer hiding, action auditing, and randomized initial states are necessary designs.

    1. # Environment interface illustration: not a specific product interface
    2. class TaskEnv:
    3. def reset(self, task_id: str) -> dict:
    4. """Returns initial observation and ensures a clean, reproducible environment"""
    5. ...
    6. def step(self, action: dict) -> tuple[dict, float, bool, dict]:
    7. """Executes action, returns observation, reward, done flag, and diagnostic info"""
    8. ...
    9. def verify(self, final_state: dict) -> dict:
    10. """Multi-layer verification: tests, static checks, security policies, behavior assertions"""
    11. ...

    2. Automatic Verifiers: Turning “Looks Right” into “Provable Right”

    The bottleneck for scaling reinforcement learning is often not sampling, but reward reliability. Manual labeling is costly, high-latency, and inconsistent, making automatic verifiers the core infrastructure for post-training scaling. A robust verifier system is typically not a single test but a multi-layer combination:

    • Unit and Integration Tests: Verify functional correctness and regression risks.
    • Static Checks: Type checking, linting, dependency analysis, and security rule scanning.
    • Behavior Assertions: Check tool call sequences, permission boundaries, file modification scopes, and command side effects.
    • Security Policy Verification: Confirm the model has not performed unauthorized operations, leaked sensitive information, or generated dangerous instructions.
    • Trajectory Auditing: Inspect intermediate states for long-horizon tasks to prevent “right result but unacceptable process.”

    Building verifiers is an engineering task. It requires covering normal paths, boundary conditions, and adversarial samples; distinguishing between “task failure” and “verifier misjudgment”; and regularly calibrating automatic verifiers with manual spot checks. Otherwise, the model might learn reward hacking behaviors: modifying only test files, hardcoding return values, bypassing checkpoints, or applying superficially compliant but practically ineffective fixes in security tasks.

    Therefore, a more reasonable approach is to adopt “layered rewards”: outcome rewards dominate, process constraints act as penalties, and low-confidence verifications trigger manual review or weight reduction. This maintains scale while controlling noise.

    3. RL Infrastructure: Throughput, Stability, and Cost Dictate the Ceiling

    Post-training scaling is not a single-point algorithm problem but a training system problem. A single trajectory in a long-horizon environment might contain dozens to hundreds of tool calls, making sampling costs significantly higher than static text generation. To scale RL, the infrastructure must support:

    • Large-Scale Parallel Sampling: Concurrent execution across multiple environments, rapid container startup, and snapshot recovery.
    • Trajectory Storage and Replay: Save observations, actions, rewards, and verification results to support reproduction and offline analysis.
    • Asynchronous Training: Decouple sampling from parameter updates to improve device utilization.
    • Fault Tolerance and Rate Limiting: Environment failures, timeouts, and anomalous actions should not crash the overall training.
    • Cost Accounting: Track sampling costs, verification costs, and effective sample rates by task type.

    Training stability is equally important. Overly long trajectories introduce reward sparsity and increased variance; overly difficult environment distributions lead to low success rates; overly lenient verifiers introduce noise. In practice, dynamic curricula, advantage estimation normalization, exploration constraints, and periodic evaluations are required. The competitive edge in post-training scaling largely depends on “whether high-quality trajectories can be continuously produced at a controllable cost,” rather than on a single reward function.

    4. Interpreting Results: Benchmark Leaps vs. Comprehensive Capability Leaps

    Public results indicate that terminal operation benchmarks improved from single digits to nearly thirty, real-world software engineering benchmarks increased by over twenty points, cybersecurity benchmarks reached over eighty percent, and vulnerability exploitation benchmarks doubled. These figures are noteworthy, but interpretation requires technical prudence.

    First, benchmark improvements may stem from task distribution matching. If the post-training environment heavily covers terminal operations and repository-level fixes, improvements in related benchmarks will be more pronounced; however, this does not mean the model improves equally on unseen tasks.

    Second, long-horizon benchmarks have high variance. The randomness of multi-step tasks, environment versions, and verifier differences all affect scores. It is necessary to look at multiple runs and confidence intervals.

    Third, security capabilities are dual-use. High cybersecurity benchmark scores indicate the model possesses identification and remediation capabilities in controlled environments, but they also necessitate pre-release red teaming, permission isolation, and abuse prevention. Evaluation should focus on defensive capabilities, refusal strategies, and auditing mechanisms, rather than solely on offensive metrics.

    Fourth, the knowledge boundary of a fixed base remains. Without re-pre-training, the model’s mastery of new APIs, new specifications, and new domain facts relies on context provided during inference. In practical use, this should be paired with retrieval, document injection, and tool validation; post-training improvements should not be misread as knowledge updates.

    5. Engineering Implementation Recommendations

    For teams looking to adopt this approach, it is recommended to proceed in the following order:

    1. Build verifiers before expanding environments. Without reliable judgments, more environments just mean more noise.
    2. Task layering and curriculum. Stratify by number of steps, number of tools, and dependency complexity, gradually increasing difficulty.
    3. Prioritize environmental reproducibility. Container snapshots, random seeds, answer isolation, and action auditing should be in place first.
    4. Establish reward hacking monitoring. Track anomalous pass paths, test file modification ratios, permission breaches, and command side effects.
    5. Front-load security guardrails. Set hard constraints on terminal commands, network access, file writes, and sensitive information handling.
    6. Graduated evaluation. Before going live, perform regression testing on real repository replicas and controlled ranges, not just relying on public benchmarks.
    7. Cost modeling. Incorporate sampling, verification, manual review, and failure reruns into the cost per unit task.

    6. Conclusion

    Post-training scaling on a fixed base is a worthwhile engineering validation: without changing the base or total parameters, models can achieve significant progress in interactive tasks such as terminal operations, real-world software engineering, and cybersecurity through long-horizon environment scaling, automatic verifier systems, and RL infrastructure optimization. The core takeaway is not that “parameters don’t matter,” but rather that once base capabilities reach a certain level, the engineering quality of the post-training system may become the primary variable for capability leaps.

    However, evaluations must maintain a sense of boundaries: post-training scaling excels at shaping behavioral strategies but does not replace pre-training knowledge; benchmark leaps indicate capability improvements on specific task distributions, not comprehensive reliability; and security capability improvements must be accompanied by abuse prevention and release gating. For developers and enterprises, the more valuable approach is to translate these experiences into reproducible environments, auditable verifiers, and measurable training systems, rather than simply chasing single leaderboard scores.