Large-Scale MoE Model Training: A Deep Dive into Architecture and Reinforcement Learning Infrastructure
Open-source language models are rapidly narrowing the gap with leading proprietary systems. This article examines a next-generation 744B-parameter Mixture-of-Experts model, covering its 40B active parameters, low-rank attention, Muon Split optimizer strategy, multi-token prediction, dynamic sparse attention, and fully asynchronous agent reinforcement learning framework. It also distills practical lessons for scaling model capacity, adapting optimizers, enabling long-context inference, and building reliable RL infrastructure at cluster scale.
Introduction: The Gap Between Open- and Closed-Source Models Is Narrowing
Recent evaluations from major AI benchmarking organizations show that a proprietary model is still widely regarded as the most capable system. However, its lead over the strongest open-source models has narrowed substantially. For the first time, open-source models are approaching the top tier of closed-source systems in overall capability.
A research team recently released a detailed technical report for its next-generation open-source foundation model. At roughly 40 pages, the report provides an unusually comprehensive view of the engineering decisions behind the system. The most discussed topics include dynamic sparse attention, which matched long-context performance previously achieved with 943.7B training tokens using only about 20B additional adaptation tokens; a fully asynchronous reinforcement learning framework for AI agents; and custom-built RL infrastructure.
This article breaks down the report section by section to explain the design principles and engineering trade-offs behind large-scale Mixture-of-Experts models.
1. Model Overview: 744B Total Parameters and 40B Active Parameters
The model uses a Mixture-of-Experts (MoE) architecture. An MoE model contains a large number of expert subnetworks, but a gating and routing mechanism activates only a small subset of them for each input. This allows the model to maintain very high total capacity while keeping the computation required for each inference request within a manageable range.
Its key specifications include:
- Total parameters: 744B, with approximately 40B activated for each inference pass
- Number of experts: 256
- Number of layers: 80
- Comparison with the previous generation: Total parameters increased from 355B to 744B, while active parameters grew from 32B to 40B
- Pretraining data: Increased from 23T tokens to 28.5T tokens, including 27T tokens in pretraining and 1.5T tokens in an intermediate training stage
One important engineering signal is that total parameters more than doubled, while active parameters increased by only 25%. The model therefore prioritizes greater knowledge capacity through sparser activation, rather than allowing inference costs to grow in proportion to total model size.
For deployment teams, this distinction matters. Inference cost is more directly associated with the number of active parameters than with the total number of parameters.
In third-party intelligence evaluations, the model received a score of 50, the highest among open-source models in that evaluation. It also ranked first among open-source models in both text and coding tracks on a crowdsourced arena platform based on blind votes from real users. Overall, its performance was reported to be in the same tier as leading proprietary models.
2. Three Major Architectural Changes
Compared with the previous generation, the new model introduces three major architectural changes.
2.1 Low-Rank Attention and Optimizer Improvements: Muon Split
The model uses a low-rank variant of attention that projects the key-value cache into a lower-dimensional latent space. This substantially reduces memory consumption during inference.
In conventional multi-head attention, the KV cache grows linearly with sequence length. This creates significant memory pressure for long-context workloads. A low-rank approach replaces the full key-value matrices with a smaller number of latent vectors, improving both memory efficiency and inference performance for long sequences.
However, the team encountered an unexpected issue during training. When a new second-order-approximation optimizer was combined with this attention mechanism, its results did not match those of the simpler grouped-query attention approach.
The proposed solution was called the Split strategy. The optimizer’s original core operation applies orthogonalization to an entire parameter matrix. This mathematical operation, commonly implemented through Newton–Schulz iterations, makes update directions more evenly distributed in weight space.
The improved version instead orthogonalizes the projection matrix separately for each attention head. Different attention heads often learn substantially different patterns. Applying a single orthogonalization operation to the entire matrix can reduce these differences and flatten the distinct update behavior of individual heads. Splitting the operation by head allows each head to follow an update geometry that better matches its own role, restoring the expected benefits of low-rank attention.
This finding offers a broader lesson for model engineering: optimizers and attention structures are coupled. When an architectural component is replaced, teams should not assume that optimizer behavior or hyperparameters will transfer smoothly. Small-scale controlled experiments are necessary to validate the combination.
2.2 Multi-Token Prediction
The second architectural change is multi-token prediction (MTP).
A conventional language model predicts only the next token during training. MTP adds additional prediction heads so that the model predicts tokens at multiple future positions simultaneously.
This provides two main benefits:
- Denser training signals: Each position supplies multiple supervision targets, improving data efficiency.
- Speculative decoding: During inference, the additional prediction heads can propose several tokens in advance. The main model then verifies these candidates in parallel, which can significantly improve decoding throughput.
2.3 Dynamic Sparse Attention
The third change is dynamic sparse attention, one of the most widely discussed components in the report.
The central idea is that every token does not need to attend to every token in the previous context. A lightweight indexer dynamically selects the most important key-value pairs for each query. Full attention computation is then performed only on the selected subset.
One particularly notable result reported by the team is that the mechanism matched long-context capabilities previously obtained with 943.7B training tokens after only about 20B additional tokens of adaptation. This suggests that the migration cost from dense attention to sparse attention can be far lower than expected. A pretrained dense-attention model may be adapted to sparse attention at relatively low cost instead of being retrained from scratch.
Sparse attention is particularly valuable for long-context inference. Its attention complexity decreases from O(n²) to approximately O(nk), where k is the number of selected tokens. For 128K-token contexts and beyond, this can substantially reduce time to first token and memory consumption.
3. Training Framework: Fully Asynchronous Agent Reinforcement Learning
During post-training, the model relies heavily on reinforcement learning for agent-oriented tasks.
Traditional RL training is typically synchronous:
- Generate a batch of trajectories
- Score the trajectories
- Update the policy
- Generate the next batch
This workflow becomes inefficient for agent tasks because individual trajectories can vary dramatically in duration. Some may finish in seconds, while others can take tens of minutes. In a synchronous system, the entire training cluster may wait for the slowest samples, resulting in low GPU utilization.
The team adopted a fully asynchronous framework with several key characteristics:
- Decoupled generation and training: Inference workers continuously generate trajectories while training workers continuously consume them. A weight-version synchronization mechanism keeps the two sides aligned.
- Tolerance for partial trajectories: Timed-out samples do not block the system. They can be truncated or deferred for later processing.
- Off-policy correction: Asynchronous generation means that training data may be produced by older policy versions. The report discusses corresponding correction methods to reduce policy drift.
To support this workflow, the team built dedicated RL infrastructure with capabilities including elastic scheduling of inference and training resources, a unified weight-broadcasting channel, and pluggable interfaces for agent environments.
The experience described in the report indicates that, at the scale of thousands of GPUs, the systems engineering complexity of an RL framework can be comparable to that of the pretraining framework itself.
4. Practical Lessons for Developers
Several broadly applicable lessons can be drawn from the report:
- Scale MoE models by expanding total capacity first: When the inference budget is fixed, increasing the number of experts while keeping active computation relatively stable can be a cost-effective way to improve model capacity.
- Revalidate the optimizer when changing the architecture: Optimizer behavior is strongly coupled with parameterization. Every major structural change should be tested through small-scale controlled comparisons.
- Use sparsity before simply adding compute for long contexts: Low-cost sparse-attention adaptation can significantly reduce the barrier to achieving strong long-context performance.
- Move to asynchronous RL early when trajectory lengths vary widely: If task durations have high variance, the inefficiency of a synchronous framework is structural rather than incidental.
For teams planning to train and deploy large models in the cloud, Baidu AI Cloud provides general-purpose capabilities across the training and inference lifecycle. High-performance GPU resources and container platforms can support large-scale distributed training orchestration. Object storage can hold large training corpora and model weights. Message queues can support trajectory and task flows in asynchronous RL systems, while logging, monitoring, and alerting services can improve the observability and reliability of long-running training jobs.
Using these general capabilities, developers can reproduce engineering patterns such as asynchronous training and elastic inference at lower operational cost, translating methods from research reports into production workflows.
Conclusion
The value of this technical report goes beyond demonstrating that open-source models can approach the performance of closed-source systems. It also presents a relatively transparent and reproducible technical path, covering MoE architecture selection, optimizer adaptation, low-cost migration to sparse attention, and the systems engineering required for asynchronous RL.
For large-model practitioners, understanding these implementation details is more valuable than memorizing benchmark scores. The competition between open- and closed-source models will continue, but transparency itself remains one of the open-source ecosystem’s most important advantages.
