Open-Source vs. Closed-Source LLMs: Model Selection Lessons from a 15,000-Question Evaluation

    This article examines how to compare open-source and closed-source large language models using a consistent evaluation framework. It reviews the limitations of a large but non-reproducible benchmark, highlights gains and regressions across task categories, and separates the gap into reasoning capability, deployment and data control, and service stability. It then presents a scenario-driven selection approach with task-based routing, a custom evaluation example, hybrid cloud scheduling, regression checks, and a practical checklist.

    1. Align on Evaluation Criteria Before Discussing the Gap

    Community views on the gap between open-source and closed-source models often fall into two camps: one side believes closed-source flagships are far ahead, while the other believes open-source models have already caught up. Both judgments require data, and whether that data is credible depends on the evaluation itself.

    A usable model evaluation should meet at least the following conditions:

    1. The question set must be large enough and cover multiple areas, including education, healthcare, mathematical reasoning, tool calling, and instruction following. A sample of a few hundred questions is easily affected by question distribution.
    2. Metrics must be multidimensional. In addition to accuracy, the evaluation should record response latency, token consumption, and unit cost. These three factors are also hard constraints in production environments.
    3. Versions must be comparable. Only by comparing old and new versions under the same criteria can you determine the real magnitude of capability changes.
    4. The same question should be sampled multiple times, and confidence intervals should be reported. If the gap between two models is smaller than the error range, it is not appropriate to draw conclusions from it.
    5. Benchmark contamination must be prevented. Public questions may already have entered training data, so newly constructed or held-out questions are needed for validation.

    2. What a 15,000-Question Dataset Shows

    In an evaluation covering about 15,000 questions, a preview version of a closed-source flagship model produced the following results:

    • Overall accuracy was 72.5%, compared with 68.9% for the previous generation, an increase of 3.6 percentage points.
    • Average latency per call was about 64 seconds.
    • Average token consumption per call was about 3,119.
    • Cost per 1,000 calls was about RMB 247, compared with RMB 189 for the previous generation, an increase of about 31%.

    The data did not disclose the model version, question distribution, scoring method, or billing basis, so readers cannot independently reproduce it. This article treats it as directional reference rather than a final conclusion. Even so, it still illustrates three things.

    1. Gains in Reasoning and Vertical Domains Are Relatively Clear

    By category, accuracy on education questions rose from 49.1% to 64.8%, medical and mental health questions rose from 77.8% to 89.5%, and reasoning and mathematical calculation questions rose from 72.2% to 81.8%. These improvements are concentrated in multi-step derivation tasks. For businesses that require long-chain reasoning, this type of improvement has practical value.

    2. Capability Gains May Come with Regressions

    In the same dataset, language and instruction following dropped from 70.6% to 67.5%, while agent and tool calling dropped from 61.0% to 58.6%. When a model directs more training resources toward long-chain reasoning, the stability of basic instruction understanding and tool calling may decline. For production systems, the impact of such regressions may be greater than a small gain in accuracy. A decline in instruction following means prompts need to be adjusted again. A decline in tool calling means automated workflows need to be revalidated.

    3. The Cost of Capability Gains Must Be Accounted for Separately

    This version’s token consumption rose by about 11%, and the output unit price was also increased. Together, the two pushed cost per 1,000 calls up by about 31%. Based on the original data, the cost is about RMB 0.25 per call. However, the input-to-output ratio was not disclosed, so their respective contributions to cost cannot be separated. For a business with a million calls per day, this difference will be significantly amplified.

    3. Viewing the Open-Source/Closed-Source Gap at Three Layers

    The table below breaks the gap into three dimensions for easier comparison during model selection.

    Dimension Closed-source flagship Open-source models Suitable scenarios Main risks
    Top-tier reasoning Usually leads on long-chain hard problems Can approach on some tasks; the extent depends on the specific version Complex planning, multi-step reasoning The gap changes by version; validate with same-criteria evaluation
    Deployment and data Data must leave the domain; billed per call Can be privately deployed; data stays in the domain Data-sensitive, high-volume calls Requires compute and deployment/operations cost
    Stability and service Availability, rate limiting, monitoring, and related support are more mature Versions are fragmented; service quality depends on in-house capability Production systems that need long-term stable operation Need to plan operations staffing and incident response in advance

    The first layer is top-tier reasoning. With greater compute investment and training data, closed-source flagships still have an advantage on long-chain hard problems. Open-source models can sometimes approach flagship versions on some tasks within a few months, but whether they do requires confirmation through same-criteria evaluation.

    The second layer is deployment and data control. Open-source models can be privately deployed, keeping data in the domain and making latency more controllable. In scenarios with high call volume and sensitive data, an open-source model with slightly lower accuracy but significantly lower per-call cost may be more cost-effective. This judgment must include hardware depreciation, electricity, and operations labor in total cost of ownership; otherwise, it is easy to underestimate the real spending of an open-source solution.

    The third layer is service stability. Open-source community versions iterate quickly but are relatively fragmented and lack unified managed-service quality assurance. Closed-source managed services are usually more mature in rate limiting, monitoring and alerting, and canary releases. This part of the gap is unrelated to model capability, yet it directly affects production deployment.

    4. Selection Method: Start from Scenarios, Not Leaderboards

    1. Route by task difficulty. Assign simple tasks such as formatting, summarization, and classification to lower-cost models, and assign hard tasks such as multi-step reasoning and complex planning to flagship models. The cost of the routing layer can be estimated with the following formula:

      Composite cost per call = Σ (task share × corresponding model cost per call) + routing overhead + retry cost caused by misrouting

      Example: assume 70% of requests are simple tasks handled by a model whose per-call cost is only one-tenth that of the flagship, and the remaining 30% are handled by the flagship. The composite cost is about 0.37 times that of using the flagship for everything, a saving of about 63%. This is only an arithmetic example; actual savings depend on task distribution, routing accuracy, and misrouting rate, and must be measured with business data.

    2. Validate with your own evaluation set. Public leaderboards are only suitable for initial screening. It is advisable to build hundreds of test questions that fit the business and examine both accuracy and token consumption. The following code is a minimal example; the prices, field names, and scoring rules must be replaced according to actual conditions.

      1. import time
      2. from dataclasses import dataclass
      3. PRICE_IN = 0.002 # RMB per 1K input tokens, example value
      4. PRICE_OUT = 0.008 # RMB per 1K output tokens, example value
      5. @dataclass
      6. class Case:
      7. prompt: str
      8. answer: str
      9. def judge(resp_text: str, answer: str) -> bool:
      10. # Define scoring rules by task: exact match, regex, or scoring by a judge model
      11. return answer.strip() in resp_text
      12. def call_with_retry(model, prompt, retries=3):
      13. for attempt in range(retries):
      14. try:
      15. return model.invoke(prompt)
      16. except Exception:
      17. if attempt == retries - 1:
      18. raise
      19. time.sleep(2 ** attempt)
      20. def evaluate(model, cases, samples=3):
      21. rows = []
      22. for case in cases:
      23. for _ in range(samples):
      24. resp = call_with_retry(model, case.prompt)
      25. rows.append({
      26. "ok": judge(resp.text, case.answer),
      27. "in_tok": resp.input_tokens,
      28. "out_tok": resp.output_tokens,
      29. })
      30. n = len(rows)
      31. acc = sum(r["ok"] for r in rows) / n
      32. total_cost = sum(
      33. r["in_tok"] * PRICE_IN + r["out_tok"] * PRICE_OUT for r in rows
      34. ) / 1000
      35. cost_per_call = total_cost / n
      36. return {
      37. "accuracy": acc,
      38. "avg_tokens": sum(r["in_tok"] + r["out_tok"] for r in rows) / n,
      39. "cost_per_call": cost_per_call,
      40. "accuracy_per_yuan": acc / cost_per_call if cost_per_call else float("inf"),
      41. }
    3. Use hybrid scheduling on a managed cloud platform. With model services and supporting capabilities provided by cloud vendors, such as monitoring and alerting, logging services, and elastic inference compute, combine closed-source APIs with privately deployed open-source models in a scheduling setup. This can balance performance, cost, and data compliance.

    4. Track regression metrics. A model upgrade does not mean comprehensive improvement. Before each version switch, run regression tests on basic metrics such as instruction following and tool calling, so that gains in reasoning capability are not offset by downstream stability issues.

    5. Selection Checklist

    The table below provides starting points and priority checks for several common situations. It is for reference only.

    Enterprise situation Possible starting point Priority checks
    Small team, low call volume Use a closed-source API directly Whether per-call cost and response latency are acceptable
    Stable call volume growth Flagship models for hard tasks, open-source models for routine tasks Routing accuracy and regression test results for version switches
    High data compliance requirements, such as medical or financial Mainly privately deployed open-source models Total hardware and operations cost; data retention and audit requirements
    Daily call volume reaches millions Layered routing plus self-hosted inference cluster evaluation —