Evolution of MoE Architecture in LLMs: From Sparse Activation to Attention Optimization
This article analyzes recent architectural advancements in open-source Mixture of Experts (MoE) large language models that are closing the gap with top-tier closed-source alternatives. It breaks down key technical optimizations, including sparse activation scaling, pretraining data expansion, Multi-Latent Attention (MLA), the adaptation of the Muon optimizer (Muon Split), multi-token prediction, and Dynamic Sparse Attention (DSA), providing engineering insights into how the co-design of architecture, optimizers, and data strategies drives model performance.
1. Background: Why Open-Source Models Are Catching Up
Over the past two years, open-source large language models (LLMs) have lagged behind top-tier closed-source models, especially in complex reasoning, long-context processing, and code generation. However, recent technical progress indicates this gap is narrowing rapidly. For instance, a new generation of open-source MoE model achieved the highest scores among open-source models in authoritative third-party evaluations and community arena blind tests for both text and code. Its overall capability now rivals that of the most advanced closed-source models.
This achievement is not merely the result of scaling up parameters, but rather a systemic reconstruction at the architectural level. Using its publicly available technical details as a guide, this article breaks down the key technologies driving LLMs toward higher cost-effectiveness.
2. Fundamentals: MoE Scale Design and Data Proportioning
2.1 The Logic of Sparse Activation
The core idea of Mixture of Experts (MoE) is to maintain a massive total parameter count while only activating a small fraction during inference. A router dynamically selects the most relevant experts for computation. This retains the knowledge storage capacity of a massive model while keeping inference compute costs within acceptable limits.
Taking this model as an example:
- Total parameters more than doubled from the previous generation (355B) to 744B.
- Only 40B parameters are activated per inference (up from 32B in the previous generation).
- The number of experts expanded to 256, with a network depth of 80 layers.
This design of “doubling total parameters while slightly increasing active parameters” represents the mainstream trade-off for current open-source MoE models: exchanging a larger expert pool for finer-grained knowledge division, while inference cost scales linearly with active parameters.
2.2 Expansion of Pretraining Data
The pretraining corpus expanded from 23T tokens to 28.5T tokens, with 27T used for the pretraining phase and 1.5T for mid-training. Notably, the independent design of mid-training—conducting later-stage training on high-quality, progressively difficult data—effectively improves model performance on reasoning-intensive tasks like math and code. This approach has become a common training recipe in the industry.
3. Architectural Change 1: MLA Attention and Optimizer Adaptation
3.1 Basic Principles of MLA
Multi-Latent Attention (MLA) significantly compresses the KV cache memory footprint during inference by projecting the key-value cache into a low-dimensional latent space. Compared to traditional Multi-Head Attention, MLA drastically reduces memory pressure and improves throughput when handling long contexts, making it a representative technical route for long-text optimization.
3.2 Unexpected Issues with the Muon Optimizer
When the training team used the Muon optimizer—a new optimizer based on orthogonalized updates of weight matrices that shows better convergence efficiency than traditional Adam-based optimizers in multiple training tasks—in combination with MLA, they found the performance was actually worse than the structurally simpler GQA-8 scheme. This phenomenon reveals potential incompatibilities between new architectures and novel optimizers.
3.3 The Solution: Muon Split
The root cause lies in the granularity of orthogonalization. The original scheme applied unified orthogonalization to the entire projection matrix (a mathematical operation that makes weight update directions more uniform and prevents certain dimensions from dominating). However, the projection matrix in MLA semantically carries the independent functions of multiple attention heads; global orthogonalization disrupts the independence between heads.
Muon Split’s approach is to split the global matrix orthogonalization and execute it individually for each attention head. This allows each head to receive uniform and stable update directions within its own subspace while preserving the differences between heads. This modification allowed the Muon optimizer to regain its convergence advantage on the MLA architecture. It also highlights an important engineering lesson: combinations of optimizers and new architectures cannot be taken for granted; the matching relationship between update granularity and structural granularity must be thoroughly validated in small-scale experiments.
4. Architectural Change 2: Multi-Token Prediction
Traditional autoregressive models predict only the next token in each forward pass, leading to limited efficiency in utilizing training signals. Multi-token prediction enables the model to simultaneously predict multiple future tokens in a single forward pass:
Input sequence: [x1, x2, x3, x4]Traditional target: predict x2Multi-token: predict x2, x3, x4 simultaneously (independent heads)
The benefits are twofold: first, each sample provides denser supervision signals during the training phase, accelerating convergence and improving the model’s ability to learn long-range dependencies. Second, during inference, it supports speculative decoding—generating multiple candidate tokens at once and verifying them with the main model—significantly boosting generation speed while maintaining quality. This is particularly effective for scenarios like code completion that require batch content generation.
5. Architectural Change 3: DSA Sparse Attention
Even with MLA compressing the KV cache, the quadratic complexity of attention computation remains a bottleneck as context lengths grow to hundreds of thousands or even a million tokens. The approach of Dynamic Sparse Attention (DSA) is to avoid computing the dot product of each query with all keys. Instead, a lightweight selection mechanism first filters a small subset of tokens most relevant to the current query, performing full attention computation only on the selected subset.
This “retrieve then compute” paradigm reduces long-context attention overhead from being proportional to the full sequence to the selected subset. The filtering mechanism retains key information to minimize accuracy loss. It can be combined with popular long-context solutions (like sliding windows or hierarchical compression) to form the engineering foundation for ultra-long contexts.
6. Conclusion and Implications
Overall, the progress of this generation of open-source MoE models can be summarized into three main lines:
- Balance of scale and sparsity: Massive expansion of total parameters with restrained growth in active parameters, using architecture rather than sheer compute to control inference costs.
- Systematic optimization of attention mechanisms: MLA compresses memory, and sparse attention compresses compute. These two complement each other to cover different bottlenecks in long-context processing.
- Fine-tuning of training details: Optimizer-architecture adaptation (e.g., per-head orthogonalization), multi-token prediction for training efficiency, and data proportioning for mid-training. These “invisible efforts” often determine the ultimate upper limit of the model.
For engineering teams, the implication of these advancements is that improving LLM capabilities increasingly relies on the co-design of architecture, optimizers, and data strategies. Improvements in any single dimension may be rendered ineffective by constraints in other parts of the system. Thorough small-scale ablation experiments and continuous monitoring of training dynamics are critical to translating research concepts into production-grade models.
