Chinese LLMs: Comparing Core Technical Routes

    This article compares the main technical routes adopted by Chinese large language models, including long-context and coding capabilities, lightweight model design, multimodal architectures, MoE sparse models, and alignment approaches. It explains the technical challenges and trade-offs behind each route and provides a practical framework for model selection based on task profiles, inference cost, compliance requirements, and small-scale validation.

    1. Background: From Following to Differentiated Innovation

    After the Transformer architecture was introduced in 2017, Chinese AI researchers quickly followed this new paradigm. Supported by national strategic planning, policy support, capital investment, and returning talent, the industry developed a favorable foundation. Early Chinese large models largely followed overseas technical paths, but around 2023, vendors began to form differentiated technical routes, mainly along three lines:

    1. Long-context and coding capability route: emphasizing processing of very long texts and program generation;
    2. Lightweight route: pursuing lower inference cost and faster response speed;
    3. Multimodal route: integrating unified understanding and generation across text, images, and other modalities.

    These three routes are not mutually exclusive. They represent different optimization priorities for different application scenarios. The following sections examine their technical principles and suitable use cases one by one.

    2. Long Context and Coding Capability: Addressing the Pain Points of “Forgetting” and “Writing Poorly”

    2.1 Technical Challenges of Long Context

    Expanding the context window from several thousand tokens to hundreds of thousands or even millions of tokens involves three major challenges:

    • Quadratic complexity of attention computation: The computation of standard self-attention grows quadratically with sequence length. Optimization methods such as sparse attention, sliding-window attention, and linear attention are needed;
    • Extrapolation capability of positional encoding: Traditional sinusoidal positional encoding degrades when the input exceeds the training length. The industry commonly uses RoPE (Rotary Position Embedding) together with techniques such as position interpolation and NTK-aware scaling to achieve length extrapolation;
    • “Lost in the middle” in long texts: Studies show that models recall information in the middle of very long contexts significantly less reliably than information at the beginning or end. This can be mitigated through training data construction and retrieval-augmented generation (RAG).

    2.2 The Essence of Coding Capability

    Strong coding capability usually means broad coverage of multiple programming language syntaxes, accurate understanding of cross-file dependencies in long contexts, and a high execution rate for generated results. Improvement paths include:

    • Using large-scale, high-quality code corpora for pretraining and continued training;
    • Introducing a Fill-in-the-Middle training objective so the model can complete intermediate code based on context, which is essential for intelligent completion within an IDE;
    • Using unit test feedback for reinforcement learning, making “executable and able to pass tests” the optimization signal for the model.

    Suitable scenarios: enterprise-level coding assistants, long-document analysis (contract review, paper reading), and large-scale log troubleshooting. If the core business involves processing very long inputs or development scenarios, priority should be given to the model’s public benchmark performance in this dimension.

    3. Lightweight Route: Making Large Models “Affordable to Run and Fast to Run”

    3.1 Technical Methods for Lightweighting

    Lightweighting is not simply reducing the number of parameters; it is a systems engineering effort:

    • Architecture level: using Grouped-Query Attention (GQA) to reduce KV cache usage; using efficient activation functions such as SwiGLU; reducing parameter redundancy by sharing embedding and output layers;
    • Training level: “small but precise” training under high-quality data ratios, using data quality to compensate for parameter scale;
    • Deployment level: inference acceleration techniques such as quantization (INT8/INT4), KV cache compression, and speculative decoding.

    3.2 Value of On-Device and Private Deployment

    The core value of lightweight models lies in:

    • Controllable cost: single-inference cost drops by an order of magnitude, making them suitable for high-concurrency calls;
    • Private deployment feasibility: they can run on a single multi-GPU machine or even consumer-grade devices, meeting compliance requirements that data must not leave the domain;
    • Low latency: short first-token response time, suitable for dialogue and high-frequency Agent invocation scenarios.

    Selection advice: If the business has high QPS, is latency-sensitive, and involves medium-complexity tasks, lightweight models are often more cost-effective than stacking parameters.

    4. Multimodal Route: Extending Perception Beyond Text

    The typical architecture of a multimodal large model is a three-stage design: “vision encoder + modality alignment module + language model”:

    1. The vision encoder splits an image into patches and encodes them into feature sequences;
    2. The alignment module (such as a projection layer or cross-attention) maps visual features into the embedding space of the language model;
    3. The language model performs unified understanding and generation.

    Key technical difficulties include image-text alignment accuracy, fine-grained OCR understanding, and video temporal modeling. Multimodal capability determines the upper limit of the model in scenarios such as document understanding, chart question answering, and visual Agents.

    5. MoE Sparse Architecture: Balancing Efficiency and Scale

    Represented by the practice of one Chinese model, the MoE (Mixture of Experts) architecture has become an important innovation direction for Chinese large models. Its core idea is “specialization”:

    • The model consists of a shared backbone plus multiple “expert” feed-forward networks, with total parameters reaching hundreds of billions;
    • A gating network dynamically routes based on the input, activating only a few experts each time. For example, a sparse design with 236 billion total parameters and only about 21B activated per inference can maintain large knowledge capacity while compressing inference FLOPs to a fraction of a dense model;
    • The gating temperature coefficient determines the sharpness of the expert distribution: at high temperature, activation is more dispersed and exploratory; at low temperature, it concentrates on top-k experts and improves determinism;
    • Engineering challenges include expert load balancing, expert parallelism, and communication overhead.

    MoE makes it possible to achieve “large-model capability at medium-model cost” and is one of the mainstream choices for current frontier models.

    6. Alignment and Controllability: Two Complementary Paths

    In alignment technology, the industry has two complementary approaches:

    • Rule- and preference-driven: establishing a behavioral constraint framework inside the model through a value criteria system and human preference ranking feedback (such as RLHF);
    • Knowledge- and data-driven: shaping output behavior from the training distribution level through deep cleaning of high-quality Chinese corpora, knowledge-graph-enhanced retrieval, and data optimization under local cultural contexts.

    The former starts from the model mechanism, while the latter starts from the data distribution. Only by combining the two can outputs be both safe and contextually appropriate. During private deployment, enterprises can also add custom security policies and domain knowledge bases to form a layered controllability system.

    7. Practical Selection Recommendations

    Based on the above analysis, here is an actionable evaluation framework:

    1. Clarify the task profile: for long-document processing, prioritize context capability; for coding scenarios, examine execution rate and repository-level understanding; for mixed text-image scenarios, examine multimodal benchmarks;
    2. Evaluate inference cost: compare equivalent activated parameter count, throughput, and first-token latency. For MoE models, pay attention to batch processing efficiency;
    3. Verify compliance and private deployment capabilities: examine precision loss after quantization and the pluggability of knowledge enhancement and safety filtering;
    4. Run small-scale pilots: use real business data for A/B evaluation and avoid relying blindly on a single leaderboard.

    8. Conclusion

    Chinese large models have moved from “replicating architectures” to “route differentiation”: long-context and coding capabilities deepen productivity scenarios, the lightweight route lowers deployment barriers, multimodal capabilities extend perception boundaries, and the MoE architecture balances scale and cost. For developers and enterprise users, understanding the technical principles behind each route is more valuable than remembering the name of any single model. The essence of model selection is matching technical characteristics precisely to business requirements.