MoE Architecture in Chinese LLMs: Why Mixture of Experts Became the Mainstream Choice

    This article explains the shift from dense to sparse foundation models in China’s LLM ecosystem and why MoE has become a common design choice. It covers the core components and routing process of MoE, the reasons it improves training and inference efficiency, key engineering challenges such as load balancing, training stability, and inference deployment, and a practical framework for evaluating different models.

    MoE Architecture in Chinese LLMs: Why Mixture of Experts Became the Mainstream Choice

    1. Background: A Paradigm Shift from Dense to Sparse Models

    In recent years, Chinese large language models have developed rapidly, and several vendors have released foundation models whose performance is comparable to leading international models. A close reading of their technical reports reveals a clear common trend: Mixture of Experts (MoE) has become an almost standard configuration for a new generation of foundation models.

    This shift is not accidental. In a traditional dense architecture, every parameter participates in computation for each token processed, so scaling the parameter count directly leads to linear growth in training cost and inference latency. MoE architectures use a sparse activation mechanism so that only a small subset of parameters is invoked during each forward pass. This fundamentally alleviates the tension between improving model capability and controlling computational cost.

    It is also worth noting that leading models in the industry show clear technical borrowing relationships. Public technical reports and papers show that later models often refer to previously validated designs in architecture, such as the specific form of attention mechanisms, the implementation of expert routing, and the combination strategy of fine-grained experts and shared experts. This practice of “standing on the shoulders of giants” is a normal phenomenon in engineering fields rapidly converging on optimal solutions. The prosperity of the open-source ecosystem has made large-scale validated architecture designs public knowledge, and the focus of competition among vendors has therefore shifted from “whether the architecture is original” to “training data quality, post-training alignment capability, and engineering optimization.”

    2. Core Principles of MoE Architecture

    2.1 Basic Structure

    A typical MoE model consists of the following components:

    • Shared experts: handle general knowledge for all input tokens and ensure stable foundational capability.
    • Fine-grained routed experts: a large number of expert networks, each with a relatively small capacity, activated on demand by the router.
    • Gated router: selects the top-k most suitable experts from the expert pool for each token based on its semantic features.

    The routing process can be intuitively understood with the following pseudocode:

    1. # Simplified MoE routing illustration
    2. def moe_forward(x, experts, router, top_k=8):
    3. gates = softmax(router(x)) # Compute the weight for each expert
    4. topk_gates, topk_idx = torch.topk(gates, top_k)
    5. output = shared_expert(x) # Shared experts always participate
    6. for gate, idx in zip(topk_gates, topk_idx):
    7. output += gate * experts[idx](x) # Activate only the selected experts
    8. return output

    2.2 Why It Improves Training and Inference Efficiency

    MoE’s efficiency advantages come from three levels:

    1. Decoupling parameters from computation. The total parameter count determines the model’s knowledge capacity, while the activated parameter count determines the computational cost of a single pass. For example, a model with a total parameter count of hundreds of billions and an activated parameter count of tens of billions can achieve the expressive capacity of a large-capacity model at an inference cost close to that of a smaller model.
    2. Expert specialization reduces gradient conflicts. Different experts focus on different types of knowledge, such as code, mathematics, and multilingual content. During training, gradient updates for each expert are more independent, leading to higher convergence efficiency.
    3. Inference can scale elastically. In multi-GPU deployment scenarios, different experts can be distributed across different devices. Combined with expert parallelism strategies, this can further improve throughput.

    3. Key Technical Problems That Must Be Solved for MoE Deployment

    3.1 Load Balancing

    Routers naturally tend to assign tokens to a small number of “star experts,” causing some experts to be overloaded while others remain idle. A common industry practice is to introduce an auxiliary load-balancing loss that penalizes imbalance among experts in the training objective. Some solutions also adopt lossless balancing strategies to avoid interference from auxiliary losses on main-task performance. The quality of load balancing directly affects training stability and cluster utilization, making it one of the most central engineering challenges in MoE training.

    3.2 Training Stability

    MoE models are more sensitive to hyperparameters than dense models, and routing fluctuations can cause training instability. Common stability measures include normalization of routing weights, dynamic adjustment of expert capacity factors, and the use of a smaller learning rate with a warmup strategy in the early stage of training.

    3.3 Inference Deployment Optimization

    The inference challenge of MoE mainly lies in memory footprint: a large total parameter count means large weight files and high memory requirements. Common countermeasures include:

    • Quantization and compression: apply low-bit quantization to weights to significantly reduce memory footprint and improve bandwidth utilization.
    • Expert offload: when GPU memory is insufficient, place some expert weights in host memory or SSD and swap them in on demand, trading latency for a lower deployment threshold.
    • Speculative decoding and KV cache optimization: combine general decoding acceleration techniques to compensate for the memory access overhead brought by sparse activation.

    4. How to Rationally Evaluate the Technical Advantages of Different Models

    For developers, rather than fixating on a single metric from one vendor, it is better to establish a systematic evaluation framework:

    1. Check whether the architecture design is public and transparent: Does the technical report clearly describe key information such as total parameter count, activated parameter count, number of experts, and context length?
    2. Check training data and post-training investment: Data quality, synthetic data strategy, and reinforcement learning alignment pipelines often determine actual experience more than architectural differences.
    3. Check performance on real tasks: Benchmark on agent tasks, tool calling, long-context understanding, code generation, and other tasks close to your own business scenarios.
    4. Check engineering and ecosystem support: Context caching, batch inference throughput, private deployment support, and compatibility with common development frameworks determine deployment cost.

    5. Conclusion

    With its “large capacity, low computation” characteristics, MoE architecture has become a mainstream choice in the foundation model design of Chinese LLMs. Leading models borrow from one another in architecture and converge quickly, while the focus of competition shifts toward data quality and alignment capability. For developers, understanding the principles and engineering constraints of MoE has more long-term value than memorizing the parameters of a specific model. It helps us look beyond marketing language and make selection decisions suited to our own business based on technical fundamentals. As inference optimization technologies continue to mature, the advantages of MoE models in private deployment and cost-sensitive scenarios will be further amplified, making them worth continued attention and practice.