SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoning
Paper · 2023 · Ning Miao, Yee Whye Teh and Tom Rainforth
Summary
Chain-of-thought prompting lets LLMs solve problems step by step, but long reasoning chains often contain at least one faulty step that ruins the final answer. Earlier verifiers depended on extra resources: fine-tuned checker models, external tools or databases, or hand-written few-shot exemplars tied to one domain. Miao, Teh and Rainforth propose SelfCheck, a zero-shot method in which the LLM audits its own solutions without additional data or training. Asking the model outright whether a step is correct performs poorly. SelfCheck therefore splits the check of each step into separate LLM calls: identify the step's goal, gather the context it depends on, re-derive the step independently, and compare the new version with the original. The per-step verdicts are combined into a confidence score for the whole solution. These scores serve as weights when voting among several sampled solutions. On GSM8K, MathQA and MATH, this weighted voting beats plain majority voting and other baselines. Because SelfCheck needs no fine-tuning or crafted examples, it can be applied directly to reasoning tasks in other domains.
Key points
- Verifying a step takes four phases: pulling out what the step aims to do, gathering the relevant information, producing the step anew, and comparing the results. The comparison stage labels the regenerated step as supporting, contradicting or unrelated to the original, which gives a step score of 1, −1 or 0.
- Step scores are aggregated into a solution-level confidence w ∈ [0, 1], which is used for weighted voting across multiple candidate solutions.
- Discarding low-confidence solutions lowers the share of incorrect ones by 9% on GSM8K, 22.8% on MathQA and 16.2% on MATH.
- Motivation: GPT-4 with CoT answers only 42.5% of MATH problems correctly. Directly asking an LLM to verify its answer approves it more than 90% of the time, whatever its actual correctness (finding by Ling et al., 2023).
- Code is released at github.com/NingMiao/SelfCheck. The approach is contrasted with Self-Verification (SV), Deductive Verification (DV) and trained verifiers such as a fine-tuned GPT-3 and a deberta-v3-large classifier.
Institutions
Fields, topics and concepts
📚 Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 worksComputer Vision and Pattern Recognition · 3,486 works
🧭 Topics 1Research subjects and languages the work is about.Reasoning · 1,685 works
Cite
Cite as Ning Miao, Yee Whye Teh and Tom Rainforth. 2023. SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoning. arXiv:2308.00436.
@misc{miao2023selfcheck,
title = {{SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoning}},
author = {Ning Miao, Yee Whye Teh and Tom Rainforth},
year = {2023},
doi = {10.48550/arxiv.2308.00436},
eprint = {2308.00436},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2308.00436}
}References
- Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Merouane Debbah, Etienne Goffinet, Daniel Heslow, Julien Launay, Quentin Malartic, Badreddine Noune, Baptiste Pannier, and Guilherme Penedo. Falcon-40B: an open large language model with state-of-the-art… find
- Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. MathQA: Towards interpretable math word problem solving with operation-based formalisms. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Lin…
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
- Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712, 2023.
- Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
- Google. Palm 2 technical report. arXiv preprint arXiv:2303.08774, 2023.
- Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. Deberta: Decoding-enhanced bert with disentangled attention. In International Conference on Learning Representations, 2020.
- Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021.
- Yifei Li, Zeqi Lin, Shizhuo Zhang, Qiang Fu, Bei Chen, Jian-Guang Lou, and Weizhu Chen. On the advance of making language models better reasoners. arXiv preprint arXiv:2206.02336, 2022. — [arXiv:2206.02336](https://arxiv.org/abs/2206.02336) find
- Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. arXiv preprint arXiv:2305.20050, 2023.
- Zhan Ling, Yunhao Fang, Xuanlin Li, Zhiao Huang, Mingu Lee, Roland Memisevic, and Hao Su. Deductive verification of chain-of-thought reasoning. arXiv preprint arXiv:2306.03872, 2023.
- Qing Lyu, Shreya Havaldar, Adam Stein, Li Zhang, Delip Rao, Eric Wong, Marianna Apidianaki, and Chris Callison-Burch. Faithful chain-of-thought reasoning. arXiv preprint arXiv:2301.13379, 2023.
- OpenAI. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
- Baolin Peng, Michel Galley, Pengcheng He, Hao Cheng, Yujia Xie, Yu Hu, Qiuyuan Huang, Lars Liden, Zhou Yu, Weizhu Chen, et al. Check your facts and try again: Improving large language models with external knowledge and automated feedback. arXiv preprint arXiv:2302.12813, 2023.
- Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
- Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations, 2022.
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824–24837, 2022.
- Yixuan Weng, Minjun Zhu, Shizhu He, Kang Liu, and Jun Zhao. Large language models are reasoners with self-verification. arXiv preprint arXiv:2212.09561, 2022.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/miao-2023-selfcheck-using-llms-zero-shot/