How Mixture-of-Experts Enables Low-Cost, High-Performance LLMs: A Technical Deep Dive into China's Open-Source MoE Model
This article explains how Mixture-of-Experts (MoE) architecture enables large language models to achieve massive capacity with dramatically lower compute costs. Using a recently released Chinese open-source model with 671B total parameters and roughly 37B activated per token as a case study, it covers MoE core principles, load balancing and training stability, why training costs can drop by an order of magnitude, real-world performance benchmarks, and practical guidance for deployment, quantization, and fine-tuning.
1. Background: Why LLMs Are Moving to MoE
In recent years, the parameter counts of large language models have kept climbing, ranging from tens of billions to hundreds of billions. If all parameters participate in computation on every inference call, compute costs grow linearly—or even super-linearly—with parameter scale, and training and inference overhead become the biggest obstacles to real-world adoption. To resolve the tension between “large model capacity” and “low cost per computation,” the industry has increasingly adopted the Mixture-of-Experts (MoE) architecture as a mainstream technical approach.
An open-source model released by a Chinese startup team at the end of 2024 is a typical representative of this route: it has 671 billion total parameters, yet activates only about 37 billion parameters per token, achieving strong model capability with a very low actual compute footprint.
For developers, understanding MoE is not just about reading one model’s documentation—it is a key to understanding where LLM technology is heading. This article analyzes MoE from four angles: architectural principles, cost structure, capability, and practical deployment.
2. Core Principles of the MoE Architecture
2.1 Sparse Activation: “Expert Specialization” Instead of Full-Model Computation
In a traditional dense model, every input token passes through the full network parameters. MoE instead splits the feed-forward network into multiple “expert” sub-networks and introduces a router that decides which experts should process each token. A typical implementation looks like this:
# Illustrative pseudocode for a MoE layerdef moe_forward(x, experts, router, top_k=2):# router: compute scores for each expertscores = router(x) # [batch, num_experts]topk_idx = scores.topk(top_k).indices # select the top-k expertsout = 0for i in topk_idx:out += experts[i](x) * scores[i]return out
Each token activates only a few experts, while the remaining experts stay on standby. The model’s total knowledge capacity is determined by all experts combined, but the compute per inference depends only on the activated experts—this is exactly the logic behind 671B total parameters with only 37B activated per token.
2.2 Load Balancing and Training Stability
MoE does not come without costs. If the router is poorly trained, “expert collapse” can occur: most tokens flood to a small number of experts, other experts receive no training, and model capability degrades severely. The industry commonly applies the following countermeasures:
- Auxiliary load-balancing loss: add a penalty term to the training objective that encourages tokens to be distributed evenly across experts;
- Token dropping and capacity factor control: set a processing capacity limit per expert, routing overflow tokens through a backup path;
- Fine-grained expert splitting: use more, smaller experts combined with shared experts, so general knowledge is carried by always-on shared experts while specialized knowledge is routed to routed experts.
These engineering details determine whether a MoE model can actually realize its scale advantages, and they are a key indicator when evaluating the quality of a MoE design.
3. Why Training Costs Can Be an Order of Magnitude Lower
3.1 Structural Compute Efficiency
The low cost of MoE models does not come from cutting corners—it comes from structurally higher compute efficiency. Training cost is largely determined by total compute (roughly parameters × tokens × a constant), and sparse activation drastically reduces the effective compute. Public information indicates that this model was trained with a compute budget of only about $5.57 million, far below what comparably capable dense models typically require and clearly below same-generation versions of some international open-source models.
3.2 Supporting System-Level Engineering
Low cost depends on more than architecture—it requires a complete engineering stack:
- Combining large-scale reinforcement learning with lightweight supervised fine-tuning, reducing dependence on expensive human-annotated data;
- Mixed-precision and low-precision training, lowering memory and bandwidth overhead while maintaining convergence;
- Multi-node communication optimization: MoE distributes experts across devices, and routing triggers heavy cross-node communication whose efficiency directly determines training throughput. Common mitigations include overlapping computation with communication and aggregating within GPU memory;
- Data mix optimization: high-quality data lets a model learn more from fewer tokens, compressing training scale at the source.
These practices are general best practices for any training team, and understanding them helps developers evaluate and plan their own fine-tuning and training budgets.
4. Performance: The Value-for-Money Zone of Open-Source Models
4.1 Position in Comprehensive Benchmarks
Across multiple public comprehensive benchmarks, this model ranks among the leading open-source models, sitting in the same tier as the industry’s strongest closed-source flagship models—surpassing them on some metrics. This confirms an important observation: the capability gap between open-source and closed-source camps is narrowing rapidly, and open-source models have entered a value zone of “strong capability, extremely low cost.”
4.2 Capability Dimensions Developers Care About Most
For engineering use cases, focus on the following dimensions:
- Code generation: earlier code-specialized models in this series earned a solid reputation in programming-assistance scenarios, and the general-purpose version carries forward strong code comprehension and completion capabilities;
- Long-context handling: context windows supporting tens or even hundreds of thousands of tokens, suitable for document analysis and codebase understanding;
- Chinese-language capability: corpus engineering by a native-speaking team gives it notably better Chinese understanding and generation than most open-source models of similar scale;
- Reasoning and math: reinforcement-learning-based post-training has significantly improved the stability of logical reasoning chains.
Note that specific performance figures should be verified against the official technical report and third-party replications. Developers should build evaluation sets based on their own tasks rather than relying solely on leaderboards.
5. Practical Deployment Recommendations
- Cost assessment for private deployment: MoE models have very large total parameter counts. Even with fewer activated parameters, the weight files still require substantial GPU memory or a tiered GPU-memory-plus-RAM loading scheme. Run memory estimation and quantization experiments before deployment;
- Quantization and inference acceleration: low-bit weight quantization can greatly lower the deployment barrier, but validate accuracy loss on your target tasks;
- Fine-tuning strategy: for domain adaptation, prefer parameter-efficient methods such as LoRA, focus on how well routed experts adapt, and keep training costs under control;
- Combining with cloud LLM services: if your own compute is insufficient, consider using cloud platforms’ general-purpose LLM services (such as model inference, fine-tuning hosting, and monitoring/alerting) to build applications quickly, so you can concentrate on business logic.
6. Conclusion
MoE architecture represents a technical direction of “large capacity, low cost, and open source.” The accumulated expertise of Chinese LLM teams in architectural innovation and engineering optimization is reshaping the cost curve and competitive landscape of the global LLM field. For developers, understanding sparse activation, routing mechanisms, and training engineering not only explains why such models are “both strong and cheap,” but also enables more rational decisions in model selection, deployment, and fine-tuning.
