On Speeding Up Language Model Evaluation

Jin Peng Zhou, Christian K. Belardi, Ruihan Wu, Travis Zhang, Carla P. Gomes +2 more
7/1/2024

No official code found. Best implementation: kilian-group/banditeval (7 stars, MIT, last commit 2025-03-05).

Abstract

Developing prompt-based methods with Large Language Models (LLMs) requires making numerous decisions, which give rise to a combinatorial search problem over hyper-parameters. This exhaustive evaluation can be time-consuming and costly. In this paper, we propose an $\textit{adaptive}$ approach to explore this space. We are exploiting the fact that often only few samples are needed to identify clearly superior or inferior settings, and that many evaluation tests are highly correlated. We lean on multi-armed bandits to sequentially identify the next (method, validation sample)-pair to evaluate and utilize low-rank matrix factorization to fill in missing evaluations. We carefully assess the efficacy of our approach on several competitive benchmark problems and show that it can identify the top-performing method using only 5-15% of the typical resources -- resulting in 85-95% LLM cost savings. Our code is available at https://github.com/kilian-group/banditeval.

View on arXivView PDF

Code Implementations(1)

MIT

The official code release for On Speeding Up Language Model Evaluation

71PythonFeb 26, 20251 years agoMIT

Cite this paper

@article{zhou2024speeding,
  title  = {On Speeding Up Language Model Evaluation},
  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},
  year   = {2024},
  eprint = {2407.06172},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.06172},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.06172.svg)](https://codeofpaper.com/paper/2407.06172)

Discussion