FlexRouter: Learning Complementary Model Sets for Flexible LLM Routing

Wang Wei, Harry Yang, Tiankai Yang, Samyadeep Basu, Hongjie Chen +4 more
9/29/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Existing Large Language Model (LLM) routing methods score LLMs independently to select top-$k$ models. However, this ignores model correlations and enforces a rigid computational budget.

Show full abstract

Consequently, routers often select redundant models that share failure modes, limiting the overall probability of success. To address this, we propose FlexRouter, a routing framework that explicitly models model complementarity. FlexRouter optimizes for \textit{answer coverage}, maximizing the probability that at least one selected model yields a correct response. This objective aligns with practical inference pipelines where multiple candidate outputs are generated and a downstream verifier or user selects the final one. We formulate routing as a coverage-oriented subset selection problem and model the routing policy using Determinantal Point Processes (DPPs), which naturally capture both model competence and redundancy. To directly optimize coverage without requiring a ground-truth target subset, we introduce a training objective based on marginalizing over failure sets. During inference, we employ a greedy strategy based on marginal log-determinant gains, enabling the router to adaptively determine subset sizes without a predefined budget. Extensive experiments on the large-scale RouterEval benchmark demonstrate that our proposed FlexRouter achieves higher coverage with lower redundancy across both in-domain and out-of-domain tasks than strong baselines while maintaining flexible inference cost.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wei2026flexrouter,
  title  = {FlexRouter: Learning Complementary Model Sets for Flexible LLM Routing},
  author = {Wang Wei and Harry Yang and Tiankai Yang and Samyadeep Basu and Hongjie Chen and Andy Zhao and Franck Dernoncourt and Ryan A. Rossi and Hoda Eldardiry},
  year   = {2026},
  eprint = {2609.38585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.38585v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.38585.svg)](https://codeofpaper.com/paper/2609.38585)

Discussion