Concept Architecture
Self-Consistency (AI) in Evidence Extraction and Screening
Self-consistency improves the answers a large language model gives to reasoning questions by asking the same question several times and accepting the answer that recurs most often. Each run writes out its own chain of worked steps, so a slip in one chain tends to produce an answer that the other chains do not share. Wang and colleagues introduced the method in 2022 as a replacement for the single greedy answer used in Chain-of-Thought Prompting, and NICE ECD20 (2026), the NICE framework on AI methods for evidence, names it among the techniques that may help with data extraction and with reducing hallucinations. For a health economist the appeal lies in numbers that must be derived before they can enter a model, such as a safety population or a subgroup total, and in the agreement rate across runs, which gives a rough signal of which extracted items a reviewer should settle first.
How sampling and voting replace a single answer
Wang and colleagues set out the method in three steps. The model is first prompted with worked examples written in chain-of-thought form. Instead of greedy decoding, which takes the most likely next token at each step, the analyst then samples many outputs with settings that let the reasoning vary, parses the final answer from each output and keeps the answer that appears most often. The vote is taken over answers, not over reasoning paths, and can be written as
where is the selected answer, is the number of sampled outputs, is the final answer parsed from the -th output, ranges over the distinct answers produced, and equals 1 when the condition inside it holds and 0 otherwise.
The authors also tried weighting each vote by the probability of the model producing that output. Length-normalised weights gave almost the same accuracy as a plain count, because the model gave its different outputs similar probabilities, so a simple count is the usual choice. The share of outputs that agree with the selected answer is a useful by-product,
where is the agreement share, between 0 and 1, and the other symbols are as defined above. On the GSM8K maths word problems Wang and colleagues found this agreement highly correlated with accuracy, and suggested that low agreement can mark answers in which the model has low confidence. The agreement share is therefore a cheap way to sort extracted items by uncertainty before human checking.
What the original experiments showed
The first paper reported large gains on arithmetic problems. With PaLM 540B, accuracy on GSM8K rose from 56.5% with chain-of-thought prompting and greedy decoding to 74.4% with self-consistency, a gain of 17.9 percentage points, averaged over 10 runs of 40 sampled outputs each. Commonsense tasks gained less, for example 3.9 points on ARC-challenge with a GPT-3 model, and the authors summarised the arithmetic gains as about 3 to 6 points for the 20 billion parameter UL2 model against 9 to 23 points for LaMDA 137B and GPT-3.
Accuracy rose with the number of sampled paths, up to the 40 tested, although the authors noted that performance usually levels off quickly and that 5 or 10 paths capture most of the gain. Diversity among the paths was the active ingredient. Self-consistency beat sample-and-rank, which keeps the single most probable sampled output, and beat beam search, whose outputs are less varied, as well as ensembles built by reordering the prompt examples. It still raised accuracy when the worked examples in the prompt contained deliberate numerical mistakes, and with the zero-shot form of chain of thought it lifted GSM8K accuracy for PaLM 540B from 43.0% to 69.2%.
Where NICE ECD20 places self-consistency
NICE ECD20 (2026) gives self-consistency a glossary entry under prompt engineering, as a way to reduce invented or wrong answers by making the model reason more carefully. Its account matches the voting procedure above and adds that a reasoning path is then picked at random from the runs that gave the winning answer. The glossary also remarks that some large language models apply the method automatically, though an analyst can still run it by hand, and the framework's introduction lists it alongside retrieval-augmented generation as a technique that can reduce hallucinations.
The most practical passage is in the chapter on AI methods for evidence synthesis. For data extraction in a systematic review, ECD20 notes that some items need reasoning, giving the example of calculating total or subgroup sample sizes, and suggests that chain-of-thought prompting or self-consistency could help with such items. The same chapter does not currently recommend fully automated extraction and accepts AI support and semi-automation only when every AI-extracted item is verified against the primary source.
For a health economic model, ECD20 limits AI to a support role under close human oversight, so an answer chosen by vote remains a suggestion that is not substituted automatically into the model. For stochastic tools such as generative language models, the framework's principles ask for evidence of stable performance across repeated runs and for reporting of factors that influence reproducibility, including prompts and hyperparameters. Self-consistency depends on deliberate variation between runs, so the number of samples, the sampling settings and the voting rule belong in the report.
Fixed answers, free text and related checks
The original method needs answers that can be compared exactly, such as a number or a category. Wang and colleagues stated that it applies only where the final answer comes from a fixed answer set, and suggested it could extend to open text if a good measure of agreement between generations were defined. Many evidence tasks meet the condition, such as an include or exclude decision in screening or an extracted sample size, although parsing still has to treat "351 patients" and "351" as the same answer.
Chen and colleagues proposed universal self-consistency for free text, in which the model is given all the sampled responses in one prompt and asked to choose the most consistent one. It matched standard self-consistency on maths benchmarks and improved long-document summarisation, where a plain vote cannot be taken. The number of samples it can compare is bounded by the context length of the model, and the authors noted a weakness shared with the original method, that the most consistent response is not necessarily the best one. Because the model judges its own outputs, this variant borders on LLM-as-a-Judge.
Manakul and colleagues turned the idea round in SelfCheckGPT, which compares each sentence of a response with further sampled responses on the reasoning that hallucinated facts tend to diverge across samples while known facts recur. Hallucination (AI) covers the wider problem these checks address.
Worked example with extracted inputs and a screening vote
All numbers in this example are illustrative. A team building a cost-effectiveness analysis uses a language model to suggest values for derived items from trial reports. Each item is asked five times, and any item with agreement below 0.6, or with a tie, is flagged for the reviewer. The reviewer also extracts every item independently from the trial report and settles any disagreement with the voted value against the source, the semi-automation route that ECD20 accepts.
1. An item with clear agreement. For the safety population of a three-arm trial, the five samples return 351, 351, 363, 351 and 351. The answer 351 receives 4 votes and 363 receives 1, so the selected answer is 351 and the agreement share is 4 / 5 = 0.8. The dissenting value of 363 is the randomised total, which points to the likely error in that chain.
2. An item with a split vote. For the number of patients with a grade 3 or worse adverse event, the samples return 27, 31, 27, 29 and 31. The answers 27 and 31 each receive 2 votes and 29 receives 1, so the vote is tied and the agreement share is 2 / 5 = 0.4. The rule flags this item, and no voted value is proposed for it. When more than two distinct answers occur, an odd number of samples does not prevent ties.
3. The gain under an independence assumption. For a two-way decision such as include or exclude in screening, suppose each sample is correct with probability 0.7 and the samples are independent, so the number of correct samples follows a binomial distribution. With five samples the majority is correct when at least three samples are correct, so
where is the probability that the majority vote is correct, is the probability that one sample is correct, is the number of correct samples and is the number of ways of choosing samples out of 5. With equal to 0.7 the three terms are 10 × 0.343 × 0.09 = 0.3087, then 5 × 0.2401 × 0.3 = 0.36015 and 1 × 0.16807 = 0.16807. Their sum is 0.3087 + 0.36015 + 0.16807 = 0.83692, or about 0.84 against 0.7 for a single sample.
4. Why the real gain is smaller. The samples come from one model reading the same document, so a misleading table or an ambiguous abstract can push several samples towards the same wrong answer. If the five samples always agreed with one another, the vote would be no more accurate than a single sample, at 0.7. The real gain therefore has to be measured on development data, and for screening the sensitivity of the voted decision is the figure to test, since a missed relevant study is the costly error. A rule that keeps a record when any one or two of the five samples vote include catches at least as many relevant studies as a plain majority, at the cost of more records passed to human screening.
5. The cost and the result. With 40 trials and 10 derived items per trial, one answer per item needs 40 × 10 = 400 model calls, and five samples per item need 400 × 5 = 2,000. In the two items shown, five times the model cost bought one outvoted error and one item flagged as uncertain. Both items are still compared with the reviewer's independent extraction, and the agreement share decides only the order in which disagreements are adjudicated.
Assumptions, costs and common misreadings
The method assumes that a wrong chain of reasoning usually lands on a different answer from a right one, so that errors scatter while correct answers cluster. That requires real variation between samples, which is why Wang and colleagues drew them by temperature sampling, at temperatures of 0.5 or 0.7, in place of greedy decoding. These sampling settings are hyperparameters and should be fixed and reported, and cost grows in direct proportion to the number of samples.
A high agreement share signals confidence without measuring the probability of being right, because shared errors produce confident wrong answers. Any threshold for sending items to a reviewer therefore needs testing on held-out data, in line with ECD20's advice to optimise prompt templates on held-out development data. The reasoning path returned with the selected answer is not an account of how it was reached either. ECD20 warns that a rationale the model writes after the event does not on its own make an output explainable, and Wang and colleagues observed sampled paths containing inaccurate facts even when the final answer was right.
Self-consistency also differs from the response stability checks in ECD20, which repeat a task to see whether conclusions hold, and a voting pipeline can still return a different majority on a rerun when agreement is low. The method sits within Prompt Engineering and builds directly on Chain-of-Thought Prompting.
Sources
- Chen X, Aksitov R, Alon U, Ren J, Xiao K, Yin P, et al. Universal self-consistency for large language model generation. arXiv preprint 2311.17311. 2023. https://arxiv.org/abs/2311.17311
- Manakul P, Liusie A, Gales MJF. SelfCheckGPT: zero-resource black-box hallucination detection for generative large language models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP 2023). 2023. https://arxiv.org/abs/2303.08896
- National Institute for Health and Care Excellence. AI methods for evidence framework (ECD20). NICE; published 9 November 2026. Chapters on introduction to AI in NICE decision making, principles for using AI in evidence activities, AI methods for evidence synthesis and AI methods for health economic evaluation, and Appendix A glossary. https://www.nice.org.uk/corporate/ecd20
- Wang X, Wei J, Schuurmans D, Le Q, Chi E, Narang S, et al. Self-consistency improves chain of thought reasoning in language models. International Conference on Learning Representations (ICLR 2023). 2023. https://arxiv.org/abs/2203.11171
Related Concepts (4)
Library
Publications
1
Optimizing Artificial Intelligence in Health Economics and Outcomes Research: Considerations on Reproducibility, Prompt Strategy, and Error Impact in Automated Data Extraction — Jin H, Vol. 29, No. 7, pp. 1320-1321 ed., 2026 (Value in Health)
Short Value in Health letter on reproducibility, prompt choice and the impact of errors when LLMs extract HEOR data.
Journal ArticleView source →
Frequently Asked Questions (6)
What is self-consistency in AI?
Self-consistency is a prompting method that samples several reasoning paths from a language model and keeps the most common answer, aiding data extraction.
Source: Wang et al. 2023
How does self-consistency choose a final answer from several large language model outputs?
Self-consistency prompts a large language model with worked chain-of-thought examples and then samples many outputs with settings that let the reasoning vary, in place of greedy decoding, which takes the most likely next token at each step. The final answer is parsed from each output and the answer that appears most often is selected, so the vote is taken over answers and not over reasoning paths. Wang and colleagues also tried weighting each vote by the probability of the output, but a plain count gave almost the same accuracy and is the usual choice. The share of outputs that agree with the winning answer gives a rough signal of the model's confidence.
Source: Wang et al. 2023
How can self-consistency help with data extraction for a systematic review or a health economic model?
Some extracted items have to be derived before they can be used, such as a total or subgroup sample size or a safety population, and self-consistency asks the model the same question several times and keeps the most frequent answer. The agreement share across runs can then set the order of human review, with items showing low agreement or a tied vote handled first. NICE ECD20 suggests the method could help with extraction items that need reasoning. A reviewer still extracts every item independently and settles any disagreement against the primary source, and a voted answer is never substituted automatically into an economic model.
Source: NICE ECD20 (2026)
What does NICE ECD20 say about self-consistency in evidence synthesis and health economic evaluation?
NICE ECD20 describes self-consistency in its glossary under prompt engineering, as a way to reduce invented or wrong answers by making the model reason more carefully, with a reasoning path then picked at random from the runs that gave the winning answer. Its evidence synthesis chapter names the method as a possible help with extraction items that need reasoning, but it does not currently recommend fully automated extraction. For health economic models the framework confines AI to a support role under close human oversight. Its principles also ask for stable performance across repeated runs and for reporting of prompts and hyperparameters, so the number of samples, the sampling settings and the voting rule belong in the report.
Source: NICE ECD20 (2026)
How does self-consistency differ from chain-of-thought prompting with a single answer?
Chain-of-thought prompting asks a large language model to write out worked steps before its answer, and in its original form it takes the single greedy output. Self-consistency keeps the chain-of-thought prompt but samples many reasoning paths and accepts the answer that recurs most often, on the view that a slip in one chain tends to give an answer the other chains do not share. With PaLM 540B, Wang and colleagues reported GSM8K accuracy rising from 56.5% with chain-of-thought prompting and greedy decoding to 74.4% with self-consistency. The extra accuracy comes at a model cost that rises in direct proportion to the number of samples.
Source: Wang et al. 2023
Why is a high agreement share from self-consistency not enough to show that an extracted answer is right?
The agreement share counts how many sampled outputs match the selected answer, which signals the model's confidence without measuring the probability of being right. Samples from one model reading the same document can share an error, for example when a table is misleading, so several of them may land on the same wrong value. Any threshold for sending items to a reviewer therefore needs testing on held-out development data. The reasoning path returned with the voted answer is not a reliable account of how it was reached either, since Wang and colleagues observed sampled paths containing inaccurate facts even when the final answer was correct.
Source: Wang et al. 2023
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 10 Nov 2026
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/self-consistency-ai
- Term code
- HS-HP-DH-106
Stable URI · Machine-readable · Resolvable · CC BY 4.0
