A Complete Technical Breakdown of Large-Scale MoE Models

    This article breaks down the core techniques behind a large-scale Mixture-of-Experts (MoE) model with 744B total parameters and 40B activated parameters. It explains why sparse activation has become mainstream, and examines three key architectural choices—Multi-head Latent Attention (MLA) with optimizer decoupling, multi-token prediction, and DSA sparse attention—alongside a fully asynchronous agentic reinforcement learning framework. Readers will find practical engineering guidance on memory budgeting, long-context validation, mixed-optimizer state accounting, speculative decoding acceptance rates, and observability for asynchronous RL.

    1. Introduction: From a Parameter Race to an Efficiency Race

    The focus of large model competition has shifted over the past two years. Early efforts were about parameter count and data volume. Today, more teams are asking a more practical question: under a fixed compute and memory budget, how do you spend every unit of computation where it actually matters? A recently released open-source model’s technical materials offer a useful window into this shift—a Mixture-of-Experts (MoE) architecture with 744B total parameters and 40B activated parameters that scored 50 on a public composite intelligence benchmark, becoming the first open-source model to reach that score. It also ranked first among open-source models on both text and code leaderboards, putting it in the same tier as leading overseas closed-source models.

    This article does not restate any product’s promotional narrative. Instead, it abstracts the genuinely generalizable technical points: how sparse attention approaches the results of dense schemes trained on around 900B tokens using only about 20B training tokens, how multi-token prediction changes training signal density, why attention key-value compression and optimizer decoupling have become standard for long context, and what engineering pain points a fully asynchronous agentic reinforcement learning framework and in-house RL infrastructure solve.

    2. Fundamentals: Why MoE’s Sparse Activation Went Mainstream

    The core idea of MoE is to activate only a small subset of parameters at inference time. Take this generation of the model as an example: 744B total parameters, 40B activated per inference, 256 experts, 80 layers. Compared with the previous generation (355B total, 32B activated), total parameters doubled while activated parameters grew only slightly. This means “knowledge capacity” expands while per-token compute stays nearly linearly controllable.

    One point is often misunderstood: raising activated parameters from 32B to 40B increases inference cost far less than the jump from 355B to 744B total parameters might suggest. What actually determines inference latency is activated parameters plus the attention implementation, while what determines how much knowledge the model can hold is total parameters plus expert count. The engineering capabilities needed to support this include routing balance under expert parallelism, capacity factor tuning, elastic scaling based on a container platform, and load observability based on monitoring and alerting services.

    An illustrative configuration expression (pseudocode, for structural explanation only):

    1. moe_config = {
    2. "num_layers": 80,
    3. "num_experts": 256,
    4. "top_k": 8, # Number of experts activated per token
    5. "hidden_size": 5120,
    6. "total_params": "744B",
    7. "activated_params": "40B",
    8. }

    3. Architectural Change One: MLA and Optimizer Decoupling (Muon Split)

    The attention mechanism uses Multi-head Latent Attention (MLA), which shares its lineage with another class of efficient attention schemes in the industry. The key is not a “smarter attention” but compressing the key-value cache into a low-dimensional latent space and projecting it back up at inference time. The benefits come in three layers: significantly lower memory usage, higher long-context throughput, and higher batch concurrency.

    Accompanying this is a “split” approach at the optimizer level: matrix-type parameters and vector-type parameters are handled by different optimizer paths. Matrix parameters use a scheme with orthogonalized momentum updates, while vector parameters and the embedding layer still follow the adaptive gradient route. The motivation is that gradient statistics differ greatly across parameter shapes, and a unified optimizer causes effective learning rate mismatch. In practice, note that a mixed optimizer increases state memory and code complexity, so it must be paired with precise memory accounting and checkpoint-resume mechanisms.

    4. Architectural Change Two: Multi-Token Prediction

    Traditional autoregressive training provides only one supervision signal per position. Multi-token prediction lets the model predict the next n tokens simultaneously at each position. It delivers benefits on two levels: first, higher training signal density and improved sample efficiency; second, a natural fit for speculative decoding, where a small model or shallow head can propose multiple candidates at inference time for the main model to verify.

    It is worth stressing that multi-token prediction is not “free acceleration.” During training, the output heads and loss weights need rebalancing; at inference, if the acceptance rate is insufficient, it introduces extra overhead instead. A sound engineering practice is to first treat it as a regularization technique during training, then decide whether to enable it at inference based on the measured acceptance rate.

    5. Architectural Change Three: DSA Sparse Attention

    This is the point most worth expanding on. The goal of sparse attention is simple: not all historical tokens are equally important to the current prediction. DSA first does lightweight scoring to select the few historical blocks most relevant to the current query, then performs exact attention computation only on that portion. Its claimed result is that with about 20B training tokens, it matches the performance of a dense attention scheme trained on around 900B tokens.

    Why is this possible? Because in dense attention, a large amount of computation falls on low-relevance regions that contribute almost nothing to gradients; concentrating the budget on high-relevance regions is equivalent to raising the signal-to-noise ratio per unit of compute. The engineering cost lies in the selector’s own overhead, the memory layout of block-level indexing, and continuous validation of long-context stability. The practical recommendation is to use “effective context length” rather than “maximum context length” as the acceptance metric, and to add dashboards for long-text task latency and failure rate to the monitoring and alerting system.

    6. Training Framework: Fully Asynchronous Agentic Reinforcement Learning

    Reinforcement learning for agent scenarios differs markedly from traditional RLHF: trajectories are long, tool calls are numerous, and environment latency fluctuates widely. With a synchronous sampling-update loop, cluster utilization gets dragged down by the slowest trajectory. A fully asynchronous framework decouples sampling from updates, so samples can be queued and consumed as soon as they are produced, working with in-house RL infrastructure to handle reward computation, trajectory filtering, and weight synchronization.

    Key engineering points include bias control for stale samples (importance sampling correction or a delayed update window), horizontal scaling of the reward service (message queues for peak shaving, object storage for archiving trajectories), and fault isolation. For this kind of training, Baidu AI Cloud typically provides general-purpose capabilities, such as a container platform for elastic training, log and monitoring/alerting services for observability, and object storage for saving checkpoints.

    7. Practical Checklist

    • Quantify the budget first: define the three hard constraints—memory, throughput, and effective context—before choosing an architecture.
    • Sparse attention needs long-text regression testing; focus on “effective context” rather than nominal length.
    • For a mixed optimizer, precisely account for state memory and verify checkpoint-resume consistency.
    • Judge multi-token prediction’s inference benefit by the measured acceptance rate; disable it if it falls short.
    • Asynchronous RL must be paired with staleness control and full-chain observability, otherwise the gains will be offset by instability.

    8. Conclusion

    The significance of this generation of open-source models lies not in any single number, but in carrying the theme of “sparsification” across four layers: parameters, attention, training signals, and the training framework. For developers, the truly reusable methodology is: define the budget and acceptance metrics first, then introduce sparsity and asynchrony layer by layer, and finally use a robust monitoring system to hold the line on stability.