Reinforcement Learning Upgrades for a 3-Trillion-Parameter Model: Practice and Engineering Lessons
This article walks through the practical side of applying reinforcement learning (RL) post-training to an already pretrained model at the 3-trillion-parameter scale. It explains why RL upgrades are harder than they look, covering training stability, reward design, sampling cost, and evaluation leakage; why terminal-task pass rates are more meaningful than traditional benchmarks; and how to build a three-layer evaluation suite (unit, project, environment). It also details engineering patterns for long-horizon agent tasks, a test for spatiotemporal consistency in multi-character animation generation, and a cost-driven selection metric based on task success rate per thousand calls. Developers will come away with a reusable evaluation pipeline and a cost model that make model upgrades measurable and reproducible.
1. From the “Parameter Race” Back to Capability Delivery
Over the past two years, the focus of the large-model industry has shifted three times: first to parameter count, then to context length, and now to the task completion rate of agents in real environments. One phenomenon from the source material is worth noting for developers: after several consecutive generations of top-tier closed-source models, open-source and domestic models had fallen behind by a noticeable margin. A single round of RL upgrades applied to an existing large model narrowed that gap back to a single-digit score range.
The direct takeaway for engineering teams is that scaling parameter count still matters, but it is not the only variable. What truly determines product experience is the product of three factors: scale as the foundation, post-training refinement, and alignment of evaluation criteria.
2. Why Continuing RL Is Harder Than Retraining
A full pretraining run at the trillion-parameter scale is extremely expensive. Continuing RL post-training on an already pretrained model looks lightweight, but the engineering difficulty is actually higher, concentrated in four areas:
- Training stability: the larger the parameter count, the more easily policy updates collapse, requiring careful learning-rate and clipping strategies.
- Reward design: rewards for coding and agent tasks are sparse and delayed, so verifiable intermediate signals must be constructed.
- Sampling cost: RL depends on large volumes of online sampling, so inference throughput directly determines the training cycle.
- Evaluation leakage prevention: the training set and evaluation set must be strictly isolated, otherwise capability gains will not transfer to real scenarios.
A schematic skeleton of the training loop is shown below (it expresses only a general paradigm, not a specific platform API):
for step in range(total_steps):prompts = sample_tasks(batch_size) # Sample real-world taskstrajs = rollout(policy, prompts) # Multi-turn interaction trajectoriesrewards = verifier(trajs) # Verifiable rewards: compile/unit tests/final-state checksadvantages = normalize(rewards - baseline) # Advantage estimation to reduce varianceloss = policy_loss(trajs, advantages) + kl_penalty(policy, ref)loss.backward(); optimizer.step()if step % eval_interval == 0:evaluate_on_holdout_suite() # Holdout evaluation to prevent overfitting
3. Evaluation Criteria: Why Terminal-Task Pass Rates Matter More
Traditional benchmarks (multiple-choice questions, short Q&A) correlate only weakly with the real development experience. The “terminal-task” evaluation approach has been widely adopted across the industry over the past year: the model executes commands, reads and writes files, and runs tests inside a sandbox, with the final criterion being whether the task is genuinely completed. The terminal-benchmark score mentioned in the source material (on the order of about 65%, within a single-digit percentage-point gap from top models, and at lower cost) points to a trend: capability assessment is shifting from “answering correctly” to “getting it done.”
For engineering implementation, it is recommended to build a three-layer evaluation suite:
- L1, unit level: function generation and unit-test pass rate;
- L2, project level: cross-file refactoring, dependency fixes, and successful builds;
- L3, environment level: long-horizon tasks inside a sandbox, including failure retries and state rollback.
4. Key Design for Complex Coding and Long-Horizon Agent Tasks
Failures in long-horizon tasks often are not about “not knowing how to write code” but about “forgetting constraints and losing state.” Actionable engineering measures include:
- Structured memory: write goals, constraints, and completed steps into an external checklist, and force a re-read every turn;
- Verifiable subgoals: split a large task into small tasks that can be automatically checked, using test results as rewards;
- Sandbox isolation: container platform + read-only base image + resource quotas to avoid irreversible damage;
- Full-chain observability: logging services and monitoring alerts covering every tool call, making failure attribution easier.
{"goal": "Add pagination and rate limiting to the service","constraints": ["Do not modify public library signatures", "Maintain backward compatibility"],"subgoals": [{"id": 1, "check": "unit_tests_pass"},{"id": 2, "check": "build_succeeds"},{"id": 3, "check": "load_test_p95_ms < 200"}]}
5. Multi-Character Animation Generation: Testing a Model’s Spatiotemporal Consistency
The SVG animation and “multi-character overlapping toss-and-catch” test in the source material are essentially examining two things: first, the visual plausibility of a single frame; second, state consistency across frames (object position, occlusion relationships, motion continuity). Complexity rises nonlinearly with the number of characters, because each character’s actions become input constraints for the others.
Reusable prompting and verification strategies:
- Define the coordinate system and timeline first, then describe the characters;
- Give each character an independent periodic function, then unify the phases at the end;
- Use rendered screenshots for frame-by-frame differencing to detect jumps and clipping;
- For voxel or photorealistic 3D rendering scenes, validate composition at low resolution first, then increase sampling and material precision.
6. Cost and Selection: Real-World Considerations
At equal capability, the per-task cost (including sampling, retries, and manual review) is the real core of the budget. It is recommended to use “task success rate / cost per thousand calls” as the primary metric, combined with object storage on Baidu AI Cloud for archiving artifacts, a message queue for peak shaving, a container platform for hosting sandboxes, and logging and monitoring systems for attribution, to form a reusable evaluation pipeline.
7. Conclusion
The trillion-parameter base determines the ceiling of capability, RL post-training determines whether that ceiling can be stably unlocked, and terminal-type evaluation plus engineering guardrails determine whether these capabilities can be delivered safely. For developers, rather than chasing a single leaderboard ranking, it is better to build your own holdout evaluation set and cost model, so that the gains from model upgrades can be measured and reproduced.
