NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint Embeddings

Yiqun Zhang, Hao Li, Zihan Wang, Shi Feng, Xiaocui Yang, Daling Wang, Bo Zhang, Lei Bai, Shuyue Hu

Here is a concise, blog-style summary of the research paper.

TL;DR

MTRouter is a lightweight, turn-level LLM routing framework that dynamically selects the most cost-effective model at each step of a multi-turn task. By leveraging joint history-model embeddings and an error-aware outcome estimator, it beats GPT-5's performance on ScienceWorld while slashing inference costs by nearly 59%.

What Problem Does This Problem Address?

Deploying Large Language Models (LLMs) for complex, long-horizon tasks—such as software engineering or multi-step reasoning—requires dozens of sequential model calls per episode. As conversation histories grow, the cumulative inference cost becomes prohibitively expensive.

While frontier models (like GPT-5 or Claude 4.5) offer state-of-the-art reasoning, they cost orders of magnitude more than lightweight alternatives (like DeepSeek-V3.2). Previous solutions relied on single-turn routing (choosing one model at the very beginning of a task) or heavy, LLM-based multi-turn routers. Single-turn routing is sub-optimal because a single task often contains heterogeneous steps, ranging from complex strategic planning to routine data formatting. Meanwhile, heavy LLM routers add significant latency and cost overhead. MTRouter addresses this gap by providing a lightweight, turn-level routing mechanism that adapts to the changing interaction state.

Methods

MTRouter introduces an offline-learned outcome estimator that maps the current interaction history and candidate models into a shared space to predict the eventual success of an episode.

Key components include:

  • Joint History-Model Representations: The interaction history is serialized and encoded using a frozen text encoder (Qwen/Qwen3-Embedding-0.6B). Simultaneously, candidate models are represented by a learned embedding that combines structured metadata (pricing, context limits) with a learned residual vector to capture unique model behaviors. These two embeddings are concatenated and fed into a shared feed-forward network.
  • Outcome Estimator MLP: Instead of relying on brittle, dense per-turn rewards, MTRouter trains a lightweight Multi-Layer Perceptron (MLP) supervised by the final terminal score of the trajectory.
  • Error-Aware Target Adjustment: To stabilize the training signal from offline data, the authors apply an annealed error penalty to the terminal score. Crucially, late-stage errors are penalized more heavily than early-stage mistakes, reflecting the intuition that early errors are easier for an agent to recover from.
  • Inference: At each turn, the router efficiently scores all candidate models in a batch and selects the one with the highest predicted outcome.

Datasets

The authors evaluated MTRouter using a fixed pool of 6 frontier and lightweight LLMs across two challenging multi-turn benchmarks:

  1. ScienceWorld: A text-based interactive environment requiring procedural scientific reasoning.
  2. Humanity's Last Exam (HLE): A long-context, multi-step reasoning benchmark with tool use across advanced academic domains.

To rigorously test generalization, the authors constructed strict Out-of-Distribution (OOD) splits by holding out entire task types (for ScienceWorld) and subject categories (for HLE) from the training data.

Key Insights and Ideas

  • "Switching Less" is More Efficient: Intuitively, one might expect a multi-turn router to switch models constantly. However, MTRouter achieves superior performance with fewer model switches than baselines like Router-R1. This stability preserves prompt caching (KV cache), reducing effective latency and cost.
  • Error Tolerance Over Panic: When an error occurs (e.g., a malformed tool call), baseline routers often aggressively switch to an expensive model immediately. MTRouter exhibits higher tolerance to transient errors; it frequently sticks with the cheaper model, allowing it to self-correct, which yields a higher recovery rate.
  • Emergent Specialization: Without explicit prompting or rules, MTRouter naturally learns to assign specific models to specific tools or actions. For example, on HLE, it over-allocates DeepSeek for web searches, GPT-5 for executing Python code, and Kimi for browsing.

Key Results

MTRouter demonstrates a significantly better performance-cost Pareto frontier than single-model executions and existing routers:

  • ScienceWorld (In-Distribution): MTRouter achieved an average score of 53.8, outperforming pure GPT-5 (48.4) while reducing total costs by 58.7%. It also outperformed the multi-turn baseline Router-R1 by 11.7 points while saving 54.4% in costs.
  • Humanity's Last Exam (In-Distribution): It achieved competitive accuracy (26.0% vs GPT-5's 25.1%) while cutting costs by 43.4%.
  • Out-of-Distribution Generalization: On ScienceWorld OOD tasks, MTRouter maintained a +5.0 point advantage over GPT-5 with 65.8% cost savings, proving that its learned routing strategies generalize well to unfamiliar domains.

Limitations and Future Work

  • Data Collection Costs: Training the turn-level router requires a substantial volume of offline trajectories. Collecting the training data across multiple models for this paper incurred a one-time cost of approximately $1,620.
  • Lack of Online Adaptation: MTRouter currently operates entirely offline. It cannot adapt its strategy in real-time to completely novel or rapidly evolving environments without incorporating online reinforcement learning.
  • Prompt Caching Trade-offs: Although MTRouter minimizes unnecessary model switches, any switch between different model providers inherently invalidates the KV cache, which can increase per-turn latency in production environments.

Summary updated

BibTeX
@inproceedings{zhang2026mtrouter,
  author = {Yiqun Zhang and Hao Li and Zihan Wang and Shi Feng and Xiaocui Yang and Daling Wang and Bo Zhang and Lei Bai and Shuyue Hu},
  title = {{MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint Embeddings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.2045},
}

Loading related content...

Figure