Chinese LLM Technical Routes and Model Selection Logic

    This article examines the divergent technical routes behind Chinese large language models and offers a practical framework for choosing between them. Instead of asking which model is strongest, it explains how sparse MoE architectures, long-context attention optimizations, lightweight and multimodal designs, and two distinct approaches to controllability each trade cost, capability, and governance against one another. Readers will find code-level illustrations of gating, load balancing, RoPE scaling, and quantization, plus a four-dimension evaluation matrix and a three-step adoption path for reproducing selection decisions in their own scenarios.

    1. Asking the Right Question: Not “Which Is Stronger” but “Why Do the Routes Differ”

    Competition among Chinese LLMs is intense, but keeping the discussion at the level of “which vendor is stronger” has little engineering value. The question that actually carries information is this: under constraints of limited compute, predominantly Chinese-language data, and industry deployments that demand controllability, which differentiated technical routes have different teams chosen, what did each choice cost them, and what capability did it buy?

    One common misconception needs correcting first: treating “long context,” “lightweight,” and “multimodal” as mutually exclusive labels oversimplifies the technical landscape. These are really three separate engineering trade-offs — attention versus memory footprint, parameter count versus activation cost, and representational unification versus training stability. Every vendor’s model makes compromises across all three; only the externally emphasized aspect differs.

    China’s AI development follows its own trajectory: policy guidance, capital investment, and returning talent together formed the industry’s soil. Most early teams reused architecture paradigms already validated abroad, and around 2023 more locally distinctive branches began to emerge. One notable difference lies in the approach to controllability: some routes build behavioral constraint frameworks inside the model, converging outputs through a rule-based principle system and preference-ranking feedback; others rely more on local-context optimization at the training-data level, plus the fusion of knowledge graphs with language models, using deterministic knowledge to constrain the fuzzy boundary of probabilistic generation. The two are not opposed — the former constrains “how to think,” the latter supplements “what is known.”

    2. Route One: Sparse Architectures and Restructured Inference Cost

    The sparse route represented by Mixture of Experts (MoE) aims to break the linear relationship in which capability growth necessarily brings proportional inference cost growth.

    Structurally, it can be roughly understood as splitting the feed-forward layer into several parallel expert subnetworks, with a gating network computing a routing distribution for each token and activating only the few top-ranked experts. Total parameter count determines knowledge capacity; activated parameter count determines the actual computation per inference pass. The two are decoupled.

    The gating distribution is usually produced by a softmax with a temperature coefficient, where temperature directly controls how “soft” or “hard” routing is:

    1. def gate_logits(x, w, temperature=1.0, top_k=2):
    2. logits = x @ w.T # [tokens, num_experts]
    3. probs = softmax(logits / temperature)
    4. idx = probs.topk(top_k, dim=-1).indices
    5. weight = probs.gather(-1, idx)
    6. return idx, weight / weight.sum(-1, keepdim=True)

    A higher temperature flattens the distribution, weakly activating more experts: generalization becomes smoother but computational redundancy rises. A lower temperature sharpens it, selecting only the top experts: efficiency improves, but routing collapse becomes likely. Engineering practice therefore generally introduces an auxiliary load-balancing loss to prevent a few experts from being overloaded while the rest sit idle:

    1. load = probs.mean(0) # average routing probability per expert
    2. balance_loss = num_experts * (load ** 2).sum()
    3. loss = task_loss + alpha * balance_loss

    The real engineering difficulty of this route is not the structure but the distributed implementation: cross-device communication introduced by expert parallelism, token dropping caused by a poorly chosen capacity factor, and stability problems from routing drift during fine-tuning. So when evaluating such models, total parameter count alone is not enough — activated parameters, throughput under concurrency, and tail latency must be examined together.

    3. Route Two: Long Context and Attention Efficiency

    Long context is not as simple as “enlarging the window.” It simultaneously tests four things: positional encoding extrapolation, attention complexity, memory footprint, and retrieval quality.

    The time and memory complexity of vanilla attention grows quadratically with sequence length. Common mitigations in the industry include compressing the key-value cache via multi-query or grouped-query attention, mixing sliding windows with global tokens, and various linear or sparse attention approximations. On the positional side, extrapolation ability is required; a common approach scales the base frequencies of rotary position embeddings so the model preserves continuity of relative position relationships beyond its training length.

    1. def rope_theta(base, scale):
    2. return base * scale # a larger base is equivalent to a longer effective wavelength

    But a longer window carries two hidden costs. First, “lost in the middle”: recall drops when key information sits in the middle of a long document. Second, memory and bandwidth pressure, as the key-value cache grows linearly with both concurrency and length. Long-context capability must therefore be paired with caching strategy, paged management, and prefix reuse to be production-ready. The more robust engineering pattern is a “retrieval + long window” combination: first narrow the candidate set with vector retrieval, then let the long-window model do close reading and reasoning.

    4. Route Three: Lightweight Design and Unified Multimodal Representation

    The landing point of the lightweight route is usually not “small” but effective throughput per unit cost. Techniques include knowledge distillation, structured pruning, low-bit quantization, and inference-side acceleration such as speculative decoding. Quantization is the most sensitive to memory and bandwidth, and a common compromise is block-wise weight quantization while keeping activations at higher precision:

    1. def quantize_per_channel(w, bits=8):
    2. qmax = 2 ** (bits - 1) - 1
    3. scale = w.abs().amax(dim=0) / qmax
    4. return (w / scale).round().clamp(-qmax, qmax), scale

    It must be emphasized that quantization changes the output distribution, so an effectiveness regression on business datasets is required before launch — not just a look at general leaderboards.

    The key to the multimodal route is “alignment,” not “concatenation.” Mapping the continuous representations from a vision encoder into the language model’s token space via a projection layer or query compression, so both share the same autoregressive objective, is the more mainstream industry practice. The difficulties concentrate on token inflation at high resolution, fine-grained image-text correspondence, and data mixture ratios and stability during training.

    5. Two Implementations of Controllability and Value Alignment

    One implementation makes principles explicit: the model is given a set of behavioral guidelines, a reward model is trained on preference data, and reinforcement-learning-style optimization drives outputs to converge toward those guidelines. The advantage is that behavioral boundaries are auditable and iterable; the cost is a high adjudication burden when principles conflict.

    The other makes knowledge explicit: a knowledge graph supplies deterministic facts, injected into the model through retrieval augmentation or fusion training to reduce factual drift in probabilistic generation. The advantage is strong factuality and traceability; the cost is coverage limited by the graph’s scale. In practice, stacking the two is more stable: principles govern boundaries, the graph governs facts.

    6. A Reusable Evaluation and Selection Framework

    Do not rely on a single leaderboard. Build a four-dimension evaluation matrix instead: effectiveness (business-set accuracy, factual consistency), cost (combined expense per thousand tokens), performance (time to first token, throughput, tail latency), and controllability (refusal rate, out-of-bounds rate, traceable proportion).

    1. score = 0.4 * quality + 0.25 * (1 / cost) + 0.2 * (1 / p95_latency) + 0.15 * controllability

    Adjust the weights per scenario: raise the controllability and cost weights for customer service and office scenarios; raise the effectiveness and long-window weights for coding and data analysis scenarios.

    A three-step adoption path is recommended. First, use a small sample to match the route, determining whether the task is long-document understanding, a high-concurrency lightweight task, or mixed image-text work. Second, run load tests and cost modeling to confirm the real expense under concurrency. Finally, connect logging services, monitoring and alerting, and container platforms to complete canary rollout and rollback. If Baidu AI Cloud’s object storage, message queue, and container platforms carry the data and inference services, the evaluation pipeline can be solidified into repeatable experiments, keeping selection conclusions from resting on subjective impression.

    7. Conclusion

    The differences among the three route categories are essentially different combinations of cost structure, capability boundary, and controllability mechanisms: sparsification restructures inference cost, long context restructures information throughput, and lightweight plus multimodal design restructures unit cost and perceptual range. The rational approach is not to pick a side but to translate business constraints into evaluation metrics and use reproducible experiments to arrive at the answer for your own scenario.