How to Choose an LLM: A Reproducible Blind-Testing and Cost Evaluation Workflow
This guide walks through a reproducible process for evaluating large language models. It covers how to align metric definitions across capability, cost, latency, stability, and compliance; how to read public benchmarks critically; how to run anonymized blind tests with inter-rater reliability checks; how to verify long-context and multimodal capabilities; how to calculate cost per correct result with concrete formulas; and provides a scoring template, a reproducibility checklist, and common pitfalls to avoid.
1. Align Metric Definitions First
When selecting a model, capability, cost, latency, stability, and compliance must be compared within a single framework. Every metric needs a documented measurement method and test conditions. Otherwise, results from two evaluation rounds cannot be compared, and other team members cannot reproduce them.
| Dimension | Core Question | Measurement Method | Hard Gate? |
|---|---|---|---|
| Capability | Can it complete the target tasks? | Task pass rate on a self-built dataset, with fixed dataset version and sample size | No, but set a minimum pass threshold first |
| Cost | Cost per request and per correct result | Use the formula in Section 5 with tokens measured on your own tasks | No |
| Latency | How long do users wait? | Record P50 and P95 of time-to-first-token and full response time, in the same region, time window, and fixed concurrency | No |
| Stability | How often do failures and timeouts occur? | Track error rate, timeout rate, and rate-limit events over an observation window of at least 7 days | No |
| Compliance | Can the data be used legally? | Verify data storage location, training-use terms, data retention period, and audit materials | Yes, hard gate |
Compliance is a hard gate. A model that fails data-handling requirements is excluded from further comparison, even if it leads on capability and cost. Capability and cost are used for ranking: models must first pass the minimum capability threshold, then be compared on cost per correct result.
2. How to Interpret Public Benchmarks
Public leaderboards are useful for narrowing the candidate pool, but not as the final basis for a decision. When interpreting them, check the following:
- Benchmark version and release date. Scores on the same leaderboard may not be comparable across versions.
- Prompt templates, number of few-shot examples, whether tool calls are allowed, and whether chain-of-thought output is shown. All of these settings change scores.
- Whether the benchmark data may have entered training data. If this cannot be confirmed, lower the weight given to that score.
- Whether score differences exceed random variation. With small samples, a gap of a few points may just be luck. Repeat runs and observe the variance.
Public scores answer “roughly how does this model perform on a class of tasks.” They cannot answer “will it pass on my business data.” The latter must be measured with your own data.
3. How to Run an Anonymized Blind Test
The purpose of a blind test is to prevent reviewers from knowing which model produced each output, reducing bias from brand preference and subjective judgment. Recommended steps:
- Build the task set. Samples should come from real business scenarios and be fully de-identified. Use stratified sampling by difficulty and task type, with sufficient samples per stratum.
- Unify test conditions. All candidate models use the same prompt template, temperature, max output length, timeout and retry settings, and the same concurrency level.
- Remove model identifiers. Assign random labels to outputs, such as A, B, C. Strip self-introductions, model names, and stylistic marker words from the outputs.
- Independent dual scoring. At least two reviewers score independently and record their reasoning. Check inter-rater agreement with Cohen’s kappa or Krippendorff’s alpha. If agreement is low, revise the scoring rubric first, then re-score.
- Preserve raw outputs, the label mapping, scores, and reasoning. Do not modify any records before unblinding.
- Run statistical comparisons. Pass rate is passes divided by sample size. Estimate uncertainty with the approximate 95% confidence interval: p̂ ± 1.96 × √(p̂(1 − p̂) / n). If two models’ confidence intervals overlap substantially, increase the sample size or repeat the test instead of declaring a winner.
4. Verifying Long-Context and Multimodal Capability
The advertised context window length is not the same as the length a model can use effectively. To verify:
- Build test samples in length tiers, such as short, medium, and long.
- Place key information at the beginning, middle, and end respectively, and check whether the model recalls it accurately.
- Record failure types, such as omission, fabrication, ordering errors, or truncation. Failure types often reveal more than the overall pass rate.
Apply the same approach to multimodal capability. Prepare a batch of human-labeled image, table, screenshot, or audio samples covering text recognition, chart reading, numeric verification, and layout understanding. Use one consistent scoring rubric and report the pass rate for each task type separately. If your business only involves text, skip this part and note that in the report.
5. Cost per Correct Result and the Formula
Cost cannot be read directly from the price list. The core metric is cost per correct result:
Cost per correct result = total call cost ÷ number of correct results
Total call cost includes:
- Base call fees: Σ (input tokens × input unit price + output tokens × output unit price)
- Extra cost from retries: fees incurred when failed requests are resent
- Savings from caching: input fees drop on cache hits, so record the hit rate separately
- Human review cost: review hours multiplied by the hourly rate
The number of correct results is the count of samples judged as passing in the blind test.
For example, if a model passes 60 out of 100 tasks and the total call cost is C, the cost per correct result is C ÷ 60. Use token counts measured on your own tasks, not figures from examples or other people’s data.
Cost varies with prompt length, concurrency, retry count, and cache hit rate. The same model can have very different unit costs across different workloads. Price lists also change, so record the query date and currency of the prices used in your report.
6. Scoring Sheet Template
The scoring sheet, including the weight of each dimension, should be finalized before testing begins. Weights are determined by business goals and must not be adjusted after seeing results.
| Dimension | Weight | Test Conditions | Sample Size | Raw Result | Score | Hard Gate? | Notes |
|---|---|---|---|---|---|---|---|
| Capability | TBD | Dataset version, prompt version | TBD | Pass rate and confidence interval | TBD | No, must meet minimum threshold | |
| Cost | TBD | Price list date, currency, retry count | TBD | Cost per correct result | TBD | No | |
| Latency | TBD | Region, time window, concurrency | TBD | P50, P95 | TBD | No | |
| Stability | TBD | Observation window length | TBD | Error rate, timeout rate | TBD | No | |
| Long context | TBD | Per length tier | TBD | Recall rate per tier | TBD | No | |
| Multimodal | TBD | Task type distribution | TBD | Pass rate per type | TBD | No | Note if skipped as not applicable |
| Compliance | Not scored | Data processing agreement, storage location, retention period | N/A | Pass or fail | N/A | Yes | Failure means immediate elimination |
Compliance is recorded only as pass or fail and does not participate in weighted scoring.
7. Reproducibility Checklist
Record the following information completely so others can rerun the test the same way:
- Dataset version, source, and sampling method
- Sample size and stratification details
- Full prompt template text and version number
- Temperature, sampling parameters, and max output length
- Timeout, retry count, and backoff strategy
- Concurrency level and test time window
- Statistical window and number of repeated runs
- Price list query date and currency
- Number of reviewers, scoring rubric, and agreement metrics
- Compliance materials, including the data processing agreement, data storage location, and retention period
8. Common Mistakes and Pitfalls
- Looking only at the total score while ignoring per-dimension results. A total score can hide a clear weakness in one dimension.
- Computing cost directly from public prices while ignoring retries, long prompts, and human review.
- Sending test data to third-party APIs without de-identification. De-identify before sending and confirm you have the appropriate authorization.
- Reviewers knowing which model produced each output, which invalidates the blind test.
- Reusing old conclusions after a model version update. Retest whenever the version changes.
- Deciding the winner from a single run. Randomness affects single-run results; repeat runs before comparing.
