DiSRouter: Distributed Self-Routing for LLM Selections
Hang Zheng, Hongshen Xu, Yongkai Lin, Shuai Fan, Lu Chen, Kai Yu
TL;DR
DiSRouter introduces a distributed self-routing framework for multi-LLM query routing, replacing a central router with a cascade of self-aware agents that decide to answer or route based on intrinsic competence. It couples a two-stage Self-Awareness Training pipeline (SFT followed by RL) with scenario adaptability to tune behavior under different cost-performance preferences, encoded as $\text{Utility} = \text{Performance} - \alpha \cdot \text{Cost}$. The approach demonstrates superior utility, robust generalization to out-of-domain tasks, and modular plug-and-play scalability, outperforming centralized and other routing baselines across diverse datasets and cost settings. Practically, DiSRouter enables flexible, cost-aware deployment of heterogeneous LLM ecosystems by leveraging intrinsic self-awareness rather than external routing judgments, with potential extensions to more complex network topologies.
Abstract
The proliferation of Large Language Models (LLMs) has created a diverse ecosystem of models with highly varying performance and costs, necessitating effective query routing to balance performance and expense. Current routing systems often rely on a centralized external router trained on a fixed set of LLMs, making them inflexible and prone to poor performance since the small router can not fully understand the knowledge boundaries of different LLMs. We introduce DiSRouter (Distributed Self-Router), a novel paradigm that shifts from centralized control to distributed routing. In DiSRouter, a query traverses a network of LLM agents, each independently deciding whether to answer or route to other agents based on its own self-awareness, its ability to judge its competence. This distributed design offers superior flexibility, scalability, and generalizability. To enable this, we propose a two-stage Self-Awareness Training pipeline that enhances each LLM's self-awareness. Extensive experiments demonstrate that DiSRouter significantly outperforms existing routing methods in utility across various scenarios, effectively distinguishes between easy and hard queries, and shows strong generalization to out-of-domain tasks. Our work validates that leveraging an LLM's intrinsic self-awareness is more effective than external assessment, paving the way for more modular and efficient multi-agent systems.
