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

Yiqun Zhang, Hao Li, Zihan Wang, Shi Feng, Xiaocui Yang +4 more
4/26/2026
19 citations
cs.CLcs.AI

Official code: ZhangYiqun018/MTRouter (26 stars, Python, MIT, last commit 2026-06-16).

Abstract

Multi-turn, long-horizon tasks are increasingly common for large language models (LLMs), but solving them typically requires many sequential model invocations, accumulating substantial inference costs. Here, we study cost-aware multi-turn LLM routing: selecting which model to invoke at each turn from a model pool, given a fixed cost budget.

Show full abstract

We propose MTRouter, which encodes the interaction history and candidate models into joint history-model embeddings, and learns an outcome estimator from logged trajectories to predict turn-level model utility. Experiments show that MTRouter improves the performance-cost trade-off: on ScienceWorld, it surpasses GPT-5 while reducing total cost by 58.7%; on Humanity's Last Exam (HLE), it achieves competitive accuracy while reducing total cost by 43.4% relative to GPT-5, and these gains even carry over to held-out tasks. Further analyses reveal several mechanisms underlying its effectiveness: relative to prior multi-turn routers, MTRouter makes fewer model switches, is more tolerant to transient errors, and exhibits emergent specialization across models. Code: https://github.com/ZhangYiqun018/MTRouter

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2026] Official implementation of MTRouter, a cost-aware multi-turn LLM routing framework accepted to ACL 2026 Main Conference.

260PythonApr 9, 20265 months agoMIT
acl-2026benchmarkingcost-aware-routinghlellm-agents+3 more

Similar Papers

Cite this paper

@article{zhang2026mtrouter,
  title  = {MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint Embeddings},
  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},
  year   = {2026},
  eprint = {2604.23530},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.23530v1}
}

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

Discussion