Comparing Chinese Open-Source LLMs: Architecture Trends and a Practical Selection Guide

    This article compares mainstream Chinese open-source and semi-open-source large language models, showing that they share a similar architectural foundation built on sparse Mixture-of-Experts (MoE) and low-rank attention. Rather than chasing a single "best" model, the article explains the real differences in engineering trade-offs across sparsity, training efficiency, and inference cost, and offers a cost-latency model, an evaluation checklist, scenario-based recommendations, common pitfalls, and a reference architecture for selecting and deploying models reliably.

    1. The Takeaway First: The Difference Is in Engineering Trade-offs, Not the Foundation

    A fact that is easy to overlook about the open-source and semi-open-source large models of the past two years is that mainstream models have become highly similar at the base-architecture level, commonly adopting a combination of sparse Mixture-of-Experts (MoE) and multi-head low-rank attention. In other words, they are more like siblings under the same technical paradigm than fundamentally different designs. The real divergence appears at three engineering levels:

    1. Sparsity trade-offs: the ratio of total parameters, activated parameters, expert granularity, and number of experts;
    2. Training-efficiency trade-offs: optimizer choice, numerical-stability techniques, data quality, and the proportion of synthetic data;
    3. Inference-cost trade-offs: number of attention heads, context length, quantization, and caching strategy.

    For this reason, debating “which one is stronger” has limited value. A more professional question is: under a given budget and latency constraint, which combination of trade-offs best matches my business workload?

    2. The Shared Architectural Foundation: Why Models Are Converging

    2.1 Sparse Mixture-of-Experts (MoE)

    The core idea of MoE is to replace the dense feed-forward layer with multiple “expert” subnetworks, where a gating network selects a few experts to participate in the computation for each token. The benefit is that the total parameter count can be made very large (increasing knowledge capacity), while the activated parameters that actually participate in computing each token stay small (controlling inference overhead).

    A typical forward pass can be illustrated as follows:

    1. # Pseudocode: Top-K sparse gating
    2. logits = gate(x) # [num_experts]
    3. topk_idx, topk_val = logits.topk(k=2)
    4. weights = softmax(topk_val)
    5. y = sum(weights[i] * experts[topk_idx[i]](x) for i in range(k))

    The genuinely difficult part in engineering is load balancing: if the gate collapses onto a few experts, the remaining experts receive no training and the effective parameter count drops sharply. A common approach is to introduce an auxiliary balancing loss, or to adopt an “auxiliary-loss-free” balancing strategy (for example, maintaining a learnable bias term for each expert that is used only for routing decisions and does not participate in the main gradient path), combined with a sigmoid gate instead of softmax to reduce the routing’s sensitivity to numerical scale.

    2.2 Low-Rank Attention (MLA-style approaches)

    Standard multi-head attention needs to cache all K/V, and under long context, memory and bandwidth quickly become the bottleneck. Low-rank attention compresses K/V into a low-dimensional latent space and then projects it back up, so during inference only the compressed latent vectors need to be cached, significantly reducing the KV cache size. The cost is increased implementation complexity and higher demands on operator support in the inference framework.

    2.3 The “Middle Ground” Between Dense and Sparse

    The industry is also exploring finer-grained expert partitioning (splitting one large expert into multiple smaller ones, increasing the total number of experts while reducing the dimension of each expert). Scaling observations show that, at the same activated-parameter count, finer-grained, higher-expert-count sparsification often yields a better performance curve. This explains why vendors keep increasing the “number of experts” while offsetting inference overhead by reducing the number of attention heads.

    3. Key Differences on the Training Side: Stability and Token Efficiency

    3.1 Optimizers and Stability

    Matrix-based optimizers (the class of methods that perform orthogonalized updates on parameter matrices) offer better token efficiency on trillion-scale MoE, but they are sensitive to numerical range and prone to activation explosions that cause training to diverge. A common mitigation in the industry is “clipped projection”: scaling certain projection matrices proportionally by their maximum magnitude between the attention output and input, constraining activation amplitudes to a controllable range. Illustrated as follows:

    1. # Pseudocode: proportionally scale projection weights by threshold to suppress activation explosions
    2. def clip_proj(W, max_ratio=0.8, threshold=100.0):
    3. s = W.abs().max()
    4. if s > threshold:
    5. W = W * (max_ratio * threshold / s)
    6. return W

    3.2 Data Efficiency and Synthetic Data

    High-quality human-generated text is trending toward exhaustion, making “token efficiency” a core variable for scaling. There are three viable paths: first, raising the strictness of data cleaning and deduplication; second, using strong models to generate verifiable synthetic data (especially effective for math, code, and structured reasoning); third, increasing the sampling weight of high-quality samples in the later stages of training. It should be emphasized that synthetic data must be paired with verifiable rewards or verifiers; otherwise it will amplify the model’s own biases.

    2.3 Common Approaches to Multimodal Alignment

    Wait, correct numbering below.

    3.3 Common Approaches to Multimodal Alignment

    Multimodal capability is usually not “trained from scratch,” but rather built by attaching a vision encoder to a language base and completing it through three stages: “projection-layer alignment — instruction fine-tuning — preference alignment.” The engineering focus is balancing resolution against the number of visual tokens: too many visual tokens crowd out the context budget, while too few lose detail (such as small-font text and chart ticks).

    4. The Inference Cost Model: Turning Selection into a Computable Problem

    Let the activated parameters be P_act and the average number of output tokens be L. The compute for a single request is approximately proportional to P_act × L, while memory is mainly determined by the KV cache and batch concurrency. This yields three practical conclusions:

    • The longer the context, the greater the benefit of low-rank attention and cache compression;
    • For high-concurrency, short-request scenarios, prioritize reducing activated parameters and first-token latency;
    • For batch offline tasks (data cleaning, batch summarization), prioritize cost per token rather than peak capability.

    The following checklist can be used for quantitative comparison:

    Dimension Observed Metric Notes
    Quality Per-scenario pass rate Build a 100–300 item evaluation set for your business
    Latency First-token latency / throughput Distinguish cold start from steady state
    Cost Cost per thousand tokens Priced separately for input and output
    Stability Long-session consistency Whether it “degrades” or drifts in format after multiple turns
    Controllability Structured-output success rate JSON/table parsing failure rate

    5. Scenario-Based Selection Recommendations

    • Long context and code: focus on the attention caching approach, repository-level retrieval, and the stability of tool calls; evaluate with real engineering directories rather than toy samples.
    • Deep reasoning tasks: allow longer wait times, and trade correctness for “multiple samples + verifier voting,” focusing on completeness rather than speed.
    • High-concurrency online services: prioritize small-activated-parameter models + semantic caching + result caching, combined with streaming output to improve perceived experience.
    • Multimodal document understanding: focus on testing small text, tables, and scanned documents, and set an upper bound on the visual token budget.

    6. Common Pitfalls

    1. Looking only at aggregate leaderboard scores: when the leaderboard distribution does not match the business distribution, it has almost no reference value.
    2. Ignoring the “thinking budget”: reasoning-oriented models will clearly regress if their thinking length is constrained.
    3. Overlooking engineering support: capabilities such as structured output, function calling, and context compression often affect the launch outcome more than base-model scores.
    4. Betting everything on a single model at once: it is recommended to use a “primary-backup dual-model + canary routing” approach, splitting traffic by task type.

    7. A Reference Implementation Architecture

    Implementing a reusable model-access layer in the cloud typically involves: a container platform hosting inference services, object storage holding evaluation sets and artifacts, a message queue for asynchronous peak shaving, and logging services with monitoring and alerting to track latency and failure rates. Baidu AI Cloud can provide standard-category support for these general capabilities, making it easier to build evaluation, canary release, and rollback into a pipeline.

    1. Request -> Routing layer (split by task/cost) -> Primary model
    2. |-> Backup model (fallback on timeout/low confidence)
    3. -> Cache layer (semantic cache) -> Logging and metrics -> Evaluation regression

    In summary, the divergence among mainstream Chinese large models is one of engineering trade-offs rather than a paradigm revolution. Building a three-piece toolkit of “scenario evaluation set + cost-latency model + canary rollback mechanism” better ensures long-term effectiveness and cost control than chasing a single “strongest model.”