大型语言模型(LLMs)在测试时通常被多次查询,并通过多数投票聚合预测。虽然有效,但这种自一致性(Wang et al., 2023)策略需要固定次数的调用,并且在正确答案出现频率较低时失败。我们引入了置信引导早停(CGES),一个贝叶斯框架,它在候选答案上形成后验分布,并一旦某个答案积累了足够的后验质量就自适应地停止采样。我们在理想校准设置和现实有噪置信设置(在方向漂移条件下)下证明了保证。在五个推理基准上平均,CGES将平均调用次数减少了58%(从16.0降至6.7),同时其精度与自一致性相差在0.4个百分点以内。
英文摘要:
Large language models (LLMs) are often queried multiple times at test time, with predictions aggregated by majority vote. While effective, this self-consistency (Wang et al., 2023) strategy requires a fixed number of calls and fails when the correct answer is infrequent. We introduce Confidence-Guided Early Stopping (CGES), a Bayesian framework that forms posteriors over candidate answers and adaptively halts sampling once one answer accumulates enough posterior mass. We prove guarantees in both an ideal calibrated regime and a realistic noisy-confidence regime under a directional drift condition. Averaged over five reasoning benchmarks, CGES reduces the average number of calls by 58% on average (from 16.0 to 6.7) while matching its accuracy within 0.4 percentage points of self-consistency.
Stop When Reasoning Converges: Semantic-Preserving Early Exit for Reasoning Models
University of Illinois Chicago(伊利诺伊大学芝加哥分校);Google Research(谷歌研究);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Politecnico di Milano(米兰理工学院)