# Chain-of-Thought Reasoning Without Prompting

프롬프팅 없이 이루어지는 사고 연쇄 추론

Xuezhi Wang, Denny Zhou · arXiv · 2024년 2월 15일

- **연구 문제** pre-training LLM은 프롬프트 없이도 추론 경로를 가지고 있는지, 그리고 그 경로를 어떻게 찾을 수 있는지 묻습니다.
- **연구 방법** 입력을 QA 형식으로 주고 첫 디코딩 단계의 상위 k개 토큰에서 분기한 뒤, 각 경로의 최종 답변 확신도 Δ로 CoT 경로를 고르는 CoT-decoding을 제안합니다.
- **주요 결과** PaLM-2 Large의 GSM8K top-100에서 탐욕적 디코딩 44.0%가 CoT-decoding 72.0%로 나타났고, Mistral-7B pre-training 모델의 GSM8K에서는 9.9%에서 25.1%로 나타났습니다.

## 프롬프트 없이 추론을 끌어내는 질문

대규모 언어 모델의 추론 능력은 대개 few-shot이나 zero-shot CoT 같은 프롬프트로 끌어내져 왔습니다. 이 방식은 효과적이지만 사람이 만든 프롬프트 설계가 결과에 섞여 들어가므로, 모델 자체의 추론 능력을 따로 평가하기 어렵습니다. 이 논문은 프롬프트나 모델 학습 없이 디코딩 절차만 바꾸어도 pre-training 모델에서 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에서 상위 두 토큰 확률의 차이를 구하고, 답변 토큰들에 대해 평균합니다. 원문은 이를 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쪽에서 그림 영역을 추출했습니다.

## 경로 집계와 자기일관성 비교

Δ가 최대인 경로 하나만 고르면 로짓의 작은 차이에 민감할 수 있으므로, 저자들은 답 a에 대해 각 경로의 Δ를 합산하여 Δ̃\_a가 최대인 답을 고르는 집계 방법을 제안합니다. 이 방법은 경로 수 k에 따라 계산 비용이 커지지만, 여러 경로를 이용하는 자기일관성과 비슷한 방식입니다. 다만 CoT-decoding은 CoT 프롬프트 없이 첫 토큰 분기에서 다양성을 만든다는 점이 자기일관성과 다릅니다.

![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 pre-training 모델의 GSM8K 실험에서는 탐욕적 디코딩 9.9%, top-k 샘플링 4.9%, nucleus 샘플링 6.4%, beam search 6.7%, 온도 샘플링 7.5%, CoT 프롬프트 없는 자기일관성 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 경로를 탐색하면 추가 계산 비용이 든다고 밝힙니다. 또한 답변이 더 개방적인 경우에는 상위 두 토큰 확률 차이가 모델이 한 답을 다른 답보다 선호하는 정도를 덜 정확하게 나타낼 수 있다고 봅니다. 이는 저자들이 밝힌 제약이며, 이 논문이 모든 개방형 과제에서 효과를 확인했다는 뜻은 아닙니다.

## 논문 정보

- **저자**: 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)

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/terms/e48f0e01064d-gsm8k)
- [greedy decoding](https://refivu.com/terms/668f299cabe4-greedy-decoding)
- [Self-consistency](https://refivu.com/terms/17628c043f6d-self-consistency)
- [Chain-of-Thought (CoT)](https://refivu.com/terms/fb95d6ae063c-chain-of-thought-cot)
- [nucleus sampling](https://refivu.com/terms/60caf2ab5e48-nucleus-sampling)
- [Coin Flip](https://refivu.com/terms/3a5f5ee7709a-coin-flip)
- [MultiArith](https://refivu.com/terms/292273316a60-multiarith)
- [PaLM-2](https://refivu.com/terms/e66bfd3de3a5-palm-2)
- [Sports Understanding](https://refivu.com/terms/033cdfb49811-sports-understanding)

## 다른 논문 해설

- [Reasoning Theater: Disentangling Model Beliefs from Chain-of-Thought](https://refivu.com/papers/7c449b71-af44-4941-bd39-a4d5b24977e3-reasoning-theater-disentangling-model-beliefs-from-chain-of.md)
- [VisReason: A Large-Scale Dataset for Visual Chain-of-Thought Reasoning](https://refivu.com/papers/33ab873b-b278-480b-8a5f-765efefdfe9e-visreason-a-large-scale-dataset-for-visual-chain.md)
- [Latent Chain-of-Thought for Visual Reasoning](https://refivu.com/papers/e6eecf48-dd01-4882-9910-1adc71f2fe3c-latent-chain-of-thought-for-visual-reasoning.md)
- [MA-LoT: Model-Collaboration Lean-based Long Chain-of-Thought Reasoning enhances Formal Theorem Proving](https://refivu.com/papers/be8e2813-dd50-41f9-8d35-39537d10c107-ma-lot-model-collaboration-lean-based-long-chain.md)
- [RoboPIN: Grounded Embodied Reasoning via Pinned Chain-of-Thought](https://refivu.com/papers/e85b6dde-43d9-455e-a32c-190bf17c589b-robopin-grounded-embodied-reasoning-via-pinned-chain-of.md)
- [Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving](https://refivu.com/papers/6382d3fe-38be-4e76-bdbe-ff7f2e431302-seed-prover-deep-and-broad-reasoning-for-automated.md)
- [Robotic Control via Embodied Chain-of-Thought Reasoning](https://refivu.com/papers/e0916502-601d-428e-90b1-cb59f1252a20-robotic-control-via-embodied-chain-of-thought-reasoning.md)
- [Efficient Reasoning for LLMs through Speculative Chain-of-Thought](https://refivu.com/papers/014664b5-0d5a-4901-8e5d-db761b6aabd0-efficient-reasoning-for-llms-through-speculative-chain-of.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/177d9294-679d-436b-897e-3ec239de41b5-chain-of-thought-reasoning-without-prompting)
