Analyzing the Architecture of Chinese Trillion-Parameter MoE Large Models

    This article examines the shared architectural foundations of leading Chinese trillion-parameter Mixture of Experts (MoE) large models. It highlights that while the core Transformer skeleton is similar across vendors, key engineering differences lie in sparsity ratios, attention head configurations, optimizer choices, and token efficiency. The text details common design patterns like low-rank attention compression and layered hidden dimensions, alongside practical challenges such as routing collapse and training stability. Finally, it offers actionable advice for developers on evaluating these models based on business metrics rather than raw parameter counts, and building replaceable architectures using general cloud capabilities.

    1. The Bottom Line: Shared Architecture, Different Engineering and Data

    Based on public technical materials, the underlying architectures of leading Chinese large models are highly convergent. Most adopt a trillion-parameter-scale Mixture of Experts (MoE) Transformer structure, sharing the same validated design paradigm. Differences in so-called “core advantages” usually do not lie in the skeleton itself, but in three engineering dimensions: the ratio of sparsity to activated parameters, the token efficiency of training data, and the stability of the training and inference pipelines.

    Therefore, a more valuable question for developers is not “whose structure is more unique,” but “given a shared architecture, how does each vendor make trade-offs, and what do those trade-offs mean for my business?”

    2. The Common Skeleton: MoE + Efficient Attention

    2.1 Sparsity as the Main Approach

    Fully activating a trillion-parameter model results in unacceptable inference costs. The common industry practice is to activate only a tiny fraction of parameters per token (typically 2% to 4% of the total), balancing parameter capacity against computational overhead.

    2.2 Cost-Reduction Design in Attention

    Mainstream solutions use low-rank compression attention (compressing Key/Value into a low-dimensional latent space cache), significantly reducing memory usage in long-context scenarios. This is the prerequisite for scaling long-text capabilities.

    2.3 Layering of Hidden and Expert Dimensions

    A common configuration sets the backbone hidden dimension around 7000 and individual expert hidden dimensions around 2000. The backbone handles global semantic interactions, while experts handle local pattern fitting.

    3. Key Divergences: Sparsity, Head Count, and Optimizers

    There are not many tunable knobs in a shared architecture. Vendor differences mainly concentrate in the following areas:

    Design Item Typical Approach A Typical Approach B Impact
    Expert Count Around 256 Around 384 Higher sparsity offers better theoretical performance but more uneven routing loads
    Attention Heads 128 64 Fewer heads mean wider individual heads, which is friendlier to inference parallelism and memory
    Optimizer Adaptive optimizers Momentum-based optimizers Affects memory usage and convergence stability in large model training
    Pre-training Tokens Tens of trillions Tens of trillions Determines token efficiency, a core metric

    Note: The table above summarizes common approaches discussed publicly in the industry and does not represent confirmed parameters of any specific product.

    Why is increasing expert count a trend? Scaling law research indicates that under constraints of total and activated parameters, increasing sparsity (more experts, fewer activations) yields a better performance-to-cost ratio. However, the cost is increased difficulty in routing load balancing, requiring stronger auxiliary losses and capacity factor control.

    Why reduce attention head count? Halving the head count doubles the dimension per head. In long-context scenarios, reading and writing the KV cache becomes more regular, tensor parallelism slicing becomes simpler, and the engineering implementation is more stable.

    4. The Underrated Core Metric: Token Efficiency

    High-quality human language data is nearing exhaustion, a shared constraint for this generation of models. Consequently, “how much effective knowledge is learned per token” has become a more critical metric than “how many GPUs are stacked.” Feasible approaches include:

    1. Data mixture engineering: Iteratively performing ablations on the ratios of code, math, multilingual, and synthetic data;
    2. Curriculum training: Progressively increasing data quality density from general to specialized stages;
    3. Repetition control: Repeating high-quality subsets a limited number of times to avoid memorization harming generalization.

    Illustrative data mixture configuration (pseudocode):

    1. data_mix = {
    2. "web_general": 0.45,
    3. "code": 0.20,
    4. "math": 0.12,
    5. "multilingual":0.13,
    6. "synthetic": 0.10,
    7. }
    8. # Allow 1-2 epochs of repetition for high-quality subsets; no repetition for low-quality data

    5. Training Stability: The Real Challenge of MoE

    The three most common failures in MoE training are: routing collapse (a few experts consuming most tokens), numerical overflow (activation explosions under low precision), and loss spikes. Engineering practices typically combine:

    • Load balancing auxiliary loss + expert capacity limits;
    • A mixed strategy using higher precision for the backbone and lower precision for expert computations;
    • Conservative settings for gradient clipping and learning rate warmup;
    • Full-pipeline checkpoints and fast rollback mechanisms.

    6. Selection and Implementation Advice for Developers

    1. Do not look only at total parameters: Activated parameters, context length, throughput, and time-to-first-token are the actual business metrics.
    2. Run A/B tests with your own evaluation sets: Score across three dimensions: task success rate, P95 latency, and cost per call.
    3. Keep the architecture replaceable: Abstract model calls into a unified gateway layer for easy future switching.
    4. Leverage general cloud capabilities for cost efficiency: Use object storage for corpora and artifacts, container platforms for inference services, logging and monitoring services for observability, and message queues for asynchronous peak shaving.
    5. Calculate the cost of long context: KV cache grows linearly with length; evaluate real costs combined with cache reuse and batching strategies.

    7. Summary

    The architectures of leading Chinese large models have highly converged on the paradigm of “sparse MoE + efficient attention + high token efficiency.” The real moat lies in data engineering, training stability, and inference cost optimization. Developers should shift their focus from “parameter and model comparison” to “quantifiable business benefit evaluation,” and leverage general cloud product capabilities from platforms like Baidu AI Cloud to build replaceable, observable, and cost-controlled large model application architectures.