Papers › RouterBench: A Benchmark for Multi-LLM Routing System

RouterBench: A Benchmark for Multi-LLM Routing System

18 Mar 2024arXiv:2403.12031archive 2025-07-28

Qitian Jason Hu, Jacob Bieker, Xiuyu Li, Nan Jiang, Benjamin Keigwin, Gaurav Ranganath, Kurt Keutzer, Shriyash Kaustubh Upadhyay

As the range of applications for Large Language Models (LLMs) continues to grow, the demand for effective serving solutions becomes increasingly critical. Despite the versatility of LLMs, no single model can optimally address all tasks and applications, particularly when balancing performance with cost. This limitation has led to the development of LLM routing systems, which combine the strengths of various models to overcome the constraints of individual LLMs. Yet, the absence of a standardized benchmark for evaluating the performance of LLM routers hinders progress in this area. To bridge this gap, we present RouterBench, a novel evaluation framework designed to systematically assess the efficacy of LLM routing systems, along with a comprehensive dataset comprising over 405k inference outcomes from representative LLMs to support the development of routing strategies. We further propose a theoretical framework for LLM routing, and deliver a comparative analysis of various routing approaches through RouterBench, highlighting their potentials and limitations within our evaluation framework. This work not only formalizes and advances the development of LLM routing systems but also sets a standard for their assessment, paving the way for more accessible and economically viable LLM deployments. The code and data are available at https://github.com/withmartian/routerbench.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.12031")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

withmartian/routerbench officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

9ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from withmartian/routerbench. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_to_wide_format withmartian/routerbench/convertors/common.py official repository ran MIT (permissive) · b35a977d197d148b · report
extract_prompt_and_response withmartian/routerbench/convertors/martian_evals_convertor.py official repository ran MIT (permissive) · 896695dc98b3fd4b · report
generate_datetime_str withmartian/routerbench/utils.py official repository ran MIT (permissive) · b813cf6af3749d3b · report
get_highest_accuracy_lowest_cost withmartian/routerbench/convertors/common.py official repository ran MIT (permissive) · 00e7700fc4378a52 · report
get_models_to_route withmartian/routerbench/utils.py official repository ran MIT (permissive) · 0d896d266dd0a8ac · report
get_non_descreasing_convex_hull_of withmartian/routerbench/evaluation/AIQ.py official repository ran MIT (permissive) · b37ae418bd1de8e1 · report
parse_model_parameters withmartian/routerbench/utils.py official repository ran MIT (permissive) · 6b8f114f358fc83e · report
parse_params_from_model_name withmartian/routerbench/evaluate_utils.py official repository ran fingerprinted MIT (permissive) · 40d13812d7dd1e9b · report
select_prompts withmartian/routerbench/convertors/martian_evals_convertor.py official repository ran fingerprinted MIT (permissive) · acf2e9aa1fa7e76b · report
calc_AIQ withmartian/routerbench/evaluation/AIQ.py official repository unverified MIT (permissive) · 90cd93f85d0260b9 · report
calculate_area_under_curve withmartian/routerbench/evaluation/AIQ.py official repository unverified MIT (permissive) · 7b3c8ab1435797c3 · report
save_cache_to_disk withmartian/routerbench/embedding/cache.py official repository unverified MIT (permissive) · 9854f43d010dc0f8 · report
save_results withmartian/routerbench/evaluate_utils.py official repository unverified MIT (permissive) · 8b7465494e9692ff · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections