RadialRouter: Structured Representation for Efficient and Robust Large Language Models Routing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Ruihan, Shao, Pengpeng, Wen, Zhengqi, Wu, Jinyang, Feng, Mingkuan, Zhang, Shuai, Tao, Jianhua
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909803716018176
author Jin, Ruihan
Shao, Pengpeng
Wen, Zhengqi
Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Tao, Jianhua
author_facet Jin, Ruihan
Shao, Pengpeng
Wen, Zhengqi
Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Tao, Jianhua
contents The rapid advancements in large language models (LLMs) have led to the emergence of routing techniques, which aim to efficiently select the optimal LLM from diverse candidates to tackle specific tasks, optimizing performance while reducing costs. Current LLM routing methods are limited in effectiveness due to insufficient exploration of the intrinsic connection between user queries and the characteristics of LLMs. To address this issue, in this paper, we present RadialRouter, a novel framework for LLM routing which employs a lightweight Transformer-based backbone with a radial structure named RadialFormer to articulate the query-LLMs relationship. The optimal LLM selection is performed based on the final states of RadialFormer. The pipeline is further refined by an objective function that combines Kullback-Leibler divergence with the query-query contrastive loss to enhance robustness. Experimental results on RouterBench show that RadialRouter significantly outperforms existing routing methods by 9.2\% and 5.8\% in the Balance and Cost First scenarios, respectively. Additionally, its adaptability toward different performance-cost trade-offs and the dynamic LLM pool demonstrates practical application potential.
format Preprint
id arxiv_https___arxiv_org_abs_2506_03880
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RadialRouter: Structured Representation for Efficient and Robust Large Language Models Routing
Jin, Ruihan
Shao, Pengpeng
Wen, Zhengqi
Wu, Jinyang
Feng, Mingkuan
Zhang, Shuai
Tao, Jianhua
Computation and Language
Artificial Intelligence
The rapid advancements in large language models (LLMs) have led to the emergence of routing techniques, which aim to efficiently select the optimal LLM from diverse candidates to tackle specific tasks, optimizing performance while reducing costs. Current LLM routing methods are limited in effectiveness due to insufficient exploration of the intrinsic connection between user queries and the characteristics of LLMs. To address this issue, in this paper, we present RadialRouter, a novel framework for LLM routing which employs a lightweight Transformer-based backbone with a radial structure named RadialFormer to articulate the query-LLMs relationship. The optimal LLM selection is performed based on the final states of RadialFormer. The pipeline is further refined by an objective function that combines Kullback-Leibler divergence with the query-query contrastive loss to enhance robustness. Experimental results on RouterBench show that RadialRouter significantly outperforms existing routing methods by 9.2\% and 5.8\% in the Balance and Cost First scenarios, respectively. Additionally, its adaptability toward different performance-cost trade-offs and the dynamic LLM pool demonstrates practical application potential.
title RadialRouter: Structured Representation for Efficient and Robust Large Language Models Routing
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.03880