Deep Dive into an Open-Source LLM Technical Report: Sparse Attention and Asynchronous Reinforcement Learning

    This article breaks down a 40-page technical report from a leading open-source model release, covering its MoE architecture, MLA and per-head orthogonalization, multi-token prediction, sparse attention (DSA), and a fully asynchronous agentic reinforcement learning framework. It explains the key engineering trade-offs, offers practical guidance for reproduction and deployment, and highlights three transferable lessons for teams building on open-weight models.

    1. Background: The Gap Between Open-Source and Closed-Source Models Is Narrowing

    A recent chart-based weekly report from an industry analysis firm offers a notable observation: the top closed-source models still lead in “general intelligence,” but the gap to the open-source models right behind them has clearly narrowed. The real signal here is not “who is first,” but the speed at which the gap is closing—it means that building on open weights for secondary development, private deployment, and cost optimization is moving from “usable” to “genuinely practical.”

    On the 22nd, a complete 40-page technical report was released. The most discussed points were: a sparse attention mechanism that matched a dense approach trained on nearly 944B tokens using only about 20B tokens; a fully asynchronous agentic reinforcement learning training framework; and a self-developed reinforcement learning infrastructure. This article walks through the report layer by layer, following the order of fundamentals, architecture changes, training system, and engineering deployment.

    2. Model Fundamentals: Parameter Scale and Benchmark Position

    The model continues down the Mixture-of-Experts (MoE) path, with 744B total parameters, 40B activated per inference, 256 experts, and 80 layers. Compared with the previous generation, total parameters doubled from 355B to 744B, activated parameters rose from 32B to 40B, and the pre-training corpus grew from 23T tokens to 28.5T tokens (27T for pre-training and 1.5T for mid-training).

    On the general intelligence benchmark v4.0, it scored 50, ranking first among open-source models. It also placed first among open-source models in two public arenas (text and code), putting it in the same tier as the top overseas closed-source models overall.

    One point that is often misread deserves emphasis: MoE’s “744B total parameters, 40B activated” is not equivalent to “only 40B of capability is used.” Total parameters determine the upper bound of knowledge capacity, while activated parameters determine the compute and memory-access cost per token. In engineering terms, there are two separate ledgers to account for: memory footprint (all expert weights must either stay resident or be swapped in quickly) and compute overhead (only the activated portion participates in computation).

    3. Architecture Change 1: Orthogonalizing MLA and the Optimizer Separately

    The attention mechanism uses MLA (Multi-head Latent Attention), which shares the same lineage as existing low-rank KV compression approaches in the industry. The core idea is to compress the KV cache into a low-dimensional latent space, significantly reducing memory and bandwidth pressure in long-context scenarios.

    However, the team observed a counterintuitive phenomenon during training: pairing a Muon-style optimizer with MLA underperformed the structurally simpler Grouped-Query Attention (GQA-8). The reason can be roughly attributed to this: Muon relies on orthogonalized updates to weight matrices, but MLA’s latent-space projection is a single block matrix shared across multiple attention heads. Orthogonalizing the entire block couples the update scales of different heads.

    The solution is “per-head orthogonalization”: split the update of the full projection matrix so that it is performed independently for each attention head. A sketch follows (pseudocode, showing only the difference in slicing and update granularity):

    1. # Counter-example: orthogonalizing the full projection couples update scales across heads
    2. W = muon_orthogonalize(W_full) # shape: [d_model, n_heads * d_kv]
    3. # Correct approach: slice by head, orthogonalize each, then concatenate back
    4. Ws = [muon_orthogonalize(W_full[:, i*d_kv:(i+1)*d_kv])
    5. for i in range(n_heads)]
    6. W = concat(Ws, dim=-1)

    Practical takeaway: a more memory-efficient attention structure must be paired with an optimizer modification at the same granularity; otherwise, the gains will be eaten away by convergence quality.

    4. Architecture Changes 2 and 3: Multi-Token Prediction and Sparse Attention

    Multi-Token Prediction (MTP) predicts several future tokens at each position, providing a stronger supervision signal during training and enabling reuse in speculative decoding at inference time to improve throughput. Its cost is higher training memory and implementation complexity, so it is typically limited to one or two layers rather than stacked indefinitely.

    Sparse Attention (DSA) is the most cost-effective part of this report: through learnable scoring and top-k selection, each query interacts with only a small number of keys, compressing attention complexity from quadratic to nearly linear. The comparison given in the report is that a sparse approach with about 20B tokens matched a dense approach with about 944B tokens. Such numbers deserve a rational reading: they hold under a controlled comparison with the same data mixture and the same evaluation criteria, which shows that the sample-efficiency gain from sparsification is real—but it does not mean you can save 98% of training compute on any arbitrary task.

    Two things must be handled in engineering: first, load balancing, to avoid top-k selection collapsing onto a few keys and creating expert- or block-level hotspots; second, synchronized changes to kernels and parallelism strategies, otherwise the theoretical reduction in complexity will be offset by memory-access and scheduling overhead.

    5. Training System: Fully Asynchronous Agentic Reinforcement Learning

    The core difficulty in the post-training stage is “long-tail trajectories”: a single trajectory in an agentic task may contain dozens of rounds of tool calls, with large variance in length. Synchronous sampling forces the entire batch of compute to wait for the slowest sample.

    The fully asynchronous framework decouples sampling from updating: the inference side continuously produces trajectories and writes them to a buffer, while the training side consumes available samples at any time, using offline or approximate policy corrections (such as importance-sampling ratio clipping) to control the deviation between old and new policies. The supporting infrastructure typically includes distributed rollout orchestration, an experience buffer, a reward service, and elastic fault tolerance.

    Deployment checklist:

    • Use monitoring alerts and logging services to observe three metrics: trajectory length distribution, buffer水位, and policy lag in steps;
    • Make the reward function rule-based first, then layer on model-based scoring, to avoid early reward hacking;
    • Separate training and inference resource pools, use a container platform for elastic scaling, and use object storage for checkpoints and trajectory archival.

    6. How to Reproduce and Deploy in Your Own Environment

    On the inference side, enable KV cache compression, speculative decoding, and continuous batching; when memory is insufficient, combine quantization with expert parallelism. For deployment, you can use Baidu AI Cloud’s container platform for elastic scaling, object storage to hold weights and checkpoints, and monitoring alerts to track throughput, time-to-first-token latency, and memory水位.

    Overall, the real value of this report is not a leaderboard ranking, but three transferable engineering lessons: structural innovations and the optimizer must be co-designed; sparsification must be validated under controlled criteria; and post-training systems must move from synchronous to asynchronous.