The Architecture Evolution and Core Capabilities of Chinese Large Language Models
This article breaks down how large language models developed in China have moved from following established architectures to diverging into distinct technical routes. It examines four capability dimensions—long context and position extrapolation, sparse Mixture-of-Experts and inference cost, code generation and tool use, and multimodal learning with knowledge-augmented alignment—along with the engineering mechanisms behind each. It also offers practical guidance on model selection, evaluation, cost accounting, architecture decoupling, and compliance.
1. Background: From Following Architectures to Diverging Routes
The Chinese large model ecosystem has made a clear capability leap over the past two years. In the early stage, most teams followed highly similar technical routes: they reused the industry-validated Transformer decoder architecture, relied on scaling up model size and stacking training corpora as the main growth levers, and concentrated their products on general-purpose conversation.
Around 2023, as compute supply constraints, inference cost pressure, and demand from industry scenarios became more visible, vendors began to split into several differentiated technical routes.
Three environmental factors supported this shift. First, sustained investment in industrial policy and digital infrastructure provided the baseline conditions for training and inference. Second, capital became more tolerant of long-cycle R&D projects. Third, returning researchers from overseas brought both engineering experience and experience reproducing published work. Together, these factors meant that “stacking parameters” was no longer the only narrative. Architecture efficiency, context length, modality coverage, and safety alignment became new competitive dimensions.
The differences between routes are not marketing claims; they are engineering choices that map to concrete mechanisms. The sections below break things down by capability dimension rather than ranking vendors.
2. Capability Dimension 1: Long Context and Position Extrapolation
The value of long context is not how much text can be stuffed into the window, but how effectively that window is used. In engineering terms, three metrics matter: the maximum supported window, the recall accuracy of key information inside the window, and the incremental memory and latency cost as length grows.
There are three main implementation paths:
- Position encoding extrapolation, which adjusts the base frequency of rotary position embeddings or interpolates position indices so the model keeps a reasonable attention distribution beyond its training window.
- Attention computation optimization, including block attention, sliding windows, and sparse attention, which push complexity from quadratic toward near-linear.
- Inference-side tiered caching and retrieval pre-fetching, which swap inactive historical states out to memory or object storage and read them back only when needed.
The following is an illustrative position interpolation logic (it expresses a general idea only, not a specific implementation):
def interpolate_positions(positions, orig_max, target_max):# Linearly compress position indices beyond the original training window back into the known rangescale = orig_max / target_maxreturn positions * scale
A common pitfall in practice is the “lost in the middle” effect: models are sensitive to information at the beginning and end, but recall of middle passages is weaker. Mitigations include constructing long-range dependency samples during training, placing or repeating key constraints at the front of the prompt template, and structurally chunking long documents before reassembling them.
3. Capability Dimension 2: Sparse Experts and Inference Cost
The core of the Mixture-of-Experts architecture is replacing the dense feed-forward layer with multiple expert subnetworks, then using a gating network to select a small number of experts per token. The benefit is decoupling parameter capacity from computation: total parameters can be very large, while only a small fraction is activated per step.
The gating temperature coefficient is a key knob. A high temperature produces a smoother weight distribution, activates more experts, and balances load better, but raises computation cost. A low temperature produces a sharper distribution that selects only the top-ranked experts, which is efficient but prone to expert collapse and routing jitter. In engineering, this is usually stabilized with load-balancing auxiliary loss, capacity factor limits, and routing noise.
# General pseudocode for gating and sparse activationlogits = gate(x) # [tokens, num_experts]probs = softmax(logits / T) # T is the temperature coefficienttopk = select_topk(probs, k)y = sum(probs[i] * expert_i(x) for i in topk)
The costs are equally clear: memory must hold all expert weights, distributed deployment adds communication and synchronization overhead, and uneven routing across tokens in a batch can turn individual devices into bottlenecks. So in resource-constrained inference scenarios, a dense small model with quantization is often more cost-effective than a sparse model with a large total parameter count.
4. Capability Dimension 3: Code and Tool Use
Code capability is essentially the reliability of structured output, involving long-range variable tracking, syntax constraint adherence, and self-correction of errors. Common practices include: increasing the proportion of high-quality code and documentation during pre-training; introducing executable feedback during post-training, using compilation or unit test results as reward signals; and constraining decoding during inference, using a grammar definition to limit the output space.
Tool calling depends on a unified schema description and result write-back mechanism. Engineering needs to account for timeout retries, idempotency, and failure fallback, so the model does not repeatedly retry and amplify a failure when the chain is abnormal.
5. Capability Dimension 4: Multimodal Learning and Knowledge-Augmented Alignment
The general multimodal paradigm is “modality encoder + projection layer + language backbone.” The projection layer maps visual or audio representations into the word embedding space, reusing the language model’s existing reasoning ability. The difficulties concentrate on token count explosion for high-resolution images, cross-modal referential ambiguity, and alignment noise in training data.
On controllability, there are two complementary lines of thinking in the industry. One builds behavioral rules and preference rankings inside the model, shaping output boundaries through reinforcement learning from human feedback. The other starts from the data side, using a structured knowledge graph to provide deterministic constraints for probabilistic generation, layered with value alignment in the local context. The former constrains the reasoning process; the latter constrains the factual boundary. Combining the two can significantly reduce hallucination rates. In deployment, a two-layer defense of retrieval augmentation and knowledge verification can be used:
User question -> intent parsing -> knowledge retrieval (graph/vector store)-> model generation -> factual consistency check -> output or fallback clarification
6. Selection and Deployment Recommendations
- Set capability priorities by task profile: long-document review prioritizes window and recall; code scenarios prioritize structured output and toolchains; customer service prioritizes alignment and knowledge accuracy.
- Replace leaderboards with a self-built evaluation set: sample real business cases, cover long-tail and adversarial inputs, and include accuracy, latency, and cost per call as metrics.
- Account for total cost: memory usage, concurrent throughput, cache hit rate, and operational complexity together determine unit cost, not parameter count alone.
- Decouple the architecture: abstract the model access layer and keep the ability to switch and run canary releases; general cloud components such as logging, monitoring and alerting, message queues, and container platforms can support elastic scaling and fault isolation.
- Put compliance first: data classification, content safety, and audit trails should be defined at the design stage, not patched before launch.
7. Conclusion
The divergence of Chinese large models is essentially a set of different optimal solutions under four constraints: efficiency, length, modality, and controllability. Understanding the mechanisms rather than memorizing slogans is what enables verifiable, rollback-capable, and optimizable technical choices in a specific business.
