Trillion-Parameter Models and Long-Horizon AI Agents: Architecture, Training, and Cost Analysis

    This article breaks down a new 3-trillion-parameter foundation model and its focus on long-horizon agent capabilities. It explains the engineering trade-offs behind scaling parameters and context length, the shift toward post-training compute and reinforcement learning across hundreds of domains, the infrastructure required for large-scale agent training, product availability, API pricing with cache hits, benchmark results, and practical guidance for selecting and operating long-running agents.

    1. Background: Why Parameter Scale and Context Length Are Rising Together

    On October 24, an AI team released a new foundation model with a parameter scale in the trillions, along with a high-speed output version. The series supports million-token context and emphasizes code generation, 3D content creation, financial research, and long-horizon agent execution. According to the published evaluation data, it reaches or approaches the level of the strongest current closed-source models on code, agent, and knowledge benchmarks.

    To understand what changed in this generation, it helps to look at two long-standing engineering tensions.

    The first is the tension between parameter scale and inference cost. Increasing parameter count usually brings greater knowledge capacity and more complex reasoning, but it also amplifies memory usage, communication overhead, and memory-access pressure. Common industry responses include mixture-of-experts architectures, sparse activation, quantization, and operator fusion, which decouple total parameter count from the parameters activated per inference.

    The second is the gap between context length and effective utilization. A million-token context does not mean the model can reliably use information at any position. The industry widely discusses the “lost in the middle” phenomenon, so long-context capability must be paired with position-encoding extrapolation, retrieval augmentation, hierarchical memory, and context compression to maintain stable recall and reasoning quality in real workloads.

    2. The Core Upgrade: More Post-Training Compute and a Wider RL Scope

    Compared with the previous generation, the most notable change is not simply a larger pre-training scale, but a substantial increase in post-training compute and the expansion of reinforcement learning to hundreds of downstream domains. This reflects an industry consensus: once general knowledge approaches saturation, further capability gains come more from task alignment and behavior shaping.

    Post-training typically includes supervised fine-tuning and preference alignment. Supervised fine-tuning addresses whether the model can do the task; preference alignment addresses whether it does it in the way humans expect. When reinforcement learning expands from a few general tasks to hundreds of vertical scenarios, engineering complexity rises non-linearly. The main challenges include:

    • Reward design: vertical domains often lack directly quantifiable rewards, requiring verifiable intermediate feedback;
    • Sampling efficiency: long-horizon tasks have long sampling chains and a high proportion of failed samples, requiring more efficient exploration strategies;
    • Training stability: joint multi-domain training can cause capabilities to crowd each other out, requiring curriculum learning and task-mix scheduling.

    3. Infrastructure Changes Behind Large-Scale Joint Training

    To support this training paradigm, the team said it modified several system layers, including the reinforcement learning framework, long-context inference, training efficiency, sandbox infrastructure, scheduling systems, and an environment quality-check platform. For developers, these “invisible parts” often determine the ceiling and stability of model capability.

    A schematic training and evaluation loop can be abstracted as:

    1. # Pseudocode: a general loop for long-horizon task RL
    2. for task in task_pool: # tasks across hundreds of downstream domains
    3. env = sandbox.create(task) # isolated sandbox with resource and network limits
    4. traj = policy.rollout(env) # sample a full execution trajectory
    5. reward = verifier.check(traj) # environment quality checks and result verification
    6. buffer.add(traj, reward)
    7. policy.update(buffer) # policy update with task-mix scheduling

    The sandbox handles isolation and resource limits, the scheduling system handles task queuing and compute allocation, and the environment-check platform filters out “bad environments” to prevent incorrect feedback from contaminating the training signal. Together, these make long-horizon agent capabilities reproducible and evaluable.

    4. Product Availability: From General Entry Points to Vertical Scenarios

    The model now covers the main product lines: regular users can access it directly through web and mobile apps; the desktop version targets mainstream desktop and mobile chip platforms; and the coding tool can complete programming tasks in terminal and desktop environments. Full model weights are planned to be released before November 4.

    Beyond direct model APIs, a hosted agent service was introduced that provides the execution framework for running agents over long periods as cloud infrastructure. It can run 24/7 long-horizon tasks and supports multi-agent collaboration. This type of service separates the runtime environment from application code and hands it to the platform, which handles session persistence, tool invocation, failure retries, and resource isolation in a unified way.

    5. API and Cost Structure: Why Cache Hits Matter

    The published API pricing is 1.3 CNY per million cached-hit input tokens, 13 CNY per million cache-miss input tokens, and 68 CNY per million output tokens; the high-speed version offers the same capability at roughly twice the price. The most important detail is the roughly tenfold input-price gap created by cache hits.

    For long-context, multi-turn agent applications, input tokens are often the main cost driver. In practice, hit rates can be improved through stable prefixes, fixed system prompts, unchanged tool-definition ordering, and segmented caching. Schematic code:

    1. def build_prompt(system, tools, history, user_input):
    2. # Keep the prefix stable to improve prefix-cache hit rate
    3. prefix = serialize(system) + serialize(tools)
    4. return prefix + serialize(history) + user_input

    6. Reading the Code and Long-Horizon Agent Benchmarks

    On a coding-agent benchmark in a real, resource-constrained terminal environment, the model scored 65.7%, above the compared closed-source model’s 58.2% and within one point of the top score of 66.4%; on an internal long-horizon coding test, it scored 61.2%, a clear improvement over the previous generation’s 55.95%.

    Two criticisms deserve a measured view: first, uneven performance, meaning the advantage is not obvious on some knowledge or reasoning tasks; second, verbose output, which increases token consumption and latency. Mitigations include setting a maximum output length, enforcing structured output constraints, and adding self-checks and a second-pass trim.

    7. Selection and Practice Recommendations

    • The high-speed version suits interactive coding and real-time conversation; the standard version suits offline batch processing and cost-sensitive scenarios;
    • Long-horizon tasks must be paired with sandboxes, logging services, monitoring and alerting, and message queues to achieve observability and recoverability;
    • If data compliance is involved, evaluate general cloud capabilities from Baidu AI Cloud for deployment and governance;
    • Build a tiered evaluation set and track regressions continuously to avoid being misled by a single benchmark.

    In summary, the significance of this generation is that it directs post-training compute toward agent environments that can work sustainably. Developers should upgrade their infrastructure and evaluation systems in parallel to turn parameter and context advantages into stable business returns.