1.6 Trillion Parameters, Native Multimodality: A Technical Breakdown of Long-Horizon AI Agents
This article explains why AI agents need long-horizon capabilities, and how a new class of models is designed to deliver them. It covers sparse activation in a 1.6-trillion-parameter model (about 48 billion parameters active per token), the trade-offs between capacity and inference cost, the advantages of native multimodality over bolt-on vision encoders, and practical long-context engineering. It also walks through agentic coding and tool use with a minimal execution loop, the role of domestic compute in full-stack training, and a layered evaluation framework for measuring single-step accuracy, task success rate, cost, and stability in real deployments.
1. The Problem: Why Agents Need Long-Horizon Capabilities
Over the past two years, most LLM applications have taken the form of single-turn or short multi-turn Q&A and content generation. These tasks place relatively narrow demands on the model: understand the input and produce a well-structured output. Once a model is dropped into a real business workflow, however, the task shape changes fundamentally. It must stay aligned with a goal across many steps, call external tools, read intermediate results, correct mistakes, and still remember the original objective dozens or even hundreds of steps later.
These are commonly called long-horizon tasks, and they have several defining characteristics:
- Many steps, where a correct single step does not guarantee a correct outcome, and errors accumulate along the chain;
- Dependence on external state, requiring reading and writing files, querying databases, and calling APIs;
- Sparse feedback, where success or failure is only known at the very end, with no clear reward signal in between;
- Continuously growing context, as historical observations, tool return values, and UI screenshots pile up.
As a result, a model built for long-horizon agents is no longer just a language model. It must combine three capabilities at once: long-context capacity, multimodal perception, and tool use. A new class of models recently emerging in the industry takes exactly these three points as design goals: total parameters on the order of a trillion, a sparse activation mechanism that activates only a small fraction of the parameters per token, and the introduction of vision and code capabilities during the training stage rather than bolting them on afterward.
2. Sparse Trillion-Scale Parameters: Balancing Capacity and Inference Cost
Trillion-scale total parameters sound like they would conflict with inference cost by nature. The key is sparse activation. Take a model with roughly 1.6 trillion total parameters and about 48 billion active parameters per token: the activation ratio is about 3%. This design delivers two direct benefits.
First, it decouples capacity from compute. Total parameters determine the space of knowledge and patterns the model can store, while active parameters determine the actual compute of a single forward pass. Adding more experts expands capacity without noticeably raising the per-token compute cost.
Second, it keeps long-horizon tasks cost-controllable. Agent tasks consume far more tokens than ordinary conversation. With a dense architecture, both cost and latency would degrade linearly with the number of steps, or even faster.
The cost is higher engineering complexity, which shows up in three places:
- Load balancing. Over-selected experts leave some devices idle and overload others, requiring auxiliary losses and routing constraints to tune together.
- Communication overhead. When experts are spread across multiple devices, tokens must be routed across devices, and communication easily becomes the bottleneck, requiring overlap of computation and communication.
- Training stability. Routing decisions are discrete and gradient signals are sparse, requiring careful learning rate and initialization strategies.
The routing logic can be abstracted schematically as:
# Illustrates only the core idea of sparse routing, not any specific implementationlogits = gate(x) # score each expertscores, idx = topk(softmax(logits), k=2)weights = scores / scores.sum(-1, keepdim=True)y = sum(weights[i] * expert_i(x) for i in idx)
For users, the metric that truly matters is not total parameters, but active parameters, cost per token, and the success-rate curve on long-chain tasks.
3. Native Multimodality: Why “Native” Beats “Bolted-On”
There are usually two paths to a multimodal system. One is to train a language model first, then attach a vision encoder and align it through a projection layer. The other is native multimodality, where modalities such as images and text share the same parameters and training objective from the pre-training stage onward.
For long-horizon agents, the value of the native approach concentrates in three points:
- Fine-grained alignment happens earlier, so the model’s understanding of UI elements, button positions, and chart trends is closer to human intuition;
- Cross-modal reasoning does not pass through a lossy “retelling” step, reducing information lost in conversion;
- Vision and code capabilities reinforce each other, since reading an interface and writing the code to operate it belong to the same decision space.
A typical input organization can be abstracted as an interleaved sequence:
messages = [{"role": "user", "content": "Find the metrics with abnormal growth on this report page and fix the data source"},{"role": "assistant", "content": [image_step1, tool_call_1]},{"role": "tool", "content": tool_result_1},{"role": "user", "content": [image_step2, "The filter from the last step was wrong, try again"]},]
Two engineering points to note: the number of image tokens directly affects context usage, so dynamic resolution and token compression strategies are usually needed; and cleaning multimodal data costs far more than cleaning plain text, with annotation consistency setting the upper bound.
4. Long Context: From “Fitting It In” to “Using It Well”
Long context is often misunderstood as “the bigger the window, the better.” The real constraints come in three layers:
- Position extrapolation. When training length and inference length differ, strategies such as position-encoding interpolation are needed to stay stable.
- Attention cost. Full attention grows quadratically with length, so the industry commonly adopts compromises such as sparse attention, chunked attention, or linear attention.
- Retrieval quality. As context grows, the model must locate key fragments among large amounts of irrelevant content, and the “lost in the middle” effect is pronounced.
Long-horizon agents therefore rely more on context engineering than on simply enlarging the window:
Context budget allocation (illustrative)├── System instructions and goal constraints ~5%├── Key state and summary of completed steps ~20%├── Recent raw observations (including screenshots) ~45%├── Available tool descriptions ~10%└── Reserved space for output and rollback ~20%
Combined with layered memory (short-term raw trajectory + mid-term structured summary + long-term external storage) and a failure rollback mechanism, this can significantly reduce long-chain drift.
5. Agentic Coding and Tool Use: Turning Decisions into Executable Actions
The execution end of a long-horizon task is usually code and API calls. Strengthening this capability means exposing the model to plenty of “observe-decide-execute-feedback” loops during training, rather than only static code snippets.
A minimal runnable execution loop looks like this:
for step in range(max_steps):action = model.act(observation, memory, tools)if action.type == "final":return action.answerresult = executor.run(action) # run inside a sandboxmemory.append(summarize(action, result))observation = result.observation
The necessary engineering guardrails include: sandbox isolation and resource limits, secondary confirmation for dangerous operations, idempotent design, structured logging and full-chain tracing, and failure classification with retry limits. Without these guardrails, improvements in model capability will amplify risk instead.
6. What Full-Stack Training on Domestic Compute Means
Using domestic compute across the entire training process is about more than supply security. It also drives the maturation of operators, communication libraries, parallelism strategies, and fault-tolerance mechanisms. Trillion-scale sparse models place their hardware demands on high-bandwidth interconnect, memory capacity, and the ability to sustain long stable runs; in large-scale training, fault recovery, checkpoint resumption, and gradient compression are essential capabilities. This kind of infrastructure capability is typically used alongside general-purpose categories such as container platforms, high-performance storage, logging services, and monitoring and alerting in the cloud.
7. Deployment Advice and Evaluation Methods
Evaluating long-horizon agents cannot rely on single-turn accuracy alone. It is better to build layered metrics:
- Single-step action accuracy and tool-call parameter accuracy;
- Task-level success rate and average number of steps;
- Cost metrics: token consumption per task and end-to-end latency;
- Stability: variance across repeated runs and rollback trigger rate.
For deployment, start from a narrow scenario, first fixing the tool set and state structure, then gradually opening up task complexity. Keep human takeover points in place, and position the model as an executor rather than the final accountable party.
