Reinforcement Learning for Trillion-Parameter Models: From Code Completion to Long-Horizon Agents

    This article examines why reinforcement learning (RL) has become the next scaling frontier after pretraining returns diminish, using a 3-trillion-parameter open-source base model as the reference point. It covers composite intelligence scores and terminal-task benchmarks, what long-horizon agent capability requires, stress tests based on SVG animation and voxel scenes, reusable prompting and evaluation methods, and the engineering concerns of cost, context management, and observability when deploying flagship models in production.

    1. The Question: Why RL When Parameter Scale Is Not Enough

    Midway through this year, the first open-source model at the 3-trillion-parameter scale appeared. Its overall performance briefly came close to the most advanced foreign closed-source flagship of the time, narrowing the gap between Chinese large models and the international frontier to a very small range. Over the following months, however, foreign vendors shipped successive new flagship generations and the gap widened again. Chinese releases in this period concentrated on lightweight, fast-response variants, with parameter counts and inference budgets both reduced noticeably, and composite rankings slipped out of the top tier.

    This raises a question worth discussing seriously: after the marginal returns of pretraining scaling decline, what else can make a very large base model stronger? The recent answer is reinforcement learning. A base model at the 3-trillion-parameter scale already carries strong world knowledge and code priors. Post-training on top of it, particularly RL targeting verifiable rewards, can move a model from “can write code” to “can finish the task.” These gains do not come from adding parameters; they come from closing the loop between sampling, execution, and feedback, so that reward signals genuinely constrain behavior.

    It is worth stressing that RL on a very large base is far harder to engineer than on a small model: the memory and compute cost of rollouts, sampling throughput, consistency between the training and inference engines, and attention cache management for long sequences are all hard constraints. Completing RL stably at this scale and obtaining significant gains is itself a demonstration of engineering capability.

    2. Capability Coordinates: Composite Intelligence and Terminal-Task Evaluation

    Evaluating a flagship model usually means looking at two classes of metrics. The first is a composite intelligence index, which weights multidisciplinary knowledge, reasoning, code, and instruction following into a single score, suitable for lateral ranking. A recent new-generation flagship has pushed its composite score to around 55, ranking fourth globally and only about 3 points behind the leader, which indicates that Chinese models have again approached SOTA on general intelligence.

    The second class is evaluation against real workflows, of which the terminal-task benchmark is the most notable. It does not test whether a model can “write a function,” but whether it can complete the full loop in a real command-line environment: reading files, installing dependencies, running tests, reading errors, modifying code, and verifying again. A recent flagship model reached about 65.7% on this benchmark, above the 58.2% of some foreign flagships and close to the best result of 66.4%, while incurring lower inference cost. The significance is that competition in coding agents has shifted from “generating correct snippets” to “getting things done in a real environment.”

    Taken together, the two classes of metrics support a pragmatic conclusion: scaling parameter count still matters, because it sets the capability ceiling; RL determines whether that ceiling can be reliably delivered on long-horizon tasks.

    3. Long-Horizon Agent Capability: From Completing Code to Completing Tasks

    The core of long-horizon agent capability is whether a model can maintain goal consistency across multiple rounds of tool calls. A typical software engineering task may involve dozens of steps: locating relevant files, understanding existing conventions, writing a patch, running tests, parsing failure stack traces, and rolling back and retrying. The model must make the correct “what to do next” decision at every step and retain critical information as the context keeps growing.

    This explains a common puzzle: why some models are strong in single-turn question answering but perform unremarkably inside an agent framework. Long-horizon tasks place extreme demands on three things: stability of instruction following, accuracy of tool-call arguments, and the ability to use failure feedback. RL training happens to optimize all three at once, because the reward comes from whether the final task is completed, not from whether an individual step reads well.

    For developers, this changes selection criteria: do not look only at single-turn benchmarks, but run end-to-end tasks against your own real repositories, real dependencies, and real test sets, and track task success rate, average step count, share of invalid calls, and cost per task.

    4. Creative and Spatial Reasoning: Stress Tests With SVG and Voxel Scenes

    Beyond engineering tasks, a flagship model must also produce stable output on open-ended creative tasks. A widely used test asks a model to generate an SVG animation of “a cyclist riding a bicycle on a road.” Such a task looks simple but simultaneously tests coordinate systems, joint articulation, phase consistency of periodic motion, and whether the code actually runs. Strong models return results with clear structure and smooth motion.

    A harder variant stacks several interrelated characters: a pelican riding a bicycle, a monkey riding a unicycle on its back, and a cat on the monkey’s head wearing a small top hat and continuously juggling three colored balls. The difficulty lies in nested hierarchies of multiple subjects and coupled motion: a phase error in any one character ruins the overall impression. Flagship models typically achieve a high degree of completion but still leave flaws in occlusion relationships and detail transitions. This is a general characteristic of the current stage rather than a unique weakness of one model.

    A more extreme test is building a scene of nearly ten thousand voxels from scratch and then switching seamlessly to a photorealistic 3D render. It tests consistency of spatial structure: voxel layout, material segmentation, lighting, and camera path must preserve the same semantics across two rendering pipelines. Such tasks place extreme demands on context length and structured output, and are a key scenario where current flagship models separate from each other.

    5. Reusable Prompting and Evaluation Methods

    Consolidating these observations into engineering practice yields a stable, reusable method. On the prompting side, state constraints explicitly, such as canvas size, coordinate system, time period, layer order, and runnability requirements:

    1. Generate a directly runnable SVG animation:
    2. - Canvas 800x450, origin at the top-left of the coordinate system;
    3. - The cyclist moves horizontally at constant speed, with wheel and pedal phases aligned, period 1.2s;
    4. - Use a layered structure: background layer / subject layer / foreground layer;
    5. - External resources are forbidden; draw all shapes with basic primitives;
    6. - Self-check before output: tags closed, no undefined variables.

    On the evaluation side, establish three tiers of metrics. The first is runnability, meaning whether the artifact executes directly. The second is task completion, scored manually or by rules. The third is cost efficiency, measured by token consumption and end-to-end latency. For agent tasks, also record average interaction steps, tool-call failure rate, and number of rollbacks; these metrics reflect real usability better than success rate alone.

    6. Engineering in Practice: Cost, Context, and Observability

    Putting a flagship model into real business use requires handling three things at once. The first is cost control: use tiered routing to send simple requests to lightweight models and complex tasks to the flagship model, and enable cache reuse for long-context scenarios to avoid repeated computation. The second is context management: apply structured trimming to very long repositories and logs, keeping only fragments strongly relevant to the task so that useless information does not crowd out the window. The third is observability: write every tool call, failure reason, elapsed time, and cost into a logging service, and pair it with monitoring and alerting to close the loop, making it easier to keep tuning prompts and workflows.

    For cloud deployment, the common approach is to package model capability in a container platform, store artifacts and datasets in object storage, decouple long-running tasks with a message queue, and use logging and monitoring for full-chain tracing. These are standard industry components and do not point to any particular vendor.

    7. Conclusion

    Overall, this round of upgrades demonstrates two points. First, scaling parameter count remains the determining factor for the capability ceiling, and the value of a 3-trillion-parameter-class base is irreplaceable. Second, RL on top of it is the key step that converts that ceiling into long-horizon task success. For developers, the pragmatic approach is to build an evaluation system centered on real tasks, focusing on terminal-task completion rate, structural consistency on multi-character creative tasks, and cost efficiency, and then to tier models and orchestrate workflows accordingly.