Aha.
正在载入中英对照阅读…

arXiv:2606.27359 · 中英对照阅读

可能的答案何时正确?论大语言模型(LLM)中的序列概率与正确性

When are likely answers right? On Sequence Probability and Correctness in LLMs

Johannes Zenn、Jonas Geiping

中文速览

大语言模型常把“自己觉得更可能的答案”当作更值得输出的答案,但这种概率到底能不能代表正确性并不清楚。研究者比较了多种解码方法、模型和任务,分别考察不同答案之间、不同解码设置之间,以及同一题的多次回答中,概率与正确率的关系。结果发现,面对同一数据集里的不同题目,模型给高概率答案往往确实更准;但调高答案概率、换一种更偏好高概率输出的解码方法,并不会稳定提高正确率,而且同一题的多次回答中,概率通常也难以分辨对错。这说明“挑模型最有把握的答案”并非通用的提准确率办法,也提醒研究者谨慎使用模型自身概率来筛答案或改进模型。

摘要

Many decoding methods for large language models can be understood as shifting probability mass toward outputs that are more likely under the model, either locally at the token level or globally at the sequence level. Therefore, their success depends on a fundamental question: when does sequence probability, that is, the conditional probability of a continuation given a prompt, actually align with correctness? In this paper, we set out to quantify this relationship across decoding methods, models, and benchmarks at four levels: across decoding methods, across hyperparameters within a method, across prompt-answer pairs within a dataset, and across repeated responses to the same prompt. We find that higher sequence probability is often predictive of correctness across prompt-answer pairs within a fixed dataset. However, this relationship does not generally transfer to decoding decisions: increasing sequence probability by changing hyperparameters or methods does not reliably improve accuracy. Further, sequence probability is not a good indicator of correctness for responses to the same prompt. These findings clarify when decoding can and cannot be expected to improve correctness, and provide practical guidance for decoding, self-consistency, and verifier-free self-improvement.

术语表

large language model (LLM)
大语言模型(LLM)
autoregressive model
自回归模型
token
词元
decoding method
解码方法
next-token distribution
下一个词元分布
sequence probability
序列概率
conditional probability
条件概率
probability mass
概率质量
correctness
正确性
hyperparameter
超参数
benchmark dataset
基准数据集
low-temperature next-token sampling (LTS)
低温度下一个词元采样(LTS)
truncated next-token sampling (TS)
截断下一个词元采样(TS)
top-k sampling
top-k 采样
top-p sampling
top-p 采样
ε-sampling
ε 采样
Best-of-N (BoN)
Best-of-N(BoN)
beam search (BS)
束搜索(BS)
greedy decoding
贪心解码
power sampling
幂采样
global mode
全局众数
local decoding method
局部解码方法
global decoding method
全局解码方法
across-method correlation
跨方法相关性
within-method correlation
方法内相关性
within-dataset correlation
数据集内相关性
within-sample correlation
样本内相关性
self-consistency
自洽性
self-distillation
自蒸馏
verifier-free self-improvement
无验证器自我改进