On Speeding Up Language Model Evaluation

Jin Peng Zhou, Christian K. Belardi, Ruihan Wu, Travis Zhang, Carla P. Gomes, Wen Sun, Kilian Q. Weinberger

TL;DR

Evaluating Large Language Models (LLMs) across hundreds of prompts and hyperparameters is prohibitively expensive and time-consuming. This paper introduces an adaptive evaluation framework that uses multi-armed bandits and low-rank matrix factorization to identify the best-performing model or prompt using only 5-15% of the typical evaluation budget, resulting in cost savings of up to 95%.

What Problem Does This Paper Address?

The current paradigm for LLM evaluation is "exhaustive": if you have 100 candidate prompts and a validation set of 1,000 questions, you run all 100,000 combinations. As models get larger and benchmarks more complex, this becomes a massive bottleneck. A single full evaluation of the AlpacaEval leaderboard, for instance, can cost nearly $800 in API fees.

The authors identify two key inefficiencies in this approach:

  1. Redundant Sampling: We often spend as much budget evaluating a clearly terrible model as we do a top-tier one.
  2. Ignored Correlations: Performance across validation samples is often highly correlated. If a prompt excels at one geometry problem, it likely excels at a similar one.

The goal is to find the single best "method" (a specific model, prompt, or hyperparameter set) without wasting resources on the "also-rans."

Methods

The researchers propose two adaptive algorithms to navigate the search space:

  • UCB-E (Upper Confidence Bound for Exploration): This adapts the classic multi-armed bandit framework to the evaluation setting. Instead of sampling every model equally, it calculates an upper confidence bound for each model’s performance. It prioritizes models that are either performing very well (exploitation) or have high uncertainty due to few samples (exploration).
  • UCB-E-LRF (Low-Rank Factorization): This is the more sophisticated approach. It treats the evaluation scores as a partially observed matrix (Methods × Examples). By assuming this matrix is low-rank, the algorithm can "fill in the blanks" for unevaluated pairs. It uses an ensemble of factorization models to estimate both the expected score and the uncertainty (variance) of that estimate.

The general workflow, illustrated in the figure below, involves iteratively selecting a specific method-example pair, evaluating it, and updating the internal model until the budget is exhausted.

Adaptive method-example pair selection workflow.

Datasets

The authors evaluated their approach on six distinct settings derived from three popular benchmarks:

  • AlpacaEval: 154 models evaluated on 805 questions using GPT-4 as a judge.
  • GSM8K (Grade School Math 8K): Two versions—one for prompt engineering (205 prompts) and one for model selection (122 model/sampling configurations).
  • PIQA (Physical Interaction QA): Two versions—one for prompts (177 prompts) and one for models (103 configurations).

They also introduced a "hardness" metric, $H_1$, which quantifies how difficult it is to distinguish the best method from the rest based on their performance gaps.

Key Insights and Ideas

  • Evaluation as Matrix Completion: The most powerful insight is that LLM evaluation is essentially a matrix completion problem. Because models behave consistently across similar tasks, the performance matrix is naturally low-rank.
  • The "Hardness" of Prompt Engineering: The authors found that prompt engineering is often "harder" than model selection. In prompt engineering, many prompts perform very similarly, leading to a high $H_1$ value. This requires more samples to statistically distinguish the true winner.
  • Adaptive Sampling Wins: Simply being smarter about which example to test for which model provides an order-of-magnitude improvement over uniform sampling.

Key Results

The proposed algorithms consistently outperformed standard baselines across all metrics, including Top-1 Precision and NDCG (ranking quality).

  • Massive Cost Reductions: As shown in Figure 1, the algorithms achieved 85-95% savings in monetary costs for AlpacaEval and GPU time for GSM8K.
  • Efficiency: On the AlpacaEval (Drop Annotator) dataset, the adaptive algorithms reached a precision of 1.0 (identifying the best model with 100% certainty) using just 8% of the total possible evaluations. Baselines required nearly 90% of the budget to reach the same certainty.
  • Algorithm Specialization: UCB-E tends to perform better on "easier" tasks where there is a clear winner, while the low-rank factorization version (UCB-E-LRF) shines in "harder" settings where performance differences are subtle and correlations are high.
Figure 1: Cost comparison for finding the best model or prompt between our proposed algorithms (UCB-E, UCB-E-LRF) and Full Evaluation on two datasets. The overhead computation time for UCB-E and UCB-E-LRF is 2.4 and 142.6 seconds, respectively. See text for details.

Limitations and Future Work

  • Static vs. Dynamic Matrices: The current algorithms assume a fixed-size matrix. In real-world scenarios like the Chatbot Arena, new models and user prompts are added constantly. Extending these methods to dynamic, growing matrices is a key next step.
  • Pairwise Comparisons: Many modern benchmarks rely on pairwise "win rates" rather than absolute scores. The authors suggest that adapting their bandit approach to Bradley-Terry models or other pairwise ranking frameworks is a promising direction.
  • Full Leaderboard Recovery: While this paper focuses on finding the #1 performer, future work could explore how to efficiently recover the full top-K ranking or the entire leaderboard.
Figure 3: Comparison of algorithms on six datasets evaluated with various metrics. The vertical axes represents performance of a metric and horizontal axes represents the percentage of method-example pairs evaluated. All results are aggregated based on 50 trials with different random seeds. The datasets are ordered by decreasing H1 (see Section 3.1). Larger H1 values indicate settings where finding the best method is more difficult. Our proposed algorithms: UCB-E and UCB-E-LRF consistently require much less evaluation to achieve the same performance as baselines.

Summary updated

BibTeX
@inproceedings{zhou2025speeding,
  author = {Jin Peng Zhou and Christian K. Belardi and Ruihan Wu and Travis Zhang and Carla P. Gomes and Wen Sun and Kilian Q. Weinberger},
  title = {{On Speeding Up Language Model Evaluation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=3cvwO5DBZn},
}
Figure