Open-Source LLM Architecture Leap: A Deep Dive into MoE, MLA, and Multi-Token Prediction

    This article breaks down the architectural shift in the latest generation of open-source large language models, focusing on a 744B-parameter Mixture-of-Experts (MoE) design with 40B activated parameters. It explains the engineering implications of decoupling capacity from compute cost, dissects three core architectural changes—low-rank attention with optimizer splitting, multi-token prediction, and dynamic sparse attention—and outlines practical guidance for memory budgeting, parallelism, serving, and observability on Baidu AI Cloud.

    1. Why This Generation of Open-Source Models Deserves Serious Attention

    The gap between open-source and closed-source models has existed for the past two years, but the emergence of this generation of ultra-large-scale Mixture-of-Experts (MoE) models has changed the landscape in a substantive way. Closed-source flagship models still hold the position of being the “smartest,” but the score difference between them and the strongest open-source models has narrowed to a fairly limited range. In the composite intelligence evaluation systems commonly used in the industry (for example, public indices focused on multi-task reasoning capabilities), the new generation of open-source models crossed the 50-point threshold for the first time, ranking first in the open-source camp. In subjective preference-based evaluations such as chat and code arenas, it also ranks first among open-source models, placing it in the same tier as the leading overseas closed-source models.

    The significance of this is not the “catching up” itself, but that it shifts the focus of competition from “who has more parameters” to “who produces more per unit of compute.” For a development team that wants to deploy, what really matters has never been leaderboard rankings, but rather: given a fixed memory and throughput budget, how much usable capability can I get?

    2. Fundamentals: What 744B Total Parameters and 40B Activated Parameters Mean

    First, look at the static profile of the model. It continues the MoE route, with approximately 744B total parameters, activating only about 40B per inference, 256 experts, and 80 layers. Compared with the previous generation, total parameters have doubled from the 355B scale to 744B, activated parameters have increased from 32B to 40B, and the pre-training corpus scale has grown from 23T tokens to 28.5T tokens (of which about 27T is pre-training and about 1.5T is mid-training).

    There are three easily overlooked engineering implications here:

    • Decoupling capacity from cost. The total number of parameters determines the “knowledge ceiling,” while the activated amount determines the compute overhead of a single forward pass. 40B activated parameters mean that inference FLOPs and memory bandwidth pressure are significantly lower than those of a dense model of the same scale.
    • Memory does not disappear because of this. Expert weights still need to be resident or swapped in on demand, and the KV cache grows linearly with context length. The weight size of 744B total parameters at common precision means it is difficult to run comfortably in a single machine with small memory.
    • Mid-training is key to capability shaping. The 1.5T token mid-training stage is usually used to strengthen target capabilities such as reasoning, code, and long context. The data mix of this part often explains “why this generation suddenly became so usable” better than the total amount.

    3. Three Major Architecture Changes, Dissected Layer by Layer

    The most obvious difference between this generation and the previous few is concentrated in three places: the coordinated transformation of attention and optimizer, multi-token prediction, and sparse attention.

    3.1 Low-Rank Compressed Attention + Optimizer Splitting

    The model uses low-rank key-value compression attention (commonly known in the industry as an MLA-type scheme), which shares the same origin as the mainstream efficient attention ideas of the past two years: compressing the dimension of the KV cache into a low-rank latent space, thereby significantly reducing cache usage in long-text scenarios and improving decoding speed.

    However, a real problem was exposed during training: when using a second-order/orthogonalization-type optimizer (such as a Muon-type one) combined with this attention structure, the convergence effect was actually worse than that of a more simple structure (for example, grouped-query attention, GQA-8). The solution given by the team is “optimizer splitting”: instead of uniformly orthogonalizing the entire projection matrix, orthogonalize separately for each attention head.

    The following illustrative code expresses this granularity difference:

    1. # Before: uniform orthogonalization of the entire projection matrix
    2. W = project_matrix(x) # shape: [d_model, n_heads * d_head]
    3. W_orth = orthogonalize(W) # global scale, heads coupled with each other
    4. # After: split by head, each head orthogonalized independently
    5. heads = W.view(n_heads, d_head)
    6. heads_orth = torch.stack([orthogonalize(h) for h in heads])
    7. W_out = heads_orth.reshape_as(W)

    Why does it work? Because the essence of orthogonalization is to improve the condition number of parameter updates, making updates in each direction more balanced. In the entire matrix, different heads carry large differences in semantics and numerical scales, and uniform processing will cause some heads to be “averaged out”; splitting by head is equivalent to cutting the optimization landscape into several more regular sub-problems, benefiting both training stability and final performance. The general lesson from this type of change is: structural innovation and optimizer behavior must be jointly validated, not tuned separately.

    3.2 Multi-Token Prediction

    Multi-Token Prediction allows the model to predict not only the next token at each position, but also several future steps simultaneously. It brings two types of benefits: first, denser training signals and improved sample efficiency; second, it naturally fits speculative decoding—the extra prediction heads can directly serve as a draft model, batch-verified by the main model, thereby changing decoding from “token-by-token serial” to “small-batch parallel verification.”

    What needs attention in engineering is that prediction heads increase training memory and implementation complexity, while inference benefits depend on batch size, context length, and task predictability. In scenarios with strong local correlation such as code completion and structured output, the acceptance rate is usually higher.

    3.3 Sparse Attention

    The third item is dynamic sparse attention (DSA-type). Unlike static sparse patterns, it dynamically decides “which positions to look at” based on input content, compressing attention overhead to a scale closer to linear under ultra-long contexts. The cost is that the selection logic itself needs efficient implementation (dedicated operators or fused kernels), otherwise scheduling overhead will eat up the theoretical benefits. This is also why such models are quite sensitive to the operator support of inference frameworks.

    4. Deployment Practice: How to Run It and Run It Stably

    • Precision and memory accounting. First estimate in three parts—“weights + KV cache + activations and temporary buffers”—then decide the quantization strategy. Weight quantization has the most direct benefits, but note that expert layers and attention layers have different sensitivities to errors.
    • Parallelism strategy. Expert parallelism combined with tensor/pipeline parallelism is the conventional combination for this type of model. The key is to do a good job of expert load balancing to avoid a few hot experts slowing down the entire batch.
    • Service tiering. Splitting high-frequency short requests and long-context requests into different instance pools, and configuring context length and concurrency limits separately, can significantly improve tail latency.
    • Observability. On top of the container platform, integrating a unified logging service and monitoring alerts, and building dashboards for first-token latency, decoding throughput, cache hit rate, and expert routing distribution, is the foundation for long-term stable operation.
    • Model and data hosting. Weights and training corpora are suitable for version management in object storage, combined with message queues to decouple the evaluation and release pipeline.

    On Baidu AI Cloud, the above steps can be mapped to a combination of general capabilities: the container platform carries inference services and elastic scaling, object storage handles model versioning and corpus archiving, the logging service and monitoring alerts are responsible for observability, and message queues connect the evaluation and canary release processes, forming a complete chain from training output to online service.

    5. Conclusion

    The real breakthrough of this generation of open-source models is not a single-point number, but that “larger capacity + more efficient activation + smarter attention and prediction mechanisms” have been tuned simultaneously. The action advice for developers is clear: first make a quantitative budget for memory and throughput, then verify the real acceptance rate of sparse attention and multi-token prediction on your business distribution, and finally use a complete observability system to stably support it on the cloud.