arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.06616cs.LGcs.AImath.STstat.TH
收藏

RACER:面向大型语言模型的风险感知校准高效路由

RACER: Risk-Aware Calibrated Efficient Routing for Large Language Models

Southern University of Science and Technology, China(南方科技大学);The Chinese University of Hong Kong, Shenzhen, China(香港中文大学(深圳));Shenzhen Loop Area Institute, China(深圳环湖研究院)

Sai Hao, Hao Zeng, Hongxin Wei, Bingyi Jing

AI总结:

RACER通过构建嵌套模型集和校准阈值,实现了对大型语言模型路由的风险感知校准,从而提升下游任务的准确性。

摘要:

高效地将查询路由到最优的大语言模型(LLM)对于在多模型系统中优化成本-性能权衡至关重要。然而,大多数现有路由器依赖于单模型选择,使其容易出现误路由。在本工作中,我们将LLM路由问题形式化为α-VOR问题,以在最小化预期集大小的同时控制误路由风险,并提出了一种新的方法——RACER,扩展基础路由器以输出模型集,这些集可以随后进行聚合以提高输出。具体而言,RACER通过增强评分构建嵌套模型集,并利用有限样本集中界来校准一个阈值,以允许可变集大小和回避。我们理论证明RACER在事后和模型无关的方式下,在未见过的测试数据上实现了严格分布无关的风险控制。广泛的实验验证了我们的理论保证,并展示了RACER在各种基准测试中一致地提高了下游准确性。

英文摘要:

Efficiently routing queries to the optimal large language model (LLM) is crucial for optimizing the cost-performance trade-off in multi-model systems. However, most existing routers rely on single-model selection, making them susceptible to misrouting. In this work, we formulate LLM routing as the $α$-VOR problem to minimize expected set size while controlling the misrouting risk, and propose a novel method -- RACER, extending base routers to output model sets that can be subsequently aggregated for improved output. In particular, RACER constructs nested model sets via augmented scoring and utilizes finite-sample concentration bounds to calibrate a threshold that allows for both variable set sizes and abstention. We theoretically prove that RACER achieves rigorous distribution-free risk control on unseen test data in a post-hoc and model-agnostic manner. Extensive experiments verify our theoretical guarantees and demonstrate that RACER consistently enhances downstream accuracy across a wide range of benchmarks.

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

↑