Make Router Evaluation Open and Standardized
**RouterArena** is an open evaluation platform and leaderboard for **LLM routers**βsystems that automatically select the best model for a given query. As the LLM ecosystem diversifies with models varying in size, capability, and cost, **routing** has become critical for balancing performance and cost. Yet, LLM routers currently lack a standardized evaluation framework to assess how effectively they trade off accuracy, cost, and other related metrics.
RouterArena bridges this gap by providing an open evaluation platform and benchmarking framework for both open-source and commercial routers. It has the following key features:
- π **Diverse Data Coverage**: A principly-constructed, diverse evaluation dataset spanning 9 domains and 44 categories with easy, medium, and hard difficulty levels.
- π **Comprehensive Metrics**: Five router-critical metrics measuring accuracy, cost, optimality, robustness, and latency.
- βοΈ **Automated Evaluation**: An automated evaluation framework to simplify the evaluation process for open-source and commercial routers.
- π **Live Leaderboard**: A live leaderboard to track the performance of routers across multiple dimensions.
*We aim for RouterArena to serve as a foundation for the community to evaluate, understand, and advance LLM routing systems.*
> [!IMPORTANT]
> **RouterArena is an evaluation-only dataset.** Submissions that train, fit, or tune any router component on RouterArena data (including the label files) will be rejected, and any accepted submission found in violation will be withdrawn.
# Current Leaderboard
For more details, please see our [website](https://routeworks.github.io/leaderboard) and [blog](https://huggingface.co/blog/JerryPotter/who-routes-the-routers).
| Rank | Router | Affiliation | Acc-Cost Arena | Accuracy | Cost/1K Queries | Optimal Selection | Optimal Cost | Optimal Accuracy | Latency | Robustness |
|------|--------------------|-----------------------------|--------|----------|---------|-----------------|--------------|----------------|---------|------------|
| π₯ | [Paix2]() | π€ [@xufan866](https://github.com/xufan866) | 77.63 | 79.69 | $0.27 | 89.67 | 62.92 | 100.00 | β | 77.86 |
| π₯ | [KT-ModelRouter](https://github.com/KT-A-Autonomous-Tech-Team/ModelRouter) | π€ [@DusanBaek](https://github.com/DusanBaek) | 76.28 | 78.14 | $0.27 | β | β | β | β | 80.48 |
| π₯ | [Sqwish Router](https://www.sqwish.ai/) | π€ [@namitha-sqwish](https://github.com/namitha-sqwish) | 76.21 | 79.76 | $0.70 | 9.04 | 23.49 | 94.07 | β | 51.67 |
| 4 | [Divyam]() | π€ [@samikd](https://github.com/samikd) | 75.85 | 78.59 | $0.48 | 4.93 | 16.03 | 93.43 | β | 98.33 |
| 5 | [Cross-Router]() | π€ [@JiaHg](https://github.com/JiaHg) | 75.75 | 78.14 | $0.40 | 17.66 | 45.49 | 90.31 | β | 67.14 |
| 6 | [vLLMβSR](https://vllm-semantic-router.com/) [[Code]](https://github.com/vllm-project/semantic-router) [[HF]](https://huggingface.co/llm-semantic-router) | π vLLM SR Team | 74.86 | 77.18 | $0.42 | 16.81 | 25.10 | 89.37 | β | 67.62 |
| 7 | [nadir-caliper]() | π€ [@doramirdor](https://github.com/doramirdor) | 74.55 | 75.84 | $0.22 | β | β | β | β | 79.76 |
| 8 | [AgentForge Router]() | π€ [@YangY-Z](https://github.com/YangY-Z) | 74.13 | 74.72 | $0.13 | 17.84 | 52.47 | 98.68 | β | 40.48 |
| 9 | [BARouter]() | π€ [@zulk2002](https://github.com/zulk2002) | 73.79 | 75.72 | $0.36 | 64.41 | 67.13 | 93.84 | β | 68.81 |
| 10 | [Weave Router](https://workweave.ai) | π Weave | 72.82 | 76.32 | $0.94 | β | β | β | β | 100.00 |
| 11 | [Nadir Router](https://github.com/NadirRouter/NadirClaw) | π NadirRouter | 72.29 | 75.01 | $0.68 | β | β | β | β | 25.48 |
| 12 | [OrcaRouterβAdaptive](https://www.orcarouter.ai/) [[Code]](https://github.com/Continuum-AI-Corp/OrcaRouter-Lite) [[Paper]](https://arxiv.org/abs/2605.30736) [[X]](https://x.com/orcarouter) | π [Continuum AI](https://www.continuum01.ai/) | 72.08 | 75.54 | $1.00 | β | β | β | β | 22.62 |
| 13 | [Hybrid Router]() | π€ [@mikemao27](https://github.com/mikemao27) | 72.08 | 71.38 | $0.04 | 89.87 | 94.19 | 92.81 | β | 96.67 |
| 14 | [R2-Router](https://arxiv.org/abs/2602.02823/) | π UCF | 71.60 | 71.23 | $0.06 | 24.51 | 48.70 | 99.85 | β | 45.71 |
| 15 | [LLM Router](https://github.com/ypollak2/llm-router) [[PyPI]](https://pypi.org/project/llm-routing/) | π€ [@ypollak2](https://github.com/ypollak2) | 71.26 | 72.05 | $0.20 | 18.01 | 20.46 | 89.13 | β | 30.00 |
| 16 | [cruq-router]() | π€ [@nabaruns](https://github.com/nabaruns) | 70.77 | 71.35 | $0.18 | β | β | β | β | 81.67 |
| 17 | [chuzom-solo-v32]() | π€ [@ypollak2](https://github.com/ypollak2) | 70.61 | 70.59 | $0.10 | β | β | β | β | 100.00 |
| 18 | [Azure-Model-Router](https://ai.azure.com/catalog/models/model-router) [[Web]](https://learn.microsoft.com/en-us/azure/ai-foundry/openai/concepts/model-router) | πΌ Microsoft | 70.42 | 72.94 | $0.73 | β | β | β | β | 71.43 |
| 19 | [Auto Router]() | π€ [@cxf2015](https://github.com/cxf2015) | 70.05 | 70.17 | $0.12 | 37.58 | 40.02 | 86.04 | β | 49.52 |
| 20 | [Lynkr]() | π€ [@vishalveerareddy123](https://github.com/vishalveerareddy123) | 67.65 | 68.41 | $0.29 | 10.97 | 16.08 | 84.48 | β | 92.38 |
| 21 | [MIRTβBERT](https://arxiv.org/pdf/2506.01048) [[Code]](https://github.com/Mercidaiha/IRT-Router) | π USTC | 66.89 | 66.88 | $0.15 | 3.44 | 19.62 | 78.18 | 27.03 | 61.19 |
| 22 | [NIRTβBERT](https://arxiv.org/pdf/2506.01048) [[Code]](https://github.com/Mercidaiha/IRT-Router) | π USTC | 66.12 | 66.34 | $0.21 | 3.83 | 14.04 | 77.88 | 10.42 | 49.29 |
| 23 | [AsiaInfo-Router]() | π€ [@Uncle-LL](https://github.com/Uncle-LL) | 65.87 | 75.20 | $8.54 | β | β | β | β | 69.52 |
| 24 | [GPTβ5](https://openai.com/index/introducing-gpt-5/) | πΌ OpenAI | 64.32 | 73.96 | $10.02 | β | β | β | β | β |
| 25 | [CARROT](https://arxiv.org/abs/2502.03261) [[Code]](https://github.com/somerstep/CARROT) [[HF]](https://huggingface.co/CARROT-LLM-Routing) | π UMich | 63.87 | 67.21 | $2.06 | 2.68 | 6.77 | 78.63 | 1.50 | 89.05 |
| 26 | [Chayan](https://huggingface.co/adaptive-classifier/chayan) [[HF]](https://huggingface.co/adaptive-classifier/chayan) | π Adaptive Classifier | 63.83 | 64.89 | $0.56 | 43.03 | 43.75 | 88.74 | β | β |
| 27 | [RouterBenchβMLP](https://arxiv.org/pdf/2403.12031) [[Code]](https://github.com/withmartian/routerbench) [[HF]](https://huggingface.co/datasets/withmartian/routerbench) | π Martian | 57.56 | 61.62 | $4.83 | 13.39 | 24.45 | 83.32 | 90.91 | 80.00 |
| 28 | [NotDiamond](https://www.notdiamond.ai/) | πΌ NotDiamond | 57.29 | 60.83 | $4.10 | 1.55 | 2.14 | 76.81 | β | 55.91 |
| 29 | [GraphRouter](https://arxiv.org/abs/2410.03834) [[Code]](https://github.com/ulab-uiuc/GraphRouter) | π UIUC | 57.22 | 57.00 | $0.34 | 4.73 | 38.33 | 74.25 | 2.70 | 94.29 |
| 30 | [RouterBenchβKNN](https://arxiv.org/pdf/2403.12031) [[Code]](https://github.com/withmartian/routerbench) [[HF]](https://huggingface.co/datasets/withmartian/routerbench) | π Martian | 55.48 | 58.69 | $4.27 | 13.09 | 25.49 | 78.77 | 1.33 | 83.33 |
| 31 | [RouteLLM](https://arxiv.org/abs/2406.18665) [[Code]](https://github.com/lm-sys/RouteLLM) [[HF]](https://huggingface.co/routellm) | π Berkeley | 48.07 | 47.04 | $0.27 | 99.72 | 99.63 | 68.76 | 0.40 | 100.00 |
| 32 | [RouterDC](https://arxiv.org/abs/2409.19886) [[Code]](https://github.com/shuhao02/RouterDC) | π SUSTech | 33.75 | 32.01 | $0.07 | 39.84 | 73.00 | 49.05 | 10.75 | 85.24 |
π Open-sourceββπΌ Closed-sourceβ
# Evaluating Your Router
## 1. Setup
### Step 1.1: Install uv and RouterArena
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
cd RouterArena
uv sync
```
### Step 1.2: Download Dataset
Download the dataset from [HF dataset](https://huggingface.co/datasets/RouteWorks/RouterArena).
```bash
uv run python ./scripts/process_datasets/prep_datasets.py
```
### Step 1.3: Set Up API Keys (Optional)
In the project root, copy `.env.example` as `.env` and update the API keys in `.env`. This step is **required only if you use our pipeline for LLM inferences**.
```bash
# Example .env file
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
# ...
```
See the [`ModelInference`](./llm_inference/model_inference.py) class for the complete list of supported providers and required environment variables. You can extend that class to support more models, or submit a GitHub issue to request support for new providers.
## 2. Get Routing Decisions
Follow the steps below to obtain your router's model choices for each query. Start with the `sub_10` split (a 10% subset) for local testing. Once your setup works, you can evaluate:
- on the `full` dataset for full local evaluation and official leaderboard submission.
- on the `robustness` dataset for robustness evaluation.
### Step 2.1: Prepare Config File
Create a config file in `./router_inference/config/.json`. An example config file is included [here](./router_inference/config/your-router.json).
```json
{
"pipeline_params": {
"router_name": "your-router",
"router_cls_name": "your_router_class_name",
"models": [
"gpt-4o-mini",
"claude-3-haiku-20240307",
"gemini-2.0-flash-001"
]
}
}
```
For each model in your config, add an entry with the pricing per million tokens in this format at [`model_cost/model_cost.json`](./model_cost/model_cost.json):
```json
{
"gpt-4o-mini": {
"input_token_price_per_million": 0.15,
"output_token_price_per_million": 0.6
},
}
```
> [!NOTE]
> Ensure all models in your above config files are listed in [`./universal_model_names.py`](./universal_model_names.py). If you add a new model, you must also add the API inference endpoint in [`llm_inference/model_inference.py`](./llm_inference/model_inference.py).
### Step 2.2: Create Your Router Class and Generate Prediction File
Create your own router class by inheriting from `BaseRouter` and implementing the `_get_prediction()` method. See [`router_inference/router/example_router.py`](./router_inference/router/example_router.py) for a complete example.
Then, modify [`router_inference/router/__init__.py`](./router_inference/router/__init__.py) to include your router class:
```python
# Import your router class
from router_inference.router.my_router import MyRouter
__all__ = ["BaseRouter", "ExampleRouter", "MyRouter"]
```
Finally, generate the prediction file:
```bash
uv run python ./router_inference/generate_prediction_file.py your-router [sub_10|full|robustness]
```
> [!NOTE]
> - The `` argument must match your config filename (without the `.json` extension). For example, if your config file is `router_inference/config/my-router.json`, use `my-router` as the argument.
> - Your `_get_prediction()` method must return a model name that exists in your config file's `models` list. The base class will automatically validate this.
### Step 2.3: Validate Config and Prediction Files
```bash
uv run python ./router_inference/check_config_prediction_files.py your-router [sub_10|full|robustness]
```
This script checks: (1) all model names are valid, (2) prediction file has correct size (809 for `sub_10`, 8400 for `full`, 420 for `robustness`), and (3) all entries have valid `global_index`, `prompt`, and `prediction` fields.
## 3. Run LLM Inference
Run the inference script to make API calls for each query using the selected models:
```bash
uv run python ./llm_inference/run.py your-router
```
The script loads your prediction file, makes API calls using the models specified in the `prediction` field, and saves results incrementally. It uses cached results when available and saves progress after each query, so you can safely interrupt and resume. Results are saved to `./cached_results/` for reuse across routers.
> [!NOTE]
> - For robustness evaluation, we only measure the model-selection flip ratio after adding noise to the original prompt, so no additional LLM inference is required for this stage.
## 4. Run Router Evaluation
As the last step, run the evaluation script:
```bash
uv run python ./llm_evaluation/run.py your-router [sub_10|full|robustness]
```
> [!TIP]
> - Use `sub_10` or `full` to evaluate on those datasets.
> - Use `robustness` to run robustness-only evaluation (expects `-robustness.json`).
# Submitting to the leaderboard
To get your router on the leaderboard, you can open a Pull Request with your router's prediction file to trigger our automated evaluation workflow. Details are as follows:
1. **Add your files**:
- `router_inference/config/.json` - Your router configuration
- `router_inference/predictions/.json` - Your prediction file with `generated_result` fields populated
- `router_inference/predictions/-robustness.json` - Your prediction file for robustness evaluation, no `generated_result` fields needed
2. **Open a Pull Request to `main` branch and call `/evaluate` in the PR comment**
- When the PR is ready for evaluation, call `/evaluate` in the PR comment to trigger the evaluation workflow. See an example [here](https://github.com/RouteWorks/RouterArena/pull/71#issuecomment-3904936480).
- The automated workflow will:
- Validate your submission
- Run evaluation on the full dataset
- Post results as a comment on your PR
- Update the leaderboard upon approval
The Figure below shows the evaluation pipeline.
# Contributing
We welcome and appreciate contributions and collaborations of any kind.
We use pre-commit to ensure a consistent coding style. You can set it up by
```bash
pip install pre-commit
pre-commit install
```
Before pushing your code, run the following and make sure your code passes all checks.
```bash
pre-commit run --all-files
```
# Contacts
Feel free to contact us for contributions and collaborations.
```
Yifan Lu (yifan.lu@rice.edu)
Rixin Liu (rixin.liu@rice.edu)
Jiarong Xing (jxing@rice.edu)
```
# Citation:
If you find our project helpful, please give us a star and cite us by:
```bibtax
@misc{lu2025routerarenaopenplatformcomprehensive,
title = {RouterArena: An Open Platform for Comprehensive Comparison of LLM Routers},
author = {Yifan Lu and Rixin Liu and Jiayi Yuan and Xingqi Cui and Shenrun Zhang and Hongyi Liu and Jiarong Xing},
year = {2025},
eprint = {2510.00202},
archivePrefix= {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2510.00202}
}
```