Skip to main content
QUICK REVIEW

[論文レビュー] Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models

Lei Wang, Wanyu Xu|arXiv (Cornell University)|May 6, 2023
Topic ModelingComputer Science被引用数 18
ひとこと要約

Plan-and-Solve promptingは、まず計画を立ててから実行するようにLLMを促し、ゼロショット推論を改善し、Zero-shot-CoTを超えるエラー減少を複数のデータセットで実現します。PS+は詳細な指示を追加し、しばしばfew-shot CoTプロンプトと同等かそれを上回ります。

ABSTRACT

Large language models (LLMs) have recently been shown to deliver impressive performance in various NLP tasks. To tackle multi-step reasoning tasks, few-shot chain-of-thought (CoT) prompting includes a few manually crafted step-by-step reasoning demonstrations which enable LLMs to explicitly generate reasoning steps and improve their reasoning task accuracy. To eliminate the manual effort, Zero-shot-CoT concatenates the target problem statement with "Let's think step by step" as an input prompt to LLMs. Despite the success of Zero-shot-CoT, it still suffers from three pitfalls: calculation errors, missing-step errors, and semantic misunderstanding errors. To address the missing-step errors, we propose Plan-and-Solve (PS) Prompting. It consists of two components: first, devising a plan to divide the entire task into smaller subtasks, and then carrying out the subtasks according to the plan. To address the calculation errors and improve the quality of generated reasoning steps, we extend PS prompting with more detailed instructions and derive PS+ prompting. We evaluate our proposed prompting strategy on ten datasets across three reasoning problems. The experimental results over GPT-3 show that our proposed zero-shot prompting consistently outperforms Zero-shot-CoT across all datasets by a large margin, is comparable to or exceeds Zero-shot-Program-of-Thought Prompting, and has comparable performance with 8-shot CoT prompting on the math reasoning problem. The code can be found at https://github.com/AGI-Edgerunners/Plan-and-Solve-Prompting.

研究の動機と目的

  • 手動デモンストレーションなしで、複数ステップの推論タスクの解決を動機づける。
  • ゼロショットCoTにおける計算ミス、途中経過の欠落、意味的エラーを減らす。
  • 推論を導くための、計画ベースのプロンプティング(PS)と強化版PS+を導入する。
  • 多様な推論データセットにおけるPS/PS+の有効性を示す。

提案手法

  • モデルがまず計画を立て、次に問題を解くためのサブタスクを実行するPlan-and-Solve (PS) promptingを提案する。
  • PSを、関連する変数の抽出、途中結果の計算、計算を強調する等、詳細な指示を付与してPS+に拡張する。
  • 2段階プロセスを使用: ステップ1は推論と計画を生成; ステップ2は推論テキストから最終的な数値解を抽出。
  • 貪欲デコーディング(一つの出力チェーン)を適用し、最終的な数値解を得るために回答抽出プロンプトを追加する。
  • GPT-3(text-davinci-003)で算術・常識・記号推論にまたがる10データセットで評価する。
  • Zero-shot-CoT, Zero-shot-PoT, Manual-CoT(8-shot), Auto-CoT(自動デモンストレーション), および8-shot CoTのベースラインと比較する。
Figure 2: Example inputs and outputs of GPT-3 with (a) Zero-shot-CoT prompting, (b) Plan-and-Solve (PS) prompting, and (c) answer extraction prompting. While Zero-shot-CoT encourages LLMs to generate multi-step reasoning with “ Let’s think step by step ”, it may still generate wrong reasoning steps
Figure 2: Example inputs and outputs of GPT-3 with (a) Zero-shot-CoT prompting, (b) Plan-and-Solve (PS) prompting, and (c) answer extraction prompting. While Zero-shot-CoT encourages LLMs to generate multi-step reasoning with “ Let’s think step by step ”, it may still generate wrong reasoning steps

実験結果

リサーチクエスチョン

  • RQ1Zero-shot PS+ prompting は算術・常識・記号タスク全般で Zero-shot-CoT を凌ぐか?
  • RQ2PS+ は PoT および few-shot CoT prompting と比べて、さまざまなデータセットでの精度はどうか?
  • RQ3詳細な指示(PS+)の追加が、計算ミス・途中経過欠落・全体的な推論品質に与える影響は?
  • RQ4PS/PS+ prompting は exemplars なしで manual demonstration prompting と同等かそれ以上の結果を出せるか?

主な発見

  • PS+ promptingは、算術データセット全体でZero-shot-CoTを大きく上回り、しばしばそのタスクでPoTに匹敵するかそれを上回る。
  • PS+は平均算術正解率76.7、PSは72.9、Zero-shot-CoTは70.4。さらに、いくつかのfew-shotベースライン(Manual-CoT 77.6、Auto-CoT 75.9)に対抗または上回る。
  • 常識タスクでは、Zero-shot-PS+がCSQAで71.9%、StrategyQAで65.4%を達成し、Zero-shot-CoT(65.2%、63.8%)を上回る。
  • 記号タスクで、Zero-shot-PS+はLast Letterで75.2%、Coin Flipで99.6%を達成し、Zero-shot-CoTの64.8%、96.8%を上回る。
  • PS+の自己整合性により、GSM8KでSCあり73.7%、なしで58.7%、SVAMPで84.4%あり/75.7%なし。
  • 誤り分析では、PS+は計算エラー(5%)と途中経過欠落エラー(7%)がZero-shot-CoTの(7%、12%)より少ない。
Figure 3: Example inputs and outputs of GPT-3 with (a) Plan-and-Solve (PS) Prompting and (b) Plan-and-Solve prompting with more detailed instructions (PS+ prompting). PS+ prompting greatly improves the quality of the generated reasoning process.
Figure 3: Example inputs and outputs of GPT-3 with (a) Plan-and-Solve (PS) Prompting and (b) Plan-and-Solve prompting with more detailed instructions (PS+ prompting). PS+ prompting greatly improves the quality of the generated reasoning process.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。