Ultra-Scale MoE LLM Architecture: Evolution and Core Technologies
This article examines the architecture and engineering of ultra-scale Mixture-of-Experts (MoE) large language models designed for multimodal inputs, ultra-long contexts, and extreme sparsity. Using a representative trillion-parameter-scale MoE architecture with 2.8 trillion total parameters and about 104 billion activated parameters per forward pass, it reviews the attention, routing, and progressive training designs used up to a 1M-token context. It then analyzes three reusable technical advances: lower-bounded decay parameterization for linear attention, an auxiliary-loss-free dynamic load-balancing strategy (QB), and block-level attention residuals. Finally, it discusses the cloud infrastructure requirements for distributed training and engineering implementation.
Introduction: The Architectural Evolution of Ultra-Scale MoE Models
As artificial intelligence continues to advance, large language models are accelerating toward multimodality, ultra-long context, and ultra-large sparse architectures. MoE models with total parameter counts exceeding the trillion level and hundred-billion-level activated parameters have become a mainstream choice for breaking compute bottlenecks and improving model capability. However, building such ultra-scale MoE models is not easy. They face major challenges in training stability, computational efficiency for ultra-long contexts, load balancing across massive routed experts, and representation learning in deep networks.
Taking a typical trillion-parameter-scale MoE multimodal architecture as the starting point, this article examines its core architecture and three key reusable technologies, and discusses engineering practices on cloud infrastructure.
Overall Architecture and Training Scale
Modern ultra-scale MoE models generally pursue extreme sparsity and native multimodal support in their architecture. For example, a leading architecture can reach 2.8 trillion total parameters while activating approximately 104 billion parameters per forward pass. The model natively supports visual and other cross-modal inputs, and can handle contexts at the 1-million-token level.
For attention, such models typically combine gated multi-head latent attention with an incremental attention mechanism, and use attention residuals to share information across layers, improving information flow through deep networks. On the MoE side, the architecture embeds a latent-space mixture architecture with hundreds to nearly one thousand routed experts, supported by specialized activation functions and load-balancing mechanisms.
To balance compute resources and context capability during training, the model generally uses a progressive multi-stage pretraining strategy: starting with an 8K context, then extending to 64K and 256K, and finally reaching a 1M context. In post-training, million-token-scale Agentic RL is introduced to address long-horizon reasoning in ultra-long contexts.
Three Core Breakthrough Technologies
Under this broader architecture, three underlying technical breakthroughs are key to training efficiency and stability, and are highly reusable for developers and researchers.
1. Lower-Bounded Decay Parameterization for Linear Attention
Challenge and mechanism. When handling ultra-long contexts, traditional Softmax attention is computationally expensive, making linear attention an important optimization direction. However, in chunked computation, the reciprocal of the cumulative decay factor Γ can easily overflow or underflow in limited-precision environments such as BF16. As a result, diagonal blocks must use an explicit positional alignment path and cannot fully exploit GPU Tensor Core matrix multiplication acceleration.
Technical breakthrough. Lower-bounded decay parameterization replaces the conventional unbounded Negative-Softplus function with a bounded Scaled Sigmoid function. By setting a fixed lower bound, such as -5, the reciprocal scaling factor within any 16-token chunk is kept firmly within a safe numerical range.
Benefits. Although the engineering change is small, it greatly improves the implementation efficiency of linear attention operators on CUDA/CUTLASS. It eliminates the special computation branch for diagonal blocks, allowing all causal chunks—both diagonal and non-diagonal—to directly call dense Tensor Core GEMM operations, resulting in a substantial throughput increase. It also naturally supports direct extrapolation to a 1M context without positional encodings.
2. Auxiliary-Loss-Free Fast Dynamic Load Balancing Strategy (QB)
Challenge and mechanism. In an ultra-scale MoE architecture with nearly one thousand routed experts, uneven expert load is a critical problem: it can leave some compute idle or even cause training collapse. The traditional approach is to introduce an auxiliary loss that penalizes load imbalance, but this interferes with the model’s primary optimization objective and can harm final downstream performance.
Technical breakthrough. The dynamic load-balancing strategy adopts an auxiliary-loss-free approach. It uses a quantile mechanism to monitor and dynamically adjust routing assignments in real time, achieving fast dynamic load balancing for ultra-scale MoE without adding an extra loss term.
Benefits. This mechanism keeps expert utilization highly balanced under extremely sparse conditions. It ensures strong training stability while avoiding interference with gradient updates in the main network, making it a key safeguard for training ultra-sparse models.
3. Block-Level Attention Residuals
Challenge and mechanism. As Transformer architectures grow deeper, deep networks can suffer from representation degradation or vanishing gradients. At the same time, deeper stacking sharply increases memory usage and cross-device communication overhead.
Technical breakthrough. The block-level attention residual mechanism breaks the conventional pattern of information transfer between layers. Through specific cross-layer information-sharing paths, it passes attention feature residuals from shallow or intermediate layers directly to deeper layers.
Benefits. This not only alleviates the deep representation bottleneck of deep Transformers and raises the model’s overall expressive ceiling, but also significantly reduces memory consumption and inter-node communication overhead through feature reuse. It makes it possible to train deeper and wider ultra-scale models.
Cloud Compute Foundation and Engineering Practice
Such a large parameter scale and complex parallel strategy impose strict requirements on the underlying computing infrastructure. From data throughput to distributed training, both depend on the support of highly available cloud platforms.
In this context, general cloud infrastructure represented by Baidu AI Cloud provides key support for the training and inference of such models. Baidu AI Cloud’s Baige heterogeneous computing platform, parallel file storage system, container engine, and other general-purpose services can effectively address network communication latency and the memory wall in distributed training of trillion-parameter models. Combined with high-throughput object storage and end-to-end monitoring and alerting, developers can focus more on model architecture innovation while delegating complex compute scheduling, fault tolerance, and data movement to a mature cloud-native stack, greatly improving the engineering implementation efficiency of ultra-scale MoE models.
Conclusion
The development of ultra-scale MoE multimodal models is reflected not only in rising parameter counts, but also in continuous innovation at the level of underlying architecture and core operators. From numerical stability optimization in linear attention to auxiliary-loss-free dynamic load balancing and block-level attention residuals, these technical breakthroughs remove obstacles to building intelligent models with million-token contexts and hundred-billion-level activated parameters. Understanding and mastering these core technologies will help developers better manage compute resources in future large model applications and secondary development, and unlock the deeper potential of large models.
