arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.07429cs.LG
收藏

从Bandit反馈学习路由LLM:一个策略,多种权衡

Learning to Route LLMs from Bandit Feedback: One Policy, Many Trade-offs

Virginia Tech(弗吉尼亚理工大学);University of Southern California(南加州大学);Dolby Labs(杜比实验室);Adobe Research(Adobe研究)

Wang Wei, Tiankai Yang, Hongjie Chen, Yue Zhao, Franck Dernoncourt, Ryan A. Rossi, Hoda Eldardiry

AI总结:

针对LLM路由中离线训练与在线部署反馈不一致的问题,提出BaRP方法,利用Bandit反馈在部分反馈下训练,支持测试时偏好调节,实验显示优于离线路由器和最大LLM,且泛化稳健。

摘要:

大规模部署大型语言模型(LLM)时,高效使用至关重要:若无自适应路由,系统要么为强模型过度付费,要么因弱模型而面临性能不佳的风险。为每个查询选择正确的LLM本质上是一个在线决策问题:模型在优势上各异,价格波动,且用户对准确性和成本的重视程度不同。然而,大多数路由器是在离线状态下使用所有候选模型的标签进行训练的,这一假设在部署中不成立,因为部署时只能观察到所选模型的结果。我们通过BaRP(一种带偏好的Bandit反馈路由方法)弥合了这一差距,该方法在与部署相同的部分反馈限制下进行训练,同时支持偏好可调推理:操作员可以在测试时调整性能/成本权衡,而无需重新训练。我们的方法被构建为基于提示特征和用户偏好向量的上下文Bandit问题,在训练期间模拟在线反馈环境,并针对每个新提示调整其路由决策,而非依赖全信息的离线监督。综合实验表明,我们的方法在性能上始终优于强离线路由器至少12.46%,优于最大LLM至少2.45%,并对未见任务具有稳健的泛化能力。

英文摘要:

Efficient use of large language models (LLMs) is critical for deployment at scale: without adaptive routing, systems either overpay for strong models or risk poor performance from weaker ones. Selecting the right LLM for each query is fundamentally an online decision problem: models differ in strengths, prices fluctuate, and users value accuracy and cost differently. Yet most routers are trained offline with labels for all candidate models, an assumption that breaks in deployment, where only the outcome of the chosen model is observed. We bridge this gap with BaRP, a Bandit-feedback Routing with Preferences approach that trains under the same partial-feedback restriction as deployment, while supporting preference-tunable inference: operators can dial the performance/cost trade-off at test time without retraining. Framed as a contextual bandit over prompt features and a user preference vector, our method simulates an online feedback setting during training and adapts its routing decisions to each new prompt, rather than depending on full-information offline supervision. Comprehensive experiments show that our method consistently outperforms strong offline routers by at least 12.46% and the largest LLM by at least 2.45%, and generalizes robustly for unseen tasks.

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

↑