[论文解读] A Theoretical Understanding of Chain-of-Thought: Coherent Reasoning and Error-Aware Demonstration
本文提出一个理论框架,用以理解大语言模型中的思维链(Chain-of-Thought, CoT)提示机制,表明连贯推理——即后续步骤整合早期推理——相比孤立的分步推理,能更有效地实现错误纠正和提升预测准确性。研究发现,模型对中间推理步骤中的错误比对最终答案的错误更为敏感,从而提出一种新颖的提示设计方法,通过在演示中同时包含正确和错误的推理路径,以增强模型在推理任务中的鲁棒性与性能。
Few-shot Chain-of-Thought (CoT) prompting has demonstrated strong performance in improving the reasoning capabilities of large language models (LLMs). While theoretical investigations have been conducted to understand CoT, the underlying transformer used in these studies isolates the CoT reasoning process into separated in-context learning steps (Stepwise ICL). In this work, we theoretically show that, compared to Stepwise ICL, the transformer gains better error correction ability and more accurate predictions if the reasoning from earlier steps (Coherent CoT) is integrated. Given that this coherent reasoning changes the behavior of the transformer, we further investigate the sensitivity of the transformer with Coherent CoT when the demonstration examples are corrupted at the inference stage. Our theoretical results indicate that the transformer is more sensitive to errors in intermediate reasoning steps than the final outcome. Building upon this observation, we propose an improvement on CoT by incorporating both correct and incorrect reasoning paths in the demonstration. Our experiments validate the effectiveness of the proposed approach.
研究动机与目标
- 从理论上分析在变压器模型中,连贯推理(Coherent CoT)与分步少样本学习(Stepwise ICL)之间的差异。
- 研究连贯CoT模型在推理过程中对中间推理步骤错误与最终答案错误的敏感性。
- 提出一种提示组合方法,通过在演示中同时包含正确和错误的推理路径,以提升CoT性能。
- 通过实验验证,所提出的方法可在少样本CoT设置下提升推理准确率与鲁棒性。
提出的方法
- 通过理论分析,比较变压器模型中分步少样本学习(Stepwise ICL,即孤立的分步推理)与连贯CoT(所有推理步骤的整体整合)的差异。
- 进行敏感性分析,以测量模型在演示样本中不同推理步骤受到随机扰动时的响应。
- 提出一种新的提示组合策略,通过在演示中同时包含正确和错误的推理路径,以提升中间步骤的准确性。
- 该方法利用了一个关键洞察:中间步骤对错误更为敏感,因此通过多样化示例提升其质量,可显著增强整体性能。
- 在GSM8K和BBH基准上开展实验,以验证所提提示方法的有效性。
- 理论框架通过建模整体推理如何影响模型行为与错误容错能力,扩展了先前的研究工作。

实验结果
研究问题
- RQ1连贯推理(Coherent CoT)与分步少样本学习(Stepwise ICL)在预测准确率与错误纠正能力方面有何差异?
- RQ2在推理过程中,连贯CoT模型对中间推理步骤的扰动与对最终答案的扰动有多敏感?
- RQ3在演示中同时包含正确与错误推理路径,是否能提升CoT推理的鲁棒性与准确性?
- RQ4变压器模型的哪些理论特性支撑了连贯CoT相比Stepwise ICL的性能提升?
主要发现
- 由于推理步骤的整体整合,连贯CoT相比分步少样本学习(Stepwise ICL)展现出更高的预测性能与更强的错误纠正能力。
- 模型对中间推理步骤中的错误比对最终答案的错误更为敏感,表明中间步骤对准确性至关重要。
- 在演示中同时包含正确与错误的推理路径,可提升模型学习并纠正中间步骤错误的能力。
- 在GSM8K与BBH基准上的实验结果表明,所提提示方法在推理准确率上优于标准CoT与Stepwise ICL基线方法。
- 理论分析证实,连贯推理通过实现跨步骤的自我纠错机制,改变了模型行为,从而提升了鲁棒性。
- 敏感性分析表明,中间步骤的错误传播强度高于最终答案的错误,这为针对性提升中间推理质量提供了依据。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。