MoE Multimodal Large Model Architecture Innovation and Engineering Practice: A Deep Dive

    This article examines the architectural and engineering advances behind a trillion-parameter sparse Mixture of Experts multimodal model. It covers hybrid attention with lower-bounded decay parameterization, stable routing for hundreds of experts, progressive context extension, and agent-oriented post-training, with practical guidance for developers and cloud deployment teams.

    1. Introduction: Engineering Challenges of Trillion-Parameter MoE Models

    As large language models scale toward trillions of parameters, the sparsely activated Mixture of Experts (MoE) architecture has become a mainstream approach for balancing compute budgets with model capability. However, when a model must simultaneously handle three demanding requirements, ultra-long context in the million-token range, native multimodal input, and long-horizon reasoning for agent scenarios, engineering complexity rises sharply.

    A recently released open technical report from a leading team presents a complete technology stack designed for these challenges. The system is built around an MoE skeleton with 2.8 trillion total parameters and 104 billion activated parameters per token. It combines incremental attention with gated multi-head latent attention in a hybrid attention module, adopts a Stable LatentMoE expert routing framework, and applies multi-stage progressive pretraining together with million-token agentic reinforcement learning post-training. The resulting model reaches state-of-the-art performance on multiple open benchmarks.

    This article analyzes the technical paradigm from three main perspectives: architecture design, attention innovation, and MoE routing stability. It also discusses which solutions have cross-project reuse value.

    2. Overall Architecture Overview

    2.1 Parameter Scale and Activation Strategy

    The model follows the classic large-total, small-activation pattern: the total parameter count reaches 2.8 trillion, but only about 104 billion parameters are activated for each token. This means that during inference, the computational cost is close to that of a dense model with around one hundred billion parameters, while the model still benefits from the knowledge capacity of a trillion-parameter system.

    This design is naturally suited for deployment on cloud inference clusters. By combining expert parallelism with pipeline parallelism, the compute load for a single inference can be kept within an acceptable range.

    2.2 Multi-Stage Pretraining Pipeline

    Model training is not performed in one step. Instead, it uses a four-stage progressive context extension strategy:

    Stage Context Length Core Objective
    Stage 1 8K Establish basic language and vision alignment
    Stage 2 64K Strengthen medium-to-long text understanding and multi-image association
    Stage 3 256K Adapt to long documents and complex multi-turn dialogue
    Stage 4 1M Support long-horizon agent task planning and extended reasoning chains

    The benefit of this progressive strategy is that early-stage compute costs remain controllable. Later stages fine-tune from existing weights instead of training a million-token context model from scratch, avoiding enormous training expense. For enterprise practice, teams can choose the checkpoint stage that best matches their business scenario before performing domain adaptation.

    2.3 Multimodal and Agent Post-Training

    Vision-language multimodal capability is implemented through native fusion rather than attaching a vision encoder as a post-hoc module. This means visual tokens participate in pretraining from the beginning, so visual features and language representations are aligned in the same latent space.

    During post-training, the model undergoes agentic reinforcement learning at the million-token level. This enables multi-step planning, tool invocation, and self-reflection over extremely long contexts.

    3. Attention Module: From Linear Attention to Hybrid Gating Mechanisms

    3.1 Engineering Bottlenecks of Traditional Linear Attention

    Linear attention reduces attention computation from quadratic complexity to linear complexity, making it a key technique for ultra-long context. However, its actual acceleration on GPUs often falls short of theoretical expectations.

    The root cause is that linear attention requires computing the reciprocal of the cumulative decay factor Gamma within each chunk. Under BF16 precision, the reciprocal of Gamma is highly prone to overflow or underflow. As a result, systems must design a dedicated position pair computation path for diagonal tiles, making it impossible to uniformly use Tensor Core matrix multiplication instructions.

    This problem has persisted across the industry for a long time. Many engineering teams must maintain two sets of kernels, one for diagonal tiles and one for non-diagonal tiles, which increases maintenance cost and prevents thorough optimization.

    3.2 KDA Lower-Bounded Decay Parameterization: Core Idea

    The key improvement proposed in the technical report is lower-bounded decay parameterization. The core transformation is straightforward: the originally unbounded decay function, typically negative softplus applied to log decay, is replaced by a scaled sigmoid form with a lower bound:

    1. g_th = g_min * Sigmoid(e * A_h * z_th)

    Here, g_min is fixed to -5. The engineering implications of this change are:

    1. Bounded numerical range: The reciprocal scaling factor within any 16-token tile is constrained to a safe interval, completely eliminating the risk of BF16 underflow.
    2. Unified computation path: Diagonal and non-diagonal tiles can use exactly the same dense GEMM kernel without special branching.
    3. Natural extrapolation support: Because it does not rely on explicit position encoding, the model can perform zero-shot extrapolation to sequence lengths not seen during training, such as 1M tokens.

    3.3 Gated Multi-Head Latent Attention (Gated MLA)

    On top of KDA, the model further introduces gated multi-head latent attention. MLA, Multi-head Latent Attention, uses low-rank compression to project keys and values into a latent space, significantly reducing memory usage. The gating mechanism allows the model to dynamically decide which attention heads should be activated in the current layer, further improving sparsity and computational efficiency.

    3.4 Attention Residuals (AttnRes): Cross-Layer Information Sharing

    Deep Transformers face a classic contradiction: adding more layers can improve representation capability, but gradient propagation and memory overhead also increase. Block attention residuals address this depth bottleneck by sharing residual information from attention outputs between adjacent layers.

    Specifically, the attention output of one layer undergoes a lightweight projection and is then injected into the attention computation of subsequent layers. This allows deeper networks to avoid learning all low-level features from scratch.

    This mechanism provides two direct benefits. First, the model has stronger representation capability at the same number of layers. Second, because the residual itself is low-rank, communication overhead and additional memory consumption are limited.

    4. MoE Routing: Stability at Scale

    4.1 Stable LatentMoE and 896-Expert Routing

    The model uses a Stable LatentMoE architecture with 896 routed experts. The core meaning of stable here is that training does not collapse or oscillate under extreme sparsity, for example when some experts remain unselected for long periods. The technical foundation includes two key components.

    4.2 SiTU-GLU Activation Function

    Experts in traditional MoE models typically use standard feed-forward networks such as SwiGLU. SiTU-GLU introduces stability optimizations for sparse activation scenarios. By adjusting the gradient properties of the activation function, gradients do not vanish when an expert is sparsely selected and do not explode when activation values are large. This is especially important for training models with nearly one thousand experts.

    4.3 Quantile Balancing

    Load balancing is a classic challenge in MoE training. Traditional solutions usually introduce an auxiliary loss to penalize load imbalance among experts, but this can interfere with the gradient direction of the main task.

    The Quantile Balancing mechanism proposes a dynamic balancing strategy without auxiliary loss. It monitors the selection quantiles of each expert and adjusts routing probabilities in real time so that the actual utilization of all experts tends toward balance.

    Its advantages include:

    • No additional loss term is introduced, so the main training signal remains cleaner.
    • The dynamic adjustment mechanism adapts better to changes in data distribution during training than fixed load-balancing hyperparameters.
    • It remains stable at a scale of nearly one thousand experts, avoiding the expert collapse phenomenon.

    5. Engineering Implications and Reuse Recommendations

    5.1 Implications for Cloud Deployment

    For developers deploying large models on platforms such as Baidu AI Cloud, this technology stack offers several directly applicable ideas:

    • Progressive context extension: It is unnecessary to train a million-token context model in one step. Teams can first fine-tune on medium-length sequences and then extend gradually.
    • Attention kernel unification: For teams developing or optimizing linear attention operators, lower-bounded decay parameterization is an engineering optimization with minimal code change but significant benefit.
    • MoE routing monitoring: In production environments, teams should monitor the invocation frequency of each expert in real time and introduce dynamic adjustment logic similar to Quantile Balancing when necessary.

    5.2 Three Core Techniques Developers Can Reuse

    Technique Reuse Difficulty Expected Benefit
    KDA lower-bounded decay parameterization Low: only requires changing the decay function form Eliminates special computation branches and unifies the GEMM path
    Quantile Balancing Medium: requires implementing routing monitoring and dynamic adjustment Stable load balancing without auxiliary loss
    Block Attention Residuals Medium: requires adjusting inter-layer connections and projections Improves deep network capability and reduces memory pressure

    5.3 Architectural Considerations for Agent Scenarios

    The combination of million-token context and agentic reinforcement learning post-training essentially addresses one core problem: how to keep reasoning and decision-making coherent over extremely long task chains.

    For developers building enterprise agent systems, this means model selection should not focus only on single-turn question answering. Teams must also evaluate multi-step planning, context backtracking, and long-range dependency handling.

    6. Conclusion

    The technical report of this new-generation MoE multimodal model reveals a clear trend: as parameter scale continues to expand, engineering efficiency and training stability are becoming more important competitive factors than simply stacking more parameters.

    Lower-bounded decay parameterization solves the engineering deployment bottleneck of linear attention. Quantile Balancing makes MoE training feasible with nearly one thousand experts. Attention residuals provide a low-cost path to improving deep network capability.

    For developers and enterprise users, understanding and reusing these validated technical patterns will be a key step toward building the next generation of efficient large-model systems.