Architectural Innovations and Practices in Ultra-Large-Scale MoE Multimodal Models
This article analyzes the core architectural innovations of an ultra-large-scale Mixture-of-Experts (MoE) multimodal model with approximately 2.8 trillion total parameters and 104 billion activated parameters. It explores advanced techniques including hybrid attention mechanisms, auxiliary-loss-free dynamic load balancing, and progressive long-context pretraining strategies, alongside cloud-native engineering practices for training trillion-scale models.
1. Introduction: Technical Challenges of Ultra-Large-Scale MoE Multimodal Models
As large language models evolve toward multimodality and ultra-large-scale parameters, the Mixture-of-Experts (MoE) architecture has become the mainstream choice to break through compute bottlenecks. However, under extreme sparsity conditions with total parameters reaching the trillion level and activated parameters at the hundred-billion level, model training and inference face severe engineering and algorithmic challenges. Recently, a technical report on an ultra-large-scale MoE multimodal model attracted widespread attention. The model features approximately 2.8 trillion total parameters and about 104 billion activated parameters per forward pass. It natively supports visual multimodality and a maximum context length of 1 million tokens. It introduces highly reusable innovations in the attention module, MoE routing mechanism, and multi-stage pretraining strategy, effectively overcoming core challenges such as ultra-long context compute efficiency, training stability with massive experts, and long-horizon agent reasoning. This article provides an in-depth analysis of its core technical paradigms.
2. Core Architecture: Hybrid Attention and Deep Information Sharing
In ultra-long context scenarios, traditional standard attention mechanisms incur quadratic growth in memory and compute overhead. The model innovatively integrates gated multi-head latent attention with linear attention in the attention module and accomplishes cross-layer information sharing through an attention residual mechanism.
1. Numerical Stability Optimization for Linear Attention
While linear attention theoretically reduces the computational complexity of long sequences, it faces severe bottlenecks in practical engineering implementations, especially during tiled parallel computation on Tensor Cores. Traditional Linear Attention or Delta Net suffers from severe overflow or underflow of the reciprocal of the cumulative decay factor under limited precision (such as BF16) during intra-chunk computation. This forces diagonal blocks to take explicit positional paths, preventing full utilization of Tensor Core matrix multiplication acceleration.
To solve this pain point, the model introduces a parameterization mechanism with a lower-bounded decay. Specifically, it changes the Log-decay from unbounded Negative-Softplus to bounded Scaled Sigmoid, fixing the minimum decay value (e.g., -5). This ingenious change strictly locks the reciprocal scaling factor within any 16-token Tile into a safe numerical range. Consequently, the special computation branch for diagonal blocks is eliminated, allowing all causal blocks (including diagonal and non-diagonal) to directly invoke high-throughput dense matrix multiplication. This significantly improves operator implementation efficiency and naturally supports direct extrapolation for million-level context without positional encoding.
2. Cross-Layer Attention Residual Mechanism
In extremely deep Transformer networks, deep representations often face the risk of degradation or information loss. The model introduces block-wise attention residuals, breaking the deep representation bottleneck of traditional deep Transformers. By sharing attention computation results across specific network layers, it not only enhances cross-layer information flow but also significantly reduces memory footprint and cross-layer communication overhead during training and inference.
3. Stability and Load Balancing in Sparse MoE Architecture
The core of the MoE architecture lies in the effectiveness and stability of the routing mechanism. The model is equipped with a stable latent MoE architecture containing 896 routing experts, paired with the SiTU-GLU activation function to ensure training stability under extreme sparsity.
1. Auxiliary-Loss-Free Rapid Dynamic Load Balancing
In ultra-large-scale MoE training, unbalanced expert load is a common cause of training crashes. Traditional solutions usually introduce auxiliary losses to penalize load imbalance, but this often interferes with the gradient descent of the main task and affects the final model performance.
The model adopts an innovative Quantile Balancing (QB) mechanism, an auxiliary-loss-free rapid dynamic load balancing strategy for ultra-large-scale MoE. The QB mechanism no longer relies on gradient backpropagation to adjust routing weights; instead, it achieves ultra-low latency load allocation through real-time statistics and dynamic adjustment of expert load quantiles. This approach not only avoids the interference of auxiliary losses with the main task but also maintains extremely high routing response speed and balance when dealing with massive experts.
2. Activation Function and Architecture Adaptation
Paired with the SiTU-GLU activation function, the model further optimizes the nonlinear expression capability in the gated unit, enabling the sparsely activated expert network to maximize feature extraction efficiency under limited activated parameters. The stable latent MoE architecture performs routing computations within the latent space, reducing the computational complexity of the routing module and ensuring overall training stability at the trillion-parameter scale.
4. Ultra-Long Context and Multi-Stage Pretraining Strategy
A large model’s ability to understand ultra-long context relies not only on architectural design but also on scientific training strategies. The model employs a multi-stage pretraining scheme of 8K -> 64K -> 256K -> 1M to gradually expand the model’s context window. This progressive expansion strategy effectively prevents attention dispersion and catastrophic forgetting issues caused by jumping directly from short to ultra-long contexts.
In the post-training phase, the model incorporates million-token-level Agentic Reinforcement Learning. Traditional supervised fine-tuning is often limited to single-turn Q&A, whereas Agentic RL simulates long-horizon multi-step reasoning and tool-calling environments, forcing the model to maintain logical coherence and goal orientation within ultra-long interaction histories. This strategy significantly enhances the model’s long-term planning and task execution capabilities as an agent.
5. Engineering Practices and Cloud-Native Infrastructure Support
Analyzing these technical breakthroughs provides significant insights for developers building or fine-tuning ultra-large-scale models. In practical engineering implementation, training such trillion-parameter models requires not only algorithmic innovation but also robust underlying compute power and distributed framework support. Everything from the partitioning of parallel strategies (such as the hybrid of tensor parallelism, expert parallelism, and pipeline parallelism) to memory optimization (such as recomputation and ZeRO optimization), to communication topology tuning, requires extremely high engineering proficiency.
For enterprise developers, leveraging high-performance computing clusters and container platforms provided by Baidu AI Cloud can facilitate easier access to large-scale heterogeneous compute resources. Through cloud-native distributed training frameworks and parallel file storage services, developers can effectively abstract away underlying infrastructure complexity and focus their efforts on model architecture tuning and data quality improvement. When facing communication bottlenecks in large-scale MoE training, reasonable cloud network topology configuration and global load monitoring are also critical components in ensuring training stability.
In summary, the development of ultra-large-scale MoE multimodal models is shifting from simple parameter stacking to deep innovation in architecture and training paradigms. Numerical optimization of linear attention, auxiliary-loss-free dynamic load balancing, and progressive context expansion collectively form the core technical foundation of next-generation foundation models. Understanding and reusing these technologies will provide strong technical guarantees for developers implementing large model applications in complex business scenarios.
