Sparse Large Language Models in China: Architecture, Capabilities, and Evaluation
This article explains how sparse Mixture of Experts (MoE) architectures work in China's latest large language models, why total and activated parameter counts measure different things, and what these models are actually good at. It covers the three core mechanisms behind sparse design—gating and routing, shared and fine-grained experts, and the communication cost of distributed deployment—then outlines a practical evaluation workflow, deployment and cost-optimization practices, and a complete selection path based on architecture, training data, evaluation sets, and deployment specs.
1. Why Parameter Count Is No Longer the Only Metric
Over the past two years, large model development in China has rapidly converged on sparse architectures. Early designs were mostly dense: every input token passed through all parameters, and capability gains scaled almost linearly with parameter count and compute investment. As inference costs rose, the industry shifted to Mixture of Experts (MoE): the model holds a very large total parameter count, but each token activates only a small subset.
The model referenced in the source material follows this route: roughly 671 billion total parameters, about 37 billion activated per token, an activation ratio of around 5.5%. One frequently misread point deserves emphasis: total parameter count sets the upper bound of knowledge capacity, while activated parameter count determines the compute cost of a single inference pass. The two are not interchangeable. For compute budgeting, the latter drives GPU occupancy and throughput; for capability assessment, the former, together with training data quality, determines breadth of knowledge.
2. The Technical Foundation: Three Key Mechanisms of Sparse Architectures
2.1 Gating Networks and Routing
The core of MoE is a gating module that computes a match score between each token and every expert, then selects the Top-K experts to participate in computation. The critical engineering concern is not how many experts exist, but whether routing is balanced. If load concentrates on a few experts, some devices sit idle while others overload, and actual throughput falls well below the theoretical value. Training therefore typically introduces an auxiliary load-balancing loss, combined with expert capacity limits and token-dropping strategies.
2.2 Shared Experts and Fine-Grained Splitting
Modern sparse designs usually keep a small number of shared experts to carry general syntax and world knowledge, with the remainder being routable fine-grained experts. Fine-grained splitting lets each expert focus on a narrower knowledge distribution, increasing effective capacity under the same activation budget.
2.3 The Communication Cost of Distributed Deployment
Sparsity turns the problem from “insufficient compute” into “complex communication and scheduling.” Expert parallelism places different experts on different devices, so tokens must be routed across devices. High-bandwidth interconnects and a sensible parallelization strategy (a mix of tensor, pipeline, and expert parallelism) are prerequisites for deployment. This is also why models of the same size can show very different real-world throughput across cloud environments.
The routing logic can be abstracted schematically as:
# Illustrates the idea of sparse routing only; not any specific product APIdef sparse_forward(token_emb, experts, gate, top_k=2):scores = gate(token_emb) # [num_experts]idx = scores.topk(top_k).indices # selected expert IDsout = 0for i in idx:out = out + experts[i](token_emb) # only some experts are activatedreturn out
3. Capability Profile: What This Class of Models Does Well
Based on the public technical trajectory, the capability distribution of this generation of Chinese models falls into four broad areas:
- Code and structured generation: Code is typically the subdomain each vendor prioritizes, with relatively mature performance on completion, cross-file understanding, unit test generation, and error localization.
- Long-context processing: Long-context ability depends more on the position-encoding extrapolation scheme and the proportion of long sequences during training than on parameter count itself.
- Reasoning and math: Chain-of-thought style training noticeably improves multi-step reasoning, at the cost of longer outputs and higher latency.
- General conversation and Chinese semantics: The proportion and cleaning quality of Chinese corpora are the main variables.
To be objective: every model shares common problems such as hallucination, degradation over long reasoning chains, and lagging knowledge of recent events. There is no universal conclusion that any single model leads across the board.
4. Evaluation Methodology: A Practical Selection Process
Rather than relying on a single leaderboard, organizations should build their own evaluation set:
- Scenario sampling: Draw 200–500 representative requests from real business logs, covering both high-frequency and long-tail cases.
- Layered metrics: task success rate (automatically verifiable), human preference scores, P95 latency, and cost per thousand calls.
- Controlled experiments: fix the prompt and decoding parameters (temperature, top_p, max_tokens), changing only the model and deployment spec.
- Regression checks: rerun the evaluation set after any model or inference configuration change to catch capability regressions.
A minimal evaluation loop:
def evaluate(model_client, cases, k=3):passed = 0for c in cases:outs = [model_client(c.prompt) for _ in range(k)]if any(checker(c, o) for o in outs): # multiple samples reduce randomnesspassed += 1return passed / len(cases)
5. Deployment and Cost Optimization Practices
- Inference precision and GPU memory: a small activated parameter count does not mean low memory usage. All expert weights must either stay resident or be swapped in on demand, so the balance between memory and bandwidth needs evaluation.
- Batching and caching: continuous batching and prefix caching can significantly raise throughput under high concurrency.
- Elastic scaling: using the general capabilities of container platforms and monitoring/alerting, inference replicas can scale automatically based on queue length.
- Layered architecture: inject sensitive data and proprietary knowledge via retrieval augmentation rather than relying entirely on parametric memory, balancing compliance with update efficiency.
- General cloud components: object storage holds models and datasets, message queues smooth out request spikes, and logging plus monitoring/alerting services provide observability. The relevant general capabilities from Baidu AI Cloud can be combined in the same way.
