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

ConSol:利用序贯概率比检验高效寻找一致的大语言模型推理路径

ConSol: Sequential Probability Ratio Testing to Find Consistent LLM Reasoning Paths Efficiently

Baylor College of Medicine(贝勒医学院)

Jaeyeon Lee, Guantong Qi, Matthew Brady Neeley, Zhandong Liu, Hyun-Hwan Jeong

AI总结:

针对大语言模型自一致性推理方法采样成本高的问题,提出基于序贯概率比检验的ConSol方法,动态终止采样,在保持准确率的同时大幅降低计算成本,并开源了相关代码与数据集。

摘要:

大语言模型(LLM)在显式推理整合方面的最新进展,例如OpenAI的o3-mini、DeepSeek-R1和QWQ-32B,使得较小的模型能够通过在给出答案前生成中间推理步骤来解决复杂任务。然而,这种方法显著增加了计算成本,包括金钱成本和环境成本。被广泛使用的自一致性方法通过聚合多条推理路径来提升准确率,进一步加剧了这些成本,每个任务通常需要40到64个样本。尽管聚合能有效降低方差和偏差,但当早期样本就能产生一致结果时,额外采样会带来收益递减效应。为解决效率低下的问题,我们提出利用序贯概率比检验(SPRT),在达到足够一致性时动态终止采样。我们专门针对大语言模型应用校准了SPRT参数,兼顾检测分布众数的灵敏度。我们的实验表明,引入SPRT能显著提升token效率,达到与自一致性方法相当的准确率,但计算成本大幅降低。为提升透明度并促进可复现性,我们已将实验中使用的源代码和数据集在GitHub仓库公开:https://github.com/LiuzLab/consol,也可作为PyPI包获取:pip install consol。我们希望该资源能支持进一步研究,并鼓励基于我们的工作开发新方法。

英文摘要:

Recent advancements in large language models (LLMs) integrating explicit reasoning, such as OpenAI's o3-mini, DeepSeek-R1, and QWQ-32B, enable smaller models to solve complex tasks by generating intermediate reasoning steps prior to providing answers. However, this approach significantly increases computational costs, both monetarily and environmentally. The widely-used self-consistency method further exacerbates these costs by aggregating multiple reasoning paths to improve accuracy, often requiring between 40 to 64 samples per task. Although aggregation effectively reduces variance and bias, additional sampling can lead to diminishing returns when early samples yield consistent results. To address inefficiencies, we propose leveraging Sequential Probability Ratio Testing (SPRT) to dynamically terminate sampling once sufficient consistency is achieved. We calibrate SPRT parameters specifically for LLM applications, accounting for sensitivity to detect the mode of the distribution. Our experiments demonstrate that incorporating SPRT significantly enhances token efficiency, achieving comparable accuracy to self-consistency methods but at a substantially reduced computational cost. To promote transparency and facilitate reproducibility, we have made the source code and datasets used in our experiments publicly available at our GitHub repository: https://github.com/LiuzLab/consol, or available as a PyPI package: pip install consol. We hope that this resource will support further research and encourage the development of new methods building upon our work.

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

↑