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

AutoMix:自动混合语言模型

AutoMix: Automatically Mixing Language Models

Carnegie Mellon University(卡内基梅隆大学);xAI;Google(谷歌);Google DeepMind(谷歌DeepMind);IIT Delhi(印度理工学院德里分校);University of Southern California(南加州大学)
Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Y… 展开作者

Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, Shyam Upadhyay, Manaal Faruqui, Mausam

AI总结:

AutoMix提出一种基于小模型输出置信度与大模型自验证的查询路由方法,利用POMDP路由器动态选择模型规模,在五个数据集上以超过50%的成本降低实现相当性能。

摘要:

大型语言模型(LLMs)现可从云API提供商处以各种规模和配置获得。虽然这种多样性提供了广泛的选择范围,但有效利用这些选项以优化计算成本和性能仍然具有挑战性。在这项工作中,我们提出了Automix,一种基于较小LM输出的近似正确性,将查询策略性地路由到较大LM的方法。Automix的核心是两个关键技术贡献。首先,它采用少样本自验证机制,无需大量训练即可估计自身输出的可靠性。其次,鉴于自验证可能带有噪声,它采用基于POMDP的路由器,能够根据答案置信度有效选择适当规模的模型。在五个语言模型和五个具有挑战性的数据集上的实验表明,Automix始终超越强基线,在实现相当性能的同时将计算成本降低超过50%。

英文摘要:

Large language models (LLMs) are now available from cloud API providers in various sizes and configurations. While this diversity offers a broad spectrum of choices, effectively leveraging the options to optimize computational cost and performance remains challenging. In this work, we present Automix, an approach that strategically routes queries to larger LMs, based on the approximate correctness of outputs from a smaller LM. Central to Automix are two key technical contributions. First, it has a few-shot self-verification mechanism, which estimates the reliability of its own outputs without requiring extensive training. Second, given that self-verification can be noisy, it employs a POMDP based router that can effectively select an appropriately sized model, based on answer confidence. Experiments across five language models and five challenging datasets show that Automix consistently surpasses strong baselines, reducing computational cost by over 50% for comparable performance.

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

↑