Chinese Open-Source LLM Architectures: MoE and Sparse Design Trade-Offs

    A technical comparison of Chinese open-source large language models, focusing on mixture-of-experts architectures, sparse activation, and Multi-head Latent Attention. Learn how expert counts, active parameters, attention configurations, and training strategies shape the trade-offs between model capacity, inference cost, and deployment requirements.

    Chinese Open-Source LLM Architectures: MoE and Sparse Design Trade-Offs

    1. The Main Takeaway: Similar Architectures, Different Engineering Choices

    Public technical reports point to substantial architectural convergence among several leading Chinese open-source large language models. A common direction is the transition from dense Transformers to sparse mixture-of-experts (MoE) architectures, with Multi-head Latent Attention (MLA) also appearing as a key attention component.

    Comparing models simply by whether they use MoE or MLA therefore reveals relatively little. The more meaningful differences lie in three engineering decisions:

    1. Sparsity and expert count: How does total parameter count compare with the number of parameters activated per token?
    2. Inference cost reduction: How are attention head counts, KV cache size, and GPU memory requirements balanced?
    3. Training and scaling: How do scaling laws guide the allocation of the parameter budget?

    These models are better understood as different configurations within a shared architectural paradigm than as fundamentally different technical approaches.

    2. MoE Architectures: Why Sparse Activation Matters

    2.1 How MoE Works

    MoE replaces a Transformer’s feed-forward network (FFN) with multiple parallel expert networks. A router dynamically selects a small subset of experts to process each token.

    The main benefits are:

    • Separating parameter capacity from compute cost: A model can contain trillions of total parameters while activating only a small fraction for each token.
    • Improving training efficiency: Under a fixed compute budget, MoE models can often achieve better loss reduction than dense models.
    • Enabling specialization: Different experts can gradually learn different patterns or knowledge domains.

    A simplified MoE feed-forward computation looks like this:

    1. # Pseudocode: Top-K sparse routing
    2. def moe_ffn(x, experts, router, top_k=8):
    3. gate_logits = router(x) # [seq, n_experts]
    4. weights, indices = topk(gate_logits, top_k)
    5. y = zeros_like(x)
    6. for w, idx in zip(weights, indices):
    7. y += w * experts[idx](x) # Activate only the selected experts
    8. return y

    This illustrates the routing concept rather than a complete implementation.

    2.2 Increasing Sparsity

    Scaling-law research suggests that, within a given training compute budget, increasing sparsity—expanding total parameters while keeping active parameters relatively stable—can continue to improve performance.

    As a result, newer models often use more experts than earlier generations. Public reports include configurations with 384 experts, compared with the previously common scale of 256 experts.

    However, greater sparsity brings additional costs:

    • GPU memory pressure: Keeping all expert weights resident in GPU memory increases deployment requirements as total parameter count grows.
    • Routing stability: More experts make load balancing and the prevention of routing collapse harder.
    • Communication overhead: All-to-All communication for expert parallelism can become a bottleneck in multi-node training.

    More experts are therefore not a free improvement. Expert count must be designed together with parallelization strategies and load-balancing mechanisms, including auxiliary losses.

    3. MLA: Reducing Attention Memory Costs

    Alongside MoE, MLA is another important design used across these architectures. It applies low-rank compression to key-value (KV) representations, substantially reducing the GPU memory required for the KV cache during inference.

    This can help models:

    • Support longer context windows.
    • Improve batched inference throughput.
    • Reduce per-token inference costs for long-text workloads.

    3.1 The Attention Head Trade-Off

    Some models reduce attention head counts from 128 to 64 to lower attention-side computation, while increasing expert counts to compensate for representational capacity.

    This reflects a deliberate budget allocation:

    Shift compute from attention to feed-forward experts when sparse expert capacity offers a greater marginal benefit under the model’s scaling strategy.

    The important distinction is not simply whether a model has more experts or fewer attention heads. It is how those choices work together within the overall compute budget.

    Publicly reported configurations include values such as the following:

    Configuration Representative value Role
    Model hidden dimension 7168 Sets the representation width at each layer
    Expert hidden dimension 2048 Sets the intermediate width of an individual expert FFN
    Attention heads 64–128 Fewer heads can reduce attention computation, depending on the configuration
    Active parameters Approximately 30B+ Parameters participating in computation for each token

    These values are coupled rather than independent. In a conventional attention configuration with fixed hidden width, reducing the number of heads increases the dimension per head. The design must therefore balance representational capacity against computation rather than treating head count alone as an efficiency metric.

    4. Evaluating Meaningful Architectural Advantages

    What are the core advantages of these models? Setting aside branding and marketing, the most useful distinctions fall into three categories.

    4.1 Total Parameters Versus Active Parameters

    • More sparse models: Larger total parameter counts with relatively few active parameters can suit workloads that prioritize capacity and have substantial deployment resources.
    • Less sparse models: Configurations with a smaller overall parameter footprint can be easier to deploy in resource-constrained private environments.

    The active parameter count helps describe per-token compute requirements, while total parameters remain important for weight storage and deployment.

    4.2 Different Inference Optimization Priorities

    Models can emphasize different ways of reducing inference costs:

    • Lower KV cache memory through mechanisms such as MLA or grouped-query attention (GQA).
    • Reduce attention computation by using fewer attention heads.
    • Lower per-token expert computation through finer-grained experts and routing strategies.

    These choices target different bottlenecks. A design that reduces KV cache memory is not necessarily optimizing the same constraint as one that reduces attention FLOPs.

    4.3 Training Data and Post-Training

    Architecture provides the foundation, but final model quality also depends on data quality, data-cleaning pipelines, reinforcement learning, and alignment strategies.

    These factors rarely appear in an architecture diagram, yet they can account for much of the difference users experience in practice.

    5. Model Selection Advice for Developers

    1. Start With Deployment Constraints

    Estimate the memory needed to keep model weights resident using total parameters multiplied by precision bits, converting the result to bytes as needed. Then evaluate the compute requirements associated with active parameters against your available GPU resources and throughput targets.

    2. Evaluate Context Requirements

    For long-context workloads, pay particular attention to KV cache compression and attention design. Weight memory alone does not capture the memory demands of long-context inference.

    3. Benchmark Real Tasks

    Do not infer capability from parameter count alone. Run a small evaluation using tasks representative of your own workload.

    4. Check Licensing and Ecosystem Support

    Review the model license, weight availability, toolchain compatibility, and community activity. These factors are part of the practical cost of adopting an open-source model.

    6. Conclusion

    Several leading Chinese open-source LLMs share a common architectural direction: MoE supplies sparse parameter capacity, MLA reduces KV cache overhead, and scaling laws guide parameter-budget allocation.

    Their differences are largely expressed through expert counts, attention head configurations, activation ratios, and choices outside the architecture itself, including training data and alignment.

    For developers, understanding these shared mechanisms and their trade-offs is more useful over the long term than memorizing individual model names. Architectures will evolve, but the balance between capacity, cost, and performance remains a fundamental framework for evaluating large language models.