LLM Selection Evaluation: A Reproducible Multi-Dimensional Comparison Framework
A single leaderboard ranking is not enough to choose a large language model. This article presents a reproducible evaluation framework covering six measurable dimensions, test set design, scoring methods, result interpretation with confidence intervals, engineering implementation, and a practical selection checklist.
Why a Single Ranking Is Not Enough for Model Selection
Community discussions and public leaderboards are common when evaluating large language models. A model that ranks near the top in one composite ranking can easily be interpreted as “better overall.” But a composite score is a weighted result across multiple subtasks; the choice of weights and test questions changes the final ranking. The same model may lag clearly on fact-checking questions while leading on code-generation questions. If a team looks only at the overall rank, it cannot determine whether the model fits its business scenario.
Therefore, the first step in model selection is not to look at rankings but to break “good” into measurable dimensions and verify each one.
1. Break “Good” into Measurable Dimensions
At least the following six dimensions should be covered, with weights set according to business priorities.
- Factual accuracy: The correctness rate when the model answers questions with clear reference answers, especially names, dates, numbers, regulatory clauses, and other information prone to errors. For knowledge-based applications, this dimension is usually the most critical.
- Reasoning ability: The correctness of final answers and the reasonableness of intermediate steps in tasks such as multi-step math problems, logical inference, and conditional constraint planning.
- Instruction following: Whether the model strictly follows the required format, length, and field structure. For results that need to be parsed by programs, format stability is more important than prose quality.
- Latency and throughput: Time to first token, total generation time, and queuing under concurrency. These metrics directly affect interaction experience and service capacity.
- Cost: Per-call cost based on input and output length, plus extra overhead from retries and long context.
- Safety and compliance: Whether refusal boundaries are reasonable and whether sensitive content handling complies with enterprise policies.
Dimensions may constrain one another. For example, longer reasoning chains usually bring higher latency and cost, so teams need to make trade-offs between accuracy and response speed.
2. Test Set Design
Test set quality determines the credibility of evaluation conclusions. The following principles should be followed during design.
First, questions should come from real business scenarios. Questions sampled and de-identified from historical tickets and real conversation logs reflect actual performance better than manually written standard questions.
Second, stratify difficulty. Each dimension should include simple, medium, and hard levels to avoid concentrating all questions in the range where the model performs well.
Third, keep a hold-out set. Questions used for tuning or prompt optimization should not be used for final scoring; otherwise, results will be overly optimistic.
Fourth, control size and distribution. At least several hundred samples per dimension are recommended, and the proportion of question types should match the business distribution.
Fifth, record versions. Questions, reference answers, and scoring rules all need version numbers to support reproducibility and historical comparison.
3. Scoring Methods
Scoring methods fall into three broad categories.
- Automatic scoring: Use rules or exact matching for tasks with definite answers, such as multiple-choice questions, numeric questions, and format validation. This is low-cost and highly repeatable.
- Model-assisted scoring: Use another model to judge the quality of open-ended responses according to a scoring rubric. It needs calibration with human-labeled samples and regular checks of the scoring model’s own bias.
- Human scoring: Used for final acceptance and review of disputed samples. At least two raters should score independently, and consistency metrics should be calculated.
Whichever method is used, the scoring rubric should be written clearly in advance, for example, “deduct points for each factual error” or “record a zero score if the output does not meet field requirements.”
4. Example Implementation
The pseudocode below shows the basic flow for aggregating results by dimension and calculating confidence intervals.
def evaluate(model, dataset, scorer):report = {}for dimension, items in group_by(dataset, key="dimension"):scores = []for item in items:answer = model.generate(item["prompt"], temperature=0)scores.append(scorer(answer, item["reference"]))report[dimension] = {"mean": mean(scores),"ci95": bootstrap_ci(scores, n_resamples=1000, level=0.95),"n": len(scores),}return report
Here, bootstrap_ci means resampling the samples with replacement about one thousand times, calculating the mean each time, and taking the 2.5% and 97.5% percentiles as the 95% confidence interval. This step matters. If the confidence intervals of two models on a dimension overlap substantially, the current sample is insufficient to distinguish their performance.
5. Interpreting Results
Common pitfalls after receiving an evaluation report include the following.
First, do not compare only total scores. Observe each dimension and calculate weighted results using business weights. Weights must be determined before testing, not adjusted afterward.
Second, focus on whether differences are significant. A small lead may be only random fluctuation. For dimensions with few samples, report confidence intervals and state conclusions cautiously.
Third, note prompt sensitivity. The same model may differ markedly under different prompt templates. Fix prompt templates during evaluation and run robustness tests on a small set of candidate templates before final selection.
Finally, distinguish capability from stability. One high score does not mean a high score every time. For production scenarios, sample the same question multiple times and observe the range of variation.
6. Engineering Implementation and Continuous Evaluation
Selection does not mean evaluation is over. Model versions update, business data changes, and previous conclusions may become invalid. Recommended practices include the following.
- Automate the evaluation pipeline and integrate it with continuous integration, so regression tests run automatically whenever the model or prompt changes.
- Use small-traffic canary releases in production, record real user feedback, and cross-validate it against offline evaluation results.
- Build an error sample library and add typical online failure cases to the test set.
- Set alert thresholds and notify owners promptly when a dimension metric falls below the baseline.
7. Practical Checklist
- Have the top three business-priority dimensions been identified and weights set?
- Does the test set come from real business scenarios, and does it retain an independent hold-out set?
- Is the scoring rubric documented, and is there a consistency check?
- Does the report include the sample size and confidence interval for each dimension?
- Are conclusions based on fixed prompt templates and fixed evaluation versions?
- Are continuous monitoring and periodic re-testing scheduled after launch?
