arXiv:2508.20395cs.CLcs.AI2025-08被引 5

用条件熵衡量大模型推理有效性,发现正确推理的不确定性会逐步下降。

Measuring Reasoning Utility in LLMs via Conditional Entropy Reduction

  • 通过逐步增加上下文计算条件熵,量化每步推理对答案的贡献。
  • 正确答案对应的熵值随推理步骤持续下降,错误答案则趋于平稳或上升。
  • 长推理未必好,可为高效推理路径设计提供早期终止依据。

近期大型语言模型(LLMs)常依赖生成中间推理步骤以提升准确率,但鲜有研究探讨推理效用如何影响最终答案正确性。由于自回归生成具有随机性,增加上下文并不保证答案置信度提升。若能在生成过程中预测某一步推理是否有效,即可提前终止或剪枝无效步骤,避免干扰最终决策。本文在MATH数据集上开展溯源研究,使用Qwen2.5-32B和GPT-4o生成推理链,并由另一模型Qwen3-8B评估其对最终准确率的效用。具体方法是:逐步扩展上下文,利用条件熵(基于词汇表的期望负对数似然)衡量模型在答案片段Y上的不确定性。结果显示:熵值随步骤递减的推理路径与正确答案强相关,而熵值平坦或上升的路径多导致错误。同时验证了错误推理路径通常比正确路径更长,表明冗长推理未必带来更好结果。这些发现为未来设计能主动识别并规避低效推理的高效推理流水线提供了基础。

原文摘要 · Abstract (English)

Recent advancements in large language models (LLMs) often rely on generating intermediate reasoning steps to enhance accuracy. However, little work has examined how reasoning utility contributes to the final answer's correctness. Due to the stochastic nature of autoregressive generation, generating more context does not guarantee increased confidence in the answer. If we could predict, during generation, whether a reasoning step will be useful, we could stop early or prune ineffective steps, avoiding distractions in the final decision. We present an oracle study on MATH dataset, using Qwen2.5-32B and GPT-4o to generate reasoning chains, and then employing a separate model (Qwen3-8B) to quantify the utility of these chains for final accuracy. Specifically, we measure the model's uncertainty on the answer span Y at each reasoning step using conditional entropy (expected negative log-likelihood over the vocabulary) with context expanding step by step. Our results show a clear pattern: conditional entropy that decreases over steps is strongly associated with correct answers, whereas flat or increasing entropy often results in wrong answers. We also corroborate that incorrect reasoning paths tend to be longer than correct ones, suggesting that longer reasoning does not necessarily yield better outcomes. These findings serve as a foundation to inspire future work on designing efficient reasoning pipelines that detect and avoid unproductive reasoning early.

大模型推理条件熵推理效率

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。