How Big Is the Gap Between Open-Source and Closed-Source LLMs?
This article examines the real gap between open-source and closed-source large language models, arguing that it is not a single benchmark number but a trade-off among capability, latency, context consumption, and cost. It outlines a reproducible six-step evaluation methodology, summarizes three patterns from public evaluation data, compares open and closed models across four dimensions, and gives practical guidance on tiered routing, CI-based evaluation, and observability. Readers will learn how to build their own evaluation set and cost model to choose models that fit their business constraints.
1. The Real Issue: The Gap Is a Multi-Dimensional Trade-Off, Not a Single Number
Discussions about how far open-source models lag behind closed-source ones usually get reduced to a percentage point or two on a leaderboard. But if you break down a comprehensive evaluation covering roughly 15,000 questions—measuring accuracy, average latency, token consumption, and cost per thousand calls—you find that what actually determines engineering usability is how these metrics interact. Capability ceiling, response latency, context consumption, and unit cost constrain one another, and a lead on any single point is not enough to draw a conclusion.
The pattern in public evaluation data is clear: top closed-source models still lead on overall accuracy. One new release raised overall accuracy from 68.9% to 72.5%, taking first place—but its cost rose from CNY 189 to CNY 247.3 per thousand calls, an increase of about 30.9%, making it the most expensive commercial model in that evaluation. Meanwhile, leading open-source models have narrowed the gap to single-digit percentage points on most general tasks, often at a unit cost that is a fraction of the top closed-source option. This means the “gap” should be reframed as: within an acceptable cost range, what share of business scenarios can an open-source solution cover?
2. Evaluation Methodology: Six Steps to Reproducible Results
The biggest problem when teams select models is not picking the wrong one—it is that the evaluation itself cannot be reproduced. A rigorous evaluation should include at least the following steps:
- Build the question set: Cover general Q&A, logical reasoning, math, code, multimodal, instruction following, and tool calling, and specify the share of Chinese-language scenarios. Version the evaluation set to avoid training-data contamination.
- Define metrics: Beyond accuracy, record average latency per call, average token consumption (input and output listed separately), cost per thousand calls, and failure and timeout rates.
- Align parameters: Temperature, maximum output length, system prompt, and retry strategy must be identical, or the comparison is meaningless.
- Control concurrency and rate limits: Latency must be collected under a fixed concurrency level, or P50/P99 will be polluted by queueing time.
- Repeat sampling: Sample each question multiple times and take the mean and variance to identify cases that were answered correctly by luck.
- Convert costs: Combine token unit price with the output-length distribution to derive a business-level “cost per thousand calls” rather than looking at unit price alone.
A simplified evaluation record structure looks like this:
@dataclassclass CaseResult:case_id: strdomain: str # domain labelcorrect: boollatency_s: float # latency per callin_tokens: intout_tokens: intcost_cny: float # derived from unit pricedef summarize(results: list[CaseResult]) -> dict:n = len(results)return {"accuracy": sum(r.correct for r in results) / n,"avg_latency": sum(r.latency_s for r in results) / n,"avg_tokens": sum(r.in_tokens + r.out_tokens for r in results) / n,"cost_per_1k": sum(r.cost_cny for r in results) / n * 1000,}
3. Three Patterns in the Data
Pattern 1: Capability gains are uneven, with structural regressions. The new release improved in education from 49.1% to 64.8% (+15.7 percentage points), in healthcare and mental health from 77.8% to 89.5%, and in reasoning and math from 72.2% to 81.8%. But language and instruction following dropped from 70.6% to 67.5%, and tool calling fell from 61.0% to 58.6%. This suggests that models optimized for reasoning and multimodal ability may trade off basic language constraints and structured-output stability. In engineering terms, instruction following and tool calling must be listed as separate acceptance criteria.
Pattern 2: Cost is determined by both output unit price and output length. Token consumption for this release rose only about 11% (2810→3119), but the output-side unit price increased about 17.5%, pushing cost per thousand calls up by roughly 30%. The takeaway: controlling output length and trimming redundant reasoning chains often cuts costs more than switching models.
Pattern 3: Cost-performance and capability ceiling are clearly tiered. The unit cost of top closed-source models can be more than ten times that of low-price-tier models, while the accuracy lead is typically only single-digit percentage points. For most businesses, tiered routing—sending simple requests to a low-cost model and escalating complex ones—is more economical than using the strongest model everywhere.
4. The Real Gap: Four Dimensions
- Capability ceiling: Closed-source leaders still have an edge in long-chain reasoning and multimodal understanding, but leading open-source models are close on general and code tasks.
- Cost and throughput: Open-source solutions can significantly lower unit cost through self-hosted inference, batching, and quantization, at the price of operations and tuning effort.
- Control and compliance: Open weights support on-premises deployment, keeping data in-domain, and deep fine-tuning; closed models are delivered as managed services—fast to integrate but limited in customization.
- Engineering stability: Closed models eliminate the need to maintain an inference stack; open-source requires you to handle scaling, failure recovery, and version upgrades yourself.
5. Selection and Implementation Recommendations
- Build tiered routing: Use rules or a small model to classify intent, and escalate only high-difficulty requests to a large model, balancing cost and quality.
- Embed evaluation in CI: Run a fixed evaluation set on every model or prompt change, with dual accuracy and cost thresholds as gates.
- Optimize context and output: Trim the system prompt, deduplicate retrieved snippets, and cap maximum output length to directly reduce token consumption.
- Abstract a unified access layer: Hide differences between models to make canary releases and rollbacks easier.
def route(req) -> str:if req.difficulty >= 0.7 or req.need_multimodal:return "large_model"return "small_model"
Observability is equally essential: using general-purpose cloud logging, monitoring and alerting, and container platforms to collect latency percentiles, token distributions, and failure causes turns a vague sense that things have “gotten slower or more expensive” into metrics you can pinpoint. In practices like this, Baidu AI Cloud typically offers a general combination of capabilities spanning model integration through monitoring and operations, making it easier for teams to stand up evaluation and canary pipelines quickly.
6. Conclusion
The gap between open-source and closed-source models has shifted from “can it be used” to “can you afford to use it, and use it reliably, at what cost.” The rational approach is not to chase a single top spot on a leaderboard, but to build your own evaluation set and cost model, then use tiered routing and continuous optimization to tune capability, latency, and cost into a range your business can accept.
