TL;DR
MultiTurnRoute is a new platform designed to build and evaluate LLM routers that actually understand the flow of a conversation. By introducing the Chain-of-Route (CoR) algorithm, which tracks both dialogue context and KV-cache states across turns, the authors demonstrate a 20.3% reduction in costs while matching the quality of the most powerful models in a pool.
What Problem Does This Paper Address?
In the world of LLM deployment, "routing" is the art of picking the cheapest model that can successfully answer a specific query. However, most existing routers are "single-turn"—they look at a query in a vacuum.
In real-world multi-turn conversations, this leads to three major failures:
- Context Blindness: A follow-up query like "What should I eat?" depends entirely on whether the previous turn was about a workout routine or a stomach flu.
- Context Overshadowing: Simply feeding the entire history into a router can cause a long, irrelevant previous response (like a block of code) to drown out the user's current intent.
- Cache Ignorance: Modern serving engines (like vLLM) use KV-caching to make repeated calls to the same model cheaper. A router that doesn't track which model has the conversation history cached will make suboptimal, expensive decisions.
Methods
The authors introduce the MultiTurnRoute platform, which provides a unified interface for developing routers that can access session state. Along with the platform, they propose the Chain-of-Route (CoR) algorithm, which consists of two main modules:
- Dialogue State Propagator (DSP): Instead of raw text, DSP maintains a compact, recurrent hidden state. It uses a "context-dependency gate" to adaptively decide how much history is needed for the current query, preventing the "overshadowing" problem.
- Serving State Tracker (SST): This module tracks the "cache dividend"—the cost savings gained by reusing a model that already holds the conversation's KV-cache. It ensures the router understands that switching models has a hidden "switching cost."
The system uses a Lagrangian optimization approach to select the model that maximizes the trade-off between predicted quality and serving-state-aware cost.
Datasets
The researchers utilized two major real-world interaction corpuses:
- WildChat: 1 million real-world ChatGPT logs.
- LMSYS-Chat-1M: A large-scale dataset of user interactions with various LLMs.
Because these datasets typically only record one model's response per turn, the authors created a new benchmark by generating responses from five different models (the Qwen3 family, ranging from 0.6B to 80B parameters) for every turn. They then used DeepSeek-V3.1 as a "judge" to provide per-turn quality scores, creating a rich dataset for training and evaluating multi-turn routers.
Key Insights and Ideas
- Routing is Chained: A decision at Turn 1 (e.g., picking a cheap model) affects the state at Turn 2 (the quality of the history and the availability of a cache). CoR is the first algorithm to explicitly model this "route-then-update" chain.
- The "Switching Cost" is Real: Figure 4 illustrates how ignoring the serving state leads to misleading cost rankings. A model with a higher base price might actually be the cheaper option if it already has the conversation prefix cached.
- Adaptive History: Not every turn needs the full history. The DSP's gating mechanism allows the router to act like a single-turn router when the query is independent, but dive deep into the context when dependencies are detected.
Key Results
- Cost Efficiency: CoR reduces the Query-Normalized Cost (QNC)—the minimum cost to match the best model's quality—by up to 20.3% compared to the strongest baselines.
- Pareto Dominance: In evaluations on WildChat, CoR consistently stayed on the "Pareto frontier," providing better quality at almost every cost point than single-turn or full-history baselines.
- Long-Term Gains: The advantages of CoR grow as conversations get longer. In sessions with 8+ turns, the gap between CoR and cache-unaware routers widens significantly as the "cache dividend" accumulates.
- Robustness: The system showed strong performance even when transferred between different datasets (e.g., training on WildChat and testing on LMSYS) and when using different model families (Llama-3.1, Mistral).
Limitations and Future Work
- Proprietary Models: The primary evaluation focused on open-weight models (Qwen3). While the authors did a small-scale test with Claude and Gemini via OpenRouter, a broader study including more proprietary "frontier" models is a suggested next step.
- Domain Specialization: The current work doesn't explicitly account for domain-specific models (e.g., legal or medical LLMs), though the authors note the platform can easily be extended to include them.
- Complex Cache Dynamics: The study assumes a relatively stable cache. Future work could explore how routers should behave under heavy system load where cache eviction happens more frequently and unpredictably.
Summary updated