Skip to main content
QUICK REVIEW

[论文解读] Chain-of-Thought Reasoning Without Prompting

Xuezhi Wang, Denny Zhou|arXiv (Cornell University)|Feb 15, 2024
Logic, Reasoning, and KnowledgeComputer Science被引用 13
一句话总结

预训练的大型语言模型在不进行提示的情况下,通过探索替代的 top-k 解码路径即可表现出链式推理;CoT 路径与更高的答案置信度相关,并且可以被提取以提升跨多个模型和任务的推理性能。

ABSTRACT

In enhancing the reasoning capabilities of large language models (LLMs), prior research primarily focuses on specific prompting techniques such as few-shot or zero-shot chain-of-thought (CoT) prompting. These methods, while effective, often involve manually intensive prompt engineering. Our study takes a novel approach by asking: Can LLMs reason effectively without prompting? Our findings reveal that, intriguingly, CoT reasoning paths can be elicited from pre-trained LLMs by simply altering the extit{decoding} process. Rather than conventional greedy decoding, we investigate the top-$k$ alternative tokens, uncovering that CoT paths are frequently inherent in these sequences. This approach not only bypasses the confounders of prompting but also allows us to assess the LLMs' extit{intrinsic} reasoning abilities. Moreover, we observe that the presence of a CoT in the decoding path correlates with a higher confidence in the model's decoded answer. This confidence metric effectively differentiates between CoT and non-CoT paths. Extensive empirical studies on various reasoning benchmarks show that the proposed CoT-decoding effectively elicits reasoning capabilities from language models, which were previously obscured by standard greedy decoding.

研究动机与目标

  • 评估预训练的大型语言模型是否能够在没有显式提示的情况下进行有效推理。
  • 确定是否存在超越贪婪解码的解码轨迹中的 CoT 推理路径。
  • 开发一种基于解码的方法(CoT-decoding)以使用答案置信度可靠地提取 CoT 路径。
  • 在多种模型与推理基准(数学、常识、符号推理)上评估该方法。
  • 将 CoT-decoding 与基于提示的方法进行比较并分析模型的内在能力。

提出的方法

  • 在第一步将贪婪解码与替代的 top-k 令牌解码进行比较,以揭示 CoT 路径。
  • 定义并计算一个基于置信度的度量(Δ),以识别 top-2 令牌在概率上不同的 CoT 路径。
  • 提出 CoT-decoding:通过按答案置信度对解码路径进行排序来选择 CoT 路径。
  • 在多种模型(PaLM-2 变体、Mistral-7B、Gemma-7B)上对 GSM8K、年份对齐、MultiArith、Web-of-Lies 等任务进行实验。
  • 评估路径的聚合(按 Δ 的加权聚合)以在无需提示的情况下稳定输出。
  • 可选地将 CoT-decoding 与零-shot CoT 提示结合以获得更好的结果。

实验结果

研究问题

  • RQ1预训练的 LLMs 是否能够通过探索非贪婪解码路径来揭示推理能力而无需提示?
  • RQ2CoT 推理路径是否在解码轨迹中固有存在,以及它们与答案置信度之间的关系?
  • RQ3CoT-decoding 是否能够可靠地提取 CoT 路径并提高不同模型与任务的推理表现?
  • RQ4CoT-decoding 如何与提示方法(零-shot CoT 提示)相互作用以影响性能?
  • RQ5在不同难度任务中发现 CoT 路径的解码参数 k(top-k)扮演的角色是什么?

主要发现

  • CoT 推理路径可以通过在第一步探索替代的 top-k 解码路径在预训练的 LLMs 中出现。
  • 解码中存在 CoT 路径与最终答案的置信度提高相关。
  • CoT-decoding 能够可靠地提取 CoT 路径,并在推理基准上相较贪婪解码产生显著改进。
  • CoT-decoding 同时提升了预训练模型和指令微调模型的表现,并且在没有额外数据的情况下接近指令微调的水平。
  • 在模型家族(PaLM-2、Mistral-7B、Gemma-7B)中,CoT-decoding 在数学和常识任务上表现出一致的准确性提升。
  • 将 CoT-decoding 与提示结合可进一步提升推理表现,超过任一单独方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。