Ultra-Scale MoE Multimodal Models: Architecture and Training Mechanisms Explained
This article examines the core technologies behind a 2.8-trillion-parameter multimodal Mixture-of-Experts model with 104 billion active parameters, native vision support, and a 1-million-token context window. It focuses on the engineering principles that improve long-context efficiency, stabilize large-scale MoE training, and enable long-horizon reasoning for AI agents, including hybrid attention, KDA decay parameterization, auxiliary-loss-free expert balancing, Block Attention Residuals, progressive context extension, and Agentic RL.
As large language models evolve toward multimodal interaction and ultra-long context windows, model architecture must address increasingly demanding efficiency and scalability challenges. A recently discussed multimodal Mixture-of-Experts (MoE) model features 2.8 trillion total parameters and 104 billion active parameters. It natively supports vision inputs and context windows of up to 1 million tokens, while achieving strong results across multiple benchmarks.
Its progress is not simply the result of increasing parameter counts. More importantly, it comes from redesigning the underlying attention mechanisms, expert-routing strategies, and training paradigms. This article abstracts away from any specific product and analyzes the technical practices used to address three major challenges: the computational cost of million-token contexts, the training stability of extremely large MoE systems, and long-horizon reasoning for AI agents.
1. Core Architecture: Coordinating Hybrid Attention and Sparse Experts
For ultra-scale MoE models, the central challenge is balancing computational efficiency with representational capacity. The model adopts a Stable LatentMoE architecture with a sparse network containing 896 routed experts. It also uses the SiTU-GLU activation function to strengthen nonlinear representation capability. To maintain training stability under extreme sparsity, the architecture introduces a quantile-based balancing mechanism.
The attention stack does not rely exclusively on conventional Softmax Attention. Instead, it combines incremental attention, referred to as KDA, with gated multi-head latent attention. Attention residual connections are also used to share information across layers.
This hybrid design reduces the quadratic complexity explosion associated with very long sequences. It provides a foundation for further system-level optimization when processing contexts that reach the million-token scale.
2. Three Technical Innovations with Strong Engineering Reuse Value
From a developer and systems-engineering perspective, three mechanisms are particularly reusable. Each requires relatively limited changes to the overall system while delivering meaningful improvements in compute efficiency and memory usage.
2.1 KDA Lower-Bounded Decay Parameterization
Reuse value: High. The implementation changes are limited, while the potential efficiency gains for linear attention operators on CUDA and CUTLASS are substantial.
Problem and mechanism
When traditional linear attention or DeltaNet is computed in blocks, the reciprocal of the accumulated decay factor, Γ, can easily overflow or underflow in finite-precision formats such as BF16. As a result, diagonal blocks often require an explicit positional-alignment path, preventing them from fully benefiting from Tensor Core matrix multiplication.
KDA addresses this issue by changing how the decay factor is parameterized. It replaces the unbounded Negative-Softplus formulation for log decay with a lower-bounded Scaled Sigmoid formulation:
# Pseudocode: KDA lower-bounded decay parameterization# Fixed gmin = -5gmin = -5.0log_decay = gmin * sigmoid(e_A * h_z_t)
This design constrains the reciprocal scaling factor within a numerically safe range for any 16-token tile.
Comparison and benefits
Compared with conventional linear-attention implementations, KDA removes the special computation branch for diagonal blocks. Both diagonal and non-diagonal causal blocks can directly use dense Tensor Core GEMM operations.
The result is higher data throughput and native support for extrapolating to a 1-million-token context without positional encoding. This avoids the generalization degradation that traditional positional encodings may experience on extremely long sequences.
2.2 Fast Dynamic Load Balancing Without Auxiliary Loss
Problem and mechanism
In large-scale MoE architectures, balancing the workload across 896 experts is essential for stable training. Traditional approaches commonly introduce an auxiliary loss to penalize uneven expert assignment. However, this adds computational overhead and may cause the main-task optimization path to deviate from its optimal solution.
The model instead uses a quantile-based balancing mechanism that does not require an auxiliary loss. It continuously measures the distribution quantiles of expert-routing scores and rapidly adjusts the routing distribution without directly interfering with gradient optimization. This helps distribute computation more evenly across experts.
Benefits
The mechanism reduces communication and computation bottlenecks during ultra-scale MoE training and improves robustness under highly sparse activation conditions. It also provides a useful reference for teams developing their own large models and optimizing distributed-training throughput.
2.3 Block Attention Residuals
Problem and mechanism
As Transformer networks become deeper, they are increasingly exposed to representation bottlenecks, vanishing gradients, and feature over-smoothing. Deep attention layers can also lead to substantial KV-cache memory consumption and cross-layer communication overhead.
Block Attention Residuals, or Block AttnRes, introduce cross-layer attention residual connections to reduce the isolation between layers. Attention outputs are shared across selected blocks, allowing high-resolution representations from earlier layers to participate directly in deeper computation.
Benefits
This structure helps mitigate representation degradation in deep Transformers. Through structured sharing, it can also reduce memory usage and communication overhead between nodes, making it more practical to train models with tens or hundreds of billions of parameters under constrained hardware resources.
3. Evolution of Pretraining and Post-Training Strategies
Architecture is only one part of the solution. The model also advances the training paradigm through a progressive context-extension strategy during pretraining.
Training begins with an 8K context window and gradually expands to 64K, 256K, and finally 1M tokens. This multi-stage process avoids wasting excessive compute during the early stages of long-context training. The model can first learn fundamental language capabilities efficiently and then focus on modeling long-range dependencies as the context window expands.
During post-training, the model incorporates Agentic RL at the million-token scale. Traditional RLHF is generally designed for single-turn conversations or relatively short tasks. Agentic RL extends reward signals across multi-step reasoning, tool use, and long-horizon task planning.
This approach targets the long-range reasoning challenges faced by AI agents in complex tasks. It helps transform the model from a general text generator into an agent foundation with capabilities for deeper data analysis and task execution.
4. Conclusion and Engineering Implications
The progress of ultra-scale multimodal MoE models does not come solely from adding more compute or parameters. It depends on carefully optimizing low-level operators, system scheduling, and architectural connections.
KDA parameterization improves the numerical behavior and hardware efficiency of attention computation. Quantile-based balancing provides dynamic expert load balancing without auxiliary loss. Block AttnRes improves cross-layer information sharing while reducing representation degradation and system overhead.
For enterprise developers and cloud infrastructure architects, understanding these mechanisms has two practical benefits. First, it enables more accurate estimates of memory and communication requirements for private deployment and fine-tuning, as well as more effective optimization of distributed inference systems. Second, when training large models on general-purpose cloud infrastructure such as Baidu AI Cloud, teams can better align model design with hardware characteristics, including Tensor Core scheduling and container orchestration.
As these low-level techniques become more widely adopted and open-sourced, the engineering barriers to deploying large models should continue to decline. Multimodal systems and long-context AI agents will consequently have more room to develop across a broader range of applications.
