MTRouter: 带成本意识的多轮LLM路由与历史-模型联合嵌入
MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint Embeddings
AI总结:
本文提出MTRouter,通过联合历史-模型嵌入和学习轨迹预测器,提升多轮任务的性能-成本平衡,实验显示在ScienceWorld和Humanity's Last Exam上均取得显著成本降低与性能提升。
摘要:
多轮、长周期任务在大语言模型中日益常见,但解决通常需要多次连续模型调用,累积大量推理成本。本文研究带成本意识的多轮LLM路由:在固定成本预算下,从模型池中选择每个轮次的模型。我们提出MTRouter,将交互历史和候选模型编码为联合历史-模型嵌入,并从记录的轨迹中学习一个结果估计器来预测轮级模型效用。实验表明,MTRouter在性能-成本权衡上取得改进:在ScienceWorld上,其性能超越GPT-5,总成本降低58.7%;在Humanity's Last Exam(HLE)上,其准确性具有竞争力,总成本降低43.4%相对GPT-5,且这些收益甚至延伸到未见任务。进一步分析揭示了其有效性的几个机制:与先前多轮路由器相比,MTRouter切换模型更少,对瞬时错误更容忍,并在模型间表现出涌现的专业化。代码:https://github.com/ZhangYiqun018/MTRouter
英文摘要:
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. 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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。