通过扰动嵌入识别大模型推理中的不确定步骤。
Embedding Perturbation may Better Reflect Intermediate-Step Uncertainty in LLM Reasoning
- 用前序嵌入扰动衡量中间步骤的敏感度,捕捉不确定性。
- 该方法在多个任务上优于概率、采样和贝叶斯基线。
- 适合需要精细错误检测与干预的推理系统应用。
大型语言模型(LLMs)在众多领域取得显著进展,但仍可能产生不可靠或误导性输出。为实现负责任的应用,不确定性量化(UQ)技术用于估计模型对其输出的不确定性,反映输出出错的可能性。对于推理任务,不仅需评估最终答案的不确定性,更应关注中间步骤的不确定性,以便进行更精细、有针对性的干预。本研究探索哪些UQ指标能更好反映模型在推理过程中的“中间不确定性”。结果表明,模型错误的推理步骤往往包含对前序词嵌入扰动高度敏感的词元,说明模型在多个可能延续中存在犹豫。因此,可利用该敏感度得分作为指引,直接识别不确定(可能错误)的中间步骤。实验显示,基于扰动的指标在不确定性量化性能上优于概率、采样和贝叶斯等基线方法,同时具备良好的简洁性与效率。
原文摘要 · Abstract (English)
Large language Models (LLMs) have achieved significant breakthroughs across diverse domains; however, they can still produce unreliable or misleading outputs. For responsible LLM application, Uncertainty Quantification (UQ) techniques are used to estimate a model's uncertainty about its outputs, indicating the likelihood that those outputs may be problematic. For LLM reasoning tasks, it is essential to estimate the uncertainty not only for the final answer, but also for the intermediate steps of the reasoning, as this can enable more fine-grained and targeted interventions. In this study, we explore what UQ metrics better reflect the LLM's "intermediate uncertainty" during reasoning. Our study reveals that an LLM's incorrect reasoning steps tend to contain tokens which are highly sensitive to the perturbations on the preceding token embeddings, indicating the model's uncertainty among multiple competing continuations. In this way, uncertain (possibly incorrect) intermediate steps can be readily identified using this sensitivity score as guidance in practice. In our experiments, we show such perturbation-based metrics achieve stronger uncertainty quantification performance compared with baselines including probability-based, sampling-based and Bayesian-based methods. Meanwhile, such metrics also enjoy good simplicity and efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。