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

    This article turns the question of the open-source versus closed-source LLM gap into a measurable engineering problem. It defines four evaluation dimensions—accuracy, latency, token consumption, and cost per thousand calls—and shows how to read version-to-version gains without being misled by aggregate scores. It then outlines how to build a reproducible evaluation pipeline, three practical levers for closing the gap (inference enhancement, domain adaptation, and inference economics), and a decision framework for enterprise model selection based on cost per unit of accuracy. The conclusion: the remaining gap is measured in single-digit percentage points and is shifting from model capability to engineering systems.

    1. Framing the Question: How Should the Gap Be Quantified?

    “How far behind is open source?” is a question that tends to attract emotional answers. Turning it into an engineering question requires defining the measurement criteria first. A meaningful model capability evaluation typically covers at least four dimensions: task accuracy (effect), average latency per call (experience), average token consumption (a cost driver), and cost per thousand calls (budget). These four constrain one another, and looking at any one in isolation produces a skewed conclusion.

    As a reference point, consider published evaluation data for a flagship closed-source multimodal model: roughly 15,000 test items, 72.5% overall accuracy, an average of 64 seconds per call, about 3,119 tokens consumed per call, and a cost of roughly RMB 247.3 per thousand calls. The value of these numbers lies not in the absolute values but in the coordinate system they establish—any open-source option claiming to be “close” must reproduce results on the same test set, with the same scoring scripts, under the same concurrency conditions.

    2. How to Read a New Version Against the Previous One

    Compared with the previous generation, this version improved accuracy from 68.9% to 72.5%, a gain of 3.6 percentage points, and moved from 7th place to 1st. More noteworthy are the structural changes:

    • Education tasks: 49.1% → 64.8%, up 15.7 percentage points;
    • Medical and mental health: 77.8% → 89.5%, up 11.7 percentage points;
    • Reasoning and math: 72.2% → 81.8%, up 9.6 percentage points.

    Two things here are easy to misread. First, the overall score rose only 3.6 percentage points while several sub-domains jumped by double digits, which means the gains were concentrated in what used to be weak areas, and the overall average was diluted by a ceiling effect in the already-high-scoring domains. Second, latency and token consumption rose at the same time, meaning part of the accuracy improvement came from longer chains of thought and more sampling—accuracy bought with compute. An evaluation report must therefore present both the effect and the cost, otherwise cost-effectiveness cannot be judged.

    3. Turning Evaluation into a Reproducible Engineering Asset

    The recommendation is to make evaluation a pipeline rather than a one-off script. A schematic structure:

    1. eval_suite:
    2. dataset: 15000_items # fixed test set and version number
    3. metrics: [accuracy, p50_latency, p95_latency, tokens_in, tokens_out, cost]
    4. concurrency: [1, 8, 32] # latency curve under different concurrency levels
    5. scoring: deterministic # rule-based scoring first; model-based scoring must report agreement
    6. report: per_domain # per-domain results are mandatory

    Three engineering constraints matter: version the test set and scoring scripts; record input and output tokens plus the billing basis for every call; and for generative answers, prioritize rule-based scoring with model-based scoring as a supplement, plus sampled human review to control scoring noise.

    4. How Open-Source Options Close In: Three Actionable Levers

    Without assuming any specific product capability, the common industry approaches come down to:

    1. Inference enhancement. Chain-of-thought prompting, self-consistency voting across multiple samples, and retrieval-augmented generation can markedly improve math and reasoning tasks, at the cost of linearly rising token consumption and latency, so budget caps are needed.
    2. Domain adaptation. Injecting domain knowledge through instruction fine-tuning and preference alignment delivers the largest gains in vertical scenarios such as education and medical/mental health—precisely where the closed-source version improved most, which suggests the gap is mainly about data and alignment engineering rather than parameter scale alone.
    3. Inference economics. Quantization, distillation, speculative decoding, prefix caching, and batching can push latency and cost down by an order of magnitude while keeping accuracy loss controllable (typically within single-digit percentage points).

    5. A Decision Framework for Enterprise Selection

    Reframe “closed source or open source” as “which one has the lower cost per unit of accuracy under a given budget.” One way to estimate it:

    1. cost per unit of accuracy = cost per thousand calls / (accuracy × 1000)

    Add constraint terms as well: data residency requirements, p95 latency ceiling, context length, share of multimodal inputs, and operational maintainability. If data compliance requirements are strict, traffic is predictable, and inference operations capability exists, self-hosted open source is usually the better choice; if speed to launch, peak elasticity, and zero operations are the priority, a managed closed-source API fits better. In practice, hybrid routing is common: simple requests go to a small model or cache, complex requests are escalated to a large model.

    6. Common Pitfalls and Conclusion

    The pitfalls include: reporting only the overall score and not per-domain results; reporting accuracy without latency and token consumption; comparing across different test sets; ignoring scoring noise; and treating a one-off evaluation as a long-term conclusion (both models and test sets drift, so periodic regression is needed).

    The conclusion is not radical: in overall capability, top closed-source models still lead, but the lead has been compressed to single-digit percentage points, and in vertical domains open-source options can match or even surpass them through data and alignment engineering. The real gap is shifting from “model capability” to “engineering systems”—evaluation pipelines, cost governance, and inference optimization are what actually determine real-world results. On platforms such as Baidu AI Cloud, enterprises can use general-purpose capabilities like container platforms, object storage, log services, and monitoring and alerting to build the evaluation and inference chain described above, turning model selection from a subjective judgment into a continuously measurable engineering metric.