Why Chinese LLMs Share the Same Architecture: The Technical Logic Behind LLM Design Convergence
This article explains why a current generation of Chinese large language models share nearly identical architectural foundations, and where their real differences lie. It breaks down the common backbone of sparse Mixture-of-Experts (MoE) Transformers with latent attention, illustrates the core Top-K routing logic, and examines the key tunable factors of expert count and attention heads. It then covers the main areas of differentiation—optimizers, training stability engineering, and post-training—before outlining a practical workflow for model selection and deployment based on constraints, evaluation, cost modeling, and observability.
1. The Bottom Line: Shared Architecture, Differences in Engineering
From a purely technical perspective, the foundational design of the current generation of Chinese large language models is highly similar. They can be understood as sibling models built from the same blueprint but tuned differently: the backbone is a Transformer with a sparse Mixture-of-Experts (MoE) structure, attention generally relies on a low-rank compression scheme known as latent attention, and on the training side each model makes its own trade-offs in large-scale parallelism, precision strategy, and optimizers. The real differences lie not in whether a given structure is present, but in hyperparameter ratios, training stability engineering, and inference service guarantees.
It is important to stress that architectural similarity does not mean equal capability. With the same skeleton, different data mixtures, training durations, and post-training strategies produce clearly different results. So when making engineering choices, you should not look at parameter count alone, but at measured performance in your target scenario and at cost per unit.
2. The Common Backbone: MoE and Latent Attention
2.1 The Core Idea of Sparse Mixture-of-Experts
MoE splits the feed-forward layer into multiple “experts,” and each token is routed to only a few experts for computation. The direct effect is that the total parameter count can be made very large while the activated parameters per token stay controlled, decoupling “capacity” from “compute cost.”
A minimal, readable sketch of the routing:
# Illustrative: core logic of Top-K routing (not a real implementation)logits = gate(x) # [batch, seq, num_experts]topk_val, topk_idx = logits.topk(k=2, dim=-1)weights = softmax(topk_val, dim=-1) # normalize the weights of selected expertsy = sum(weights[i] * expert_i(x) for i in topk_idx)
In engineering terms, three things need extra handling: load balancing (avoiding a few experts overheating), routing jitter (training instability), and cross-device communication introduced by expert parallelism. These three often affect the final result more than the structure itself.
2.2 The Compression Logic of Latent Attention
Latent attention compresses Key/Value into a low-dimensional latent space and then reconstructs it, significantly reducing the size of the KV cache. For long-context scenarios, this directly determines memory footprint and concurrency. Another common approach in the industry is grouped-query attention; both share the same goal: compress the cache while keeping generation quality acceptable.
2.3 Two Key Tunable Knobs
- Number of experts: increasing the expert count usually raises sparsity, trading better quality for the same activated compute, but it amplifies memory and communication pressure.
- Number of attention heads: appropriately reducing heads lowers inference-stage overhead, a trade-off of “giving up a little quality for throughput.”
3. Where the Differentiation Space Is
The first is the optimizer. Beyond common adaptive gradient methods, the industry is also exploring optimization schemes based on matrix orthogonalization, aiming to improve update stability and convergence efficiency in large-scale training. Such choices must be tuned jointly with the parallelism strategy and precision settings, and cannot be copied in isolation.
The second is training stability engineering. The most common failure modes of large-scale MoE are routing collapse and loss spikes. Mature teams rely on routing noise, auxiliary balancing losses, gradient clipping, and rollback mechanisms to keep them under control.
The third is post-training. Instruction tuning, preference alignment, tool calling, and the shaping of long-context capability often have a greater impact on the actual experience than subtle differences in the base structure.
4. Implementation: How to Select and Deploy
- Define constraints first: determine context length, concurrency, per-response latency, and budget before discussing model size.
- Run small-scale evaluations: build an evaluation set from real business samples, focusing on accuracy, format compliance, and long-text stability.
- Model the cost: convert memory footprint, throughput, and cache hit rate into cost per token, rather than looking only at unit price.
- Deploy elastically: use a container platform for elastic scaling, pair it with object storage for models and data, use a message queue to smooth traffic spikes, and use logging and monitoring with alerting to locate long-tail latency.
- Iterate continuously: feed online bad cases back into the evaluation set to form a closed loop.
On Baidu AI Cloud, the capabilities above can be combined as general-purpose building blocks: a container platform hosts the inference service, object storage and a message queue handle data and traffic, and logging plus monitoring with alerting ensure observability, converging the uncertainty from architectural differences into measurable engineering metrics.
