# Self-consistency (2022)

> Sample many chains of thought instead of one, and take the most common final answer.

Page: https://mralbu.github.io/ai-datasets/p/self-consistency

## Key facts

- Title: Self-Consistency Improves Chain of Thought Reasoning in Language Models
- Authors: Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed H. Chi, Sharan Narang, Aakanksha Chowdhery, Denny Zhou
- Venue: ICLR 2023
- Category: LLMs
- Paper: https://www.alphaxiv.org/abs/2203.11171

## Why it matters

It was the first clear sign that spending more computation at answer time buys accuracy, a trade-off reasoning models now make by design. "maj@k" became a standard way to report results, and the baseline every verifier and reward model had to beat.

## The idea

A hard problem can be reasoned through in several ways that reach the same answer, while mistakes tend to scatter. So instead of decoding a single chain of thought, sample dozens at a nonzero temperature and vote on the final answers. No training, verifier or extra labels.

## The result

With 40 sampled chains, GSM8K accuracy rose from 56.5% to 74.4% on PaLM-540B and from 60.1% to 78.0% on code-davinci-002, with gains on ARC and other arithmetic and commonsense benchmarks.

## The data

- [GSM8K (2021)](https://mralbu.github.io/ai-datasets/d/gsm8k.md): 8.5k grade-school math word problems with step-by-step solutions.
- [AI2 ARC (2018)](https://mralbu.github.io/ai-datasets/d/ai2-arc.md): 7,787 real science exam questions; the Challenge set is the 2,590 that simple methods fail.
- [HotpotQA (2018)](https://mralbu.github.io/ai-datasets/d/hotpotqa.md): 113,000 questions that need facts from two Wikipedia paragraphs, with the supporting sentences marked.

## Builds on

- [Chain of thought (2022)](https://mralbu.github.io/ai-datasets/p/chain-of-thought.md)

## Led to

- [Let's Verify Step by Step (2023)](https://mralbu.github.io/ai-datasets/p/lets-verify.md)

## Part of

- [Reasoning models](https://mralbu.github.io/ai-datasets/t/llm-reasoning.md) (step 3 of 5)
