Deep Dive into a Next-Gen Open-Source MoE Architecture: Sparse Attention and Asynchronous RL Training
This article breaks down the core techniques behind a ~700B-parameter open-source MoE model that activates only ~40B parameters per token, based on a recently released technical report. It covers the parameter economics of MoE, three key architectural changes (per-head orthogonalized optimization with low-rank attention, multi-token prediction, and dynamic sparse attention), a fully asynchronous agent RL training framework, and practical takeaways for developers building or fine-tuning large models.
Introduction: The Gap Between Open and Closed Models Is Closing
One clear trend in the LLM field over the past year is that the capability gap between open-source models and leading closed-source models is shrinking fast. Across multiple public evaluation systems—such as composite intelligence indices and human-preference arena rankings—the latest generation of open models now sits in the same tier as top closed models on both text understanding and coding.
This shift is not the result of a single algorithmic breakthrough, but of systematic engineering progress across four dimensions: architecture design, data scale, training methodology, and infrastructure. Using a recently published ~40-page technical report for a large open-source model as our reference, this article dissects its core technical points to help developers understand how a model with ~700B total parameters—but only ~40B activated per inference—is designed and trained.
1. The Base Model: Parameter Economics Under MoE
1.1 The Basic Logic of Mixture-of-Experts
MoE (Mixture of Experts) is the mainstream architecture for very large models today. Its core idea: although the model holds massive parameters, only a small subset of “expert networks” is activated per token via a routing mechanism, decoupling knowledge capacity from compute cost.
The model in question has the following profile:
- ~744B total parameters, with only ~40B activated per forward pass
- 256 experts, 80 layers deep
- Pre-training corpus scaled from ~23T tokens in the previous generation to 28.5T tokens (27T for standard pre-training plus 1.5T in a mid-training stage)
Compared to the previous generation (~355B total, ~32B activated), a clear design orientation emerges: total capacity doubles while activated parameters increase only slightly. This means per-inference cost growth is tightly controlled, while the model’s knowledge storage and generalization capacity expand significantly.
1.2 Why “Activated Parameters” Is the Key Metric
When evaluating MoE models, developers should distinguish two numbers:
| Metric | Meaning | Impact |
|---|---|---|
| Total parameters | Upper bound of knowledge capacity | Determines capability ceiling and storage cost |
| Activated parameters | Parameters actually computed per token | Determines inference latency and compute consumption |
An MoE model activating 40B parameters has inference costs roughly comparable to a dense model of the same size, while benefiting from a 744B total capacity. This is the fundamental reason MoE has become the mainstream route for open-source LLMs: maximizing the capability ceiling within a limited inference budget.
2. Three Key Architectural Changes
Compared to its predecessor, the model introduces three key architectural changes: low-rank attention paired with an improved optimization strategy, multi-token prediction, and dynamic sparse attention.
2.1 Low-Rank Attention with Per-Head Orthogonalized Optimization
The attention mechanism follows the Multi-latent Attention (MLA) route: low-rank compression of the Key-Value cache substantially reduces memory usage during long-sequence inference, delivering significantly better throughput in long-context scenarios than traditional multi-head attention.
However, the team hit a representative engineering problem during training: when using a new second-order approximate optimizer (based on matrix-orthogonalized updates) together with this low-rank attention, training results were actually worse than with the structurally simpler Grouped-Query Attention (GQA).
The root cause: the optimizer applies unified orthogonalization to entire projection matrices, but in low-rank attention the numerical distributions vary considerably across attention heads, so unified processing disrupts each head’s learning dynamics. The solution is “per-head orthogonalization” (the Split strategy)—orthogonalizing each attention head independently instead of the whole weight matrix:
# Illustration: from whole-matrix to per-head orthogonalizationdef muon_split_update(weight, num_heads):head_dims = weight.chunk(num_heads, dim=0)updated = [orthogonalize(h) for h in head_dims]return torch.cat(updated, dim=0)
This case carries a general lesson for engineering practice: optimizers and architectures are strongly coupled. When swapping architectural components, the optimization strategy must be adapted and validated in parallel—never assume a “stronger” optimizer is superior on every structure.
2.2 Multi-Token Prediction
Multi-Token Prediction (MTP) trains the model to predict several subsequent tokens simultaneously rather than only the next one. Its value shows up in two ways:
- Stronger training signal: each position provides multiple supervision signals, improving data efficiency and representation quality;
- Faster inference: MTP heads can be used for speculative decoding, proposing multiple candidate tokens at once that the main model verifies in parallel, significantly reducing generation latency.
2.3 Dynamic Sparse Attention: The Cost Solution for Long Context
One of the most-discussed techniques in the report is Dynamic Sparse Attention (DSA). Traditional full attention scales quadratically with sequence length, making costs uncontrollable in long-context scenarios. The sparse attention idea: for each query position, attend only to the small set of “most important” key-value positions rather than all of them.
The key is that the sparsity pattern must be dynamic and learnable—a lightweight indexing network selects the top-k relevant positions in real time based on the current query. This preserves the ability to model long-range dependencies while cutting computation from O(n²) to near-linear.
The most striking data point in the report: with this mechanism, the model achieved long-context performance with only ~20B tokens of additional training that the baseline approach required 943.7B tokens to reach. The takeaway: in building long-context capability, architectural efficiency often has more leverage than simply scaling data.
3. A Fully Asynchronous Agent RL Training Framework
In post-training, the model focuses on strengthening agent capabilities, and its training framework adopts a fully asynchronous design.
In a traditional RLHF-style pipeline, rollout (sampling), reward evaluation, and parameter updates run synchronously in sequence: training begins only after all sampling completes, so GPUs sit idle during sampling and wait for data during training. The asynchronous framework decouples the three:
- The sampling cluster continuously interacts with the environment to produce trajectories, writing them into an experience buffer;
- The training cluster continuously draws batches from the buffer to update parameters;
- Old and new policy versions are managed via version numbers, with importance sampling to correct bias.
# Illustration: role decoupling in asynchronous RLasync def rollout_worker():while True:traj = env.run(policy=current_policy())buffer.push(traj, policy_version=current_policy().version)async def trainer():while True:batch = buffer.sample()batch = importance_correct(batch) # correct policy-version driftpolicy.update(batch)
The challenge of asynchronous architecture is policy lag: the policy version used during sampling trails the version being trained, requiring mechanisms like importance weighting to control bias. To address this, the team built custom training infrastructure that schedules sampling and training tasks across heterogeneous clusters, maximizing resource utilization.
4. Practical Takeaways for Developers
- Focus on activated parameters, not total parameters, when selecting architectures: deployment cost is determined by activation volume; MoE delivers both large capacity and low cost.
- Optimizers must be co-tuned with architecture: when changing attention structures, always re-validate the compatibility of the optimization strategy.
- Prioritize sparsification for long context: before scaling data, evaluate structural solutions like sparse attention—the ROI can be an order of magnitude higher.
- Make agent training platforms asynchronous early: synchronous pipelines waste massive resources in large-scale RL; asynchronous decoupling is a necessary step toward scale.
Conclusion
Open-source models approaching the closed-source frontier is driven not by a single innovation, but by the co-evolution of architecture, data, training methods, and infrastructure. For teams looking to build or fine-tune their own large models, understanding the trade-off logic behind these engineering decisions is more valuable than reproducing any single component. On cloud platforms, developers can also use general-purpose container platforms, object storage, and distributed training capabilities to set up experimental environments with similar architectures and validate their own model designs at low cost.
