arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.12309cs.LGcs.AIstat.ML
收藏

最优自一致性:用于大语言模型高效推理

Optimal Self-Consistency for Efficient Reasoning with Large Language Models

Yale University(耶鲁大学);Inria(法国国家信息与自动化研究所);com(42.com)

Austin Feng, Marius Alonso, Ambroise Odonnat, Vasilii Feofanov, Ievgen Redko

AI总结:

本文分析自一致性(SC)的缩放行为,提出动态分配样本的Blend-ASC变体,平均减少4.8倍样本量,实现最先进的样本效率。

摘要:

自一致性(SC)是一种广泛使用的测试时推理技术,用于提高思维链推理的性能。它包括从大语言模型(LLM)生成多个响应或“样本”,并选择最频繁的答案。这个过程自然可以被视为多数投票或经验众数估计。尽管有效,但当朴素地应用于数据集时,自一致性在规模上成本过高,并且缺乏对样本效率和缩放行为的统一理论理解。在本文中,我们基于众数估计和投票理论,首次全面分析了SC的缩放行为及其变体。我们推导并实证验证了跨数据集的自一致性幂律缩放,并分析了固定分配和动态分配采样方案的样本效率。基于这些见解,我们引入了Blend-ASC,一种自一致性的新变体,它在推理过程中动态分配样本给问题,实现了最先进的样本效率。我们的方法平均使用的样本比普通SC少4.8倍,优于固定分配和动态分配的SC基线,从而展示了我们方法在效率方面的优越性。与现有变体相比,我们注意到Blend-ASC无超参数,支持批处理,并且可以适应任何样本预算,确保它可以轻松应用于任何自一致性应用。

英文摘要:

Self-consistency (SC) is a widely used test-time inference technique for improving performance in chain-of-thought reasoning. It consists of generating multiple responses, or ``samples", from a large language model (LLM) and selecting the most frequent answer. This procedure can naturally be viewed as a majority vote or empirical mode estimation. Despite its effectiveness, self-consistency is prohibitively expensive at scale when naively applied to datasets, and it lacks a unified theoretical understanding of sample efficiency and scaling behavior. In this paper, we provide the first comprehensive analysis of SC's scaling behavior and its variants, drawing on mode estimation and voting theory. We derive and empirically validate power law scaling for self-consistency across datasets, and analyze the sample efficiency for fixed-allocation and dynamic-allocation sampling schemes. From these insights, we introduce Blend-ASC, a novel variant of self-consistency that dynamically allocates samples to questions during inference, achieving state-of-the-art sample efficiency. Our approach uses 4.8 times fewer samples than vanilla SC on average, outperforming both fixed- and dynamic-allocation SC baselines, thereby demonstrating the superiority of our approach in terms of efficiency. In contrast to existing variants, we note that Blend-ASC is hyperparameter-free, supports batching, and can fit any budget of samples, ensuring it can be easily applied to any self-consistency application.

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

↑