arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.00841cs.LG
收藏

基于成对反馈的大语言模型路由

LLM Routing with Dueling Feedback

The University of Tokyo(东京大学);RIKEN AIP(日本理化学研究所AIP)

Chao-Kai Chiang, Takashi Ishida, Masashi Sugiyama

AI总结:

该研究将LLM路由建模为上下文成对老虎机,提出类别校准微调方法生成模型嵌入以落地理论采样算法,在两个基准上实现了更低累积遗憾、更快收敛及更优性能成本平衡。

摘要:

我们研究大语言模型(LLM)路由问题,即为每个查询选择最优模型,同时平衡用户满意度、模型专长与推理成本。我们将路由问题建模为上下文成对老虎机(contextual dueling bandits),从成对偏好反馈而非绝对分数中学习,从而实现标签高效性与动态适应性。基于此建模,我们提出类别校准微调(Category-Calibrated Fine-Tuning, CCFT),这是一种表示学习方法,通过带类别加权的对比微调从离线数据中推导模型嵌入。这些嵌入使得上下文成对老虎机的舒适汤普森采样(Feel-Good Thompson Sampling for Contextual Dueling Bandits, FGTS.CDB)——一种有理论支撑的后验采样算法——得以实际落地。我们提出四种类别加权变体,明确整合模型质量与成本,并在RouterBench和MixInstruct数据集上对所提方法进行实证评估。在两个基准测试中,我们的方法实现了更低的累积遗憾与更快的收敛速度,相比基于通用OpenAI嵌入模型构建的强基线,具备更优的鲁棒性与性能-成本平衡。

英文摘要:

We study LLM routing, the problem of selecting the best model for each query while balancing user satisfaction, model expertise, and inference cost. We formulate routing as contextual dueling bandits, learning from pairwise preference feedback rather than absolute scores, thereby yielding label-efficient and dynamic adaptation. Building on this formulation, we introduce Category-Calibrated Fine-Tuning (CCFT), a representation-learning method that derives model embeddings from offline data using contrastive fine-tuning with categorical weighting. These embeddings enable the practical instantiation of Feel-Good Thompson Sampling for Contextual Dueling Bandits (FGTS.CDB), a theoretically grounded posterior-sampling algorithm. We propose four variants of the categorical weighting that explicitly integrate model quality and cost, and we empirically evaluate the proposed methods on the RouterBench and MixInstruct datasets. Across both benchmarks, our methods achieve lower cumulative regret and faster convergence, with better robustness and performance-cost balance than strong baselines built with a general-purpose OpenAI embedding model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑