Long-Context Training for a 2.8T-Parameter MoE Model: Challenges and Key Techniques

    This article examines the long-context training challenges of a 2.8-trillion-parameter MoE multimodal model with 104 billion activated parameters and native 1M-token context. It covers the numerical stability of linear attention and KDA bounded decay parameterization, auxiliary-loss-free Quantile Balancing for 896 routed experts, Block Attention Residuals for cross-layer information sharing, and a progressive 8K-to-1M training paradigm with million-token Agentic RL post-training. Developers will learn the engineering trade-offs involved in scaling context length and expert count.

    In 2026, a MoE multimodal large model with 2.8 trillion total parameters and 104 billion activated parameters was released. The model natively supports visual multimodal input and a 1M-token ultra-long context. This is not merely an accumulation of parameter count, but a systematic innovation in architecture design and training methodology. For developers working to push the boundaries of model scale and context length, the model’s technical report reveals many engineering practices of substantial value.

    1. Core Challenges: When Model Scale Meets Length Limits

    The combination of extremely large parameter count and ultra-long context does not create a linear increase in difficulty. Instead, it produces an exponential explosion in complexity. Specifically, there are three core challenges.

    First, there is the computational efficiency problem of ultra-long context. When sequence length reaches the million-token level, standard attention has a theoretical complexity of O(n²), but its memory access overhead and intermediate state storage on real hardware have already become an insurmountable bottleneck. One feasible direction is to adopt linear attention and use the associativity of matrix multiplication to reduce computational complexity to O(n). However, this linearization inevitably introduces information compression loss, and balancing efficiency and accuracy is highly challenging.

    Second, there is the training stability problem of MoE with a massive number of experts. When the number of routed experts reaches hundreds or even 896, the model faces two deeper risks. One is severe load imbalance among experts, which causes many experts to “starve” and leaves model capacity underutilized. The other is that under extremely sparse conditions, small perturbations in routing strategy can be rapidly amplified, triggering training collapse.

    Third, there is the long-horizon reasoning capability problem of Agent systems. A 1M-token context is not only for processing long documents. More importantly, it gives the model long-term planning and memory capabilities in complex Agent tasks. Real Agent scenarios involve multi-turn tool calls, environment feedback, and policy adjustment, requiring the model to maintain logical coherence and state tracking across extremely long dialogue histories.

    2. Attention Mechanism Reconstruction: Industrial Deployment of Linear Attention

    To address the numerical stability weaknesses of linear attention in million-token scenarios, the model proposes a bounded decay parameterization scheme for the incremental attention mechanism (KDA).

    In traditional Delta Net or linear attention implementations, when cumulative decay factors are computed inside chunks, their reciprocals can easily overflow or underflow under BF16 precision. In particular, diagonal tiles need to take an explicit position-pair path and cannot directly call Tensor Core matrix multiplication acceleration, causing a significant drop in training throughput.

    The core breakthrough is to refactor the unbounded Negative-Softplus logarithmic decay function into a lower-bounded scaled Sigmoid form. This parameterization locks the reciprocal scaling factors inside any 16-token chunk within a fully safe numerical range, eliminating the risk of numerical underflow in diagonal tiles. The direct benefit is that all causal chunks—whether diagonal or not—can invoke dense Tensor Core GEMM acceleration, greatly improving operator execution efficiency in engineering terms.

    The most important engineering value of this scheme is its minimal implementation cost. It does not require changes to the model’s main architecture; adjusting only the parameterization method can substantially improve throughput for long-context training and inference. This allows linear attention to achieve the theoretical advantage of linear complexity without sacrificing hardware matrix multiplication acceleration, unifying algorithmic advancement and hardware compatibility.

    3. MoE Load Balancing: Auxiliary-Loss-Free Quantile Balancing

    In MoE models with massive numbers of experts, load balancing is a key factor determining training success. Traditional load balancing schemes rely on auxiliary loss functions to constrain routing distribution. However, at the extreme scale of 896 routed experts, the gradient noise and capacity utilization loss introduced by auxiliary loss are no longer acceptable.

    The model’s Quantile Balancing mechanism takes a completely different technical path. It abandons auxiliary loss and dynamically adjusts a learnable bias term for each expert by collecting online statistics on quantiles of routing scores. When an expert is selected too many times in the last N training steps, its bias is automatically increased to lower its selection probability; otherwise, the bias is decreased.

    The core advantages of this method are threefold:

    • Zero auxiliary loss means there is no interference with main-task gradients.
    • Quantile statistics are naturally insensitive to extreme values and are extremely stable numerically.
    • The frequency and magnitude of dynamic bias adjustment can be controlled independently, avoiding routing oscillation.

    In training engineering, quantile updates use an online EMA approach, and the computational overhead is almost negligible. This mechanism ensures balanced utilization of 896 routed experts under extremely sparse conditions, effectively improving model capacity and training stability.

    4. Cross-Layer Information Sharing: The Deep Value of Block Attention Residuals

    In deep Transformer models, diminishing marginal returns from adding layers and optimization difficulty are widely recognized problems. The model adopts Block Attention Residuals (Block AttnRes) to achieve cross-layer information sharing.

    Specifically, the attention output of each layer is not only used by subsequent modules in the same layer, but is also passed as a residual across layers into the attention module input of higher layers. This design breaks the information isolation between traditional Transformer layers, enabling higher-layer attention to integrate local patterns already refined by lower layers over a larger receptive field, thereby improving the representational capacity and training stability of deep models.

    From an engineering practice perspective, Block AttnRes also brings additional system-level benefits. The cross-layer residual sharing mechanism reduces upper layers’ dependence on recomputing intermediate activations, lowering memory usage and communication overhead during training. For a model with 2.8 trillion parameters, savings in activation memory directly translate into larger batch sizes or longer context segments, which significantly improves actual training throughput.

    5. Training Paradigm: Multi-Stage Evolution from 8K to 1M

    The model’s training process did not attempt to expand to a 1M context in one step. Instead, it adopted a highly engineered multi-stage training strategy and advanced progressively:

    • The initial stage started from an 8K context, where the model’s foundational capabilities were trained sufficiently.
    • It was extended to 64K, introducing longer cross-document dependency modeling.
    • It was further advanced to 256K, where a large number of long-distance capabilities were activated.
    • The final sprint reached 1M, directly challenging the extreme scenario of million-token ultra-long context.

    The internal logic of this progressive context extension strategy is that skipping intermediate stages and directly training on ultra-long contexts leads to catastrophic forgetting—the model loses basic capabilities in ultra-long contexts. Progressive advancement allows the model to fully adapt to the computational pattern of each new length before moving to the next stage.

    On top of multi-stage pretraining, the model also adds million-token-level Agentic reinforcement learning post-training. Compared with regular RLHF, Agentic RL training scenarios require the model to perform multi-turn reasoning and action decisions based on ultra-long contexts. The delayed reward signal at each step is sparsely and deeply distributed across the entire sequence. This stage focuses on strengthening the model’s reasoning-chain completeness and state tracking capabilities in long-horizon Agent tasks.

    6. Technical Summary and Takeaways

    The technical report offers several important insights for engineering practice:

    • Numerical safety is the prerequisite for any scaling gain: Although linear attention has a theoretical O(n) complexity advantage, it cannot leverage Tensor Core compute unless numerical precision locks are removed. Bounded parameterization provides an industrial-grade solution with extremely low intrusion.
    • Load balancing should move from “constraint” to “guidance”: The auxiliary-loss-free Quantile Balancing mechanism provides a new paradigm for ultra-large-scale MoE training—rather than forcibly constraining behavior, it dynamically guides distribution.
    • Cross-layer information sharing is the “lubricant” of deep models: Block AttnRes not only addresses representation bottlenecks, but also delivers immediate engineering benefits and memory savings.
    • Progressive training is the necessary path to ultra-long context: The progressive strategy from 8K to 1M demonstrates the extreme importance of curriculum learning in large-scale model training.

    For developers exploring ultra-large-scale model training, long-context modeling, or MoE architecture optimization, the three core techniques revealed in the technical report—KDA parameterization, Quantile Balancing, and Block AttnRes—are highly relevant engineering methods. Together they demonstrate one point: extreme model capability comes not only from architectural innovation, but also from granular refinement of numerical precision, load distribution, and training paradigms.