Open-Source LLM Architecture Evolution: Engineering Practices for Sparse MoE Models

    This article breaks down the architectural evolution of open-source large language models and the engineering practices behind them. Based on a new technical report describing a sparse Mixture-of-Experts (MoE) base model with 744B total parameters and 40B activated parameters, it abstracts the design decisions into general engineering problems: resolving memory bottlenecks, maintaining training stability, and improving inference throughput. You will find practical guidance on Multi-head Latent Attention (MLA) with per-head optimizer orthogonalization, multi-token prediction, sparse attention, memory budgeting, service tiering, observability, and evaluation loops.

    1. Introduction: The Gap Between Open-Source and Closed-Source Models Is Closing Fast

    Recent weekly charts from industry analysts show that top closed-source models still lead in overall capability, but the gap to the highest-ranked open-source models has narrowed significantly. The technical implication is clear: for most enterprise and developer scenarios, open-weight models have moved from “a usable alternative” to “a viable option for main-path inference.”

    At the same time, a new-generation LLM technical report of about forty pages has been released, disclosing a base model with 744B total parameters and 40B activated parameters. Rather than repeating product details, this article abstracts the report’s architectural decisions into general engineering questions: in a sparse model where total and activated parameters are highly asymmetric, how do you solve memory bottlenecks, training stability, and inference throughput at the same time?

    2. Fundamentals: Sparsity Is Mandatory for Very Large Models

    The new-generation model follows the Mixture-of-Experts (MoE) route: 744B total parameters, only 40B activated per inference, 256 experts, and 80 layers. Compared with the previous generation’s 355B total and 32B activated parameters, total parameters have doubled while activated parameters have grown only slightly. The pre-training corpus increased from 23T tokens to 28.5T tokens (about 27T for pre-training and about 1.5T for mid-training).

    These numbers reveal the core trade-off of sparse models:

    • Total parameters set the upper bound of knowledge capacity; activated parameters determine the compute and memory-access cost of a single forward pass.
    • The activation ratio dropped further from about 9% to about 5.4%, which makes routing quality the performance ceiling.
    • Allocating 1.5T tokens specifically to mid-training shows that the annealing and capability-补齐 stage carries significantly more value.

    On public evaluation dimensions, this class of model reached the 50-point range on a composite intelligence index for the first time by an open-source entry, ranked first among open-source models in both text and code arenas, and sits in the same tier as leading overseas closed-source models. The direct takeaway for engineering teams: selection evaluation should not rely on a single leaderboard, but should build a three-dimensional matrix of “general capability + coding capability + long context.”

    3. Architecture Change 1: Decoupling Latent Attention and the Optimizer

    Multi-head Latent Attention (MLA) shares the same core idea as Grouped-Query Attention (GQA): compressing the key-value cache dimension to reduce memory usage, which is significantly better than traditional multi-head attention in long-text scenarios. However, during training the team found that combining an optimizer with full-matrix orthogonalization with MLA converged worse than a simpler GQA-8 scheme.

    The fix is to push orthogonalization granularity down from the entire projection matrix to individual attention heads, i.e., “optimizer splitting.” A sketch:

    1. # Pseudocode: per-head orthogonalization instead of whole-matrix
    2. for head in range(num_heads):
    3. W_q = q_proj[:, head * d_head:(head + 1) * d_head]
    4. W_q = newton_schulz_orthogonalize(W_q) # orthogonalize each head
    5. q_proj[:, head * d_head:(head + 1) * d_head] = W_q

    The engineering value is that memory savings and convergence quality are no longer mutually exclusive. In practice, pair this with a monitoring and alerting system that tracks the variance of per-head gradient norms; once the variance widens, trigger a learning-rate rollback.

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

    Multi-token prediction makes the model predict multiple future positions in a single forward pass, which is equivalent to injecting denser supervision into training, improving data efficiency and naturally fitting speculative decoding. The practical point is that the prediction interval should not be too large—usually two to three adjacent positions—and the auxiliary head weights should anneal down over training to avoid competing with the main objective for capacity.

    Sparse attention (DSA) pushes “compute less” to “compute less, accurately”: a lightweight scorer first selects a subset of key tokens, then attention is computed only over that subset. The deployment checklist includes: keep a dense fallback switch for the scorer, run long- and short-sequence grouped stress tests on the container platform, and archive long-text samples in object storage to reproduce issues.

    5. Engineering Recommendations

    1. Memory budget: estimate compute from activated parameters rather than total parameters, and estimate weight-loading and cache needs from total parameters.
    2. Service tiering: route short requests through the dense path and long documents through the sparse path, with the gateway routing by length.
    3. Observability: include routing load imbalance and expert hit distribution in core metrics.
    4. Evaluation loop: run regression on a fixed internal question set to avoid being misled by public leaderboards.

    If an enterprise wants to shorten its in-house build cycle, it can evaluate the combination of general capabilities offered by Baidu AI Cloud—model hosting, container platform, logging, and monitoring/alerting—so the team can focus on business data and the evaluation system.

    6. Conclusion

    The significance of the new-generation open-source base model is not a single score, but that it makes “large capacity, low activation, long context, and stable training” into a reproducible engineering paradigm at the same time. For developers, the real moat is the capability to rebuild memory budgeting, routing governance, and evaluation loops around sparse models.