TokenRouter: Efficient Serving System for Token-Level LLM Routing
Tianyu Fu, Tengxuan Liu, Ruoxi Wang, Yixin Dong, Yi Ge, Yichen You, Yu Wang
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › LLM Serving Optimization · Type: system or tooling · Keywords: LLM serving, token-level routing, subserver architecture, delayed batching, throughput optimization, efficient inference
Summary
TokenRouter is an efficient serving system that enables token-level LLM routing by launching per-model subservers and using a mathematically derived delayed-batching scheduler, achieving up to 64× higher decoding throughput.
Explained to a 5-year-old
When you ask a big computer program to write a story, it works piece by piece. Usually, all the pieces are processed together, which can be slow. Some new ideas suggest sending each piece to a different helper program to make things faster. However, making those helpers work together without waiting is hard. This paper creates a new system where each helper works on its own, and they share work without waiting for each other.
Explained to a 5-year-old, longer
When you ask a big computer program to write a story, it works piece by piece. Usually, all the pieces are processed together, which can be slow. Some new ideas suggest sending each piece to a different helper program to make things faster. However, making those helpers work together without waiting is hard. This paper creates a new system where each helper works on its own, and they share work without waiting for each other. The helpers use a smart way to decide when to start working, based on how many pieces they have. This reduces delays and makes the whole process quicker. It also makes it easier for developers to set up these helpers. The new system can handle many different types of helpers and many different tasks. It works well on various computers and with different kinds of language models. The result is that you get answers faster and use less computer power. Overall, the system makes token-level processing more practical and user-friendly.
For a technical reader
TokenRouter rethinks LLM serving by moving from a request-centric to a model-centric architecture, spawning a dedicated subserver for each candidate model. Each subserver employs a delayed-batching scheduler whose hyperparameters are derived analytically from a throughput model, eliminating step desynchronization and batch admission delays. Requests are dispatched asynchronously according to routing decisions, allowing independent decoding streams and improving overall throughput. Evaluations across multiple routing algorithms, workloads, and model pairs show 1.83- to 64.29-fold gains in decoding throughput compared to conventional serving stacks. The design also simplifies deployment for developers by providing a user-friendly interface and reducing implementation complexity.
Problem
Efficiently serving token-level routed LLM inference is challenging because existing systems assume single-LLM deployments, leading to step desynchronization, frequent batch admission delays, and high implementation complexity.
Method
The approach shifts from request-centric to model-centric operation, launching a subserver for each candidate LLM and asynchronously dispatching requests based on routing decisions. Each subserver uses a delayed-batching scheduler whose hyperparameters are derived from a throughput model. This design reduces synchronization overhead and batch admission delays.
Results
The approach achieves 1.83- to 64.29-fold higher decoding throughput across diverse routing algorithms, workloads, and model pairs compared to existing systems.
Contributions
It introduces a model-centric serving architecture with per-LLM subservers and a mathematically derived delayed-batching scheduler, enabling efficient token-level routing without the synchronization and complexity issues of prior designs.
Practical relevance
It enables cost-effective, high-throughput LLM serving for applications requiring fine-grained token-level routing, reducing hardware requirements and implementation complexity.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction