TL;DR
CASLR (Cluster-Aware Soft-Labeling Routing) addresses the "routing noise" problem in LLM ecosystems—where multiple models correctly answer a query, confusing the router about which one is the true expert. By shifting from single-query success to cluster-level consensus and using fine-grained soft labels, CASLR achieves state-of-the-art performance with negligible latency, even outperforming massive dense models like Llama-3.3-70B by nearly 8%.
What Problem Does This Paper Address?
As the open-source LLM ecosystem explodes, we face a "paradox of choice": no single model dominates every task. LLM routing aims to solve this by dynamically sending each user query to the most suitable "expert" model.
However, the authors identify a critical flaw in current routing methods: Routing Noise. When training a router, we typically use "hard labels" (one-hot vectors) where a model is marked as a success (1) or failure (0) for a specific query. If three different models all happen to get a math question right, a traditional router treats them as equally expert. In reality, two might have gotten lucky, while only one is a robust math specialist. This noise leads to Routing Collapse, where the router fails to generalize because it learned from these "lucky" coincidences rather than true domain expertise.
Methods
The authors propose the CASLR framework, which moves away from the "winner-takes-all" hard-labeling approach. The process involves two main phases:
- Offline Cluster-Aware Dataset Construction:
- Semantic Clustering: Queries are converted into embeddings and grouped into disjoint clusters using K-means. These clusters represent distinct task domains (e.g., "Python coding," "symbolic logic").
- Global Utility Scoring: For every model, the framework calculates a "utility score" based on how consistently it performs across an entire cluster, not just a single query.
- Masked Soft-Labeling: Instead of a 0 or 1, the training label becomes a probability distribution. If a model gets a query wrong, its probability is zeroed out. If it gets it right, its target probability is proportional to its global utility in that cluster. This "softens" the decision boundary and rewards consistent expertise.
- Router Training and Inference:
- The framework uses a lightweight BERT model as the router. BERT is chosen because it is an encoder-only architecture, making it extremely fast for classification tasks compared to using a full-sized decoder-only LLM as a router.
Datasets
The authors evaluated CASLR across 7 core benchmarks spanning three critical dimensions:
- Mathematics: MATH, GSM-Symbolic, and AIME1983-2025.
- Code Generation: HumanEval and MBPP.
- Logical Reasoning: Hellaswag and MMLU.
The "expert pool" included a diverse range of models, such as the Qwen2.5 series (including Coder and Math specialists), DeepSeek-R1-Distill models, and Llama-3.3-70B.
Key Insights and Ideas
- Consensus Over Coincidence: The core "aha" moment is that a model's performance on a single query is a high-variance signal. By aggregating performance over a semantic cluster, we get a much clearer picture of which model is the "true" expert.
- Soft Labels Mitigate Overfitting: Hard labels force a router to make "sharp" decisions, which often leads to overfitting on the training set. Soft labels allow the router to learn the nuances of overlapping model capabilities, leading to better generalization on unseen tasks.
- Efficiency is a Feature: By using a small BERT model (around 110M parameters) to route queries to billion-parameter experts, the system gains the intelligence of a massive model without the massive inference cost.
Key Results
- Superior Accuracy: CASLR achieved an average accuracy of 79.79% across all benchmarks, outperforming all non-oracle routing baselines.
- Beating the Giants: In a large-scale setup, the CASLR framework (routing among 5 best models) achieved 85.02% average accuracy, significantly outperforming the massive Llama-3.3-70B-Instruct (77.22%) by an absolute margin of 7.8%.
- Negligible Latency: The router's inference time is remarkably low. For the entire HumanEval dataset, the BERT router took only 1.13 seconds, compared to thousands of seconds for the LLMs themselves. This confirms that routing adds almost zero overhead to the user experience.
Limitations and Future Work
- Static Expert Pool: Currently, if a new model is released and added to the pool, the global utility scores must be recalculated and the router retrained. While the authors note this cost is small, it is still an offline requirement.
- Single Modality: The current framework is limited to text. The authors explicitly mention that CASLR is not yet suited for multimodal inputs (images or audio).
- Future Directions: The team aims to extend CASLR to multimodal routing, allowing the system to parse complex cross-modal queries and schedule them to specialized vision or audio LLMs.
Summary updated