This model is a high-performance LLM router presented in the paper RouterArena: An Open Platform for Comprehensive Comparison of LLM Routers.
Chayan intelligently routes between 4 models (gpt-4o-mini, gemini-2.5-flash-lite, gemini-2.5-flash, and gpt-4o) to optimize the accuracy-cost tradeoff.
Official Leaderboard Results (8,400 queries):

What do these metrics mean?
View full leaderboard: RouterArena | PR #24
pip install adaptive-classifier
from adaptive_classifier import AdaptiveClassifier
# Load router
router = AdaptiveClassifier.load("adaptive-classifier/chayan")
# Get routing decision
query = "What is the capital of France?"
predictions = router.predict(query, k=4)
# Route to top model
selected_model = predictions[0][0] # e.g., "openai/gpt-4o-mini"
# Apply calibration factors for best performance
calibration = {
"openai/gpt-4o-mini": 0.9,
"google/gemini-2.5-flash-lite": 1.5,
"google/gemini-2.5-flash": 1.8,
"openai/gpt-4o": 1.5
}
predictions = router.predict(query, k=4)
calibrated_scores = {model: score * calibration[model] for model, score in predictions}
selected_model = max(calibrated_scores.items(), key=lambda x: x[1])[0]
Core Components:
Supported Models:
| Model | Use Case | Cost/1M tokens |
|---|---|---|
| openai/gpt-4o-mini | Simple queries | $0.15 |
| google/gemini-2.5-flash-lite | Medium complexity | $0.075 |
| google/gemini-2.5-flash | Higher complexity | $0.30 |
| openai/gpt-4o | Complex queries | $2.50 |
The uncalibrated router achieved 61.76% accuracy but was biased toward gpt-4o-mini (83% routing). This happened because the training data had class imbalance:
Solution: Apply post-training calibration factors to correct the bias without retraining.
Result: +7.29pp improvement (61.76% → 69.05% on sub_10 benchmark)
Sub_10 Benchmark (809 queries):
| Router | Accuracy | Cost/1K |
|---|---|---|
| All gpt-4o-mini (baseline) | 56.98% | $0.088 |
| 2-model router | 61.43% | $0.217 |
| Chayan (uncalibrated) | 61.76% | $0.269 |
| Chayan (calibrated) | 69.05% | $0.333 |
| Perfect 2-model oracle | 69.84% | $0.784 |
Key Insight: Chayan achieves 99% of perfect oracle performance at 57% lower cost.
Full Dataset (8,400 queries):
Chayan was trained with query features prepended as tokens:
from adaptive_classifier.complexity_features import augment_query_with_features
query = "What is 2+2?"
augmented = augment_query_with_features(query)
# Returns: "[LEN:12][WORDS:3][MATH:1][SENT:1][MC:0] What is 2+2?"
predictions = router.predict(augmented, k=4)
@software{adaptive_classifier,
title = {Adaptive Classifier: Dynamic Text Classification with Continuous Learning},
author = {Sharma, Asankhaya},
year = {2025},
publisher = {GitHub},
url = {https://github.com/codelion/adaptive-classifier}
}
This model is a high-performance LLM router presented in the paper RouterArena: An Open Platform for Comprehensive Comparison of LLM Routers.
Chayan intelligently routes between 4 models (gpt-4o-mini, gemini-2.5-flash-lite, gemini-2.5-flash, and gpt-4o) to optimize the accuracy-cost tradeoff.
Official Leaderboard Results (8,400 queries):

What do these metrics mean?
View full leaderboard: RouterArena | PR #24
pip install adaptive-classifier
from adaptive_classifier import AdaptiveClassifier
# Load router
router = AdaptiveClassifier.load("adaptive-classifier/chayan")
# Get routing decision
query = "What is the capital of France?"
predictions = router.predict(query, k=4)
# Route to top model
selected_model = predictions[0][0] # e.g., "openai/gpt-4o-mini"
# Apply calibration factors for best performance
calibration = {
"openai/gpt-4o-mini": 0.9,
"google/gemini-2.5-flash-lite": 1.5,
"google/gemini-2.5-flash": 1.8,
"openai/gpt-4o": 1.5
}
predictions = router.predict(query, k=4)
calibrated_scores = {model: score * calibration[model] for model, score in predictions}
selected_model = max(calibrated_scores.items(), key=lambda x: x[1])[0]
Core Components:
Supported Models:
| Model | Use Case | Cost/1M tokens |
|---|---|---|
| openai/gpt-4o-mini | Simple queries | $0.15 |
| google/gemini-2.5-flash-lite | Medium complexity | $0.075 |
| google/gemini-2.5-flash | Higher complexity | $0.30 |
| openai/gpt-4o | Complex queries | $2.50 |
The uncalibrated router achieved 61.76% accuracy but was biased toward gpt-4o-mini (83% routing). This happened because the training data had class imbalance:
Solution: Apply post-training calibration factors to correct the bias without retraining.
Result: +7.29pp improvement (61.76% → 69.05% on sub_10 benchmark)
Sub_10 Benchmark (809 queries):
| Router | Accuracy | Cost/1K |
|---|---|---|
| All gpt-4o-mini (baseline) | 56.98% | $0.088 |
| 2-model router | 61.43% | $0.217 |
| Chayan (uncalibrated) | 61.76% | $0.269 |
| Chayan (calibrated) | 69.05% | $0.333 |
| Perfect 2-model oracle | 69.84% | $0.784 |
Key Insight: Chayan achieves 99% of perfect oracle performance at 57% lower cost.
Full Dataset (8,400 queries):
Chayan was trained with query features prepended as tokens:
from adaptive_classifier.complexity_features import augment_query_with_features
query = "What is 2+2?"
augmented = augment_query_with_features(query)
# Returns: "[LEN:12][WORDS:3][MATH:1][SENT:1][MC:0] What is 2+2?"
predictions = router.predict(augmented, k=4)
@software{adaptive_classifier,
title = {Adaptive Classifier: Dynamic Text Classification with Continuous Learning},
author = {Sharma, Asankhaya},
year = {2025},
publisher = {GitHub},
url = {https://github.com/codelion/adaptive-classifier}
}