Keeping Up with the Models: Online Deployment and Routing of LLMs at Scale

Shaoang Li, Jian Li
6/8/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

The rapid pace at which new large language models (LLMs) appear -- and older ones become obsolete -- forces LLM service providers to juggle a streaming inventory of models while respecting tight deployment capacity and per-query cost budgets. We cast the reality as an online decision problem that couples stage-wise deployment, made at fixed maintenance windows, with per-query routing among the models kept live. We introduce StageRoute, a hierarchical algorithm that (i) optimistically selects up to $M_max$ models for the next stage using reward upper-confidence and cost lower-confidence bounds, then (ii) solves a budget-constrained bandit sub-problem to route each incoming query. We prove that StageRoute achieves a regret of order $T^{2/3}$ and provide a matching lower bound, thereby establishing its near-optimality. Moreover, our experiments confirm the theory, demonstrating that StageRoute performs close to the optimum in practical settings.

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{li2025keeping,
  title  = {Keeping Up with the Models: Online Deployment and Routing of LLMs at Scale},
  author = {Shaoang Li and Jian Li},
  year   = {2025},
  eprint = {2506.17254},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.17254v1}
}

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

Discussion