Efficient Training-Free Online Routing for High-Volume Multi-LLM Serving

Fangzhou Wu, Sandeep Silwal
9/2/2025
cs.DBcs.AIcs.LG

Official code: fzwark/PORT (8 stars, Apache-2.0, last commit 2025-12-10).

Abstract

Increasing demand for Large Language Models (LLMs) services imposes substantial deployment and computation costs on providers. LLM routing offers a cost-efficient solution by directing queries to the optimal LLM based on model and query features. However, existing works primarily focus on offline scenarios and struggle to adapt to online settings with high query volume and constrained token budgets. In this work, we introduce the first training-free algorithm for online routing scenarios. Our algorithm leverages approximate nearest neighbor search to efficiently estimate query features and performs a one-time optimization over a small set of initial queries to learn a routing strategy that guides future routing. We provide theoretical guarantees demonstrating that our algorithm achieves a competitive ratio of $1 - o(1)$ under natural assumptions, which is further validated by extensive experiments across 3 benchmark datasets and 8 baselines, showing an average improvement of 3.55$\times$ in overall performance, 1.85$\times$ in cost efficiency, and nearly 4.25$\times$ in throughput. Our code is available at https://github.com/fzwark/PORT.

View on arXivView PDF

Code Implementations(1)

fzwark/PORTOfficial100%
Apache-2.0
82PythonMay 30, 202510 months agoApache-2.0

Cite this paper

@article{wu2025efficient,
  title  = {Efficient Training-Free Online Routing for High-Volume Multi-LLM Serving},
  author = {Fangzhou Wu and Sandeep Silwal},
  year   = {2025},
  eprint = {2509.02718},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.02718v3},
  journal = {NEURIPS 2025 2025}
}

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/2509.02718.svg)](https://codeofpaper.com/paper/2509.02718)

Discussion