arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.13457cs.CLcs.AI
收藏

让每一分钱都物有所值:面向成本高效推理的难度自适应自一致性

Make Every Penny Count: Difficulty-Adaptive Self-Consistency for Cost-Efficient Reasoning

School of Computer Science, Beijing Institute of Technology(北京理工大学计算机学院);Xiaohongshu Inc(小红书科技有限公司)

Xinglin Wang, Shaoxiong Feng, Yiwei Li, Peiwen Yuan, Yueqi Zhang, Chuyi Tan, Boyuan Pan, Yao Hu, Kan Li

AI总结:

针对自一致性(SC)推理成本高且现有变体未利用问题难度信息的问题,提出DSC方法,结合批量查询的先验与后验难度信息自适应分配资源,在六个推理基准上显著降低成本且性能相当。

摘要:

自一致性(SC)是一种广泛用于思维链推理的解码策略,在各类多步推理任务中表现出显著提升,但因预设规模的多次采样导致成本高昂。其变体自适应自一致性(ASC)和早停自一致性(ESC)基于一组预采样的后验分布动态调整样本数量,以对性能影响最小的方式降低SC的成本。然而,这两种方法均未利用关于问题难度的先验信息,常导致简单问题进行不必要的重复采样——这类问题只需一次尝试即可准确回答,造成资源浪费。为解决该问题,我们提出难度自适应自一致性(DSC),从先验和后验视角利用批量查询的难度信息自适应分配推理资源,进一步降低SC的总体成本。为验证DSC的有效性,我们在算术、常识和符号推理三大类流行推理任务的六个基准上进行了大量实验。实证结果表明,DSC在成本方面持续显著优于强基线ASC和ESC,同时取得了相当的性能。

英文摘要:

Self-consistency (SC), a widely used decoding strategy for chain-of-thought reasoning, shows significant gains across various multi-step reasoning tasks but comes with a high cost due to multiple sampling with the preset size. Its variants, Adaptive self-consistency (ASC) and Early-stopping self-consistency (ESC), dynamically adjust the number of samples based on the posterior distribution of a set of pre-samples, reducing the cost of SC with minimal impact on performance. Both methods, however, do not exploit the prior information about question difficulty. It often results in unnecessary repeated sampling for easy questions that could be accurately answered with just one attempt, wasting resources. To tackle this problem, we propose Difficulty-Adaptive Self-Consistency (DSC), which leverages the difficulty information of batch queries from both prior and posterior perspectives to adaptively allocate inference resources, further reducing the overall cost of SC. To demonstrate the effectiveness of DSC, we conduct extensive experiments on three popular categories of reasoning tasks: arithmetic, commonsense and symbolic reasoning on six benchmarks. The empirical results show that DSC consistently surpasses the strong baseline ASC and ESC in terms of costs by a significant margin, while attaining comparable performances.

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

↑