Large Language Model Routing with Benchmark Datasets
Tal Shnitzer, Anthony Ou, Mírian Silva, Kate Soule, Yuekai Sun, Justin Solomon, Neil Thompson, Mikhail Yurochkin
TL;DR
The paper tackles the problem of selecting the best LLM for a new task by learning routers from benchmark data. It formalizes per-model correctness predictors trained on embedded inputs from diverse benchmarks and introduces three routing scores, including an OOD-aware score that accounts for imperfect predictors. Empirical results on HELM and Mix-Instruct show that benchmark-informed routing can outperform the Best Model on Average and enable smaller models to compete with larger ones, with efficiency gains at test time. The work highlights the practical value of leveraging benchmark byproducts for cost-efficient, scalable LLM deployment and outlines paths for improving OOD generalization and dataset coverage.
Abstract
There is a rapidly growing number of open-source Large Language Models (LLMs) and benchmark datasets to compare them. While some models dominate these benchmarks, no single model typically achieves the best accuracy in all tasks and use cases. In this work, we address the challenge of selecting the best LLM out of a collection of models for new tasks. We propose a new formulation for the problem, in which benchmark datasets are repurposed to learn a "router" model for this LLM selection, and we show that this problem can be reduced to a collection of binary classification tasks. We demonstrate the utility and limitations of learning model routers from various benchmark datasets, where we consistently improve performance upon using any single model for all tasks.
