[Paper Review] Universal Self-Consistency for Large Language Model Generation
USC uses the LLM itself to select the most consistent response among multiple candidates, enabling self-consistency for free-form generation tasks and matching or approaching standard self-consistency where applicable.
Self-consistency with chain-of-thought prompting (CoT) has demonstrated remarkable performance gains on various challenging tasks, by utilizing multiple reasoning paths sampled from large language models (LLMs). However, self-consistency relies on the answer extraction process to aggregate multiple solutions, which is not applicable to free-form answers. In this work, we propose Universal Self-Consistency (USC), which leverages LLMs themselves to select the most consistent answer among multiple candidates. We evaluate USC on a variety of benchmarks, including mathematical reasoning, code generation, long-context summarization, and open-ended question answering. On open-ended generation tasks where the original self-consistency method is not applicable, USC effectively utilizes multiple samples and improves the performance. For mathematical reasoning, USC matches the standard self-consistency performance without requiring the answer formats to be similar. Finally, without access to execution results, USC also matches the execution-based voting performance on code generation.
Motivation & Objective
- Extend self-consistency to free-form generation tasks by removing the need for exact-match answer extraction.
- Demonstrate that LLM-based consistency evaluation can select high-quality outputs across diverse tasks.
- Show that USC matches or closely approaches standard self-consistency on applicable tasks without requiring execution traces.
Proposed method
- Sample multiple responses from an LLM.
- Concatenate the samples and prompt the LLM to select the most consistent one as the final answer.
- Apply USC across mathematical reasoning, code generation, long-context summarization, and open-ended QA.
- Compare USC to greedy, random, and standard self-consistency (SC) where applicable.
- Evaluate using task-specific metrics (e.g., GSM8K, MATH, BIRD-SQL, ARCADE, GovReport, SummScreen, TruthfulQA).
- Explore robustness to sample size and response ordering, and perform ablations on the response selection criterion.

Experimental results
Research questions
- RQ1Can a single LLM-based selection criterion reliably choose the most consistent output across varied formats (numeric, open-ended lists, code, and summaries)?
- RQ2Does universal self-consistency match or approach the performance of standard self-consistency on tasks where exact-match answers are available?
- RQ3How does USC perform on free-form generation tasks where SC is not applicable, such as summarization and open-ended QA?
- RQ4What is the impact of the number of candidate responses and response ordering on USC performance?
Key findings
- USC generally improves over greedy decoding and random sampling across tasks.
- On math benchmarks GSM8K and MATH, USC performance is comparable to standard SC and better than greedy/random, with PaLM 2-L achieving 90.2% and 37.4% on GSM8K and MATH respectively; gpt-3.5-turbo achieves 77.8% and 38.1%.
- On BIRD-SQL and ARCADE, USC matches execution-based SC performance without needing execution results (execution accuracy 45.5% vs 45.6% for SC on BIRD-SQL; ARCADE USC 30.1% vs SC 29.8/30.3% in fuzzy/strict contexts).
- For long-context summarization, USC improves ROUGE-1/2/Lsum and BERTScore over baselines in GovReport and SummScreen (GovReport: ROUGE-1 40.2, ROUGE-2 17.4, ROUGE-Lsum 35.1, BERTScore 62.8; SummScreen: ROUGE-1 31.7, ROUGE-2 7.8, ROUGE-Lsum 19.8, BERTScore 58.3).
- In TruthfulQA, USC yields the highest truthfulness and informativeness scores among baselines for both PaLM 2-L and gpt-3.5-turbo (e.g., PaLM 2-L GPT-judge 67.7 vs 62.1; GPT-info 99.0 vs 95.1).
- USC's selections align with SC outputs in many cases, but with differences in 8 vs 16 sample regimes, indicating USC is an effective but imperfect approximation of SC.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.