Decoding the Architecture of Chinese Trillion-Parameter MoE Large Models

    This article analyzes the architectural evolution of Chinese trillion-parameter Mixture-of-Experts (MoE) large models, focusing on the shift from dense scaling to sparsity. It covers the shared foundation of sparse MoE and low-rank attention (MLA), key design trade-offs in expert count, attention heads, and orthogonalized optimizers, as well as data token efficiency and practical engineering deployment advice.

    1. Background: Diminishing Returns of Dense Scaling

    Over the past two years, the growth of large model capabilities has primarily relied on the simultaneous scaling of parameter counts and data volume. However, once parameters reach the hundreds of billions to trillions range, the training and inference costs of dense architectures rise linearly or even faster, while returns gradually converge. The industry’s response is not to abandon scaling, but to shift the scaling dimension from “total parameters” to “sparsity”—continuously increasing the total parameter count while keeping the computation per forward pass manageable.

    The three domestic model routes mentioned in the original discussion form a clear evolutionary sample: one model first validated the feasibility of ultra-large-scale sparse architectures; a subsequent trillion-parameter model publicly adopted its attention design in a technical report and further adjusted the number of experts and heads; the third model did not explicitly state its architectural origin, but public comparison dimensions suggest its base model uses a similar approach. To avoid pointing to specific products, this article refers to them as “Sparse MoE Base A,” “Trillion-Scale Model B,” and “General Base C,” focusing on reusable engineering conclusions.

    2. Common Foundation: Sparse MoE and Low-Rank Attention

    2.1 Mixture-of-Experts Structure

    The core of sparse MoE is splitting the feed-forward layers into multiple “experts,” where each token is routed to only a few experts for computation. Total parameter count is thus decoupled from activated parameter count: a trillion-parameter model might only activate about 30 billion parameters, with compute overhead per forward pass close to a medium-sized dense model. The direct benefits are improved training throughput and inference concurrency, at the cost of significantly higher memory usage and all-to-all communication pressure.

    2.2 Low-Rank Attention Mechanism

    Another repeatedly adopted design is Multi-head Latent Attention (MLA). By compressing Key/Value into a low-dimensional latent space and caching the latent vectors, it drastically reduces KV Cache size. In long-context scenarios, this often determines the number of concurrent requests a single GPU can handle more than expert parallelism does. An illustrative comparison is shown below:

    1. # Pseudocode: Cache difference between standard MHA and low-rank KV compression
    2. # Standard: cache K and V, memory ∝ 2 * layers * heads * head_dim * seq_len
    3. kv_cache_mha = 2 * L * H * d_head * S
    4. # Low-rank: only cache the compressed latent vector c, memory ∝ layers * rank * seq_len
    5. kv_cache_mla = L * r * S # r << H * d_head
    6. print(kv_cache_mha / kv_cache_mla) # The ratio is the upper bound of long-context concurrency improvement

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

    3.1 Expert Count: Pushing Sparsity Further

    Trillion-Scale Model B increased the number of experts from 256 to 384, kept the hidden dimension at 7168, and compressed the hidden dimension of individual experts to 2048. This set of numbers reflects a clear trade-off: exchanging “more, narrower” experts for higher sparsity, continuing to reduce per-token computation while keeping activated parameters unchanged. The theoretical basis is that scaling laws still hold in the sparsity dimension—the benefits of increased sparsity have not yet been offset by degraded routing quality.

    The associated engineering issue that must be addressed is load balancing. The more experts there are, the higher the risk of routing collapse and hotspot experts, usually requiring auxiliary balancing losses, routing noise, and capacity factor control:

    1. # Illustration: Auxiliary loss for expert load balancing
    2. def aux_loss(router_logits, top_k=8, num_experts=384):
    3. p = softmax(router_logits, dim=-1) # Routing distribution
    4. f = one_hot(argtopk(router_logits, top_k)).float().mean(0)
    5. return num_experts * (p.mean(0) * f).sum() # Closer to 1.0 means more balanced

    3.2 Attention Head Count: Making Room for Inference

    In contrast to expert expansion, Model B reduced the number of attention heads from 128 to 64. Fewer heads directly compress the parallel width and cache overhead of attention computation, making long-sequence inference more cost-effective. This combination of “more experts, fewer heads” essentially shifts the budget from inference-sensitive paths to training capacity.

    3.3 Optimizer: Stability from Matrix Orthogonalization

    Another feature of Model B is the use of a matrix-orthogonalization optimizer (Muon-like methods). Compared to element-wise adaptive methods, it operates on the weight matrix as a whole, mitigating training instability caused by scale differences across layers by approximately orthogonalizing the update direction. In large-scale training, this typically manifests as smoother loss curves and fewer spikes. In practice, an element-wise adaptive optimizer is usually retained for embedding layers and normalization parameters, forming a hybrid optimization strategy.

    4. Data Side: Token Efficiency as the New Scaling Axis

    The tightening supply of high-quality human text makes “return per token” a metric as important as parameter count. Feasible practices include: increasing the cleaning and deduplication intensity of Chinese, English, and code data; building verifiable synthetic data for reasoning and mathematics; dynamically adjusting data mixtures by training stage; and introducing high-quality annealing data in the later stages. For evaluation, track both the slope of validation loss reduction and downstream task gains, avoiding a focus on total volume alone without considering marginal returns.

    5. Engineering Implementation and Selection Advice

    • Memory accounting: Estimate weight and optimizer state usage based on total parameters rather than activated parameters; activated parameters only determine the compute budget.
    • Communication strategy: Expert parallelism requires high-bandwidth interconnects; for cross-node deployment, evaluate All-to-All overhead and topology affinity.
    • Inference optimization: Prioritize confirming KV Cache compression schemes, batch scheduling, and prefix reuse capabilities before discussing throughput metrics.
    • Platform side: Training can rely on general container platforms and high-performance storage for orchestration; the inference side should establish an observability loop with load balancing, logging services, and monitoring alerts. Model hosting and elastic scaling can be implemented using common general-purpose industry capabilities.
    • Evaluation methods: Perform horizontal comparisons under fixed hardware and concurrency conditions, reporting first-token latency, steady-state throughput, and long-context performance separately.

    6. Conclusion

    The shared judgment across the three routes is that sparsity, cache efficiency, and token efficiency are replacing simple parameter stacking as the primary competitive dimensions for trillion-scale models. For developers, understanding these three points—“decoupling total parameters from activated parameters,” “low-rank caching determines long-context costs,” and “routing balance determines training stability”—is sufficient to make reliable decisions during selection and deployment.