Skip to main content
QUICK REVIEW

[Paper Review] Chain-of-Thought Reasoning Without Prompting

Xuezhi Wang, Denny Zhou|arXiv (Cornell University)|Feb 15, 2024
Logic, Reasoning, and KnowledgeComputer Science13 citations
TL;DR

Pre-trained LLMs can exhibit chain-of-thought reasoning without prompting by exploring alternative top-k decoding paths; CoT-paths correlate with higher answer confidence and can be extracted to boost reasoning performance across multiple models and tasks.

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.

Motivation & Objective

  • Assess whether pre-trained LLMs can reason effectively without explicit prompting.
  • Identify if CoT reasoning paths exist inherently in decoding trajectories beyond greedy decoding.
  • Develop a decoding-based method (CoT-decoding) to reliably extract CoT paths using answer confidence.
  • Evaluate the method across multiple models and reasoning benchmarks (math, commonsense, symbolic).
  • Compare CoT-decoding with prompting-based approaches and analyze intrinsic model capabilities.

Proposed method

  • Compare greedy decoding with alternative top-k token decoding at the first step to reveal CoT paths.
  • Define and compute a confidence-based metric (Δ) to identify CoT paths where the top-2 tokens differ in probability.
  • Introduce CoT-decoding: select CoT-paths by ranking decoding paths by answer confidence.
  • Experiment with multiple models (PaLM-2 variants, Mistral-7B, Gemma-7B) on GSM8K, year parity, MultiArith, Web-of-Lies, and other tasks.
  • Assess aggregation of paths (weighted aggregation by Δ) to stabilize outputs without prompts.
  • Optionally combine CoT-decoding with zero-shot CoT-prompting for enhanced results.

Experimental results

Research questions

  • RQ1Can pre-trained LLMs reveal reasoning capabilities without prompting by exploring non-greedy decoding paths?
  • RQ2Do CoT reasoning paths exist inherently in decoding trajectories, and how do they relate to answer confidence?
  • RQ3Can CoT-decoding reliably extract CoT paths and improve reasoning performance across different models and tasks?
  • RQ4How does CoT-decoding interact with prompting approaches (zero-shot CoT prompts) to influence performance?
  • RQ5What is the role of the decoding parameter k (top-k) in discovering CoT paths across tasks of varying difficulty?

Key findings

  • CoT reasoning paths can emerge in pre-trained LLMs by exploring alternative top-k decoding paths at the first step.
  • Presence of a CoT path in decoding correlates with higher confidence in the final answer.
  • CoT-decoding reliably extracts CoT paths and yields substantial improvements over greedy decoding on reasoning benchmarks.
  • CoT-decoding improves both pre-trained and instruction-tuned models, and can approach the performance of instruction tuning without additional data.
  • Across model families (PaLM-2, Mistral-7B, Gemma-7B), CoT-decoding yields consistent accuracy gains on math and commonsense tasks.
  • Combining CoT-decoding with prompting further boosts reasoning performance beyond either approach alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.