Papers › SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoning

SelfCheck: Using LLMs to Zero-Shot Check Their Own Step-by-Step Reasoning

1 Aug 2023arXiv:2308.00436archive 2025-07-28

Ning Miao, Yee Whye Teh, Tom Rainforth

The recent progress in large language models (LLMs), especially the invention of chain-of-thought prompting, has made it possible to automatically answer questions by stepwise reasoning. However, when faced with more complicated problems that require non-linear thinking, even the strongest LLMs make mistakes. To address this, we explore whether LLMs are able to recognize errors in their own step-by-step reasoning, without resorting to external resources. To this end, we propose SelfCheck, a general-purpose zero-shot verification schema for recognizing such errors. We then use the results of these checks to improve question-answering performance by conducting weighted voting on multiple solutions to the question. We test SelfCheck on three datasets (GSM8K, MathQA, and MATH) and find that it successfully recognizes errors and, in turn, increases final answer accuracies.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.00436")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ningmiao/selfcheck officialmentioned in paper report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14ran
2unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ningmiao/selfcheck. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_exact_answer ningmiao/selfcheck/src/arithmatic_problem_utils.py official repository ran fingerprinted no licence file found · pointer only · c9d0417e3e64a048 · report
get_last_expression ningmiao/selfcheck/src/str2arithmatic.py official repository ran fingerprinted no licence file found · pointer only · 3c73c002559c8c87 · report
get_response_chat ningmiao/selfcheck/src/gpt.py official repository ran no licence file found · pointer only · 3cad79c9bc67cca1 · report
get_response_text ningmiao/selfcheck/src/gpt.py official repository ran no licence file found · pointer only · 026ecf76275bc182 · report
get_string_between_bracket ningmiao/selfcheck/src/str2arithmatic.py official repository ran no licence file found · pointer only · f5e4834f5d25c4d8 · report
get_unit ningmiao/selfcheck/src/str2arithmatic.py official repository ran fingerprinted no licence file found · pointer only · 31b1e5e99c4d8eb7 · report
get_weight_1 ningmiao/selfcheck/script/evaluate-checking.py official repository ran fingerprinted no licence file found · pointer only · 8bd18a209a72b613 · report
get_weight_2 ningmiao/selfcheck/script/evaluate-checking.py official repository ran fingerprinted no licence file found · pointer only · 45cfa55415870fb6 · report
load_GSM8K ningmiao/selfcheck/src/dataset.py official repository ran no licence file found · pointer only · 5fca40e8cb3dace0 · report
load_MathQA ningmiao/selfcheck/src/dataset.py official repository ran no licence file found · pointer only · 8e85162d2f0494e1 · report
load_dataset ningmiao/selfcheck/src/dataset.py official repository ran no licence file found · pointer only · 136ff6959b00109f · report
transform2verifierformat ningmiao/selfcheck/src/utils.py official repository ran fingerprinted no licence file found · pointer only · 553f04e6b7bed21c · report
verify_format ningmiao/selfcheck/src/rule.py official repository ran fingerprinted no licence file found · pointer only · 50f437e243ace864 · report
verify_middle ningmiao/selfcheck/src/rule.py official repository ran no licence file found · pointer only · 657a47aed803ffa4 · report
check ningmiao/selfcheck/src/multiprocess.py official repository unverified no licence file found · pointer only · 82c1d9826986afae · report
get_predicted_dict ningmiao/selfcheck/script/evaluate-checking.py official repository unverified no licence file found · pointer only · cd995ccec25fdd48 · report

Tasks

GSM8KMathQuestion Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections