Core Technical Routes of Chinese LLMs: A Deep Dive

    This article explores the evolution and divergence of core technology routes in Chinese Large Language Models (LLMs). It provides an in-depth analysis of three primary strategies: the Sparse Mixture of Experts (MoE) architecture for efficient inference, long-context and code intelligence for specialized tasks, and lightweight deployment with multimodal fusion. Additionally, it offers practical recommendations for developers on model selection and engineering deployment, helping align technical capabilities with specific business scenarios.

    Core Technical Routes of Chinese LLMs: A Deep Dive

    1. From Following to Innovating: The Evolution of Chinese LLMs

    Following the advent of the Transformer architecture in 2017, global research efforts rapidly converged on this new paradigm. The development path of LLMs in China has distinct characteristics: on one hand, strategic industry investments provided a sustained supply of capital, compute, and talent; on the other, a massive application market forced model vendors to find differentiated breakthroughs in inference cost, context length, and vertical domain capabilities.

    Early Chinese vendors generally adopted a follower strategy, replicating mainstream decoder architectures and chasing parameter scale. Starting around 2023, a clear divergence in technical routes emerged: some teams bet on sparse architectures for extreme inference cost-effectiveness, others built moats around long context and code intelligence, while others chose lightweight deployment and multimodal fusion as their main direction. Understanding the technical trade-offs behind these routes is a prerequisite for developers in model selection.

    It is worth noting that regarding model controllability and value alignment, Chinese vendors have explored a path different from the overseas “Constitutional AI” framework. Through deep localization optimization of training data and the integrated enhancement of knowledge graphs and language models, they shape contextually appropriate output behavior at the data level. The two paths are not opposed but solve the same problem from different angles: internal model constraints versus training data sources.

    2. Route One: The Extreme Efficiency of Sparse Mixture of Experts (MoE)

    2.1 Core Mechanism

    The core idea of the Mixture of Experts architecture is “specialization”: splitting the feed-forward network in traditional dense models into multiple “expert” sub-networks. Each input token is processed by a gating network (Router) to calculate routing weights and is only dispatched to the most relevant Top-K experts. Taking a representative generation of industry models as an example, its total parameter count reaches over 200 billion, but through sparse activation, the parameters actually involved in a single inference computation are only about 60 billion. This achieves an upper capability limit close to that of ultra-large models at a significantly lower inference cost than dense models.

    The softmax temperature coefficient of the gating network is a key hyperparameter controlling routing behavior:

    1. import torch
    2. import torch.nn.functional as F
    3. def moe_router(logits, top_k=2, temperature=1.0):
    4. # Higher temperature leads to a smoother distribution, tending to activate more experts
    5. # Lower temperature leads to a sharper distribution, selecting only the top K experts
    6. probs = F.softmax(logits / temperature, dim=-1)
    7. top_k_weights, top_k_indices = torch.topk(probs, top_k, dim=-1)
    8. # Normalize the weights of the selected experts
    9. top_k_weights = top_k_weights / top_k_weights.sum(dim=-1, keepdim=True)
    10. return top_k_weights, top_k_indices

    2.2 Engineering Challenges

    MoE is not a free lunch; its engineering implementation requires solving three core problems:

    • Load Balancing: If routing consistently favors a few “popular experts,” it will cause uneven expert utilization and training instability. An Auxiliary Load Balancing Loss is typically introduced to constrain this;
    • Communication Overhead: When experts are distributed across different devices, the cross-device dispatch and collection of tokens (All-to-All communication) becomes a bottleneck, requiring refined parallel strategy design;
    • Attention Optimization: Some advanced models further introduce the Multi-head Latent Attention (MLA) mechanism, significantly reducing KV cache usage during long-sequence inference through low-rank compression of Keys/Values.

    3. Route Two: Long Context and Code Intelligence

    3.1 Technical Essentials of Long Context

    Supporting a context window of hundreds of thousands or even a million tokens is far more complex than simply “extending positional encoding.” It relies on a complete set of technical combinations:

    • Positional Encoding Extrapolation: Interpolation methods like NTK-aware scaling and YaRN based on Rotary Position Embedding (RoPE) enable the model to generalize to sequences far exceeding training lengths;
    • Efficient Attention: Sliding window attention, sparse attention, or linear attention variants reduce the computational complexity of attention from O(n²);
    • Long Text Training Data Ratio: Systematically increasing the proportion of long document samples during pre-training and continuous training, utilizing a curriculum-based length increment strategy.

    Long context capability directly determines the performance ceiling of models in scenarios like document QA, repository-level code understanding, and multi-turn Agent memory.

    3.2 The Logic Behind Code Capabilities

    Code intelligence is another heavily invested route. Its core elements include: cleaning and deduplication of high-quality code corpus, Reinforcement Learning from Verifiable Results (RLVR) based on compilation execution outcomes, and reward modeling targeting unit test pass rates. The advantage of code tasks lies in the automatic verifiability of reward signals—whether code passes test cases is objectively determinable, making RLVR particularly effective in the code domain.

    4. Route Three: Lightweight Deployment and Multimodal Fusion

    4.1 Lightweight Inference

    The lightweight route targets edge devices and low-cost API scenarios, utilizing common techniques including:

    Technique Function
    Knowledge Distillation Uses large models to guide small model training, preserving core capabilities
    Weight Quantization Compresses FP16 to INT8/INT4, reducing memory and bandwidth requirements
    Speculative Decoding Small model drafts, large model verifies, accelerating autoregressive generation
    Structured Pruning Removes redundant attention heads and feed-forward neurons

    4.2 Multimodal Alignment

    The core of the multimodal route is mapping visual, audio, and other modality information into the semantic space of the language model. Mainstream approaches use independent modality encoders to extract features, align them with the language model via a projector or cross-attention, and finally conduct cross-modal joint training during the instruction fine-tuning phase. The challenges lie in the sampling ratio of different modality data, resolution costs, and hallucination suppression.

    5. Selection and Deployment Recommendations

    For enterprise developers, selection should not rely solely on benchmark scores but match specific business scenarios:

    1. High Concurrency, Cost-Sensitive Business: Prioritize MoE sparse activation models or lightweight distilled models, and leverage container platform elastic scaling to control compute costs;
    2. Document Processing and Agent Applications: Prioritize long context capabilities and KV cache efficiency, supplemented by Retrieval-Augmented Generation (RAG) to reduce effective context length when necessary;
    3. R&D Efficiency Scenarios: Focus on code generation, repository-level understanding, and tool-calling capabilities;
    4. Image-Text Mixed Business: Evaluate multimodal alignment quality and fine-grained visual understanding capabilities.

    At the engineering deployment level, enterprises can leverage general cloud computing capabilities provided by Baidu AI Cloud (such as container platforms, object storage, logging services, and monitoring alerts) to build an elastic inference pipeline for model services. This standardizes the integration of model inference, vector retrieval, caching, and observability components, allowing for flexible switching between different technical routes and avoiding lock-in to a single model.

    6. Conclusion

    The competition among Chinese LLMs has shifted from a “parameter scale race” to a “technical route divergence.” MoE sparsification pursues inference economy, long context and code capabilities pursue task depth, while lightweight and multimodal approaches pursue deployment breadth. These three routes learn from each other and are rapidly converging, collectively pushing the industry’s capability boundaries. For developers, understanding the underlying mechanisms is more important than memorizing model names—because specific models will iterate, but the logic of technical trade-offs remains valid long-term.