Skip to main content
QUICK REVIEW

[论文解读] Chain of Thoughtlessness? An Analysis of CoT in Planning

Kaya Stechly, Karthik Valmeekam|arXiv (Cornell University)|May 8, 2024
Educational Tools and MethodsSocial Sciences被引用 5
一句话总结

该研究发现 chain-of-thought 提示在规划中的泛化很少;收益仅限于高度特定于问题的提示,且随着问题规模增大而恶化,表明 CoT 更依赖模式匹配而非学习通用算法。

ABSTRACT

Large language model (LLM) performance on reasoning problems typically does not generalize out of distribution. Previous work has claimed that this can be mitigated with chain of thought prompting-a method of demonstrating solution procedures-with the intuition that it is possible to in-context teach an LLM an algorithm for solving the problem. This paper presents a case study of chain of thought on problems from Blocksworld, a classical planning domain, and examines the performance of two state-of-the-art LLMs across two axes: generality of examples given in prompt, and complexity of problems queried with each prompt. While our problems are very simple, we only find meaningful performance improvements from chain of thought prompts when those prompts are exceedingly specific to their problem class, and that those improvements quickly deteriorate as the size n of the query-specified stack grows past the size of stacks shown in the examples. We also create scalable variants of three domains commonly studied in previous CoT papers and demonstrate the existence of similar failure modes. Our results hint that, contrary to previous claims in the literature, CoT's performance improvements do not stem from the model learning general algorithmic procedures via demonstrations but depend on carefully engineering highly problem specific prompts. This spotlights drawbacks of chain of thought, especially the sharp tradeoff between possible performance gains and the amount of human labor necessary to generate examples with correct reasoning traces.

研究动机与目标

  • 评估 chain-of-thought 提示是否能够在大型语言模型的规划任务中实现可泛化的推理。
  • 评估提示特异性与问题规模如何影响 CoT 在规划中的有效性。
  • 比较 GPT-4、GPT-4-Turbo 和 Claude-3-Opus 在规划任务上的性能。
  • 检验 CoTPrompts 在规划及相关基准中是否教授通用算法还是仅促进模式匹配。

提出的方法

  • 使用 Blocksworld PDDL 实例,其堆叠高度从小到大(3–20 块)。
  • 将模型输出转换为 PDDL,并用 VAL 验证规划。
  • 在零-shot、n-shot 和 chain-of-thought 提示下测试多种模型(GPT-4、GPT-4-Turbo、Claude-3-Opus),包括领域特定和堆叠变体。
  • 扩展评估至可扩展的合成基准(CoinFlip、LastLetterConcatenation、多步算术),以评估 CoT 的泛化性。
  • 在问题类别和提示粒度变化时分析准确性,并考察自一致性等效应。

实验结果

研究问题

  • RQ1链式思维提示是否能提高大语言模型在规划问题上的分布外泛化能力?
  • RQ2随着 Blocksworld 及其变体问题规模的增加,提示的粒度/普遍性如何影响性能?
  • RQ3LLMs 是否能从 CoT 演示中在规划任务间学习通用的算法过程,还是提升仅来自模式匹配?
  • RQ4研究结论是否可推广到 CoT 研究中常用的可扩展合成基准?

主要发现

  • CoT 提示仅在最窄的题目分布下带来显著改进;随着目标栈高度增加,收益消失。
  • 提高提示的普遍性往往会降低性能,即使是在较小的问题上也如此,且可能劣于标准提示。
  • 自我一致性及其他高级 CoT 变体在此情境下表现相似或更差。
  • 具有高特异性的“表到栈”提示可以维持改进,但对更大实例没有鲁棒的泛化。
  • 将 CoT 扩展到可扩展的合成基准(CoinFlip、LastLetterConcatenation、算术)显示出类似的脆弱性,改进主要来自句法模式匹配,而非学习通用算法。

阅读本论文

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

在 Nubint 中阅读本论文

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