Post-Training Scaling: An Engineering Path to Capability Gains on a Frozen Base Model
With pre-training returns diminishing, post-training scaling—long-horizon environments, automated verifiers, and RL infrastructure—has emerged as a high-leverage path to model capability gains. This article breaks down a controlled experiment that kept the base model frozen while achieving order-of-magnitude improvements on terminal, software engineering, and security tasks, and explains the three engineering pillars behind post-training scaling: interactive environments, programmable reward verification, and high-throughput RL infrastructure.
Post-Training Scaling: An Engineering Path to Capability Gains on a Frozen Base Model
1. The Question: Where Do We Go After Pre-Training Returns Diminish?
Over the past two years, frontier model improvements have followed a default path: more parameters, more data, more compute, and another round of pre-training. But the marginal returns of this path are visibly decaying—a single pre-training run now costs a forbidding amount, while the capability curve keeps flattening. The industry has since split into several trade-off strategies:
- Keep scaling up: push total parameters into the trillions, trading raw capacity for a higher capability ceiling;
- Rework the architecture: innovate on attention mechanisms, sparse routing, and inter-layer structures in search of structural dividends;
- Freeze the base and only do post-training: leave the model skeleton untouched and pour all compute into “environments + feedback + reinforcement learning.”
The third path sounds the cheapest but is actually the hardest. It requires the ability to engineer real task domains into interactive environments, to automate correctness judgments into programmable rewards, and to build training infrastructure that supports large-scale rollouts. Missing any one of the three, post-training scaling degrades into “small-sample fine-tuning.”
A recently published controlled experiment offers a sample worth close reading: while fully reusing the previous-generation base (a hundred-billion-parameter-class MoE architecture, with a few billion activated parameters and unchanged layer count and attention variant), roughly one month of long-horizon environment expansion and RL post-training produced order-of-magnitude gains on terminal operations, real-world software engineering, cybersecurity ranges, and vulnerability exploitation tasks. Pass rates on terminal-operation benchmarks jumped from single digits to nearly 30%, real-world software engineering benchmarks improved by roughly twenty points, and security range tasks approached the industry-leading tier.
The technical significance of this result lies not in the scores themselves, but in the key question it answers: when architecture and parameter count are no longer variables, can the capability growth curve still stay steep? The answer is yes—provided you build post-training as an independent scaling dimension rather than treating it as a finishing step at the end of the training pipeline.
2. Clarifying the Concept: What Exactly Does Post-Training Scaling Scale?
Many people equate post-training with SFT (supervised fine-tuning) plus a bit of DPO. That misreads the word “scaling.” SFT scales the coverage of demonstration data; DPO scales the decision boundary of preference pairs—both are capped by static datasets. Post-training scaling extends three different things:
- Interaction length and number of turns: a single trajectory grows from a few steps to dozens or hundreds, forcing the model to maintain goal consistency over long-horizon state;
- Environment diversity: from a single task template to hundreds or thousands of heterogeneous task domains, forcing the model to transfer across domains rather than memorize templates;
- Feedback density and automation: from sparse human-labeled rewards to densely programmable rewards, so rollout volume can scale linearly with compute.
In other words, the essence of post-training scaling is turning “experience” into an industrially mass-producible good. During pre-training, experience comes from the static distribution of internet corpora; during post-training, it comes from dynamic trajectories generated by agents interacting with environments. The former is bounded by total data volume; the latter is bounded by the production capacity of environments and verifiers.
This also explains a common puzzle: why do some teams run massive amounts of RL yet see no capability movement? Because their environments are too “shallow,” their verifiers too “loose,” and their rollouts too “few.” Together these determine the yield of effective experience—and effective experience yield is the true independent variable of post-training scaling.
3. The Value of a Controlled Experiment: What Freezing the Architecture Buys You
In engineering practice, the value of the “frozen base” constraint is often underestimated. It brings three direct benefits:
First, clean attribution. When the base model, tokenizer, context window, and positional encoding scheme are all frozen, any capability change can only come from the post-training strategy itself. Teams can confidently ablate reward functions, environment curricula, and sampling temperatures without worrying whether “last pre-training run’s data leaked into the test set.”
Second, controllable cost. A full pre-training run requires thousands of GPUs of sustained investment and long failure-retry cycles; post-training can iterate weekly, letting teams falsify hypotheses quickly with small-scale experiments.
Third, risk isolation. A new base model brings new capability boundaries and new failure modes, requiring safety alignment to be reassessed from scratch. Freezing the base means the safety baseline can be inherited—the team only needs to incrementally harden against new capabilities introduced by post-training. This is also why such models typically follow the cadence of “open the API first, complete safety evaluation, then release weights.”
It must be emphasized that a frozen base is not “free.” The compute cost of post-training scaling shifts from pre-training matrix multiplications to rollout inference and reward computation. As environment episodes lengthen and concurrent sandbox counts rise, the inference-side cost curve becomes very steep. This is the most commonly underestimated hidden cost of the post-training route.
4. Scaling Long-Horizon Environments: From Static Corpora to Interactive Task Domains
The first pillar of post-training scaling is the environment. Static datasets can only train “one-shot answers,” while long-horizon tasks require the model to keep making decisions, reading feedback, and correcting errors across dozens of interaction steps.
4.1 Three Tiers of Task Domains
A usable long-horizon environment system is usually built in three layers:
- Atomic capability layer: single-step operations such as file read/write, command execution, API calls, and code completion. This layer builds basic tool-use habits;
- Composed task layer: goals requiring multi-step orchestration, such as “locate an error → modify source code → run tests → submit a patch.” This layer trains planning and state tracking;
- Open environment layer: task domains with real side effects and irreversible operations, such as container orchestration troubleshooting, network service configuration, and vulnerability reproduction and remediation. This layer trains risk awareness and exploration strategy.
The three layers are not simply increasing in difficulty—they represent changes in feedback structure: rewards in the atomic layer are nearly immediate, while in the open layer rewards may be delayed by dozens of steps with many neutral actions in between. The model must learn credit assignment under sparse, delayed rewards.
4.2 Engineering Essentials for Scaling Environments
Scaling environments from dozens to thousands is hard not because of quantity, but because of consistency and reproducibility. A typical task definition can be expressed as declarative configuration:
task_id: pkg_build_regression_0421image: base-dev:2024.11workspace:seed_files: [repo.tar.gz]reset_policy: snapshotbudget:max_steps: 60max_wall_clock: 900smax_commands: 200verifier:type: compositechecks:- unit_tests_pass- no_new_lint_errors- diff_within_scopereward:shaping: sparse_terminalpartial_credit: true
Several fields in this configuration determine whether the environment can scale:
reset_policy: snapshot: every rollout must restore from a clean snapshot; otherwise side effects from a previous task contaminate later sampling and distort the reward signal;budget: step count, wall-clock time, and command count—all three budgets are indispensable. Limiting only steps can be bypassed by “single-step mega-commands”; limiting only time lets short, brute-force searches dominate;reward.partial_credit: for long-horizon tasks, pure terminal rewards have extremely high variance, so intermediate milestones with partial credit are needed—but poorly designed partial credit induces shortcut-taking.
In engineering terms, the environment cluster typically runs on a container platform, paired with object storage for snapshots and artifact archiving, log services for trajectory replay, and monitoring and alerting for sandbox anomaly detection. These capabilities can all be found in general-purpose cloud product categories; the key is making “environment as code” version management real—task configuration, image, and verifier must be bound to the same version, otherwise the resulting curves cannot be reproduced.
5. Automated Verifiers: Turning Correctness Judgments into Programmable Rewards
The second pillar is the verifier. The effectiveness ceiling of RL is fundamentally determined by the signal-to-noise ratio of the reward signal. Human annotation cannot support millions of rollouts, so “what counts as correct” must be written as code.
5.1 A Layered Verification System
A robust design layers by reliability rather than by task type:
| Layer | Judgment Method | Reliability | Applicable Scenarios |
|---|---|---|---|
| L1 Deterministic checks | Unit tests, compilation success, exit codes | Extremely high | Code and configuration tasks |
| L2 Structural validation | AST comparison, schema validation, diff scoping | High | Patch tasks, formatted output |
| L3 Behavioral verification | End-to-end integration tests, fuzzing | Medium-high | System integration, protocol implementation |
| L4 Semantic evaluation | Model judges, heuristic rules | Medium | Open-ended QA, solution design |
The key principle is: use L1 whenever possible instead of L4. Model judges are flexible, but they introduce their own biases and exploitable loopholes (the model may learn to please the judge rather than actually solve the problem). In security-related tasks, this is especially fatal.
5.2 Abstracting the Verifier Interface
To let thousands of tasks reuse the same training loop, verifiers need a unified interface:
from dataclasses import dataclass@dataclassclass Verdict:passed: boolscore: float # 0.0 ~ 1.0reason: str # for debugging and trajectory analysissub_scores: dict # for reward shaping and failure attributionclass Verifier:def setup(self, task_ctx) -> None: ...def check(self, trajectory, final_state) -> Verdict: ...def teardown(self) -> None: ...
The sub_scores field is the most valuable part in practice. It lets teams distinguish “completely incapable” (all sub-scores are 0) from “one step short” (most sub-items pass, the last one fails), and then assign different sampling weights to different failure modes in curriculum learning. Training curves without failure attribution only tell you “it’s not improving”—not “why it’s not improving.”
5.3 Preventing Reward Hacking
Automated verifiers must assume the model will actively seek shortcuts. Common defenses include:
- Hidden test sets: tests used for training judgment are strictly separated from those used for final evaluation, and the latter never appear in any environment image;
- Anti-cheat probes: detect whether test files were tampered with, whether expected outputs were hardcoded, or whether build steps were skipped;
- Cross-verification: judge the same trajectory in two independent ways and downweight when they disagree;
- Randomized task instances: generate instances with different parameters from the same template to prevent memorization.
6. RL Infrastructure: Throughput, Not Algorithm, Usually Determines the Ceiling
The third pillar is the most easily overlooked. At the algorithm level, PPO versus GRPO is no longer the bottleneck—the bottleneck is how many valid trajectories can be produced per unit of time.
6.1 Three Key Metrics
- Rollout throughput (trajectories/hour): bounded by the number of concurrent sandboxes and average trajectory length;
- Environment startup overhead: if container cold start takes tens of seconds, it directly eats half the compute on short tasks;
- Training/inference switching cost: weight synchronization, KV cache invalidation, and sampler engine reloads all cause idle time.
A typical asynchronous training loop looks roughly like this:
while not converged:batch = sampler.collect(n=cfg.rollout_batch) # async parallel samplingbatch = batch.filter(lambda t: t.valid) # drop trajectories with environment errorsrewards = verifier_pool.score(batch) # parallel verificationadvantages = compute_gae(batch, rewards, cfg.gamma)trainer.update(batch, advantages) # policy updateif step % cfg.sync_interval == 0:sampler.sync_weights(trainer.weights) # reduce sync frequency
In practice, tuning sync_interval affects final results more than the learning rate: syncing too frequently leaves samplers waiting; syncing too sparsely makes the policy lag (excessively off-policy) and collapses training. A rule of thumb is to keep the lag within a few gradient steps and clip using importance sampling ratios.
6.2 Stability Issues
The failure modes of long-horizon RL are completely different from short-horizon RL:
- Reward variance explosion: extreme rewards from a few ultra-long trajectories dominate gradients—normalize per task family;
- Entropy collapse: the model converges prematurely to a single policy and loses exploration ability, showing up as rising training reward with a flat validation set;
- Environment drift: after an image update or verifier fix, rewards from historical trajectories are no longer comparable—version everything and recompute baselines when switching.
These are engineering problems, not paper problems. Their solutions are often plain: more logging, finer-grained metric slicing, stricter version management.
7. Observing Capability Transfer: Why Terminal, Software Engineering, and Security Improve Together
Returning to that controlled experiment, one phenomenon worth analyzing is that improvements were not concentrated in a single dimension but appeared simultaneously across terminal operations, real-world software engineering, and cybersecurity tasks. This suggests shared underlying capabilities.
A reasonable explanation is that the common core of these three task types is “performing multi-step operations in uncertain environments while self-correcting”:
- Terminal operations require reading command output and adjusting the next step accordingly;
- Software engineering requires reading test failures and locating root causes;
- Security offense/defense requires inferring internal state from service responses and constructing the next probe.
All three have rewards that heavily depend on the “state observation → hypothesis update → action selection” loop. When long-horizon environments scale the training sample volume of this loop by several orders of magnitude, the capability naturally spills over into adjacent task domains. This also explains why such improvements often appear “stepwise” rather than “linear”—once the underlying capability crosses a threshold, multiple downstream tasks benefit at once.
Conversely, this places demands on evaluation: if you only test on one leaderboard, it’s easy to mistake “underlying capability improvement” for “overfitting to a specific task.”
8. Evaluation Pitfalls: How to Avoid Being Misled by a Single Leaderboard
Evaluation for post-training scaling is more fragile than for pre-training, for three reasons:
- Training and evaluation environments may share provenance. If evaluation tasks share templates with training tasks, scores will be inflated. The way to check is to examine the degree of task-instance randomization and whether verifier implementations are independent;
- Long-horizon tasks have extremely high variance. The same model run three times may differ by more than ten points; confidence intervals and sample counts must be reported—a single run is not comparable;
- Leaderboards saturate quickly. Once a benchmark is widely used as a training target, its discriminative power decays rapidly, and new task domains must be continuously introduced.
The practical recommendation is a three-layer evaluation system: public benchmarks (externally comparable), internal held-out sets (same distribution but not used in training), and real-scenario spot checks (human review—expensive but irreplaceable). When the three disagree, trust the real scenarios.
9. Practical Advice: When Should You Bet on Post-Training?
Not every team is suited to the post-training scaling route. You can self-check along four dimensions:
- Do you have engineerable task domains? If your business scenarios cannot be containerized or programmatically verified, the leverage of post-training scaling will be very limited;
- Do you have verifier-building capability? This is the most underestimated investment, typically requiring staffing equal to the training effort itself;
- Can you absorb inference-side costs? Rollout volume translates directly into inference bills—do capacity planning in advance;
- Do you have versioned evaluation baselines? Without baselines, you cannot tell whether an iteration is progress or noise.
If all four are in place, the recommended cadence is: first validate environments and verifiers on a small base (at this stage, ignore absolute scores—only check whether “training reward and validation reward move in the same direction”), then gradually scale up environment volume and rollout batch size, and only finally extend training duration. Reversing this order is the most common cause of failure—cranking up compute while the verifier is still unreliable only overfits faster to the wrong reward.
10. Limitations and Outlook
It must be soberly recognized that a pure post-training route has an objective ceiling. It cannot break through the base model’s knowledge boundaries or reasoning depth limits—it can only more fully unlock the latent capabilities the base already has. When a task requires world knowledge outside the pre-training distribution, post-training can do nothing.
A more reasonable judgment, therefore, is: post-training scaling is not a substitute for pre-training, but a cost-effective parallel path during the era of expensive pre-training. The two will eventually converge into the same engineering system—pre-training determines the capability ceiling, and post-training determines how close you get to it. And as environment and verifier assets accumulate, the reuse value of post-training keeps growing: a task domain and verifier built once can be reused across bases and across generations, with diminishing marginal cost.
From this perspective, the real value of that controlled experiment is not that it proved how strong a particular model is, but that it proved the “environments + verifiers + RL infrastructure” asset stack itself can be accumulated independently and generate returns independently. For teams planning their model capability roadmap, that may be more valuable than any single score.
