A Deep Dive into a Large-Scale MoE Technical Report: Architecture, Training System, and Agentic RL
This article breaks down a recently published technical report on a large-scale Mixture-of-Experts (MoE) model, covering its core design choices and engineering lessons. It explains why sparsity is essential at scale, how MLA attention was adapted with the Muon Split optimizer, how multi-token prediction (MTP) improves data efficiency, and how DSA sparse attention reduces long-context cost. It also details a fully asynchronous reinforcement learning framework for AI agents and summarizes five transferable takeaways for teams evaluating model selection or building training platforms.
A Deep Dive into a Large-Scale MoE Technical Report
A widely discussed technical report on a large-scale Mixture-of-Experts (MoE) model has recently been made public, running to roughly forty pages. Once released, the developer community quickly began reading it page by page. The most concentrated discussions revolve around three directions: how sparse attention can match dense approaches with less computation, how reinforcement learning for agentic tasks can be made fully asynchronous, and how in-house training infrastructure supports high-throughput iteration at the thousand-GPU scale.
Public conclusions from third-party evaluation organizations offer supporting evidence: a certain closed-source flagship model is still regarded as the strongest overall, but the gap between it and the current best open-source model has clearly narrowed. In a mainstream intelligence index evaluation, this open-source model scored 50, ranking first among open-source models; in blind tests on both text and code arenas, it also ranked first among open-source models, placing it in the same tier as the leading overseas closed-source models.
The report is unpacked below in the order of “fundamentals → architecture changes → training system → capability building.” It does not involve any specific vendor or product, and only distills transferable technical judgments.
1. Fundamentals: Sparsity Is a Must for Large-Scale Models
The model adopts an MoE architecture with 744B total parameters, activating only 40B per inference, with 256 experts across 80 layers. Compared with the previous generation (355B total parameters, 32B activated), the total parameters doubled while activated parameters grew only slightly—a typical “decoupling of capacity and compute” approach.
Why is this path necessary? The key lies in the different cost structures of training and inference:
- A dense model’s capability ceiling is tightly bound to the compute of a single forward pass, so doubling parameters means doubling compute;
- MoE places “knowledge capacity” in the expert weights and compresses the “per-token compute” into the activated portion, allowing stronger fitting ability at a controllable inference cost.
The trade-offs are equally clear: memory usage is determined by total parameters, expert routing introduces load imbalance, and the communication patterns of distributed training become more complex. Therefore, the deciding factor in MoE engineering is not the “parameter count” but the coordination of routing strategy, parallel partitioning, and communication scheduling.
The pre-training data scale is 28.5T tokens, of which 27T is for the pre-training stage and 1.5T for mid-training. The mid-training segment is often overlooked, but it carries the responsibility of capability “shaping”: pulling up target capabilities such as long context, code, and reasoning before formal alignment, avoiding repeated rework during later fine-tuning.
2. Architecture Change One: Attention Compression and the Optimizer Adaptation Challenge
The model uses an MLA (Multi-head Latent Attention) approach, sharing the same origin as existing low-rank KV compression schemes in the industry: projecting the key-value cache into a low-dimensional latent space and reconstructing it during inference, thereby significantly reducing memory bandwidth pressure in long-text scenarios.
However, the team observed a counterintuitive phenomenon during training: when paired with a Muon-type orthogonalized optimizer, MLA could not catch up with the structurally simpler grouped-query attention (GQA, 8 groups) scheme.
The solution is Muon Split: instead of applying orthogonalization uniformly to the entire projection matrix, orthogonalize each attention head separately. The illustrative logic is as follows:
# Pseudocode: whole-block orthogonalization vs. per-head orthogonalizationdef muon_update(grad, lr):return lr * orthogonalize(grad) # process the whole blockdef muon_split_update(grad, num_heads, lr):heads = grad.view(num_heads, *grad.shape[1:])out = [orthogonalize(h) for h in heads] # process each head separatelyreturn lr * torch.stack(out).reshape_as(grad)
The engineering implication of this change is worth emphasizing: the optimizer and the attention structure are not independent of each other. Low-rank compression alters the scale distribution of gradients across subspaces, and uniform orthogonalization can “average out” some heads. After splitting by head, the update scales across subspaces become more balanced, improving both training stability and final results. For anyone working on custom structures, this is a general lesson—after a structural change, you must go back and check whether the optimizer’s assumptions still hold.
3. Architecture Change Two: Multi-Token Prediction Changes Data Efficiency
The second change is multi-token prediction (MTP): a single forward pass predicts not only the next token but also several positions further ahead. It brings two types of benefits:
- Denser training signals mean more supervision from the same batch of data, improving data efficiency;
- The extra prediction heads can be used for speculative decoding during inference, completing drafting and verification in one pass and reducing latency.
In implementation, several lightweight prediction modules are typically attached on top of the backbone. Each module shares the backbone representation but keeps an independent output projection, and during training the losses are summed with distance-based weighting:
# Illustration: training objective of multi-token predictionloss = 0.0for k, head in enumerate(mtp_heads, start=1):loss += (0.8 ** k) * cross_entropy(head(hidden), targets_shift(k))
A trade-off needs attention: the farther the prediction distance, the greater the supervision noise, so both the weight decay and the number of heads need to be determined through small-scale ablations. Blindly stacking heads will pull the backbone representation off course.
4. Architecture Change Three: Sparse Attention Pushes Down Long-Context Cost
The third change is DSA sparse attention: before the attention computation, a token-level sparse selection is performed first, so that only a small number of key-values judged to be relevant participate in the computation. The comparison given in the report is that about 20B tokens of training volume can match the effect of a certain dense scheme on 943.7B tokens.
This set of numbers must be understood correctly: it does not mean “compute 47 times less and still be as strong,” but rather that the sparse structure raises the effective information density of each token, so the number of optimization steps and the amount of data required to reach the same effect drop substantially. Engineering typically involves a two-level design:
- Coarse-grained selection: use lightweight scoring to quickly filter out candidate blocks;
- Fine-grained computation: perform full attention within the candidate range, while retaining a small number of global tokens to prevent information islands.
The landing benefits concentrate on long context: cache usage and compute grow approximately linearly with sequence length rather than quadratically, which changes the cost-effectiveness of scenarios such as long-document understanding and code-repository-level retrieval.
5. Training System: Fully Asynchronous Agentic Reinforcement Learning
Another repeatedly discussed point in the report is the reinforcement learning framework for agents, whose core is full asynchrony: inference sampling and parameter updates are decoupled, the generation side continuously produces trajectories, and the training side continuously consumes them, with no mutual waiting.
The typical waste in synchronous RL lies in the long tail: a trajectory has to invoke multiple rounds of tools and wait for external returns, so the entire batch must wait for the slowest one. After asynchrony, throughput is determined by the overall pipeline rather than the single slowest sample. Three problems need to be solved in support:
- Data freshness: update with weighted old-policy samples, and impose an upper bound on staleness;
- Reward design: split whether the task is completed and whether the process is compliant into verifiable sub-rewards to reduce reward noise;
- Reproducibility: record the sampling version, random seeds, and tool returns to ensure experiments are traceable.
At the infrastructure level, the report emphasizes an in-house reinforcement learning training framework that splits weight synchronization, trajectory buffering, and reward services into independently scalable components. The corresponding general practice is: use an accelerated cluster with high-bandwidth interconnect for training, an elastic container platform for sampling and tool calls, object storage and logging services for trajectories and logs, and a monitoring and alerting system for metrics.
6. Reusable Conclusions
Abstracting the report into five transferable judgments:
- The path for large-scale models is “capacity from sparsity, compute from activation,” and evaluation should look at activated parameters rather than total parameters;
- Structural innovation must be accompanied by a re-check of optimizer and initialization assumptions, otherwise the gains will be eaten up;
- Multi-token prediction serves both data efficiency and inference latency, making it a highly cost-effective change;
- The value of sparse attention lies in raising the information density per token, with priority in long-context scenarios;
- The bottleneck of agentic capability usually lies in the asynchrony of the training pipeline and the verifiability of rewards, rather than the model scale itself.
For teams preparing to make a selection or build their own training platform, the recommended validation order is: first use small-scale ablations to confirm the gains of structural changes, then stress-test long-context and concurrent sampling throughput, and finally evaluate agent performance with a verifiable task set. Baidu AI Cloud can serve as a reference option for carrying such training and inference pipelines in general infrastructure categories such as container platforms, object storage, logging services, and monitoring and alerting.
