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

    This article argues that the gap between open-source and closed-source large language models is not a single score but a multi-dimensional vector that shifts with task distribution, latency budget, and cost ceiling. Using a benchmark of roughly 15,000 questions across six capability dimensions, it shows how a closed-source flagship can lead on reasoning and domain knowledge while regressing on instruction following and tool calling. It defines comparable measurement criteria for accuracy, latency, token consumption, and cost, outlines five engineering practices for reproducible evaluation, and proposes a three-tier routing architecture for model selection. Readers will learn how to build a consistent, reproducible, per-dimension evaluation system and route each request to the most cost-effective model.

    1. Framing the Question Correctly: The Gap Is a Vector, Not a Number

    When discussing the capability gap between open-source and closed-source models, the most common mistake is compressing the question into “a few percentage points on the overall score.” A total score is only a projection of a multi-dimensional capability vector under one particular set of weights; change the weights and the conclusion can flip. A more rigorous framing is this: under three constraints — a given task distribution, a given latency budget, and a given cost ceiling — how much usable headroom separates the two model classes?

    A cross-sectional evaluation covering roughly 15,000 questions across six capability dimensions offers a useful sample. A closed-source flagship preview raised overall accuracy from 68.9% to 72.5%, moving from seventh place to first. By sub-dimension, education rose from 49.1% to 64.8% (+15.7), medical and mental health from 77.8% to 89.5% (+11.7), and reasoning and math from 72.2% to 81.8% (+9.6); but language and instruction following fell from 70.6% to 67.5% (-3.1), and agents and tool calling fell from 61.0% to 58.6% (-2.4). What deserves attention in this data is not “who is first” but the unevenness of the capability gains.

    2. Breaking Down the Total Score: Comparable Criteria Across Four Metrics

    Any comparison across versions or across routes (open-source vs. closed-source) must first unify the measurement criteria; otherwise the numbers mean nothing.

    • Accuracy: specify whether scoring is strict match or equivalence-based, whether multiple samples are allowed with the best one taken (pass@k and pass@1 differ enormously), and whether refusals and format errors are scored separately.
    • Response latency: distinguish time to first byte from end-to-end completion time, and annotate the input and output length distributions; averages get skewed by the long tail, so report P50/P95 alongside.
    • Token consumption: split input, output, and reasoning-process tokens, and note whether chain-of-thought-style mechanisms are enabled, since this item can affect the total by several times.
    • Cost: cost per call = input tokens × input price + output tokens × output price + reasoning tokens × corresponding price; cost per thousand calls multiplies that by 1000. Without any one of the unit prices and the token structure, a cost comparison is invalid.

    The combination in the sample above — “64 seconds and 3,119 tokens per call on average, about RMB 247.3 per thousand calls” — shows that high accuracy is often bought with longer reasoning chains, with latency and cost rising in step. What engineering actually needs to assess is “accuracy per unit cost”: whether the gains from higher accuracy cover the increase in latency and expense.

    Illustrative evaluation aggregation logic:

    1. def summarize(records):
    2. # records: [{dim, correct, latency, in_tok, out_tok, think_tok, price_in, price_out}]
    3. agg = {}
    4. for r in records:
    5. a = agg.setdefault(r["dim"], {"n":0, "ok":0, "lat":[], "cost":0.0, "tok":0})
    6. a["n"] += 1
    7. a["ok"] += int(r["correct"])
    8. a["lat"].append(r["latency"])
    9. a["tok"] += r["in_tok"] + r["out_tok"] + r["think_tok"]
    10. a["cost"] += r["in_tok"]*r["price_in"] + r["out_tok"]*r["price_out"]
    11. for dim, a in agg.items():
    12. lat = sorted(a["lat"])
    13. a["acc"] = a["ok"]/a["n"]
    14. a["p95"] = lat[int(len(lat)*0.95)-1]
    15. a["cost_per_1k"] = a["cost"]/a["n"]*1000
    16. return agg

    3. Regressions Are the Most Informative Signal

    A 3.1-point drop in language and instruction following and a 2.4-point drop in tool calling usually do not mean “capability degradation,” but rather a trade-off between training objectives and decoding strategy: longer internal reasoning dilutes attention to hard constraints such as format requirements, system prompts, and function signatures, and it also lengthens the chain, increasing the probability of tool-call timeouts and mismatches.

    This explains why the gap between open-source and closed-source models appears to reverse across scenarios: on hard reasoning and expert-domain question answering, closed-source flagships still hold a visible lead; but on structured output, strict instruction following, and low-latency, high-concurrency tool orchestration, open-source models with targeted fine-tuning and constrained decoding can well overtake them. The gap is therefore scenario-dependent, not globally constant.

    4. Five Engineering Essentials for Reproducible Evaluation

    1. Questions and scoring: fix the question set and version numbers, and put scoring scripts and prompts under version control together, to avoid “prompt drift” contaminating conclusions.
    2. Sampling and temperature: unify temperature, top_p, and maximum output length; disable randomness when comparing, or repeat multiple times, take the mean, and report variance.
    3. Latency measurement: instrument on the client side, distinguish queueing, time to first byte, and completion time, and record concurrency; single-concurrency data cannot represent production behavior.
    4. Cost accounting: include cache hits, batch discounts, retries, and failed calls in total cost; failed calls are billed too.
    5. Layered reporting: beyond the total score, report per-dimension scores, confidence intervals, and clustered failure samples, so it is easy to locate whether the issue is missing knowledge, a broken reasoning chain, or a format violation.

    5. A Selection Framework: From Scores to Architecture

    Use “three-tier routing” instead of an either/or choice. The first tier is a small self-hosted model or a cache that handles high-frequency simple requests, aiming to flatten latency and cost; the second tier is a mid-size open-source model handling structured extraction, classification, and tool-parameter generation, with constrained decoding to guarantee format; only the third tier sends long-tail requests such as hard reasoning and multimodal understanding to the most capable closed-source API. Combined with semantic caching, result reuse, and batching, overall cost can often drop significantly while quality loss stays controllable.

    In scenarios requiring on-premises deployment or where data cannot leave a domain, the value of the open-source route lies not in a “higher total score” but in being controllable, auditable, and offline-capable; the value of the closed-source route lies in the speed of access to frontier capabilities and freedom from operations. The two are complementary. At the infrastructure level, a common approach is to run inference services on a container platform, store evaluation sets and logs in object storage, use a message queue to smooth request spikes, and track P95 latency and failure rates with logging and monitoring/alerting systems. Baidu AI Cloud can serve as a foundation for these general-purpose capabilities; refer to the official documentation for specific specifications and pricing.

    6. Conclusion

    The answer from the evaluation sample is this: on the hardest reasoning and expert question-answering dimensions, the leader still holds a visible advantage of 3 to 4 percentage points, at the cost of higher latency and expense; but on instruction following and tool calling, that advantage has narrowed or even reversed. So “how big is the gap” should be answered as follows: on general hard tasks a measurable gap remains, while on engineering deliverability the gap is determined mainly by optimization quality. What truly decides success is whether you can build an evaluation system with unified criteria that is reproducible and broken down by dimension, and then design layered routing on top of it, so that every class of request lands on the model with the best cost-benefit profile.