How Big Is the Gap Between Open-Source and Closed-Source LLMs?

    This article compares open-source and closed-source large language models using a reproducible evaluation framework built on accuracy, latency, token consumption, and cost per 1,000 calls. Drawing on a Chinese-language benchmark of roughly 15,000 questions, it shows why raw price gaps are misleading, introduces cost per correct output as a better metric, and outlines how teams can build regression-ready evaluation sets and cost-reduction architectures around caching, routing, and context compression.

    1. The Question: How Should the Gap Actually Be Measured?

    “How far behind are open-source models?” is a question that invites emotional answers. A real engineering answer has to rest on reproducible measurements: the same question set, the same scoring rules, the same budget tier, comparing four metrics — accuracy, latency, token consumption, and cost per call. Leave out any one of them and the conclusion becomes distorted.

    This article is based on a comprehensive evaluation in a Chinese-language setting. The evaluation covers roughly 15,000 questions across sub-dimensions including education, healthcare and mental health, reasoning and math, language and instruction following, and agents and tool calling. It records the latency and token usage of every call and converts them into “cost per 1,000 calls.” Note that the evaluation focuses on the Chinese context, so the conclusions cannot be directly extrapolated to other languages or specialized domains.

    2. Full Readings from a Generational Upgrade

    The new closed-source model version under evaluation achieved an overall accuracy of 72.5%, with an average latency of 64 seconds per call and an average consumption of 3,119 tokens, which converts to roughly RMB 247.3 per 1,000 calls.

    Compared with the previous generation (68.9% accuracy, 67 seconds, 2,810 tokens, RMB 189 per 1,000 calls), four curves pull against each other:

    • Capability trending up: accuracy +3.6 percentage points, ranking jumping from 7th to 1st.
    • Uneven structure: education 49.1%→64.8% (+15.7), healthcare and mental health 77.8%→89.5% (+11.7), reasoning and math 72.2%→81.8% (+9.6).
    • Local regressions: language and instruction following 70.6%→67.5% (-3.1), agents and tool calling 61.0%→58.6% (-2.4).
    • Rising cost: cost per 1,000 calls +30.9%, of which token usage accounts for only +11%; most of the increase comes from a higher output-side unit price (about +17.5%).

    Together these four curves make one point: capability gains are neither free nor uniform. Equating “smarter” with “more worth using” does not hold up in engineering.

    3. Cost Must Be Priced per Unit of Effective Output

    The most easily misread conclusion in the evaluation is the “16x more expensive” type of claim. The top-ranked model costs RMB 247.3 per 1,000 calls, while a lower-ranked low-cost model costs about RMB 15.6 — nearly 16 times less. Compared with a mid-tier closed-source configuration (about RMB 87.9), the gap is about 2.8x. But cost cannot be judged by unit price alone; it must be divided by “effective correct output.”

    A unified formula is recommended:

    1. effective cost = cost per 1,000 calls / accuracy

    Plugging in this evaluation’s data:

    • Top-ranked: 247.3 / 0.725 ≈ 341 (per 1,000 correct outputs)
    • Previous generation: 189.0 / 0.689 ≈ 274
    • Low-cost option: 15.6 / 0.40 (example value) = 39

    The conclusion flips immediately: the top-ranked model has the highest absolute cost, but its effective cost rises only about 24% over the previous generation, not 31%; the difference versus the low-cost option is a difference in capability tier, not simply a matter of value for money. Any selection discussion that omits the denominator will produce the wrong ranking.

    4. Open Source vs. Closed Source: The Gap Is Narrowing, but Unevenly

    Putting open-source options into the same table reveals three layers:

    1. Top closed-source models still lead on “high-difficulty reasoning + multimodality,” and that lead is shrinking;
    2. Open-source options have reached a usable threshold in general Q&A, text processing, and routine coding tasks, with gaps often in the single-digit percentage points;
    3. The real dividing line is the long tail: complex instruction following, multi-step tool calling, and cross-modal consistency — scenarios where errors cascade and amplify.

    So the more pragmatic judgment is this: the gap is no longer about “whether it can be used,” but about “whether the cost of errors is tolerable.” When a single error can be corrected by a human at low cost, open source is sufficient; when an error triggers financial, compliance, or personal-safety risk, the higher accuracy of closed source has a basis for its premium.

    5. Turning Evaluation into a Reproducible Engineering Asset

    A one-off evaluation has no value; a regression-ready evaluation set does. A four-step approach is recommended:

    1. Stratified sampling: allocate question volume to each dimension according to real business distribution, avoiding skewed conclusions such as an over-representation of education questions.
    2. Fixed scoring and randomness: specify the scoring script and sampling parameters such as temperature, run three repetitions and take the mean, and record variance.
    3. Dual-metric dashboard: display accuracy and cost per 1,000 calls on the same screen, and derive “effective cost.”
    4. Canary release and rollback: route 5% of traffic to the new version first, observe latency and the distribution of error types, and roll back automatically on anomalies.

    Illustrative call and accounting logic:

    1. def evaluate(model, samples, price_in, price_out):
    2. correct, tokens, latency = 0, 0, 0.0
    3. for s in samples:
    4. r = model.call(s.prompt) # unified wrapper that hides vendor differences
    5. correct += int(r.is_correct)
    6. tokens += r.usage.total_tokens
    7. latency += r.latency
    8. n = len(samples)
    9. cost_per_1k = (tokens / n) * (price_in + price_out) / 1e6 * 1000
    10. return {
    11. "accuracy": correct / n,
    12. "avg_latency": latency / n,
    13. "avg_tokens": tokens / n,
    14. "cost_per_1k": cost_per_1k,
    15. "effective_cost": cost_per_1k / (correct / n),
    16. }

    6. Cost-Reduction Strategies at the Architecture Level

    Beyond the model itself, there is substantial room to compress cost, independent of brand:

    • Semantic caching: build a vector index for high-frequency repeated questions and return on a hit, directly cutting call volume.
    • Tiered routing: send simple requests to small-parameter models or open-source deployments and escalate complex requests to large models, with routing thresholds calibrated on the evaluation set.
    • Context compression: trim retrieved passages and deduplicate history; token usage can typically drop by more than 30%.
    • Batching and asynchrony: run offline tasks off-peak and use a message queue to smooth spikes, improving the latency distribution.
    • Observability: use logging services and monitoring alerts to track P95 latency, error rate, and token trends, alerting on cost anomalies before diagnosing them.

    If you adopt self-hosted open-source inference, you can rely on a container platform for elastic scaling and use object storage to accumulate evaluation sets and results, forming a closed loop.

    7. Selection Checklist

    • High error cost scenarios (healthcare, financial risk control) → prioritize high-accuracy closed source and accept the cost premium.
    • High concurrency, low error cost (summarization, classification, extraction) → open source or low-cost options, combined with caching and routing.
    • Strong tool-calling requirements → must be tested on a self-built evaluation set; regressions during a generational upgrade are the norm.
    • Multimodal requirements → focus on cross-modal consistency rather than a single benchmark score.
    • Budget-sensitive → rank by “effective cost,” not unit price.

    8. Conclusion

    Closed source still leads in top-tier reasoning and multimodality, but its advantage is being steadily compressed by open source, alternating in a “you chase, I chase” pattern across different dimensions. What engineering teams really need is not to pick a side, but a regression-ready evaluation asset, a cost model that puts accuracy in the denominator, and a cost-reduction architecture built from caching, routing, and context compression. With these three in place, the choice between open source and closed source degrades from a matter of stance into a computable, rollback-able engineering decision.