Architectural Innovations in Trillion-Parameter MoE Multimodal Models: A Deep Dive
This article explores the architectural innovations of a 2.8-trillion-parameter Mixture of Experts (MoE) multimodal large model. It delves into the engineering challenges of ultra-long context windows, massive expert routing, and long-range agentic reasoning. Key solutions analyzed include hybrid attention mechanisms, lower-bound decay parameterization for linear attention, quantile balancing for lossless MoE load distribution, and block-level attention residuals. The article also covers multi-stage pretraining and agentic reinforcement learning, offering practical takeaways for developers building large-scale AI models.
Architectural Innovations in Trillion-Parameter MoE Multimodal Models: A Deep Dive
1. Background: Triple Engineering Challenges of Ultra-Long Context and Massive Experts
In recent years, the capability boundaries of large language models have continuously expanded in two directions: context windows have grown from tens of thousands to millions of tokens, and total parameter scales have swelled to the trillions through the Mixture of Experts (MoE) architecture. The multimodal large model discussed in this article is a representative work of this trend: with approximately 2.8 trillion total parameters and roughly 104 billion activated parameters per forward pass, it natively supports visual multimodal understanding and an ultra-long context of 1 million tokens, achieving top-tier performance in open-source benchmark evaluations.
However, scaling up is not a free lunch. The model’s technical report directly addresses three core industry-recognized challenges:
- Computational Efficiency of Ultra-Long Context: The complexity of standard full attention grows quadratically with sequence length, making it entirely unfeasible at the million-token level. Linear attention offers linear complexity but suffers from persistent issues in numerical stability and hardware acceleration.
- Training Stability of Massive MoE: When the number of routed experts reaches hundreds (896 in this model), load skew, expert collapse, and auxiliary loss interference with the main task optimization are drastically amplified.
- Long-Range Agent Reasoning: Agentic tasks require the model to maintain consistent goal orientation and multi-step decision-making capabilities over ultra-long trajectories, which traditional post-training methods struggle to cover.
Below, we dissect the solutions from three dimensions: architecture, training, and reusable technologies.
2. Overall Architecture: Combining Sparse Attention and Massive Experts
2.1 Hybrid Attention Mechanism
The model’s attention module does not adopt a single solution but fuses two mechanisms:
- Incremental Linear Attention (KDA-like mechanism): Responsible for the linear complexity portion of long sequences, reducing memory and computational overhead through chunked parallel computation.
- Gated Multi-head Latent Attention (Gated MLA-like mechanism): Significantly reduces KV Cache usage during long-context inference through low-rank compression of the Key-Value cache, while retaining the precise retrieval capabilities of full attention.
Additionally, the model introduces an Attention Residuals (AttnRes) mechanism, directly passing attention information across layers to alleviate the representation homogenization (over-smoothing) problem in deep Transformers.
2.2 Sparse MoE Layer
The MoE side adopts a stable architecture with 896 routed experts, accompanied by the following designs:
- SiTU-GLU Activation Function: Enhances the expressiveness and training stability of the expert feed-forward networks.
- Quantile Balancing (QB): Achieves dynamic balancing of expert loads without introducing auxiliary load balancing losses.
3. Three Core Technologies Worth Reusing
3.1 Lower-Bound Decay Parameterization: Fully Utilizing Tensor Cores for Linear Attention
Pain Point: Traditional linear attention (such as Delta Net-like structures) needs to process the reciprocal term of the accumulated decay factor during intra-chunk computation. Because the decay coefficient is unbounded parameterized (e.g., via negative Softplus mapping), the reciprocal term is highly susceptible to numerical underflow or overflow under limited precision like BF16. To avoid this issue in engineering, diagonal tiles have to degenerate into an explicit pairwise computation path, unable to utilize matrix multiplication paths, resulting in massive waste of Tensor Core compute power.
Solution: Change the log decay parameter from “unbounded negative Softplus” to “bounded scaled Sigmoid” parameterization. The core idea can be summarized as:
# Traditional unbounded parameterization (illustrative)g = -softplus(raw_g) # g ∈ (-∞, 0), reciprocal term may explode# Lower-bound decay parameterization (illustrative)g = g_min * sigmoid(scale * raw_g) # g ∈ (g_min, 0), e.g., g_min = -5
After locking the decay in a bounded interval, the numerical range of the reciprocal scaling factor within any 16-token tile is strictly constrained to a safe interval, allowing the diagonal block to be fully implemented via matrix multiplication.
Reusability Assessment: High. This modification has minimal intrusion into existing linear attention operators but significantly improves implementation efficiency on mainstream GPU computing libraries. It is a paradigm design that balances numerical stability with hardware affinity.
3.2 Quantile Balancing (QB): Auxiliary-Loss-Free Load Balancing at Massive Scale
Pain Point: The classic challenge of MoE training is routing skew—a few “popular” experts are over-selected while the majority remain idle. The mainstream industry solution is to add an auxiliary load balancing loss, but when the number of experts reaches hundreds or thousands, the weight between the auxiliary loss and the main task loss becomes difficult to tune: too high damages model quality, while too low renders balancing ineffective.
Solution: The QB mechanism abandons auxiliary loss and instead directly intervenes in the distribution of routing scores—using quantile statistics to dynamically adjust each expert’s bias term, making the token-to-expert allocation tend toward uniformity in batch statistics. Because it does not pollute the main optimization objective, model quality in later training stages is unaffected by balancing constraints, and convergence is faster.
Reusability Assessment: High. For any MoE training framework needing to scale expert counts, this “auxiliary-loss-free” approach can be directly migrated with low implementation cost.
3.3 Block Attention Residuals (Block AttnRes): Breaking Deep Representation Bottlenecks
Pain Point: As Transformer layers deepen, the residual stream’s representation gradually saturates, and the contribution of deep attention diminishes. Simultaneously, in long-context scenarios, the memory and communication overhead of passing attention information across layers is enormous.
Solution: Using a block as the unit, the output of shallow attention is directly injected into deep layers in a residual form, allowing deep modules to “look back” at the attention patterns computed by shallow layers without having to rebuild them from the residual stream. This not only breaks the deep representation bottleneck but also reduces memory usage and cross-device communication volume due to block-based transmission.
Reusability Assessment: Medium-High. This design yields significant benefits for deep and long models but requires synergistic modification with the specific attention implementation.
4. Training Pipeline: Multi-Stage Context Extension and Agentic Post-Training
4.1 Multi-Stage Pretraining
Pretraining adopts a progressive context extension strategy, advancing the window length sequentially: 8K → 64K → 256K → 1M. This “short-to-long” curriculum-style arrangement has clear engineering justification:
- The short-context stage uses high-throughput data to solidify language and knowledge foundations, where computational efficiency is highest.
- The medium-to-long context stage gradually introduces long-range dependency data, allowing positional encoding and attention mechanisms to adapt smoothly.
- The final 1M stage only requires a small number of steps to complete window alignment, avoiding the exorbitant compute costs of processing long sequences throughout.
4.2 Million-Token Agentic Reinforcement Learning Post-Training
The post-training stage performs reinforcement learning (Agentic RL) on real-world task trajectories at a million-token length, focusing on honing the model’s planning, tool invocation, and self-correction capabilities over long trajectories. The key insight of this design is that agentic capabilities cannot be acquired through short-sequence instruction fine-tuning; reward signals must cover the complete long-range decision chain. This aligns with the industry consensus that “long-chain reasoning requires long-chain training signals.”
5. Implications and Recommendations for Developers
Synthesizing the above analysis, several universally valuable experiences for developers engaged in large model R&D and application can be distilled:
- Numerical stability should be moved up to the parameterization design stage: Rather than patching issues at the operator level, it is better to constrain the numerical range mathematically. This is the methodology provided by “lower-bound decay”.
- Beware of auxiliary loss failure at massive scale: When system scales cross orders of magnitude, originally effective regularization methods may become bottlenecks. Direct intervention based on statistics (like quantiles) is often more robust.
- Ultra-long context is a training strategy issue, not just an architectural one: Progressive window extension combined with matching post-training signals is more critical than merely stacking attention operators.
- Infrastructure support cannot be ignored: Training and inference for trillion-level models rely on mature general cloud infrastructure capabilities such as distributed training frameworks, object storage, container orchestration, and monitoring. Enterprises can leverage general cloud computing and AI compute services from mainstream platforms, such as Baidu AI Cloud, to build their training pipelines and focus their energy on the models and data themselves.
6. Conclusion
This 2.8-trillion-parameter MoE multimodal model proves that ultra-long context, massive experts, and agentic capabilities are not mutually exclusive. The key lies in using ingenious parameterization design to maintain numerical boundaries, using lossless balancing mechanisms to manage sparse scale, and using progressive training strategies to flatten compute costs. Its three core technologies—lower-bound decay parameterization, quantile balancing, and block attention residuals—are all engineering paradigms with minor modifications but major returns, worth in-depth study and reuse by every large model practitioner.
