Deconstructing Chinese LLMs: Architecture Trade-offs and a Practical Guide to Model Selection

    The flagship large language models (LLMs) from China's major vendors trade wins on public benchmarks, yet their real-world behavior varies widely—some answer in depth but slowly, others respond fast but reason shallowly. Drawing on the general principles of LLM architecture and inference systems, this article explains where these capability gaps come from and why "smart" and "fast" are hard to combine. It walks through the shared Transformer-plus-MoE skeleton behind most models, how MoE sparsity separates total from activated parameters, why KV Cache dominates inference cost, and what Scaling Laws imply for growing expert counts. It then shows how to set task-appropriate reasoning budgets, how to evaluate and select models with a multi-dimensional scorecard, tiered routing, and POC validation, and closes with engineering practices for running models as stable, cost-controlled services.

    Many developers face the same dilemma when choosing a Chinese LLM: the flagship models from several major vendors trade wins on public benchmarks, yet the real-world experience can differ substantially. Some models give rigorous, in-depth answers but take tens of seconds to respond; others reply almost instantly yet drift off-topic during deeper reasoning. Where do these differences come from, and how can you build a reusable evaluation and selection process?

    This article doesn’t review any specific product. Instead, starting from the general principles of LLM architecture and inference systems, it answers three questions:

    1. Where do the capability differences between models come from?
    2. Why are “smart” and “fast” hard to achieve together?
    3. How can companies and individual developers choose a model that truly fits their needs?

    1. A Shared Foundation: Why Mainstream LLMs Look So Similar

    Look at the mainstream LLMs of the past year or two and you’ll notice their underlying skeleton has become highly convergent. Many are built on the Transformer decoder architecture, use a Mixture-of-Experts (MoE) structure, and borrow ideas from peer open-source models on attention and feed-forward network design. There’s a clear engineering logic behind this:

    • Proven architectures are more reliable: An architecture only justifies pouring hundred-billion-scale compute into further training once it has been validated at scale.
    • Open-source ecosystems lower the cost of trial and error: Public technical reports and open-source implementations let later entrants quickly reuse mature designs and focus their effort on data, training strategy, and post-training.
    • The real differences lie in the “last mile”: Once the skeleton converges, the actual experience is often determined by specific parameter choices—sparsity, number of attention heads—and by how post-training polishes reasoning ability.

    An analogy: these models are like different car models tuned on the same chassis platform. The chassis sets the ceiling for handling, but what really shapes the driving feel is the engine-and-transmission match, the chassis tuning style, and the in-cabin interaction design. So when evaluating models, rather than asking “whose architecture is more advanced,” it’s more useful to look at what trade-offs a model makes on specific design dimensions.

    2. MoE Sparse Architecture: The Division of Labor Between Large and Small Parameters

    1. How it works

    A traditional dense model passes every token through all parameters, so computation scales with parameter count. MoE replaces the feed-forward network (FFN) with multiple parallel “expert” sub-networks, and a router selects a few experts to participate in the computation for each token. With common Top-2 routing, for example, each token typically activates just two experts.

    This creates two key parameters:

    • Total parameter count determines the model’s “knowledge capacity”;
    • Activated parameter count determines the actual computation for each token.

    2. Measuring parameter efficiency with “sparsity”

    Sparsity can be defined as:

    1. Sparsity = 1 - activated parameters / total parameters

    Illustrative calculation: suppose a model has about 1 trillion total parameters and about 32 billion activated parameters. The activation ratio is about 3.2% and sparsity is about 96.8%. Each forward pass then taps less than 4% of the model’s “knowledge reserve.”

    3. Different effects on training and inference

    • Training: Gradients flow through the activated experts, so training compute scales roughly with total parameter count.
    • Inference: Compute depends only on activated parameters, but memory must hold all expert weights.

    For example, storing 1 trillion parameters in bf16 needs about 2TB of memory for weights alone (1 trillion × 2 bytes)—before counting KV Cache and runtime overhead. MoE models therefore usually need multi-GPU tensor parallelism or multi-node expert parallelism at inference.

    A practical takeaway: total parameter count alone can’t tell you inference cost—activated parameter count is the key metric that determines per-token compute.

    4. Additional challenges from routing

    MoE isn’t free; engineering must handle at least three problems:

    • Load imbalance: A few popular experts get overused while others are “underfed”;
    • Training instability: Router collapse can leave some experts permanently untrained;
    • Communication overhead: When experts are spread across devices, tokens must be transferred frequently between devices.

    So the industry commonly adds mechanisms such as load-balancing loss and router noise to keep expert utilization balanced.

    3. Attention Optimization: KV Cache Is the Hidden Bulk of Inference Cost

    1. Why KV Cache matters

    During autoregressive generation, to avoid recomputing attention over past tokens, a large model caches the computed keys (Key) and values (Value)—this is the KV Cache. In standard multi-head attention, cache size scales with “layers × KV heads × dimension per head.”

    Single-sequence KV Cache memory can be estimated as:

    1. KV memory (bytes) = 2 × layers × KV heads × dim per head × context length × bytes per precision

    Illustrative calculation (for reference only): 60 layers, 64 KV heads, 128 dims per head, 32K context, bf16:

    1. 2 × 60 × 64 × 128 × 32768 × 2 ≈ 32 GB

    That’s just one request. In a service facing many concurrent users, KV Cache often exhausts memory before model weights do, directly limiting the concurrency the system can handle.

    2. Low-rank KV compression

    One common approach is “low-rank KV compression”: project keys and values into a lower-dimensional latent vector and cache that, then reconstruct per-head keys and values when needed. The benefits:

    • Cache dimension drops from “heads × dim per head” to a fixed latent dimension, decoupled from head count;
    • The longer the context and the higher the concurrency, the more memory saved;
    • Freed memory can support larger batch sizes, improving overall throughput.

    3. Reducing attention heads: a direct trade-off

    Reducing the number of attention heads also lowers inference overhead: fewer heads participate in computation and caching, so memory usage and compute both drop. Halving the heads, for instance, roughly halves the associated cost.

    But fewer heads mean a potential loss of expressiveness, so designers usually compensate with head dimension, layers, and feed-forward structure. This is the “engineering ledger” in action: every performance optimization is essentially moving cost from one place to another.

    4. Inference metrics can’t be judged by averages alone

    Two latency metrics really matter for the business:

    • Time to first token (TTFT): mainly depends on the compute of the prefill stage and on queuing;
    • Time per output token (TPOT): mainly depends on per-step decode compute and KV Cache read overhead.

    Looking only at average latency hides tail problems, so capacity planning should rely on P95 and P99 percentiles.

    4. Scaling Laws and Sparsity: Why Experts Keep Multiplying

    Scaling laws study how model loss changes with parameter count, data volume, and compute. In dense models, loss tends to fall as a power law as all three increase.

    In MoE architectures, researchers have observed clear performance gains by growing total parameters and raising sparsity while holding activated parameters constant. For inference serving, this is like “same compute, upgraded capacity.” It also explains why the number of experts in mainstream MoE models keeps rising—from a handful in the early days to a dozen or so, and now dozens or even a hundred-plus.

    But the gains aren’t unlimited. Constraints include:

    1. Diminishing marginal returns: Past a certain point, adding experts flattens the performance gains;
    2. Rising routing and communication cost: More experts mean more complex routing decisions and more frequent cross-device communication;
    3. Engineering limits: Expert-parallel partition granularity, memory headroom, and interconnect bandwidth all affect real throughput;
    4. Harder training: With more experts, controlling load balancing and training stability gets harder.

    5. The Nature of “Thinking Depth”: Extra Computation at Inference

    The differences users notice most often show up in reasoning ability. Some models “think longer and finish more completely,” others “answer fast but with limited depth.” In principle, this maps to two sources of capability:

    • Parameter scale and training quality: investment at the training stage;
    • Extra computation at inference: letting the model generate an intermediate reasoning process before giving the final answer. This process is sometimes visible to users and sometimes done internally.

    1. Why “thinking longer” is usually more reliable

    Complex problems often can’t be solved in one step. Generating intermediate reasoning steps gives the model a chance to “deliberate repeatedly,” which echoes the idea of “process rewards” in reinforcement learning: giving feedback on intermediate steps guides the model toward reliable solutions better than looking at the final result alone.

    2. The cost is latency and expense

    The number of output tokens scales with problem difficulty: simple questions may need a few hundred tokens, complex reasoning tens of thousands. Because decoding is serial, token by token, longer output means slower responses. A rough estimate:

    1. Total response time ≈ TTFT + output tokens × time per output token

    Illustrative calculation (values are examples): with a TTFT of 2 seconds and 30 ms per output token:

    • 500 output tokens: about 17 seconds;
    • 6000 output tokens: about 182 seconds.

    3. Engineering factors that affect perceived “thinking depth”

    Beyond architecture and training, these engineering settings also affect how “deep” users perceive a model to be:

    • Reasoning budget cap: If the output-length cap is too low, the model is forced to answer before it has thought things through;
    • Decoding parameters: Settings like temperature and Top-P affect output stability;
    • Server-side policies: Under high load, limits on output length or the reasoning process, or downgrading to a lighter configuration.

    So the same model can behave noticeably differently across platforms. When comparing models, watch for these “hidden variables.”

    4. Longer isn’t always better

    For simple tasks such as intent recognition, information extraction, and formatted output, a long chain of thought only adds latency and cost, and may even introduce unnecessary bias. More sensible approaches:

    • Set the reasoning budget by task complexity;
    • For scenarios with strict output-format requirements, combine with structured-output constraints;
    • Use business evaluation to determine a “good enough” reasoning depth rather than blindly pursuing the longest reasoning.
    1. # Illustrative code: dynamically set reasoning budget and timeout by task complexity
    2. def solve(task: dict, client, fast_model: str, strong_model: str):
    3. # 1. Pick the model by task type: simple tasks use the fast model, complex tasks use the strong reasoning model
    4. model = strong_model if task["complexity"] >= 3 else fast_model
    5. # 2. Set the reasoning budget by complexity: higher complexity allows more reasoning tokens
    6. reasoning_budget = {1: 512, 2: 2048, 3: 6144, 4: 12288}[task["complexity"]]
    7. timeout = 10 + reasoning_budget // 512 # a bigger budget gets a longer timeout threshold
    8. # 3. Degrade on timeout: return a fallback result and alert instead of making the user wait indefinitely
    9. resp = client.chat.completions.create(
    10. model=model,
    11. messages=task["messages"],
    12. max_tokens=reasoning_budget,
    13. timeout=timeout,
    14. )
    15. return resp.choices[0].message.content

    6. Multi-Dimensional Evaluation: Comparing Models Scientifically

    1. Multiple dimensions, not a single metric

    Evaluate across at least these dimensions:

    Dimension Focus Suggested metric
    General knowledge & writing Commonsense Q&A, content generation Human rating or model-as-judge score
    Math & logic reasoning Multi-step derivation, constraint handling Answer accuracy
    Coding Code generation, bug fixing Unit test pass rate
    Long context Cross-passage retrieval, long-document summarization Key-information hit rate
    Instruction following Format, length, tone constraints Constraint satisfaction rate
    Tool calling Parameter extraction, multi-turn calls Call success rate
    Engineering performance Latency, throughput, stability P95/P99 latency, error rate
    Cost Input/output billing, cache hits Average cost per task

    2. Make the evaluation process rigorous

    • Build the eval set from business data: Sample hundreds of typical requests from real scenarios, covering both high-frequency and long-tail cases;
    • Control variables: Fix decoding parameters such as temperature and Top-P, along with the system prompt and max output length;
    • Sample multiple times: Given the randomness of generation, run each item multiple times and take the average, and watch the variance;
    • Automate scoring: Combine rule matching, unit tests, human review, and strong-model judging;
    • Record complete metrics: Alongside accuracy, log latency, token consumption, and failure rate.

    3. Distinguish training-data contamination

    Public benchmarks may have been used by model vendors for training or tuning, so scores can be inflated. Building a private eval set gives a more faithful picture of how a model performs on your own business.

    7. A Selection Decision Framework: From “Who’s Best” to “Who Fits”

    1. Set weights by scenario

    Different scenarios weight the dimensions differently. For example:

    • Intelligent customer service: cares about time to first token, instruction following, and per-turn cost;
    • Coding assistant: cares about code correctness and context window;
    • Document analysis: cares about long-context understanding and structured output;
    • Complex reasoning: cares about multi-step reasoning accuracy, with higher tolerance for latency.

    2. Quantify with a scorecard

    1. Overall score = Σ (dimension score × dimension weight)
    2. Cost per task = input tokens × input price + output tokens × output price

    Illustrative calculation: for a document-analysis scenario, long context weighted 0.35, reasoning 0.25, instruction following 0.2, latency 0.1, cost 0.1. Model A scores 4, 5, 4, 2, 2; Model B scores 5, 3, 5, 5, 5:

    • A: 4×0.35 + 5×0.25 + 4×0.2 + 2×0.1 + 2×0.1 = 3.85
    • B: 5×0.35 + 3×0.25 + 5×0.2 + 5×0.1 + 5×0.1 = 4.50

    The conclusion is clear: if the scenario isn’t latency-sensitive, dropping the latency weight to 0.05 and raising long context to 0.4 could flip the result. Weights reflect business needs; scores only support the decision.

    3. Tiered routing: send simple requests down a lightweight path

    In practice, few scenarios are served well by a single model. You can tier by complexity:

    1. Simple tasks (classification/extraction/rewrite) → lightweight model + structured output + strict length limits
    2. General tasks (Q&A/summarization) → general model
    3. Complex tasks (reasoning/code/long documents) → strong reasoning model + larger reasoning budget

    Illustrative code:

    1. def route(req: dict) -> tuple[str, int]:
    2. """Select model and reasoning budget by request features; returns (model name, max output tokens)"""
    3. if req.get("task_type") in {"classify", "extract", "rewrite"}:
    4. return "light-model", 512
    5. if req.get("input_tokens", 0) > 30000 or req.get("needs_reasoning"):
    6. return "reasoning-model", 8192
    7. return "standard-model", 2048

    Combined with semantic caching and prompt trimming, this can significantly cut overall cost while preserving quality.

    4. Validate with a POC, not a hunch

    Run a proof of concept (POC) through the full loop:

    1. Build the eval set;
    2. Compare candidate models head-to-head;
    3. Run a small-scale canary;
    4. Decide on a full rollout based on real online metrics.

    8. Engineering Deployment: Turning Model Capability into Stable Services

    1. Elasticity and cost

    Inference demand has clear peaks and troughs. Container platforms with elastic scaling let you scale out at peak and in at trough, avoiding idle resources.

    2. Observability

    Log each call after desensitization and archive it to object storage; collect and analyze uniformly through a logging service; set monitoring alerts on TTFT, P95 latency, error rate, and token consumption. Only what you can see can you keep optimizing.

    3. Fault tolerance and degradation

    Set request timeouts and retry policies, and prepare a backup model: switch automatically when the primary model times out or its error rate spikes, avoiding single-point failures affecting the business.

    4. Data security

    Desensitize sensitive information before calling the model, enforce tenant isolation and operation auditing, and make sure the data-handling process is traceable and auditable.

    5. Continuous iteration

    Model capabilities evolve fast, so selection isn’t one-and-done. Re-run the eval set with the latest models periodically, and keep an abstraction layer that lets you switch model versions anytime, avoiding deep lock-in to any single model.

    Conclusion

    Back to the opening question: the differences among mainstream Chinese LLMs are less a matter of an “architectural generational gap” and more the result of different trade-offs on a shared architecture. Some trade larger expert capacity for a higher ceiling; some trade a lighter attention design for lower inference overhead; some invest more in deeper reasoning at the inference stage.

    For developers, rather than arguing “who’s best,” it’s better to build a decision system centered on business evaluation, constrained by cost and latency, and enabled by tiered routing. Baidu AI Cloud’s large-model service capabilities—combined with elastic containers, object storage, logging services, and monitoring alerts—can provide the engineering support to bring such a system to life.