Large-Scale MoE Models: Architecture Evolution and Key Technologies
Trillion-parameter mixture-of-experts models introduce major challenges in numerical stability, expert routing, and deep-network efficiency. This article examines bounded log-decay parameterization, auxiliary-loss-free load balancing, and blockwise attention residuals, alongside staged context expansion and agentic reinforcement learning. It also outlines the infrastructure considerations for training and deploying multimodal MoE models with million-token context windows.
As large language models expand toward multimodal inputs and increasingly long context windows, mixture-of-experts (MoE) architectures have become a leading approach to scaling beyond the limits of a single compute resource.
At the trillion-parameter scale—for example, 2.8 trillion total parameters with 104 billion active parameters—native visual capabilities and million-token context windows create substantial challenges for training stability, computational efficiency, and inference.
Rather than focusing on a particular product, this article examines the underlying architectural innovations and training approaches used to address these challenges.
1. Core Challenges in Large-Scale MoE Models
Engineering and research teams building very large MoE models typically face three major obstacles.
Hardware bottlenecks in linear attention. Traditional softmax attention has quadratic computational complexity with respect to sequence length. Linear attention reduces that complexity, but practical CUDA/CUTLASS implementations can encounter numerical overflow when computing reciprocals of cumulative decay factors in finite-precision formats such as BF16. This can prevent kernels from fully exploiting Tensor Core matrix acceleration.
Load imbalance across large expert pools. With hundreds or nearly a thousand routed experts—for example, 896—conventional auxiliary-loss-based balancing may struggle to respond to rapidly changing routing patterns. Some experts become overloaded while others remain underutilized.
Information degradation in deep Transformers. As networks become deeper, conventional residual connections may not adequately address representation bottlenecks. Cross-layer information sharing becomes inefficient, while memory consumption and communication costs increase.
2. Architectural Innovations and Key Technologies
Addressing these constraints requires changes to attention computation, expert routing, and information flow across layers.
2.1 Bounded Log-Decay Parameterization for Linear Attention
In conventional linear attention or Delta Net, computations within a chunk can involve the reciprocal of a cumulative decay factor, Γ. These scaling operations can suffer from severe numerical overflow or underflow. Consequently, diagonal blocks may require an explicit position-pair computation path instead of dense Tensor Core matrix multiplication, or GEMM.
One approach replaces the unbounded negative-softplus log-decay parameterization with a scaled sigmoid that has a fixed lower bound. Its simplified form is:
g_th = g_min * Sigmoid(e * A_hz_th)
Here, g_min is fixed at -5.
This bounds the reciprocal scaling factors within any 16-token tile to a numerically safe range. The resulting kernel can eliminate the special computation branch for diagonal blocks, allowing all causal matrix blocks to use dense Tensor Core GEMM.
The intended engineering benefit is higher throughput through a more uniform, hardware-efficient computation path. This attention design also supports extrapolation to million-token contexts without positional encoding.
2.2 Fast Dynamic Load Balancing Without an Auxiliary Loss
With hundreds of routed experts, conventional auxiliary-loss-based balancing can introduce computational overhead and respond too slowly to changes in expert demand.
A quantile-based balancing mechanism offers an alternative. It tracks quantiles of the expert-load distribution in real time and dynamically adjusts routing weights without requiring an auxiliary loss.
The mechanism is designed to maintain training stability under highly sparse expert activation while reducing routing overhead. More responsive balancing helps make parallel scheduling across a large expert pool practical.
2.3 Blockwise Attention Residuals for Cross-Layer Information Sharing
Blockwise attention residuals address representation bottlenecks in deep Transformers by enabling direct residual connections between selected layers.
These connections improve the sharing of information across layers rather than relying exclusively on the conventional residual path. Beyond potential gains in feature extraction, the mechanism is intended to reduce memory usage and cross-node communication overhead associated with deep networks, improving overall training efficiency.
3. Training Evolution: From Staged Pretraining to Agentic Post-Training
Architecture alone is not enough. Training must also accommodate the computational cost and optimization difficulties of extremely long sequences.
3.1 Staged Context Expansion
Starting pretraining directly with million-token sequences is computationally demanding and can destabilize optimization. A staged context-extension strategy offers a more manageable path:
8K -> 64K -> 256K -> 1M
By increasing the context window gradually, the model can progressively adapt to longer-range dependencies. The objective is to preserve training stability while developing effective understanding over million-token inputs.
3.2 Agentic Reinforcement Learning Post-Training
After foundational pretraining, agentic reinforcement learning (RL) can target long-horizon reasoning over contexts reaching a million tokens.
This post-training stage focuses on capabilities such as complex tool use and multistep planning. It is intended to improve continuity across extended reasoning processes and reduce the forgetting and hallucination problems that can arise during long tasks.
The broader shift is from a model that primarily generates text toward an agent capable of carrying out tasks over multiple steps.
4. Engineering Practice and Cloud-Native Deployment
Training and serving very large MoE models place demanding requirements on the underlying infrastructure. Deployment planning should therefore emphasize cloud-native resource scheduling and distributed-system optimization.
Cloud-native infrastructure, including platforms such as Baidu AI Cloud where available, can support the orchestration of these workloads. The relevant engineering priorities include:
- Fine-grained GPU scheduling. Container platforms can coordinate GPU clusters at the scale of roughly 10,000 accelerators. Distributed expert placement and low-latency networking are critical considerations for MoE execution.
- High-throughput data access. Object storage combined with high-performance distributed file systems can support the read and write throughput required by datasets used for million-token-context pretraining.
- Operational visibility. Logging, monitoring, and alerting systems can track kernel throughput and GPU memory fluctuations in real time, providing evidence for continued architectural and system tuning.
Cloud orchestration must be considered together with the model’s routing behavior and distributed execution requirements. Efficient resource allocation alone does not remove the need to optimize the underlying computation and communication paths.
Conclusion
Successful trillion-parameter multimodal MoE models depend on coordinated advances rather than a single algorithmic breakthrough.
Bounded log-decay parameterization addresses numerical constraints in linear-attention kernels. Auxiliary-loss-free dynamic balancing improves expert utilization. Blockwise attention residuals strengthen cross-layer information sharing. Staged context expansion and agentic RL then develop the model’s long-context and task-execution capabilities.
Together with carefully engineered cloud-native infrastructure, these techniques form a systems-level approach to building and operating large-scale MoE models.
