Architecture Evolution and Engineering Practices for Ultra-Large-Scale MoE Multimodal Models

    This article examines the architecture design and engineering innovations behind a next-generation ultra-large-scale Mixture-of-Experts (MoE) multimodal model with 2.8 trillion total parameters, 104 billion activated parameters, native vision support, and a 1-million-token context window. It details three key technical breakthroughs—KDA lower-bound decay parameterization for linear attention stability, Quantile Balancing for auxiliary-loss-free MoE load balancing, and Block Attention Residuals for deep-layer representation bottlenecks—alongside the training paradigm spanning multi-stage long-context pretraining and Agentic RL post-training. These practices offer actionable insights for developers working on large-scale sparse model training and deployment.

    Introduction: The MoE Paradigm Under Extreme Scale

    Mixture-of-Experts (MoE) architectures have become a dominant trend in large language model development, offering a compelling path to scale model parameters while keeping computational costs in check. However, when total parameters exceed one trillion, activated parameters reach hundreds of billions, and the model must natively support multimodal inputs and million-token contexts, engineers face three fundamental challenges: maintaining training stability under extreme sparsity, sustaining computational efficiency for ultra-long sequences, and overcoming representation bottlenecks in deep networks. This article analyzes a next-generation ultra-large-scale MoE multimodal model to examine its practical approaches to attention mechanisms, expert routing strategies, and training paradigms.

    Core Architecture: Fusing Attention with Massive Expert Networks

    The reference model exemplifies cutting-edge complexity in LLM engineering. It features a total of 2.8 trillion parameters with 104 billion activated per forward pass, native vision-language multimodal support, and a context window of 1 million tokens.

    Fused Attention Design

    To reconcile long-context efficiency with information extraction capability, the attention module integrates two mechanisms. The first, incremental attention (KDA), targets the computational complexity of long-sequence processing. The second, gated multi-head latent attention, compresses KV Cache through low-rank latent-space projection, significantly reducing memory footprint during long-context inference.

    Stable LatentMoE and Massive Expert Routing

    On the MoE side, the model deploys a Stable LatentMoE architecture with 896 routed experts. This scale of expert count implies extreme routing sparsity. To ensure stable training, the design pairs a SiTU-GLU activation function with a quantile-based balancing mechanism at the routing layer. This combination expands model capacity while mitigating two well-known failure modes in large-scale expert networks: routing collapse and uneven expert utilization.

    Key Engineering Innovations: Breaking Through Training and Inference Bottlenecks

    The model’s technical report highlights several engineering innovations with broad applicability to the developer community.

    1. KDA Lower-Bound Decay Parameterization: Resolving Numerical Overflow in Linear Attention

    A persistent problem in linear attention and Delta Net computation is the numerical overflow or underflow inside chunk-local calculations when the reciprocal of the cumulative decay factor is computed in limited precision such as BF16. This bottleneck traditionally forces diagonal blocks to fall back to an explicit position-wise path, which cannot take full advantage of tensor-core matrix multiplication acceleration.

    The solution reparameterizes the log-decay from an unbounded Negative-Softplus form to a bounded Scaled Sigmoid. The core logic is simplified below:

    1. # Pseudo-code illustration
    2. g_min = -5 # fixed lower bound
    3. # Convert unbounded decay into a bounded sigmoid-scaled value
    4. log_decay = g_min * sigmoid(decay_logits)

    This parameterization constrains the reciprocal scaling factor within any 16-token tile to a numerically safe range. The direct benefit is the elimination of a special-case computation branch for diagonal blocks. All causal tiles—diagonal and non-diagonal alike—can now use dense tensor-core GEMM operators. This not only increases computation throughput but also naturally supports length extrapolation to 1M tokens without positional encodings.

    2. Quantile Balancing (QB): Load Balancing Without Auxiliary Losses

    One of the most difficult challenges in training ultra-large MoE models is load balancing. Conventional methods, such as those used in Switch Transformer, introduce auxiliary losses that penalize imbalanced expert utilization—but at the cost of interfering with the primary gradient descent objective, which can degrade final model quality.

    The Quantile Balancing mechanism takes a different route. It is completely free of auxiliary losses. Instead, it operates by computing quantile statistics of the routing probability distribution and dynamically adjusting the routing decisions. This gradient-free dynamic control ensures balanced activation across all 896 experts while eliminating the optimization conflict created by auxiliary losses—a significant step forward in convergent stability for large-scale sparse training.

    3. Block Attention Residuals: Addressing Deep-Network Representation Bottlenecks

    Deep Transformers often suffer from representation degradation and vanishing gradients as layers accumulate. The Block Attention Residuals mechanism introduces cross-layer information sharing through residual connections that route fine-grained features from shallow layers directly into deeper layers.

    This design not only breaks the depth-related representation bottleneck but also reduces memory and communication overhead for intermediate activations by reusing information across layers. For trillion-parameter models trained under finite memory constraints, this is a critical enabler.

    Training Paradigm and Post-Training Strategy: Toward Million-Token Contexts and Agentic Reasoning

    Multi-Stage Long-Context Pretraining

    The 1-million-token context window is not achieved in a single step. The training schedule progresses through stages: 8K → 64K → 256K → 1M tokens. This staged expansion lets the model first acquire general language capabilities efficiently, then progressively adapt to longer sequence dependencies. It strikes a pragmatic balance between compute cost and long-text modeling ability.

    Agentic Reinforcement Learning Post-Training

    After pretraining, the model undergoes a post-training phase using agentic reinforcement learning (Agentic RL) over million-token contexts. Long-horizon reasoning tasks commonly cause models to lose track of earlier context or produce broken logical chains. Training under ultra-long-context agentic RL forces the model to optimize its policy across multi-turn interactions and long-chain reasoning, which directly addresses the difficulty of persistent reasoning in complex agentic workflows.

    Conclusion: Engineering Implications and Infrastructure Considerations

    The architectural choices described here represent a comprehensive engineering response to the core constraints of large-scale model development: compute allocation, memory walls, and numerical stability. The solutions—BF16-safe linear attention, auxiliary-loss-free MoE load balancing, and cross-layer residual pathways—offer practical blueprints for the wider developer community.

    For enterprise teams looking to reproduce or fine-tune MoE models at this scale, the underlying infrastructure requirements are substantial. A high-bandwidth heterogeneous compute cluster with efficient containerized orchestration is essential for task scheduling. Furthermore, the multi-stage long-context pretraining process generates massive volumes of intermediate checkpoints, requiring high-performance object storage and parallel file systems to sustain data throughput. Platforms such as Baidu AI Cloud provide general-purpose AI infrastructure—including thousand-card parallel training frameworks, high-bandwidth storage, and comprehensive monitoring and alerting services—that can support the training and inference demands of these ultra-large models.

    An understanding of these architectural innovations and engineering practices enables developers not only to make better use of cutting-edge open-source models, but also to avoid common pitfalls in their own large-scale model development—leading to more efficient and stable intelligent applications.