FlexRouter: Learning Complementary Model Sets for Flexible LLM Routing

Wang Wei, Hongzheng Yang, Tiankai Yang, Samyadeep Basu, Hongjie Chen, Yue Zhao, Franck Dernoncourt, Ryan A. Rossi, Hoda Eldardiry

TL;DR

FlexRouter is a novel LLM routing framework that moves beyond independent "top-$k$" selection by explicitly modeling model complementarity. By utilizing Determinantal Point Processes (DPPs) and a specialized "coverage loss," it selects diverse sets of models that maximize the probability of obtaining at least one correct answer while adaptively adjusting computational costs based on query difficulty.

What Problem Does This Paper Address?

As the ecosystem of Large Language Models (LLMs) grows, developers often serve "pools" of models with varying capabilities and costs. A common strategy is routing: given a query, a router selects the best $k$ models to generate answers.

However, existing routers typically score models independently. This creates two major issues:

  1. Redundancy: If the top three models were trained on similar data, they likely share the same "blind spots." Selecting all three is a waste of compute if they all fail on the same difficult query.
  2. Rigid Budgets: Most routers use a fixed $k$ (e.g., always call 3 models), regardless of whether the query is a simple "Hello" or a complex math proof.

The authors argue that routing should be viewed as a subset selection problem aimed at coverage—ensuring that at least one model in the selected set provides a correct response, which can then be identified by a downstream verifier or human.

Methods

FlexRouter introduces three key innovations to solve these problems:

  • Complementary Parameterization via DPPs: The authors use Determinantal Point Processes (DPPs) to model the probability of selecting a subset. They construct a kernel matrix $L_x$ where the diagonal elements represent query-dependent model competence (quality) and the off-diagonal elements represent pairwise model similarity (redundancy). The determinant of a subset's submatrix naturally balances these two: it is high when models are both competent and diverse.
  • Coverage-Aligned Training: Standard supervised learning requires a single "ground truth" target. In routing, any subset containing at least one correct model is "good." To handle this, the authors propose a Coverage Loss. Instead of picking a target subset, they minimize the probability that the sampled subset consists entirely of models from the "failure set" (models that got the answer wrong).
  • Adaptive Greedy Inference: During inference, FlexRouter doesn't just pick a fixed $k$. It uses a greedy approach to add models to the set one by one. It employs an adaptive stopping rule: if the marginal gain in "information volume" (log-determinant) falls below a certain threshold, the router stops adding models. This allows it to spend more compute on hard queries and less on easy ones.

Datasets

The researchers evaluated FlexRouter using RouterEval, a massive benchmark containing performance records for thousands of LLMs across various tasks.

  • Medium-pool setting: 3,811 candidate LLMs evaluated on BBH, MATH, and GPQA (in-domain), and IFEval and MuSR (out-of-domain).
  • Large-pool setting: 5,000 candidate LLMs evaluated on MMLU, HellaSwag, GSM8K, and ARC (in-domain), and TruthfulQA and WinoGrande (out-of-domain).

Key Insights and Ideas

  • Diversity is a Feature, Not a Heuristic: Unlike previous methods that might add a "diversity penalty" as an afterthought, FlexRouter builds diversity into the core mathematical framework of the router via DPPs.
  • Set-Valued Supervision: The paper demonstrates that you don't need to know the "perfect" subset of models to train a router. Simply knowing which individual models succeeded or failed is enough to optimize for set-level coverage.
  • The "Aha" Moment on Redundancy: The authors show that independent top-$k$ selection often results in "all-wrong" pools. By forcing the router to pick complementary models, FlexRouter significantly reduces the "Zero-Correct Rate"—the frequency with which no model in the selected pool gets the right answer.

Key Results

FlexRouter consistently outperformed strong baselines like EmbedLLM and BaRP across almost all benchmarks.

  • Higher Coverage: As shown in Figure 1, FlexRouter achieves superior Success@10 scores (the probability that at least one of 10 models is correct) in both in-domain and out-of-domain scenarios. Testing Success@10 score of baselines and FlexRouter on in-domain and out-of-domain tasks.

  • Reduced Redundancy: In the medium-pool setting, FlexRouter achieved an Intra-List Diversity (ILD) score of 0.7620, compared to just 0.2112 for EmbedLLM, proving it selects much more diverse model sets.

  • Efficiency: The adaptive stopping rule allowed FlexRouter to maintain high coverage while reducing the average subset size by 35.9% (from 10 models down to ~6.4) with only a 1.13% drop in success rate.
Figure 1: Testing Success@10 score of base- lines and FlexRouter on in-domain and out- of-domain tasks.

Limitations and Future Work

  • Candidate Pool vs. Final Answer: FlexRouter optimizes the pool of candidates. It does not solve the problem of how to pick the final answer from that pool (e.g., using a reranker or verifier). The authors suggest joint evaluation with downstream selectors as a next step.
  • Embedding-Based Diversity: The diversity metric relies on model metadata/embeddings. This might not always capture semantic diversity in the actual text generated by the models for a specific query.
  • Cost Metrics: The study uses the number of models as a proxy for cost. Future work could incorporate more granular metrics like token pricing, latency, and hardware constraints directly into the routing objective.

Summary updated

BibTeX
@inproceedings{wei2026flexrouter,
  author = {Wang Wei and Hongzheng Yang and Tiankai Yang and Samyadeep Basu and Hongjie Chen and Yue Zhao and Franck Dernoncourt and Ryan A. Rossi and Hoda Eldardiry},
  title = {{FlexRouter: Learning Complementary Model Sets for Flexible LLM Routing}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=9lgQdrLzwg},
}
Figure