Technical Evolution of a 3-Trillion-Parameter LLM: Reinforcement Learning at Scale and Long-Horizon Agents

    This article explains the general technical approach behind a 3-trillion-parameter large language model that supports a one-million-token context window. It covers the shift toward post-training compute, the infrastructure needed for reinforcement learning across hundreds of domains, the evaluation of coding and long-horizon agent capabilities, known limitations such as uneven skills and verbosity, and the rise of hosted agent services.

    Recently, a large model team released its most capable model to date. The 3-trillion-parameter model supports a context window of one million tokens and puts particular emphasis on code, 3D creation, financial research, and long-horizon agent capabilities. This release reflects a central trend in competition among large models. The focus has moved from simply scaling pretraining to systematic investment in post-training compute, agent environments, and infrastructure engineering. This article sets aside the specifics of the product and examines the general methodology behind this generation of model upgrades from the perspective of technical architecture and engineering practice.

    1. Shifting Compute to Post-Training

    The most notable change in this generation of models is a large increase in compute during the post-training stage, along with the extension of reinforcement learning (RL) to hundreds of downstream domains. This reflects an industry consensus. The gains from pretraining are slowing, while post-training, especially RL based on verifiable rewards, has become the key factor that separates model capabilities.

    Traditional post-training often focused on dialogue alignment and a few specific tasks. The new approach extends RL environments to a wide range of areas, including programming, mathematical reasoning, tool use, and multi-turn task execution. Key technical points include:

    • Verifiable reward signals: Code can be checked against unit tests, and math answers can be compared with reference final answers. These programmatically verifiable rewards avoid the cost and noise of human preference labeling.
    • Broad domain coverage: RL confined to a single domain tends to overfit. Joint training across hundreds of downstream domains requires reward models, sampling strategies, and training schedules with good generalization.
    • Credit assignment over long horizons: When a task spans dozens or even hundreds of tool calls, a central challenge in long-horizon RL is attributing the final success or failure signal to intermediate decisions.

    2. Infrastructure for Large-Scale Joint Training

    Scaling RL to hundreds of domains is a systems engineering problem, not only an algorithmic one. The team systematically reworked its full training pipeline. These directions are useful reference points for any team that wants to build a large-scale RL training system:

    1. RL training framework: The framework needs an architecture that separates large-scale parallel sampling from training. Efficient weight synchronization between inference clusters and training clusters keeps policies consistent and avoids stale policies, which can make training unstable.
    2. Long-context inference optimization: At million-token context lengths, KV cache memory usage and attention computation become bottlenecks. Common approaches include sparse attention, paged KV cache management, and prefix cache reuse.
    3. Sandbox infrastructure: Coding RL requires a large number of isolated execution environments to run generated code and collect test results. Sandboxes need fast startup, strong isolation, resource limits, and high-concurrency scheduling. They are typically built on container platforms.
    4. Scheduling system: Mixed workloads with different domains, context lengths, and reward computation costs directly affect GPU utilization. The industry commonly combines priority queues with preemptive scheduling.
    5. Environment quality inspection platform: RL environments can contain reward hacking vulnerabilities, where the model learns to exploit loopholes instead of solving the problem. Automated environment quality checks and adversarial testing are necessary to keep training signals reliable.

    3. Evaluating Code and Long-Horizon Agent Capabilities

    Code and long-horizon agent capabilities are the most prominent strengths of this release. On terminal-based coding agent benchmarks, the model achieved results comparable to those of leading closed-source models. The value of these benchmarks lies in their realism. Tasks are completed in resource-constrained, real terminal environments, and each task comes with dedicated tests. They are not static code completion problems.

    For developers, interpreting these benchmarks requires attention to several dimensions:

    • Task completion rate vs. per-step accuracy: Errors accumulate over long tasks. A per-step accuracy of 95% yields an overall success rate of only about 8% across a 50-step task. This is why long-horizon agent training is difficult.
    • Resilience to environment issues: Real terminals present long-tail problems such as command timeouts, insufficient permissions, and missing dependencies. The model needs to diagnose errors and recover on its own.
    • Cost-efficient context management: A context window of one million tokens does not mean history can be piled up without limit. In practice, context compression, extraction of key information, and layered memory mechanisms remain essential for lowering cost and improving decision quality.

    A typical long-horizon agent execution loop can be abstracted as follows:

    1. while not task_done:
    2. observation = env.observe()
    3. plan = model.think(context + observation)
    4. action = plan.next_action()
    5. result = env.execute(action, timeout=LIMIT)
    6. if result.is_error():
    7. context = diagnose_and_recover(context, result)
    8. else:
    9. context = compress(context, observation, result)
    10. task_done = verify(task, env.state())

    4. Known Issues: Uneven Skills and Verbosity

    The model has improved substantially, but the community has also pointed out two typical issues. The first is uneven capability. Areas that received strong RL training show clear gaps relative to weaker areas. This is common in models that focus RL training on specific directions. The second is verbosity. Long chain-of-thought models tend to produce overly long reasoning, which raises inference cost and latency. For users, practical ways to mitigate these issues include constraining output length through prompts and setting a reasonable thinking budget.

    5. Hosted Agent Services: Moving Long-Running Tasks to the Cloud

    Another signal from this release is the rise of the hosted agent model. The execution framework that supports long-running agents is provided as cloud infrastructure, supporting 24/7 long-horizon tasks and multi-agent collaboration. Agents are shifting from local scripts to cloud services.

    For enterprises, building such capabilities requires several general cloud product categories:

    • Container platforms to host isolated execution environments
    • Object storage to hold task artifacts and intermediate state
    • Message queues for asynchronous communication between agents
    • Logging, monitoring, and alerting services for observability of long-running tasks

    Taking Baidu AI Cloud as an example, its container, storage, and observability product suite can provide general infrastructure support for these long-horizon agent workloads. Enterprises can orchestrate agent runtimes on general-purpose cloud components without building the underlying platform from scratch.

    6. Conclusion

    The release of this generation of 3-trillion-parameter models outlines the next phase of competition among large models. Post-training compute is shifting toward agent environments that perform sustained, real work. Infrastructure engineering has become a moat as important as the algorithms themselves. Code, financial research, and 3D tool use, which are long-horizon tasks with verifiable outcomes, have become the main arena for testing model value. For developers and enterprise users, rather than chasing a single leaderboard score, it is more useful to evaluate a model’s long-horizon task completion rate, cost structure, and engineering integrability in their own business scenarios. These factors determine how large model capabilities become practical productivity.