papers / selfconsistency2022
Next task →
Research Papers/Post-training and alignment/Self-Consistency Improves Chain of Thought Reasoning in Language Models
Post-training and alignment · #6 · seminal

Self-Consistency Improves Chain of Thought Reasoning in Language Models

Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi et al. · 2022 · ICLR (2023)
reproduction difficulty: lowNLPReasoningDecoding

1. Research problem

A single greedy chain-of-thought path can reach a wrong answer even when other valid reasoning paths exist, and likelihood does not reliably identify the correct path.

2. Motivation

The authors wanted a decoding strategy that exploits diversity among sampled reasoning paths instead of trusting one chain.

3. Previous approaches

Greedy decoding and simple chain-of-thought prompting used one deterministic path; majority voting over answers was not combined with diverse sampled rationales.

4. Core contribution

Introduced self-consistency: sample multiple diverse reasoning chains at temperature, then take the majority answer across the sampled paths.

5. Mathematical formulation

For each input sample k chains y_1..y_k from the model, extract final answers a_1..a_k, and return argmax_a count(a_i = a).

6. Methodology

Replace greedy decoding with temperature sampling and marginalize over reasoning paths by voting; compare sample counts and temperatures.

7. Architecture

Any decoder-only language model with chain-of-thought prompting; no architectural change.

8. Experimental setup

Arithmetic and commonsense reasoning benchmarks.

9. Datasets

GSM8K, SVAMP, AQuA, CommonsenseQA, OpenBookQA, ARC.

10. Results

Substantial accuracy gains over greedy chain-of-thought, sometimes matching much larger models, with gains growing with the number of samples.

11. Limitations

Multiply inference cost by the number of samples; majority voting fails when most sampled paths share the same error; needs answer extraction.

12. Critical analysis

A simple inference-time compute scaling trick that anticipates later test-time compute scaling approaches.

13. Implementation tasks

  • 1.Implement sampled chain-of-thought with majority voting and compare with greedy decoding.
  • 2.Sweep sample count and temperature to measure accuracy versus cost.
  • 3.Analyze cases where all sampled chains agree but are wrong.

14. Follow-up work

  • 1.Chain-of-Thought Prompting Elicits Reasoning in Large Language Models (Wei et al., 2022)
  • 2.Tree of Thoughts: Deliberate Problem Solving with Large Language Models (Yao et al., 2023)

15. Open research questions

  • 1.How should sample budget be allocated across hard and easy problems?
  • 2.Can voting be replaced by a learned verifier that scores reasoning paths?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.