通过自我确定性实现大规模语言模型的可扩展最佳-N选择
Scalable Best-of-N Selection for Large Language Models via Self-Certainty
AI总结:
本文提出自我确定性方法,通过利用LLM输出的概率分布,高效提升大规模语言模型的推理能力,适用于多种推理任务和开放性生成场景。
摘要:
最佳-N选择是一种通过增加测试时间计算来提高大规模语言模型(LLMs)推理性能的关键技术。当前最先进的方法通常采用计算强度大的奖励模型进行响应评估和选择。奖励自由的替代方法,如自我一致性与通用自我一致性,在处理开放性生成任务或有效扩展方面存在局限性。为了解决这些限制,我们提出了自我确定性,一种新颖且高效的度量标准,它利用LLM输出的内在概率分布来估计响应质量,而无需外部奖励模型。我们假设更高的分布性自我确定性,通过多个样本聚合,与改进的响应准确性相关联,因为它反映了生成输出的更大信心。通过在各种推理任务上的广泛实验,我们证明了自我确定性(1)在增加样本大小N时能够有效扩展,类似于奖励模型但没有计算开销;(2)补充了思考链,使推理性能超越贪婪解码;(3)扩展到传统自我一致性方法无法处理的开放性任务。我们的发现确立了自我确定性作为改进LLM推理能力的实用且高效的方法。代码可在https://github.com/backprop07/Self-Certainty获取。
英文摘要:
Best-of-N selection is a key technique for improving the reasoning performance of Large Language Models (LLMs) through increased test-time computation. Current state-of-the-art methods often employ computationally intensive reward models for response evaluation and selection. Reward-free alternatives, like self-consistency and universal self-consistency, are limited in their ability to handle open-ended generation tasks or scale effectively. To address these limitations, we propose self-certainty, a novel and efficient metric that leverages the inherent probability distribution of LLM outputs to estimate response quality without requiring external reward models. We hypothesize that higher distributional self-certainty, aggregated across multiple samples, correlates with improved response accuracy, as it reflects greater confidence in the generated output. Through extensive experiments on various reasoning tasks, we demonstrate that self-certainty (1) scales effectively with increasing sample size N, akin to reward models but without the computational overhead; (2) complements chain-of-thought, improving reasoning performance beyond greedy decoding; and (3) generalizes to open-ended tasks where traditional self-consistency methods fall short. Our findings establish self-certainty as a practical and efficient way for improving LLM reasoning capabilities. The code is available at https://github.com/backprop07/Self-Certainty
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。