A Deep Dive into Large-Scale MoE Model Architecture and Training Techniques
This article breaks down the design and engineering trade-offs behind a large-scale Mixture of Experts (MoE) model with 744B total parameters and 40B activated parameters. It explains why decoupling model capacity from inference compute matters, examines three key architectural changes—Multi-latent Attention (MLA) paired with per-head optimizer orthogonalization, Multi-Token Prediction, and Dynamic Sparse Attention—and covers the role of mid-training in the data pipeline. Developers will find practical guidance on memory budgeting, optimizer granularity, auxiliary head tuning, and validating sparse attention on real workloads.
1. Why the “Large Total Parameters, Small Activated Parameters” Design Matters
Competition among leading open-source models has shifted from simply stacking parameters to an engineering race that decouples parameter scale from inference cost. The core reason Mixture of Experts (MoE) has become the mainstream choice is that it separates model capacity from the compute used in a single forward pass: total parameters determine the upper bound of knowledge capacity, while activated parameters determine the actual compute cost of each inference.
Take the model discussed in this article as an example: 744B total parameters, 40B activated per inference, configured with 256 experts across 80 layers. Compared with the previous generation, total parameters have doubled from the 355B range to 744B, activated parameters have increased from 32B to 40B, and the pre-training corpus has expanded from 23T tokens to 28.5T tokens (27T for pre-training and 1.5T for mid-training).
There is an engineering implication here that is easy to overlook: activated parameters increased by only about 25% while total parameters doubled, which means “capacity grows faster than compute.” This is exactly where MoE gets its cost efficiency, but it also raises the bar for memory capacity, expert-parallel communication, and load balancing.
On public evaluation dimensions, this class of model reached the 50-point range on composite intelligence index leaderboards for the first time, ranking first among open-source models; in human-preference arena comparisons, it held leading open-source positions on both the text and code sub-leaderboards, placing it in the same tier as leading overseas closed-source models. It is worth emphasizing that leaderboards only reflect relative positions on specific evaluation sets, and engineering selection should still be validated a second time against the real distribution of your own business.
2. Three Key Architectural Changes
Relative to the previous generation, this generation has three main architectural changes, each addressing a different pain point: “memory efficiency,” “training convergence stability,” and “long context and inference throughput.”
2.1 Multi-latent Attention Paired with Optimizer Orthogonalization Granularity
The model uses Multi-latent Attention (MLA), an idea that shares its roots with existing low-rank KV compression schemes in the industry: project the key-value cache into a low-dimensional latent space and cache only the compressed representation, significantly reducing memory usage and bandwidth pressure in long-text scenarios.
However, the team observed a counterintuitive phenomenon in training practice: when MLA was combined directly with a certain class of matrix-orthogonalization optimizers (typically Muon-style methods used to stabilize large-scale matrix training), convergence actually fell behind a grouped-query attention scheme with a simpler structure and fewer groups (GQA-8).
The root cause lies in the granularity at which orthogonalization is applied. The original approach applied orthogonalization uniformly to the entire projection matrix, but MLA’s projection matrix is semantically split into a “shared latent part plus a multi-head decompression part,” and whole-matrix orthogonalization breaks this structural prior, forcing the update scale of each attention head to be flattened.
The team’s solution is described as “optimizer split” (Muon Split): push orthogonalization down from the whole matrix to each individual attention head. A sketch is shown below:
# Pseudocode: whole-matrix orthogonalization vs. per-head orthogonalizationdef muon_update(W, heads, mode="split"):if mode == "whole":return orthogonalize(W) # structural prior is brokenWs = W.view(heads, -1) # [n_heads, per_head_dim]Ws = orthogonalize(Ws) # orthogonalize each head independentlyreturn Ws.view_as(W)
The value of this change is that it preserves MLA’s memory advantage while bringing the stability of high-dimensional matrix training back into a usable range. The engineering takeaway is that the optimizer and the attention structure are not orthogonal, independent concerns; the structural prior must be respected by the optimizer.
2.2 Multi-Token Prediction: Increasing Training Signal Density
The second change is Multi-Token Prediction. Traditional autoregressive training supervises only the next token at each position, so the training signal is sparse; multi-token prediction predicts several future tokens at each position simultaneously, which is equivalent to increasing the supervision density per sample without adding more data.
A common implementation keeps the main output head and attaches several lightweight prediction heads that share the backbone representation:
# Illustration: producing predictions for multiple future positions in one forward passh = backbone(tokens) # backbone representationlogits_next = head_main(h) # main task: t+1for k, head in enumerate(aux_heads): # auxiliary tasks: t+2, t+3 ...loss += w[k] * ce(head(h), targets[k])
The benefits show up in two ways: first, faster convergence and higher sample efficiency during training; second, the auxiliary heads can be discarded at inference time without adding deployment cost, and they can also be reused for speculative decoding to improve generation throughput. Note that weight decay and the number of auxiliary heads need careful tuning, or they will interfere with the main task distribution.
2.3 Sparse Attention: Putting a Ceiling on Long-Context Cost
The third change is Dynamic Sparse Attention (DSA). Its goal is not to improve single-point accuracy but to compress long-sequence attention cost from quadratic into a controllable range: first select a small number of key-value positions most relevant to the current query at a lower cost, then perform exact attention computation only on those positions.
In engineering terms, this usually involves three steps: lightweight scoring, Top-K selection, and sparse exact computation. Three points deserve attention in practice: first, the selection strategy must be consistent with the training distribution to avoid “selecting the wrong blocks” at inference; second, coordinate with KV cache compression schemes so memory gains are not double-counted; third, reserve a small number of global tokens for extremely long contexts to prevent critical information from being missed entirely.
3. Data Mixing and the Role of Mid-Training
Changes on the data side are equally important: of the 28.5T tokens, 27T are used for pre-training and 1.5T for mid-training. The value of mid-training is often underestimated; it typically handles three types of tasks: upsampling high-quality corpora, injecting long-context capability, and targeted reinforcement of code and reasoning data. For engineering teams, this means “base capability” is not a one-time output but a resource that can be scheduled in stages.
4. Practical Recommendations for Developers
- Estimate the memory budget based on “total parameters” rather than “activated parameters”; activated parameters only determine compute, not the cost of resident weights.
- When using low-rank KV compression attention, always check whether the optimizer’s orthogonalization granularity matches the structure.
- Enable multi-token prediction auxiliary heads with a small weight first, observe the main task metrics, and then adjust gradually.
- Before deploying sparse attention, validate recall on real business long texts to avoid “saving compute while losing information.”
- Base model selection on your own evaluation sets; public leaderboards serve only as an initial screening reference.
Overall, the progress of this generation of large-scale MoE models is not a single technique but a systems-engineering combination of “capacity expansion + memory compression + denser training signals + inference sparsification.” Understanding the trade-offs behind each change is more valuable in the long run than memorizing parameter counts; on top of the model services and containerized deployment capabilities offered by platforms such as Baidu AI Cloud, teams can validate and launch this class of large models with greater ease.
