Analyzing the Architecture of Chinese LLMs: A Technical Guide to Shared Sparse MoE Designs
This article examines why leading Chinese large language models, despite showing different strengths in public benchmarks, share a highly similar underlying architecture based on sparse Mixture-of-Experts (MoE) and low-rank attention compression. It breaks down the core technical components—including Top-K routing, KV cache reduction, and sparsity scaling trade-offs—along with training strategies involving orthogonalized optimizers and synthetic data. Finally, it provides developers with a four-dimensional framework for model selection focused on context capability, inference cost, structured output, and engineering support.
1. Introduction: Surface-Level Capability Differences vs. Architectural Commonality
In the current generative AI landscape, large language models developed by various teams in China exhibit distinct capability profiles in public evaluations and user feedback. Some excel at ultra-long context reading, making them suitable for legal, research, and financial analysis scenarios that require processing massive documents. Others focus on engineering maturity, high throughput, and low latency, catering to enterprise-level complex task orchestration and real-time interactions.
However, when we dissect the underlying technology, these differences do not stem from “completely different technical routes.” A widely discussed observation in the industry is that several mainstream Chinese models are highly homogeneous in their base architecture—they can be understood as “half-siblings” sharing the same proven and efficient sparse Mixture-of-Experts (MoE) design paradigm. Their differences mainly lie in sparsity configurations, optimizer choices, data mixtures, and engineering implementations.
Understanding this is valuable for developers: when selecting a model, you should not be driven solely by single metrics like “parameter count” or “leaderboard scores.” Instead, you should conduct a structured evaluation across four dimensions: architectural parameters, inference cost, context capability, and engineering support.
2. The Technical Foundation of Shared Architectures: Sparse MoE and Efficient Attention
2.1 Core Concept of Sparse Mixture-of-Experts (MoE)
In a traditional dense Transformer, every token must pass through the forward computation of all parameters, meaning parameter growth directly leads to a linear increase in computation. The key modification in sparse MoE is introducing “routing + expert pool”: each token is routed to only a few experts for computation, allowing the total parameter count to expand significantly while keeping the activated parameter count relatively controlled.
A typical MoE layer can be expressed with the following pseudocode:
# Illustrative pseudocode: Top-K sparse routinglogits = router(hidden_states) # [batch, seq, num_experts]topk_val, topk_idx = logits.topk(k=2, dim=-1)gates = softmax(topk_val, dim=-1) # Normalized gating weightsoutput = zeros_like(hidden_states)for expert_id in range(num_experts):mask = (topk_idx == expert_id) # Tokens hitting this expertif mask.any():expert_out = experts[expert_id](hidden_states[mask])output[mask] += gates[mask] * expert_out
Three key engineering parameters directly determine cost and performance here: total number of experts, Top-K activation count, and expert hidden dimension. More total experts mean greater “knowledge capacity” for the model, but also increase routing and VRAM pressure. A larger Top-K yields more stable performance but higher compute overhead.
2.2 Low-Rank Compression in Attention Mechanisms
Shared architectures commonly adopt a “low-rank KV compression” attention design (often referred to as MLA in the industry). Its core idea is to use low-rank projection to compress the Key/Value cache into a low-dimensional latent space and restore it during inference, significantly reducing KV Cache VRAM usage and bandwidth pressure in long-context scenarios.
For developers, the practical significance is that long context is no longer an engineering challenge of simply “piling up VRAM.” It can run on a single card or a small number of cards at an acceptable cost, directly determining the feasibility of document-reading applications.
2.3 Scaling Trade-offs in Sparsity
Under the shared route, the most significant differentiating action among vendors is adjusting sparsity. Industry experience (from a Scaling-Law perspective) shows that under a fixed total compute budget, continuously increasing sparsity (more experts, fewer activations) often leads to a better performance/cost curve. Two typical adjustment paths can be observed:
- Path A: Increasing the number of experts from the 256 level to the 384 level, while reducing the number of attention heads from 128 to 64 to lower inference-stage computation overhead.
- Path B: Maintaining a similar ratio of total parameters to activated parameters, focusing instead on optimizing data quality and training stability.
Neither path is absolutely superior; the former leans toward “trading capacity for performance,” while the latter leans toward “trading data for efficiency.”
3. Training Efficiency: From Optimizers to Data Strategies
3.1 Optimizers and Stability
Under the shared architecture, a key variable on the training side is the choice of optimizer. Recently, the industry has seen a class of optimizer approaches based on matrix orthogonalization (represented by directions like Muon), motivated by improving token efficiency under the same token budget. However, these optimizers are prone to numerical instability in large-scale training and require supporting clipping/normalization techniques (such as explicit constraints on QK-related quantities) to stabilize the training curve.
Engineering practices worth borrowing include:
- First validating the combination of optimizer + stability patches using a small-scale proxy model.
- Monitoring gradient norms, activation distributions, and routing entropy, and rolling back promptly if collapse occurs (extremely concentrated expert routing).
- Incorporating “token efficiency” as a first-class metric in the experiment dashboard, rather than only looking at loss.
3.2 Data Efficiency and Synthetic Data
It is a consensus in the industry that high-quality human corpora are gradually peaking. There are two main countermeasures: one is the extreme refinement of data cleaning and deduplication; the other is synthetic data generation (using strong models to generate reasoning chains, code, math problem solutions, etc.) to supplement scarce capability dimensions. It must be emphasized that synthetic data must be paired with strict quality filtering and decontamination; otherwise, it will introduce distribution shifts and factual degradation.
4. The Real Source of Capability Profile Differences
Returning to the opening phenomenon: why do shared architectures yield two reputations—“strong long-text reading” and “extremely fast engineering”? The technical attribution is roughly three points:
- Different context and positional encoding strategies lead to different effective context lengths and mid-section information recall capabilities.
- Different sparsity and attention head configurations lead to different throughput and first-token latency under long sequences.
- Different levels of engineering polish in post-training (SFT/preference optimization), tool calling, and structured output (JSON, function calling) lead to different success rates for enterprise-level complex tasks.
Therefore, being “unbeatable at long text” and “extremely fast” are not architectural generation gaps, but the results of configuration and engineering trade-offs.
5. Selection and Implementation Advice for Developers
5.1 Four-Dimensional Evaluation Framework
It is recommended to score candidate models using the following tabular dimensions (scores are custom and for illustration only):
| Dimension | Key Metrics | Applicable Scenarios |
|---|---|---|
| Context Capability | Effective context length, mid-section recall rate | Contract review, in-depth research report reading |
| Inference Cost | First-token latency, cost per thousand tokens | Real-time customer service, code completion |
| Structured Output | JSON validity rate, function call success rate | Enterprise process automation |
| Engineering Support | Fine-tuning support, observability, rate-limiting quotas | Production system integration |
5.2 Typical Scenario Mapping
- Long-document reading: Prioritize effective context and recall stability, combined with chunking + Retrieval-Augmented Generation (RAG) and reranking to reduce strong dependence on ultra-long windows.
- Real-time interaction: Prioritize latency and concurrency, using streaming output, result caching, and request batching to reduce costs.
- Enterprise complex tasks: Prioritize structured output and tool-calling stability, combined with retries, idempotency, and human fallback.
5.3 Leveraging General Cloud Capabilities
For production implementation, you can combine general cloud capability categories: object storage for corpora and model artifacts, container platforms for hosting inference services, message queues for request peak shaving, logging services and monitoring alerts for observability, and key management for credential hosting. Platforms like Baidu AI Cloud typically provide the above general capability categories, making it easier for teams to build operable inference pipelines in a standardized way.
6. Common Pitfalls and Risk Warnings
- Only looking at total parameters without activated parameters: MoE cost is determined jointly by activated parameters and routing efficiency.
- Blindly pursuing ultra-long context: The attention “lost in the middle” phenomenon is widespread; a long window does not mean full usability.
- Ignoring evaluation contamination: Leaderboard scores need to be verified with self-built business datasets.
- Neglecting compliance and data security: Enterprise scenarios require early design for data desensitization, audit trails, and permission isolation.
7. Conclusion
Currently, mainstream Chinese large models are highly homogeneous in their base architecture. True differentiation comes from sparsity configuration, optimizer and data strategies, post-training, and engineering support. Developers should establish a four-dimensional perspective of “architecture—cost—scenario—engineering” and use business evaluation sets as the benchmark for selection, rather than being led by a single metric.
