Ultra-Large-Scale MoE Multimodal Architecture: Technical Approaches and Engineering Practice
This article examines the design of an ultra-large-scale Mixture-of-Experts (MoE) model with 2.8 trillion total parameters, of which 104 billion are activated per inference. It covers three design challenges: the cost of long-context computation, routing stability across many experts, and long-horizon reasoning for agent tasks. It explains the attention design that combines KDA and Gated MLA with attention residuals, the Stable LatentMoE and quantile balancing methods for sparse experts, and the multi-stage training pipeline with agentic reinforcement learning.
1. Technical Background and Design Challenges
In recent years, large language models have evolved along two clear paths. The first is the growth of parameter counts from the hundred-billion scale to the trillion scale. The second is the expansion of applications from text-only processing to complex agent tasks that combine vision, speech, and other modalities. Against this backdrop, the central tension in architecture design is keeping training stable and inference efficient while model capacity grows rapidly.
Current ultra-large-scale model development faces three main technical challenges.
First, the cost of extending context length grows super-linearly. At sequences of millions of tokens, traditional global attention requires computation and memory that are not feasible in practice. Researchers need breakthroughs in sparse or approximate attention.
Second, training stability in Mixture-of-Experts (MoE) models is difficult. Sparse activation lets a model use far less compute than its full parameter count would require. As the number of experts grows to hundreds or thousands, however, routing convergence, load balancing across experts, and gradient propagation under extreme sparsity all become bottlenecks for performance.
Third, agent tasks lack long-horizon planning and reasoning. Multimodal understanding and tool use require models to keep long-term memory and reflect iteratively beyond single-turn question answering. This demands new requirements for both the underlying architecture and the training paradigm.
The technical approach described below targets these three problems. Its overall design and engineering path offer a useful reference for the next generation of large model architectures.
2. Reworking the Attention Mechanism: Combining KDA and Gated MLA
For the core attention module, the model does not use standard multi-head attention or multi-query attention, which are common across the industry. Instead, it combines two techniques into a composite attention solution designed for very long contexts.
2.1 Incremental Attention (KDA): Information Compression at Linear Complexity
With sequences at the million-token level, the O(N²) time complexity of conventional attention is impractical. To address this, the model uses an attention variant based on incremental computation. Its core idea resembles information compression in state space models. It maintains a fixed-dimensional hidden state and compresses and propagates historical information through recurrent updates. Rather than scanning all historical tokens as traditional attention does, this approach reduces time complexity from quadratic to linear. This makes it feasible to process very long documents and multi-turn interaction histories.
The mechanism does more than approximate. Its state update rules keep important historical information with high fidelity. During compression, it learns in a trainable way what to forget and what to strengthen. This lets it approach the expressive power of full attention under a limited compute budget.
2.2 Gated Multi-Head Latent Attention (Gated MLA): Low-Rank Compression and Dynamic Gating
On top of incremental attention, the model also adds a multi-head latent attention module with a gating mechanism. This module jointly compresses the Key and Value matrices into a lower-rank latent space. It reduces the memory used by the KV cache, which is a key bottleneck in long-context settings. The latent space also helps the model capture deeper semantic relationships.
The gate is the more important part. Unlike static attention weighting, Gated MLA learns a dynamic gating vector. Based on the semantic intent of the current query token, the gate adjusts how much each latent subspace (or attention head) contributes. This explicit feature selection helps the model adapt to complex relational tasks, such as tracking variables in code or linking cross-references across documents.
2.3 Attention Residuals (AttnRes): A High-Speed Path Across Layers
Optimizing attention inside a single layer is not enough for very deep networks, which face vanishing gradients and representation degradation. AttnRes borrows the success of residual networks but extends the scope from feed-forward network layers to the attention layers themselves. The output of each attention module no longer serves only as input to the next layer. Instead, a learnable decay coefficient lets attention information from several preceding layers skip the current sublayer and merge with the current layer’s output through weighted fusion.
This design brings two benefits. First, it stabilizes gradient flow in deep networks, so signals propagate backward more smoothly through dozens or even hundreds of layers. Second, it enables cross-layer information reuse. Local features extracted by shallow layers can contribute directly to the final deep semantic representation. This is especially useful for generation tasks that need to look back at details in the source text.
3. Mixture-of-Experts Engineering under Extreme Sparsity
The model has 2.8 trillion total parameters but activates only 104 billion per inference step. Its sparsity is very high, which places strict demands on MoE engineering.
3.1 Stable LatentMoE: Expert Mapping from Tokens to a Latent Space
Traditional token-level routing selects experts directly from each token’s representation. In a high-dimensional sparse space, this can easily cause routing oscillation. The Stable LatentMoE mechanism adds a latent space mapping step before the routing decision. Input token representations pass through a lightweight mapping layer into a lower-dimensional, more stable latent space. The router then computes similarity between this latent representation and each expert’s center, and assigns tokens to experts based on those scores.
Low-dimensional latent spaces t
