Open-Source LLM Architecture Explained: Sparse Attention and Asynchronous Reinforcement Learning
This article explains the architecture of an open-source large language model. It covers the sparse mixture-of-experts design, Multi-head Latent Attention with Muon Split, multi-token prediction, sparse attention for long contexts, and an asynchronous framework for agentic reinforcement learning. It also notes which figures and results the source material does not verify.
Scale and Efficiency: Figures Reported in the Original Report
The model uses a sparse mixture-of-experts architecture. At each inference step, a gating mechanism activates only some of the experts. This lets the model keep a large knowledge capacity while controlling compute cost. The table below lists the figures for the previous generation and the current generation, as reported in the original report.
| Metric | Previous generation | Current generation |
|---|---|---|
| Total parameters | 355B | 744B |
| Active parameters | 32B | 40B |
| Pretraining data | 23T tokens | 28.5T tokens (27T pretraining data plus 1.5T mid-training data) |
| Expert modules | Not mentioned in the original report | 256 |
| Transformer layers | Not mentioned in the original report | 80 |
Based on these numbers, the parameters activated per inference step account for about 5.4% of the total parameters (40 ÷ 744). The original report states that the model scored 50 on a mainstream intelligence index. It also states that the model ranked first among open-source models in the text generation and code generation categories of a third-party human evaluation arena. The original report does not specify the evaluation version, date, or exact leaderboards. Check the official release before citing these results.
Multi-head Latent Attention and Muon Split
Multi-head Latent Attention (MLA) reduces GPU memory usage by compressing the dimensions of the key-value (KV) cache. When processing long texts, the cache is often the main consumer of GPU memory, so the speed gains from compression are significant. The size of the gain depends on the context length and batch size. Compression can also affect accuracy. The original report does not quantify any accuracy loss. Refer to the original paper for those details.
During training, the team found that MLA paired with the Muon optimizer converged less effectively than the simpler Grouped-Query Attention (GQA). The core idea of Muon is to orthogonalize weight matrices so that parameters are distributed more evenly, which speeds up convergence. The original implementation orthogonalized the entire projection matrix at once. The team believes this coarse-grained operation cannot fully leverage the structure of MLA.
The solution, called Muon Split, moves orthogonalization from the full matrix down to each attention head, which is processed separately. The original report states that this change clearly improved training stability. With this change, MLA paired with the new optimizer matched or exceeded the results of the conventional approach. Teams using MLA with Muon can check whether their optimizer splits the matrix by attention head before orthogonalizing each block.
Multi-token Prediction: Training Signal and Inference Speedup
Traditional language models predict only the next token at each step. Multi-token prediction predicts several subsequent tokens at once and shares the prediction head. The original report only says that the prediction head is shared. It does not specify whether the shared component is the embedding, the output layer, or the entire prediction module. Refer to the training objective formula in the paper for those details.
For training, the original report argues that the model learns longer-range dependencies at every position. As a result, the same compute budget can capture richer language patterns. This explanation comes from the original report’s authors. The report does not provide controlled experimental results to support it.
For inference, multi-token prediction can support speculative decoding. A small model or a shallow structure quickly generates several candidate tokens, and the main model then verifies them. The speedup depends on the acceptance rate of the candidate tokens. When the acceptance rate is high, the speedup is substantial. When it is low, the extra computation cancels out the gain. With standard verification, generation quality does not change.
Sparse Attention: Reducing Compute for Long Contexts
The compute cost of standard attention grows quadratically with sequence length, which is the main bottleneck for very long contexts. Sparse attention computes attention only between some pairs of tokens. This makes compute grow close to linearly, which supports context windows from tens of thousands to hundreds of thousands of tokens.
The sparse pattern described in the original report has three components:
| Component | Function | Parameters to verify |
|---|---|---|
| Local window attention | Preserves fine-grained relationships between nearby tokens | Window size |
| Global anchor attention | Preserves information from key distant positions | Number and positions of anchors |
| Learnable sparse pattern | Lets the model learn which connections to attend to | Learning method and sparsity ratio |
The original report states that a model using sparse attention, trained on only 20B tokens, reached the performance that a dense attention model needs 943.7B tokens to achieve. The original report does not provide the baseline model, evaluation metrics, sequence lengths, or training setup. This figure therefore only shows relative results within the original experiments. It does not directly indicate training efficiency in other settings. Before adopting sparse attention, test it on your own target sequence lengths instead of applying the original figures directly.
Asynchronous Agentic Reinforcement Learning
Agent training requires the model to interact with an environment repeatedly. In a traditional pipeline, data collection and model updates run strictly in sequence, which leaves GPUs underutilized. The asynchronous framework used in the original report decouples the two. Many worker nodes keep interacting with the environment to generate data, while training nodes sample from an experience pool and update the model.
The framework includes three main components: an efficient experience replay mechanism, distributed reward computation, and sample priority scheduling. The original report states that these components improve hardware utilization and shorten training time for complex tasks. It does not provide specific timing comparisons.
Asynchronous training has several common problems. Data in the experience pool may come from older model versions, which causes policy drift. In a distributed setup, reward computation must remain consistent. Sampling latency can also reduce training throughput. When building a similar framework, monitor these three metrics separately.
Frequently Asked Questions
How do I choose a sparse attention configuration? First confirm the sequence length and task type for your use case. Then compare dense and sparse attention on real data, looking at both quality and speed. Tune the window size and the number of anchors one at a time.
What should I watch for when using MLA with Muon? Check whether orthogonalization is split by attention head. Compare the convergence curve against GQA to confirm that training is stable.
What is a common mistake with multi-token prediction? Treating the speedup as a fixed value. The speedup depends on the acceptance rate, so measure it on your actual workload.
Data Notes
This article is rewritten from the original report. It has not been checked against the official paper, model card, or leaderboards. All figures, evaluation results, and experimental results should be confirmed against the original release. The original report does not specify the evaluation version or date, so check the official documentation before citing any of these results.
