Ultra-Large MoE Multimodal LLM Architecture: A Deep Dive into Long Context, Load Balancing, and Training Stability
This article examines a multimodal Mixture-of-Experts (MoE) model with 2.8 trillion total parameters and 104 billion activated parameters. It covers the architectural choices behind long-context support, load balancing across a large pool of experts, and training stability in deep networks. It also describes three engineering techniques that developers can reuse: bounded decay parameterization in KDA, auxiliary-loss-free quantile balancing, and Block Attention Residuals.
As large language models move toward artificial general intelligence (AGI), scaling a single dense architecture runs into diminishing returns in compute and memory. Ultra-large MoE models that combine native multimodality with very long context have become a central focus of current technical progress. This article uses a multimodal MoE model with 2.8 trillion total parameters and 104 billion activated parameters as an example. It analyzes the core architectural advances and engineering practices behind long context, load balancing across a large number of experts, and training stability in deep networks, with the goal of offering reusable technical ideas for developers.
1. Core Architecture: Scaling MoE and Evolving Attention
Keeping inference costs reasonable while enabling emergent capabilities requires deep changes to both the MoE design and the attention mechanism.
1.1 A Stable LatentMoE Architecture at Scale
The MoE layer uses a Stable LatentMoE mechanism with 896 routed experts. As the number of experts grows, traditional MoE designs often suffer from routing collapse and unstable training. This architecture adds the SiTU-GLU activation function to improve the nonlinear expressiveness of expert networks. It also uses quantile balancing to keep training stable under extreme sparsity. As a result, the model reaches total parameters in the trillion range, while a single inference pass activates only around a hundred billion parameters. This balances model capacity and computational efficiency.
1.2 A Fused Attention Mechanism
A single attention mechanism struggles to balance efficient computation over long sequences with precise representation. This architecture combines Gated Multi-head Latent Attention (Gated MLA) with Incremental Attention (KDA). Gated MLA compresses the KV cache, which reduces memory use for long sequences. KDA improves the throughput of linear attention operators on specific hardware. An attention residual mechanism also breaks the isolation between layers in traditional layer-by-layer computation. This enables information sharing and feature reuse across layers.
2. Engineering Challenges and Three Reusable Techniques
Training trillion-parameter MoE models with million-token contexts exposes numerical and communication bottlenecks in the underlying engineering. The three techniques below have high reuse value.
2.1 KDA Bounded Decay Parameterization: Removing Numerical and Parallelism Bottlenecks
Problem and mechanism: Traditional linear attention and DeltaNet compute the reciprocal of the cumulative decay factor Γ inside each chunk. With limited-precision formats such as BF16, this reciprocal can easily overflow or underflow. As a result, diagonal blocks must follow an explicit positional-pairing path and cannot use hardware Tensor Core matrix multiply-accumulate acceleration.
Solution: KDA replaces the unbounded Negative-Softplus parameterization of the log-decay with a Scaled Sigmoid mechanism that has a lower bound. The fixed lower bound g_min is typically set to -5. This keeps the reciprocal scaling factor within any 16-token tile in a safe numerical range.
Benefits and reuse value: The engineering change is small, but it removes the special handling for diagonal blocks. After this optimization, all causal tiles, both diagonal and off-diagonal, can call dense Tensor Core GEMM directly, which substantially raises compute throughput. The same numerical stability also supports direct extrapolation to 1M-token context without positional encoding.
2.2 Auxiliary-Loss-Free Dynamic Load Balancing
Problem and mechanism: In an ultra-large MoE with 896 routed experts, load balancing that depends on auxiliary losses can degrade the model’s original performance. It also adds complexity to backpropagation and makes training harder to converge.
Solution: The approach uses quantile balancing (QB), an auxiliary-loss-free dynamic load balancing strategy. It monitors and adjusts the distribution of expert routing weights by quantile, so tokens are neither overly concentrated on nor sparse across experts.
Benefits and reuse value: QB provides fast dynamic balancing for ultra-large MoE models. It keeps all experts effectively trained and avoids gradient interference from auxiliary losses on the main task. It is a cost-effective stability measure for training very large MoE models.
2.3 Block Attention Residuals: Breaking the Representation Bottleneck in Deep Networks
Problem and mechanism: As Transformer depth increases, representational capacity in deep networks often hits a bottleneck. The memory and communication overhead of layer-by-layer propagation also grows exponentially with ultra-long context.
Solution: Block Attention Residuals apply the residual connection idea to cross-layer sharing in the attention module. Attention outputs from shallower layers are injected into deeper layers in residual form, creating direct channels for information flow.
Benefits and reuse value: This breaks the depth representation bottleneck of deep Transformers, so the model can still capture fine-grained low-level features in deeper layers. It also significantly reduces the memory and inter-node communication overhead of full attention computation.
3. Multi-Stage Pretraining and Long-Horizon Agent Reasoning
3.1 Context Extension from 8K to 1M
To natively support a context of one million tokens, training follows a multi-stage pretraining schedule: 8K, then 64K, then 256K, then 1M. The model first learns basic language and multimodal alignment in short contexts. It then extends the context window step by step to handle long-document understanding and cross-file data analysis. This approach avoids the compute waste and gradient divergence that come from training directly on ultra-long sequences.
3.2 Agentic RL Post-Training for Long-Horizon Reasoning
Long context is not only about reading more. It also supports deeper reasoning. The model adds million-token-level Agentic RL (reinforcement learning) post-training, which targets context forgetting and logical breaks in long-horizon agent reasoning. Reinforcement learning optimizes multi-step tool calling and reflection mechanisms. The model shows strong performance in complex task decomposition and long execution chains.
3.3 Infrastructure Foundation
Training and inference for ultra-large MoE models depend on a strong compute foundation. In pract
