Long-Horizon Agents in Trillion-Parameter Models: RL Post-Training and Engineering Implementation

    The competition in large language models is shifting from pre-training scale expansion to deep exploration in the post-training phase. This article analyzes the evolution of a new 3-trillion-parameter flagship model with a 1-million-token context window through three dimensions: technical architecture, training methods, and engineering implementation. It covers the challenges of scaling reinforcement learning across hundreds of domains, system infrastructure optimizations for massive RL and long-context inference, the evaluation of long-horizon agent capabilities, and practical strategies for developers regarding hosted agent services and API cost management.

    In recent years, the focus of LLM competition has shifted profoundly from mere pre-training scale expansion to deep exploration in the post-training phase. A recently released flagship model with approximately 3 trillion parameters and a 1 million token context window exemplifies this trend. It prioritizes code generation, 3D creation, financial research, and long-horizon Agent capabilities as its core upgrade directions. This article analyzes the evolution logic and developer insights of such models from three dimensions: technical architecture, training methods, and engineering implementation.

    1. Post-Training Compute: The New Engine for Capability Leap

    Traditionally, model capabilities were believed to be primarily determined by pre-training. However, industry practices show that as marginal returns from pre-training diminish, expanding post-training compute becomes a more cost-effective path for improvement. The most significant change in this new model is the massive increase in post-training investment, extending reinforcement learning (RL) to hundreds of downstream domains.

    The technical challenges of this “broad-coverage RL” strategy include:

    1. Reward signal design: Different domains (code, financial analysis, tool calling) require their own verifiable reward mechanisms. Code tasks can be judged by unit test pass rates, math tasks by exact answer matching, and open-ended tasks require assistance from reward models.
    2. Training stability: Multi-domain joint RL training is prone to gradient conflicts and catastrophic forgetting, requiring carefully tuned task sampling ratios and gradient clipping strategies.
    3. Environment quality assurance: RL relies heavily on task environments; their correctness, difficulty distribution, and diversity directly determine the training ceiling. To address this, the vendor built a dedicated environment quality inspection platform for automated validation and filtering.

    2. System Engineering for Massive RL

    Scaling RL to hundreds of domains and supporting long-horizon task training requires systematic infrastructure overhauls. Based on public information, the main modifications involve:

    • RL training framework: Must support async rollout, large-scale parallel sampling, and heterogeneous reward aggregation. A typical engineering pattern is “sampling-training decoupling”: inference clusters continuously generate trajectory data, while training clusters consume it asynchronously, maintaining policy consistency via weight version synchronization mechanisms.
    • Long-context inference optimization: A 1 million token context means massive KV Cache usage. Common optimizations include PagedAttention-style memory paging, sparse attention, KV Cache compression, and cross-node distributed inference.
    • Sandbox infrastructure: Code agent training requires isolated environments to execute commands, compile, and test in real time. This demands an elastically scalable containerized sandbox cluster capable of launching tens of thousands of isolated execution environments in seconds while ensuring security boundaries.
    • Scheduling system: Mixed scheduling of training, inference, and sandbox tasks places high demands on cluster resource orchestration, requiring a balance between GPU utilization and task latency SLAs.

    These practices offer valuable lessons for ordinary enterprises: when building their own agent platforms, they can adopt a three-tier architecture of “inference service + execution sandbox + trajectory storage” based on standard container platforms, message queues, and scheduling frameworks, without needing to build a massive system all at once.

    3. Evaluation of Code and Long-Horizon Agent Capabilities

    The new model’s performance in code and Agent benchmarks is a key highlight. In a terminal environment programming benchmark, it scored approximately 65.7%, surpassing some international closed-source flagship models and closing the gap with the state-of-the-art to within 1%. These benchmarks feature:

    1. Real terminal environments: Tests run in resource-constrained real terminals, requiring the model to autonomously plan command sequences, handle errors, and iterate fixes, rather than generating code snippets in a single pass.
    2. Task-level verification: Each task has specific test cases, using pass/fail as an objective criterion to avoid subjective scoring bias.
    3. Long-horizon nature: Tasks often involve dozens to hundreds of operational steps, testing the model’s long-context memory and goal retention capabilities.

    On the vendor’s internal long-horizon code benchmark, the new model improved from about 56% to over 61%. However, it is important to remain rational: long-horizon agents still exhibit “specialization” issues. While they show significant progress on structured, verifiable tasks, they can still suffer from verbose output and goal drift in open-ended tasks. Developers should apply clear task decomposition, intermediate result validation, and timeout circuit breakers in practical applications.

    4. Hosted Agent Services: From Model API to Runtime Environment

    Notably, the vendor also launched Hosted Agents services, opening the execution harness that supports long-running agents as cloud infrastructure for enterprises and developers, enabling 24/7 long-horizon tasks and multi-agent collaboration. This reflects an important industry judgment: the value bottleneck for Agents is shifting from model intelligence to the runtime environment.

    A continuously working agent system typically requires:

    1. ┌─────────────────────────────┐
    2. │ Orchestration Layer │ Task decomposition, multi-Agent routing
    3. ├─────────────────────────────┤
    4. │ Model Inference Layer │ LLM API / high-speed inference
    5. ├─────────────────────────────┤
    6. │ Execution Environment │ Sandbox, tool calling, browser
    7. ├─────────────────────────────┤
    8. │ State & Observation Layer │ Memory storage, logs, monitoring alerts
    9. └─────────────────────────────┘

    When selecting solutions, enterprises should focus on: task persistence and checkpoint recovery capabilities, multi-agent communication protocols, permission and security isolation, and the convenience of integration with their own object storage, logging services, and monitoring alert systems.

    5. Cost Structure and Developer Strategies

    Regarding API pricing, the model adopts a tiered caching billing model: cached input costs about 1.3 RMB/million tokens, uncached about 13 RMB/million tokens, and output about 68 RMB/million tokens. A high-speed version is also available, offering roughly double the price for a 2-3x improvement in output speed. This provides two practical insights:

    1. Leverage context caching: In agent scenarios, system prompts and historical trajectories are highly repetitive. Proper prefix structure design can significantly increase cache hit rates, reducing input costs by an order of magnitude.
    2. Scenario-based model selection: Interactive programming assistants are latency-sensitive and suit the high-speed version; batch analysis and overnight long tasks can use the standard version to control costs. For latency-insensitive offline tasks, message queues can be combined for peak shaving and valley filling.

    Conclusion

    From expanding RL post-training to building sandbox and hosted infrastructure, this upgrade of trillion-parameter models outlines a clear direction: LLMs are evolving from “answering questions” to “continuously completing work.” For developers, the key to converting model capabilities into business value lies in understanding the underlying training methods and system architecture, strategically utilizing caching and layered inference, and building agent runtime environments with an engineering mindset.