Inside a Trillion-Parameter MoE: Architecture and Training Practices for Ultra-Large Sparse Models

    As large language models scale in parameters and applications, developers face three core bottlenecks: computational efficiency over ultra-long contexts, training stability in massive Mixture-of-Experts (MoE) architectures, and long-horizon reasoning for AI agents. A next-generation ultra-large MoE multimodal model has recently demonstrated top-tier results in its technical report and open benchmarks, offering a valuable engineering blueprint. This article strips away product specifics and examines its architectural innovations and training strategies, providing reusable technical insights for developers.

    1. Overall Architecture and Scale

    The model uses a typical sparse Mixture-of-Experts architecture with 2.8 trillion total parameters and roughly 104 billion activated parameters per token. On the multimodal side, it natively supports visual inputs and handles contexts of up to 1 million tokens.

    For attention, the architecture combines an incremental attention mechanism with a gated multi-head latent attention mechanism, and uses attention residuals to enable efficient cross-layer information sharing. On the MoE side, the model employs a stable latent MoE architecture with 896 routed experts, paired with a specific SiTU-GLU activation function and a quantile-based balancing mechanism, maintaining high training stability and inference efficiency under extreme sparsity.

    2. Key Technical Innovations

    Three key innovations explain how the architecture sustains strong performance at this scale and context length:

    2.1 Lower-Bounded Decay Parameterization: Solving Linear Attention’s Numerical and Compute Bottlenecks

    For ultra-long contexts, linear attention and its variants (such as Delta Net) are often used to reduce attention complexity. However, in conventional implementations, intra-chunk computation involves taking reciprocals of accumulated decay factors, which in limited precision (e.g., BF16) causes severe numerical overflow or underflow.

    This numerical bottleneck forces the diagonal blocks onto an explicit position-wise path, preventing full use of Tensor Core matrix-multiply acceleration on modern GPUs. To address this, the architecture introduces a “lower-bounded decay parameterization” that replaces the unbounded Negative-Softplus function for log-decay with a lower-bounded Scaled Sigmoid:

    1. gth = gmin * Sigmoid(eAhzth) # where gmin = -5 is fixed

    This clever parameterization strictly confines the reciprocal scaling factors within any 16-token tile to a safe numerical range. The technique is highly reusable: with minimal engineering changes, it eliminates the special computation branch for diagonal blocks, allowing all causal blocks (diagonal and off-diagonal) to directly invoke dense Tensor Core GEMM operations and significantly boosting throughput. The mechanism also naturally supports direct extrapolation to 1M-token contexts without positional encoding.

    2.2 Auxiliary-Loss-Free Dynamic Load Balancing

    In a massive MoE architecture with nearly a thousand routed experts, load balancing is central to training stability. Traditional approaches typically introduce auxiliary losses to force balanced load distribution, but this often degrades final model performance.

    This model instead adopts a quantile-based balancing mechanism—an auxiliary-loss-free, fast dynamic load balancing strategy for ultra-large MoE. By statistically tracking and dynamically adjusting load quantiles across experts, it achieves smooth scheduling across vast numbers of experts without introducing extra gradient interference. Combined with the SiTU-GLU activation, the mechanism effectively avoids the expert collapse or overload failures common in traditional MoE training, ensuring robustness under extreme sparsity.

    2.3 Block-Level Attention Residuals: Breaking the Deep Transformer Bottleneck

    As Transformers grow deeper, deep-layer representations suffer from information degradation and vanishing gradients, while memory and communication overhead rise sharply. The architecture introduces block-level attention residuals to break through these limits of traditional deep networks.

    By establishing attention residual connections across layers, the model enables efficient cross-layer information sharing and reuse. This not only mitigates information loss in deep networks but also significantly reduces the memory footprint of intermediate activations and inter-layer communication overhead, making multi-hundred-billion to trillion-parameter deep networks practically feasible.

    3. Training Paradigm: Multi-Stage Pretraining and Agentic RL Post-Training

    The training strategy follows a progressive multi-stage pretraining scheme, expanding the context window from 8K to 64K, then 256K, and finally 1M tokens. This gradual context extension helps the model learn sequence dependencies at different resolutions, avoiding the wasted compute and performance degradation that come from training directly on ultra-long sequences.

    In post-training, the model incorporates million-token-scale Agentic RL (reinforcement learning). This strategy optimizes single-task performance but focuses on solving the long-horizon reasoning challenges agents face in complex task flows. Through reinforcement learning from real-world agent interactions, the model learns to maintain logical coherence and goal orientation across long instructions and multi-step tool calls.

    4. Takeaways for Engineering Practice

    From an engineering evolution perspective, this new generation of ultra-large MoE models offers valuable lessons:

    • Optimize operators before scaling compute. For ultra-long contexts, lower-bounded decay parameterization shows that a simple mathematical transformation can resolve hardware-level numerical bottlenecks and unlock Tensor Core’s full throughput.
    • Avoid auxiliary losses for MoE scaling. MoE expansion should not rely on auxiliary losses that compromise the main task loss; statistically driven dynamic quantile balancing is a preferred approach for future ultra-large sparse architectures.
    • Agentic RL is key to complex reasoning. For post-training, Agentic RL is a critical path to improving complex reasoning. Teams building agents can apply long-sequence reinforcement learning to strengthen multi-turn dialogue and tool-use capabilities in their own models.

    Overall, this architecture sets a new technical benchmark for efficient training and inference of trillion-parameter models. Developers can selectively adopt its attention optimization and load balancing strategies based on their own compute budgets and business needs to improve the engineering efficiency of their models.