Deconstructing Chinese LLM Technical Routes: Sparse Architecture and Training Efficiency

    This article analyzes the underlying technical routes of recent large language models (LLMs), highlighting common architectural choices such as Mixture of Experts (MoE) and attention mechanism optimizations. It explores how teams balance engineering tradeoffs, data formulations, and token efficiency during pretraining. The discussion covers the benefits and costs of sparse architectures, KV cache compression techniques, and strategies for maximizing data efficiency to provide a comprehensive view of current LLM development trends.

    1. Background: Common Foundations

    In recent years, technical documents from multiple LLM teams reveal highly similar underlying approaches. Model structures predominantly adopt the Mixture of Experts (MoE) architecture, attention mechanisms are optimized to reduce inference costs, and pretraining data is converging towards high quality and high token efficiency. The gaps between teams mainly lie in engineering tradeoffs, data formulations, and training details, rather than disruptive inventions.

    Therefore, when comparing different models, the more valuable questions are: What bottleneck does each design solve? What is the cost? In which scenarios are the benefits most evident? This article unfolds across four dimensions: commonalities, differences, evaluation, and implementation.

    2. Commonality 1: MoE Architecture as the Main Scaling Path

    In dense models, every parameter participates in every inference computation. As parameter scales grow, computational and memory overheads increase synchronously. The Mixture of Experts (MoE) architecture splits the feedforward network into multiple expert subnetworks. A routing module selects only a few experts for each input token. The total parameter count can be massive, while a single forward pass activates only a small fraction.

    Using a scale from public technical documents as an example: total parameters are around 1.04 trillion, active parameters are around 32 billion, and the activation ratio is about 3%. The computation for a single inference is close to that of a dense model with over 30 billion parameters, yet the model’s knowledge capacity far exceeds that scale.

    Sparsity refers to the ratio of total experts to active experts per pass. Increasing sparsity within a reasonable range allows more knowledge to be stored per unit of computation, and some studies observe a continuous decrease in loss. However, higher sparsity comes with costs. More experts mean increased routing overhead, cross-device communication, and load balancing difficulty. If certain experts remain idle, their parameters are wasted.

    The basic logic of Top-k routing can be represented by the following pseudocode:

    1. def dot(a, b):
    2. return sum(x * y for x, y in zip(a, b))
    3. def route(token_vec, gate_weights, k):
    4. # Calculate the score of the input vector against each expert's gate vector
    5. scores = [dot(token_vec, w) for w in gate_weights]
    6. # Select the top k experts with the highest scores
    7. top = sorted(range(len(scores)), key=lambda i: scores[i], reverse=True)[:k]
    8. # Normalize the scores of the selected experts to use as weighting coefficients
    9. total = sum(scores[i] for i in top)
    10. return [(i, scores[i] / total) for i in top]

    In practice, softmax is typically applied to the scores before selecting experts. Engineering-wise, load balancing is generally managed through auxiliary loss or bias terms to prevent a few experts from being overloaded while others idle.

    3. Commonality 2: Attention Mechanisms Leaning Towards Inference Efficiency

    The main overhead of attention mechanisms during inference comes from the KV cache. The longer the context, the more memory the cache occupies, which limits concurrency. Thus, recent improvements focus on two directions.

    The first direction is compressing the KV cache. Multi-head Latent Attention (MLA) uses low-rank projection to compress keys and values into smaller latent vectors for caching, restoring them during computation. The benefit is reducing the cache bytes per token, at the cost of extra projection computation and higher implementation complexity.

    The second direction is adjusting the number of attention heads. Increasing heads usually enhances representational diversity but also increases computation and cache. Some teams choose to reduce the number of heads in exchange for lower inference overhead. This adjustment requires controlled experiments under the same parameter budget to ensure no significant drop in model quality.

    The evaluation criterion should be: under the target context length, target latency, and target quality, which configuration offers the lowest overall cost.

    4. Commonality 3: Token Efficiency as a Core Pretraining Metric

    The growth rate of high-quality text data is limited, and the returns of simply piling on more data are diminishing. Token efficiency refers to how much effective capability a model can learn under the same data volume or compute power. Common methods to improve token efficiency include the following:

    • Data Cleaning: Filtering out low-quality, poorly formatted, and harmful text.
    • Deduplication: Removing near-duplicate content at the document and paragraph levels to reduce memorization risks and training waste.
    • Ratio Adjustment: Adjusting sampling proportions by domain (code, math, general knowledge, multilingual).
    • Curriculum Learning: Increasing the weight of high-quality data in later stages of training to intensively strengthen key capabilities.
    • Synthetic Data: Using existing models to generate reasoning processes, code, and Q&A data. This requires strict quality filtering to prevent the amplification of incorrect knowledge.

    When evaluating token efficiency, one should simultaneously observe training loss curves, downstream benchmark performance, and generalization across data distributions. Looking at only one metric easily leads to biased conclusions.

    5. Differences: Optimizer Selection and Engineering Details

    Optimizers are one of the areas where teams differentiate. For a long time, first-order adaptive optimizers have been the default choice for large-scale training, offering the most mature stability and tuning experience. In recent years, some new matrix-structure based optimizers