Why Chinese Large Language Models Share Similar Architectures: The Engineering Logic Behind Model Design

    This article explains why leading Chinese large language models converge on similar architectures, and why architecture alone does not determine model quality. It covers the shared use of sparse Mixture-of-Experts (MoE) combined with low-rank compressed attention, the distinction between total and activated parameters, KV Cache reduction, expert granularity and sparsity trade-offs, reduced attention heads, training stability challenges, and practical guidance for model selection and deployment. Readers will learn how to evaluate models based on engineering constraints rather than parameter tables alone.

    1. Key Takeaway: Shared Architecture, Different Engineering Trade-offs

    Based on publicly available technical material, several representative Chinese large language models follow highly similar design paths. They can be understood as different implementations of the same technical paradigm. Most adopt a combination of sparse Mixture-of-Experts (MoE) and low-rank compressed attention, which means comparing them purely at the architecture level has limited value. The real differences come down to three dimensions: the chosen sparsity and expert granularity, the trade-off between attention and compute budget, and the maturity of the training and inference engineering pipeline.

    It is important to note that similar architecture does not mean similar capability. Data mixtures, data cleaning strategies, post-training methods (supervised fine-tuning, preference optimization, reinforcement learning), and inference-side serving capabilities can all significantly change final performance. Treating a “shared architecture” as “identical capability” is the most common misreading.

    2. Total Parameters vs. Activated Parameters: Why Total Parameter Counts Keep Growing

    These models typically show a pattern of “very large total parameters, very small activated parameters.” For example, one class of implementations has a total parameter count on the order of a trillion, while a single forward pass activates only on the order of tens of billions of parameters. The implication is that memory and storage costs are determined by total parameters, while compute (FLOPs) is mainly determined by activated parameters.

    This leads to two direct conclusions:

    • Memory is a hard constraint. Trillion-scale parameters require multiple machines and GPUs to host, even when stored at low precision, so inference deployment must rely on sharding strategies such as tensor parallelism and expert parallelism.
    • Cost-performance per unit of compute is high. Small activated parameters mean controllable per-token compute, giving clear throughput advantages in batch serving scenarios.

    A rough engineering rule of thumb: memory depends on total parameters, speed depends on activated parameters, and quality depends on data and post-training. The three should not be conflated.

    3. Attention Mechanism: How Low-Rank Compression Reduces Inference Cost

    In traditional multi-head attention, the key-value cache (KV Cache) grows linearly with sequence length under long contexts, becoming a major source of memory and bandwidth pressure. The core idea of low-rank compressed attention (often referred to as MLA in the industry) is to project keys and values into a low-dimensional latent space, cache only this compressed representation, and project it back up when needed.

    Illustrative expression (only to show dimensional relationships, not a specific implementation):

    1. # c_kv: compressed low-rank latent representation, dimension far smaller than head_dim * num_heads
    2. c_kv = x @ W_down_kv # down-projection
    3. k, v = c_kv @ W_up_k, c_kv @ W_up_v # up-projection to restore when needed
    4. # Cache c_kv instead of full k/v, significantly reducing KV Cache size

    The benefit is a substantial reduction in memory usage and memory-access bandwidth in long-context scenarios. The cost is extra parameters and implementation complexity from the projection matrices, which place higher demands on operators and parallelism strategies.

    4. Number of Experts and Expert Granularity: The Sparsity Trade-off

    Increasing sparsity (more experts, smaller individual experts) usually yields better results under the same activation budget, which is why it is the common choice in current mainstream implementations. A common approach is to raise the number of experts to the hundreds while compressing the hidden dimension of each expert to a small value, forming a “fine-grained experts + multiple activated experts” structure.

    However, higher sparsity is not always better, and two issues must be addressed:

    1. Load balancing. Routing skew causes some experts to be overloaded while others sit idle, typically addressed with auxiliary balancing losses and capacity factor limits.
    2. Communication overhead. Under expert parallelism, routing results introduce All-to-All communication; the more experts and the finer the sharding, the greater the network pressure.

    Therefore, the “number of experts” must be considered together with cluster interconnect capability. Discussing sparsity without accounting for network conditions is meaningless.

    5. Number of Attention Heads: Making Room for the Inference Budget

    Some implementations deliberately reduce the number of attention heads (for example, from the common hundred-plus down to a few dozen), giving the saved budget to the expert layers. This is a clear trade-off: the number of attention heads affects expressiveness and long-range modeling, but accounts for a considerable share of compute and cache cost during inference. Reducing the number of heads, combined with low-rank compression, can trade a tolerable loss in quality for lower per-token cost.

    6. Training Stability: The Real Challenge for Sparse Models

    The failure mode of MoE is often not poor quality but training divergence. Common risks and countermeasures include:

    • Routing collapse: a few experts are selected repeatedly. Countermeasures are routing noise, auxiliary losses, and expert capacity limits.
    • Numerical instability: activation distributions drift under low-precision training. Countermeasures are appropriate normalization placement, precision tiering (keeping high precision for sensitive operators), and gradient clipping.
    • Parallelism inconsistency: combinations of expert parallelism and pipeline parallelism can easily cause load imbalance. Countermeasures are dynamic scheduling and checkpoint strategy optimization.

    Whether a solution is mature is judged not by peak metrics but by whether it can converge stably over long periods on large-scale clusters.

    7. Selection and Deployment Recommendations

    When facing multiple models with similar architectures, evaluate them in the following order:

    1. Define constraints: context length, concurrency, per-request cost, memory and network conditions.
    2. Look at activated parameters and cache strategy to estimate throughput and memory, rather than only total parameters.
    3. Run small-scale evaluations on your own business datasets, focusing on real scenarios such as long documents, structured output, and tool calling.
    4. Assess serving support: elastic scaling, canary releases, logging and monitoring alerts, rate limiting and quota management.
    5. Pay attention to cost and capacity planning, incorporating general cloud capabilities such as object storage, message queues, and container platforms into the overall architecture.

    In related practice at Baidu AI Cloud, the general recommendation is to advance model capability evaluation and the engineering pipeline separately: first validate quality with small traffic, then host inference services on a container platform, and build an observability loop with logging and monitoring alerts, avoiding resource waste from a one-time large-scale investment.

    8. Summary

    A shared architecture is the current common state of Chinese large language models. The focus of comparison should shift from the “parameter table” to the “engineering table”: how to trade off sparsity and expert granularity, how attention compression reduces cost, how to keep training stable, and how to serve inference. Understanding these main threads is what enables verifiable, rollback-capable, and cost-controlled technical decisions in a specific business.