# Chain-of-Thought Reasoning Without Prompting

プロンプトを使わないChain-of-Thought推論

Xuezhi Wang, Denny Zhou · arXiv · 2024年2月15日

- **課題** 事前学習済みのLLMは、プロンプトがなくても推論の経路を持っているのか、持っているとしたらどうやってその経路を見つけられるのかを問います。
- **手法** 入力をQA形式で与え、最初のデコーディングのステップで上位k個のトークンから分岐させます。そのうえで、各経路の最終的な回答の確信度ΔでCoTの経路を選ぶCoT-decodingを提案します。
- **結果** PaLM-2 LargeのGSM8K top-100では、貪欲デコーディングの44.0%がCoT-decodingで72.0%になりました。Mistral-7Bの事前学習モデルのGSM8Kでは、9.9%から25.1%になりました。

## プロンプトなしで推論を引き出すという問い

大規模言語モデルの推論能力は、これまで多くの場合、few-shotやzero-shot CoTのようなプロンプトで引き出されてきました。この方法は効果的ですが、人が作ったプロンプトの設計が結果に混ざり込むため、モデル自体の推論能力を切り分けて評価するのは困難です。この論文は、プロンプトやモデルの学習を使わず、デコーディングの手順を変えるだけでも、事前学習モデルにCoTの推論経路が現れるかどうかを問います。既存の研究では、直接質問に答える形ではLLMが推論に苦労すると報告されてきましたが、著者らは、その結論は貪欲デコーディングの最上位の経路しか見ていないためかもしれないと主張しています。

## 最初のデコーディングステップでの代替トークンへの分岐

CoT-decodingは、入力を"Q: \[question\]\\nA:"という形式で与え、最初のデコーディングのステップで確率が上位のk個のトークンを、それぞれ分岐の候補として使います。そのあとは、貪欲デコーディングで経路を続けて生成します。論文のデフォルト設定はk = 10です。こうすると、貪欲な経路がすぐに答えを出す場合でも、代替の最初のトークンから始まる経路に、段階的な推論が含まれることがあります。たとえばGSM8Kの例では、k = 9の経路で有効なCoTが現れました。

![Figure 1: \| Illustration of CoT-decoding. Pre-trained LLMs are capable of inherent reasoning without prompting by considering alternative top-𝑘 tokens, rather…](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-a1a0d3291c944c383681eb5d7c97399b.png?thumb=512)

**Figure 1** \| Illustration of CoT-decoding. Pre-trained LLMs are capable of inherent reasoning without prompting by considering alternative top-𝑘 tokens, rather than solely relying on the top-1 greedy decoding path. Moreover, these models tend to display higher confidence in decoding the final answer (indicated by a darker shaded color) when a CoT reasoning path is present.

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

![Table 11: \| Example of generated CoTs by CoT-decoding without explicit prompting](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-108603078d6723e6e85c543d7362fd43.png?thumb=512)

**Table 11** \| Example of generated CoTs by CoT-decoding without explicit prompting.

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの22ページ目から図の部分を抽出しています。

## 回答の確信度でCoTの経路を選ぶ方法

経路の選択には、最終的な回答のトークンの確率の差を使うΔ指標が用いられます。回答の各トークンx\_tで、上位2つのトークンの確率の差を求め、回答のトークンについて平均します。論文は、これをminimum-marginのアプローチに似ていると説明しています。著者らは、CoTの経路があるときは回答の確信度が高く出るため、Δが最も高い経路を選べばCoTの経路を見つけられると考えています。手作業で確認したGSM8Kの最初の100問では、top-10の経路のうち確信度が最も高い経路の88%にCoTの経路が含まれていました。

![Table 1: \| Examples of greedy decoded paths and alternative top-𝑘 paths over the PaLM-2 Large model. The model’s confidence over the answers (bolded) are highl…](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-7d78b02a208f39ca7dc36cafcf4e39d7.png?thumb=512)

**Table 1** \| Examples of greedy decoded paths and alternative top-𝑘 paths over the PaLM-2 Large model. The model’s confidence over the answers (bolded) are highlighted in blue (See §2.2 for details).

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

![Table 2: \| CoT-decoding reliably extracts the CoT-paths compared to other methods (on PaLM-2 L)](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-a3f4692bf96a532912774e757ae60d66.png?thumb=512)

**Table 2** \| CoT-decoding reliably extracts the CoT-paths compared to other methods (on PaLM-2 L).

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

## 経路の集約とself-consistencyとの比較

Δが最大の経路を1つだけ選ぶと、ロジットのわずかな差に敏感になりうるため、著者らは、答えaについて各経路のΔを合計し、Δ̃\_aが最大の答えを選ぶ集約の方法を提案しています。この方法は、経路の数kに応じて計算コストが増えますが、複数の経路を使うself-consistencyに似ています。ただし、CoT-decodingは、CoTのプロンプトなしで最初のトークンの分岐から多様性を作る点が、self-consistencyと異なります。

![Table 3: \|CoT-decodingandself-consistencyw/opromptsonGSM8K](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-30cf784b3e89f135da01be818f6fa903.png?thumb=512)

**Table3** \|CoT-decodingandself-consistencyw/opromptsonGSM8K.

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

## 数学の推論とデコーディングのベースラインの結果

PaLM-2 Largeで、GSM8K top-100の精度は、貪欲デコーディングの44.0%からCoT-decodingの72.0%に上がりました。同じ実験系列のyear parityでは、貪欲デコーディングの57.0%からCoT-decodingの95.0%に上がりました。Mistral-7Bの事前学習モデルのGSM8Kの実験では、貪欲デコーディングが9.9%、top-kサンプリングが4.9%、nucleusサンプリングが6.4%、beam searchが6.7%、温度サンプリングが7.5%、CoTプロンプトなしのself-consistencyが12.9%、CoT-decodingが25.1%と報告されました。

この比較は、該当するモデルとGSM8Kの条件で得られた結果です。

![Table 4: \| CoT-decoding is the only decoding strategy that can significantly enhance language models’ reasoning](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-9d2e1602e465142a4062c6d4ac9ae142.png?thumb=512)

**Table 4** \| CoT-decoding is the only decoding strategy that can significantly enhance language models’ reasoning.

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

![Figure 4: \| CoT-decoding reliably improves reasoning performance across model scales (PaLM-2), even when the task does not naturally improve by scaling up only…](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5/figures/figure-6e80ea0b5e1a720b1e7ee0c5b0d67a19.png?thumb=512)

**Figure 4** \| CoT-decoding reliably improves reasoning performance across model scales (PaLM-2), even when the task does not naturally improve by scaling up only (e.g., year parity).

[出典](https://arxiv.org/abs/2402.10200v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xuezhi Wang, Denny Zhou · Chain-of-Thought Reasoning Without Prompting · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## 計算コストとオープンエンドな回答の限界

著者らは、代替のtop-kの経路を探索すると追加の計算コストがかかると述べています。また、回答がよりオープンエンドな場合には、上位2つのトークンの確率の差が、モデルがある答えを別の答えより好む度合いを、あまり正確に表せないかもしれないと考えています。これは著者らが述べた制約であり、この論文がすべてのオープンエンドなタスクで効果を確認したという意味ではありません。

## 論文情報

- **著者**: Xuezhi Wang, Denny Zhou
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2024年2月15日
- **登録日**: 2026年11月5日
- **更新日**: 2024年5月23日
- **バージョン**: v2
- **arXiv**: 2402.10200
- **カテゴリ**: cs.CL
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2402.10200v2) · [PDF ↗](https://arxiv.org/pdf/2402.10200v2)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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 \\textit{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' \\textit{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.

## この論文を引用

Xuezhi Wang, Denny Zhou (2024). Chain-of-Thought Reasoning Without Prompting. arXiv:2402.10200v2. https://arxiv.org/abs/2402.10200v2

**BibTeX**

```
@misc{wang2024chain,
  title = {{Chain-of-Thought Reasoning Without Prompting}},
  author = {Xuezhi Wang and Denny Zhou},
  year = {2024},
  eprint = {2402.10200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10200v2}
}
```

## この論文の用語

- [GSM8K](https://refivu.com/ja/terms/e48f0e01064d-gsm8k)
- [greedy decoding](https://refivu.com/ja/terms/668f299cabe4-greedy-decoding)
- [self-consistency](https://refivu.com/ja/terms/17628c043f6d-self-consistency)
- [nucleus sampling](https://refivu.com/ja/terms/60caf2ab5e48-nucleus-sampling)
- [Chain-of-Thought (CoT)](https://refivu.com/ja/terms/fb95d6ae063c-chain-of-thought-cot)
- [Coin Flip](https://refivu.com/ja/terms/3a5f5ee7709a-coin-flip)
- [MultiArith](https://refivu.com/ja/terms/292273316a60-multiarith)
- [Sports Understanding](https://refivu.com/ja/terms/033cdfb49811-sports-understanding)

## ほかの論文解説

- [Let's Verify Step by Step](https://refivu.com/ja/papers/389050a4-3045-4cce-994c-b4c5da04031a-let-s-verify-step-by-step.md)
- [STaR: Bootstrapping Reasoning With Reasoning](https://refivu.com/ja/papers/2942117a-1b64-4434-bef7-4f70b61ab603-star-bootstrapping-reasoning-with-reasoning.md)
- [DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning](https://refivu.com/ja/papers/2227da56-269c-4116-84dc-2bc76bf3e6c7-deepseek-r1-incentivizing-reasoning-capability-in-llms-via.md)
- [Self-Consistency Improves Chain of Thought Reasoning in Language Models](https://refivu.com/ja/papers/be407503-de73-4a1d-9790-4b944a0560a9-self-consistency-improves-chain-of-thought-reasoning-in.md)
- [Chain-of-Thought Hidden States Reveal Task-Solving Directions for Direct Answers](https://refivu.com/ja/papers/8a23f0af-7204-4d01-8549-f9ad8f063856-chain-of-thought-hidden-states-reveal-task-solving.md)
- [Optimal Autoregressive Chain-of-Thought Learning via Bagging](https://refivu.com/ja/papers/2ad4fbbf-a4a8-48c8-ab66-b5be2af3e669-optimal-autoregressive-chain-of-thought-learning-via-bagging.md)
- [Robotic Control via Embodied Chain-of-Thought Reasoning](https://refivu.com/ja/papers/e0916502-601d-428e-90b1-cb59f1252a20-robotic-control-via-embodied-chain-of-thought-reasoning.md)
- [Neural Articulated Radiance Field](https://refivu.com/ja/papers/aa604c2f-5450-4fe1-b81c-ff26130ee0b1-neural-articulated-radiance-field.md)
- [MERF: Memory-Efficient Radiance Fields for Real-time View Synthesis in Unbounded Scenes](https://refivu.com/ja/papers/b88df5f3-e59a-4fcd-9cfd-d031cf876738-merf-memory-efficient-radiance-fields-for-real-time.md)
- [BARF: Bundle-Adjusting Neural Radiance Fields](https://refivu.com/ja/papers/ba143c7e-fe7b-41ec-83ca-c3ecd797e3e8-barf-bundle-adjusting-neural-radiance-fields.md)
- [Robust Dynamic Radiance Fields](https://refivu.com/ja/papers/d8eb0f83-33ad-41d7-bc4b-6fc44f723dd8-robust-dynamic-radiance-fields.md)
- [Editing Conditional Radiance Fields](https://refivu.com/ja/papers/c434d11b-0144-4e79-9742-c728495cdf18-editing-conditional-radiance-fields.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/177d9294-679d-436b-897e-3ec239de41b5-chain-of-thought-reasoning-without-prompting)
