A Technical Breakdown of China's Trillion-Parameter MoE LLM Architecture
This article examines the shared architectural foundation of leading Chinese trillion-parameter MoE large language models and the engineering trade-offs that set them apart. It explains why sparse MoE layers and low-rank attention have become standard, then breaks down three key design decisions: expert count and granularity, attention head budget reallocation, and optimizer choice for training stability. It also covers pre-training data and scaling strategy, and closes with practical guidance for developers on model selection, long-context testing, fine-tuning, and building a reproducible evaluation pipeline.
1. Key Takeaways: Same Foundation, Different Engineering Choices
Based on publicly available technical material, the leading large model teams in China do not differ much at the base architecture level. They look more like siblings from the same technical paradigm than distinct generations of design: all generally adopt a trillion-parameter-scale Mixture-of-Experts (MoE) Transformer, all introduce low-rank compression in the attention mechanism to relieve memory and bandwidth pressure, and all follow the same scaling idea of increasing sparsity to gain effective compute returns. The real differences concentrate on three engineering decisions: how to split sparsity and expert granularity, how to balance attention heads against the compute budget, and which optimizer and data recipe to use.
This matters for developers: when choosing a model, there is no need to fixate on an “architectural generation gap.” Instead, focus on metrics that are strongly tied to your business, such as inference cost, context length, tool-calling reliability, and deployment shape.
2. The Shared Foundation: MoE Plus Low-Rank Attention
2.1 The Core Logic of Sparsification
The essence of MoE is to split a dense feed-forward layer into multiple expert sub-networks, where each token activates only a few of them. Total parameter count determines the model’s knowledge capacity, while activated parameter count determines the compute cost of a single forward pass. Decoupling the two makes “large capacity with low inference cost” possible.
A rule of thumb widely observed in the industry is that, with the total activation budget held fixed, continuously raising sparsity (more and finer experts) tends to yield a better performance curve. This is the direct reason vendors have pushed expert counts from just over two hundred up to several hundred.
2.2 Why Low-Rank Attention Became Standard
Standard multi-head attention must cache the Key/Value of all historical tokens, and memory usage grows linearly in long-context scenarios. Low-rank compression attention jointly compresses K/V into a low-dimensional latent space, so inference only needs to cache the compressed representation. Memory usage drops substantially while the ability to model long sequences is preserved. For applications that require long-document understanding or repository-level context, this factor directly determines how much concurrency a single card can carry.
3. Differentiated Trade-Offs: Three Key Knobs
3.1 Expert Count and Expert Granularity
One typical configuration uses one trillion total parameters with about 32 billion activated parameters, raises the expert count to 384, compresses each expert’s hidden dimension to around 2048, and keeps the model’s overall hidden dimension at 7168. Compared with a 256-expert design using wider individual experts, fine-grained experts offer a larger combination space and more precise routing, at the cost of higher routing overhead and communication complexity.
3.2 The Counterintuitive Move on Attention Heads
A counterintuitive but sound design choice is this: since sparsification already supplies capacity, reduce the attention head count from 128 to 64 and hand the saved compute budget to expert computation. This reflects the core idea of “compute reallocation” in the MoE era: not simply piling on resources, but finding the optimal ratio under a fixed total budget.
3.3 Optimizer and Training Stability
Dense model training has long relied on adaptive moment estimation optimizers, but at trillion-parameter scale their state memory overhead (first- and second-order moments) becomes a bottleneck. A class of orthogonalization-based optimizers that has emerged in recent years replaces element-wise momentum with matrix orthogonalization updates. Under the same memory budget, they allow larger batches and higher throughput, making them an important option for large model pre-training. Note that the sensitivity of these optimizers to hyperparameters (learning rate, weight decay, update rate) differs from mainstream approaches, so migration usually requires a fresh small-scale sweep.
Illustrative configuration comparison (expresses design dimensions only, not specific product parameters):
# Pseudocode: trade-offs between two sparsification ratiosconfigs = {"wide_experts": {"hidden": 7168, "n_experts": 256, "expert_hidden": 3072, "heads": 128},"fine_experts": {"hidden": 7168, "n_experts": 384, "expert_hidden": 2048, "heads": 64},}# Total params ≈ shared layers + n_experts * expert_hidden * hidden * num_layers# Activated params ≈ shared layers + top_k * expert_hidden * hidden * num_layers# Conclusion: with a fixed activation budget, raising n_experts and lowering expert_hidden improves routing granularity
4. Pre-Training Data and Scaling Strategy
Trillion-parameter models typically need on the order of 15T high-quality tokens to complete pre-training. The data recipe emphasizes three points. First, the strictness of deduplication and quality filtering, which directly determines the balance between rote memorization and generalization. Second, the ratio of Chinese, English, and code, which affects downstream task performance. Third, the curriculum across training stages, for example doing general pre-training with longer sequences first, then entering a long-context extension and annealing phase, closing with high-quality data to lift benchmark performance.
5. Practical Guidance for Developers
- Do not use parameter scale as the sole selection criterion; activated parameters and sparsity have a more direct impact on inference cost.
- For long-context scenarios, verify the memory gains from low-rank attention first, and stress-test with real document lengths.
- If you plan continued training or fine-tuning, watch the interplay between optimizer state memory and batch size, and run a small-scale hyperparameter sweep first.
- On the engineering side, combine model serving, logging, monitoring and alerting, and an elastic container platform to form an observable, scalable inference pipeline. On Baidu AI Cloud, such capabilities are typically offered as general cloud product categories, making them easy to assemble on demand.
- Build your own evaluation set covering real scenarios such as tool calling, long-document summarization, and code completion, and make decisions with data rather than leaderboards.
6. Summary
The architecture of leading Chinese large models has converged to a high degree: trillion-scale MoE, low-rank attention, and extreme sparsification form the common foundation, while differences show up in engineering details such as expert granularity, attention budget reallocation, and the optimizer and data recipe. For users, this means the focus of selection should shift from “architecture comparison” to a three-way trade-off among cost, effectiveness, and operability, driven by reproducible stress tests and evaluations.
