Apply to my task
arXiv:2510.04048 ★ 73 Oct 5, 2025

Voting Ensembles: Making LLMs More Reliable by Voting Across Multiple Answers

Key result

The paradox: One question → 50 answers → fewer hallucinations. An LLM generates probabilistically, and on deceptive questions the spread of answers gives away the model's uncertainty. Voting Ensembles let you tell confident answers apart from hallucinations – critical for legal, medical and financial decisions. The model answers N times independently, and you count how often each answer appears. If the dominant answer hits the threshold k (e.g., 40 out of 50) – you accept it. If not – the system says 'no consensus' instead of confidently hallucinating. Trust rose from 61% to 88% on arithmetic and from 70% to 93% on clinical data.

01

TL;DR

Voting Ensembles is a technique where the model answers a question several times independently, and then the answer is chosen by vote. If enough answers agree (the voting threshold k is reached), that counts as consensus. If there's no consensus, the system returns "no confident answer" instead of a hallucination.

Models often give different answers to the same question because of the question's deceptiveness (δ) — when a wrong answer looks plausible — and bewilderment (η) — when the question forces the model to guess. The researchers showed that the stricter the agreement threshold (as k approaches n), the fewer answers you get, but the more you can trust them. With a soft threshold (k=1, a simple plurality) you get the most answers but lower reliability.

Here's how it works: instead of one request, you make 5-50 independent ones. You count how often each answer appears. If the dominant answer clears the threshold (say, 80% agreement with n=50, k=40), you accept it. If not, you honestly admit the uncertainty. On arithmetic, trust rose from 61% to 88%; on clinical data, from 70% to 93%, at the cost of only 20-30% of coverage (the share of questions that get an answer).


Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.

02

Method Blueprint

INDEPENDENT REQUESTS:
Same question → Model (attempt 1) → Answer A
              → Model (attempt 2) → Answer A
              → Model (attempt 3) → Answer B
              ...
              → Model (attempt n) → Answer A

COUNT AND DECIDE:
Frequency of A: 35 out of 50
Frequency of B: 10 out of 50
Other: 5 out of 50

If k=40 (80% threshold) → Answer A did NOT reach the threshold → "No consensus"
If k=25 (50% threshold) → Answer A reached the threshold → Final answer: A

You can do all of this by hand in a chat, or ask the model to simulate multiple attempts.


03

Example in Action

Task: You're a lawyer checking whether a client can terminate a lease early without a penalty. Mistakes are expensive — bad advice will lead to a lawsuit.

Prompt:

Question: Can a tenant terminate a commercial lease early
without a penalty if the landlord has not fixed a roof leak within 2 months
of written notice?

Give me 10 independent legal opinions. Each opinion is a separate line of reasoning,
as if you were a different lawyer each time. Don't copy previous answers. After each opinion, state:
- Conclusion: YES / NO / UNCLEAR
- The legal basis (lease clauses, state landlord-tenant law, case law doctrines)

At the end, count:
- How many times the answer was "YES"
- How many times the answer was "NO"
- How many times the answer was "UNCLEAR"

If 8 out of 10 or more agree on one conclusion, that's the consensus answer.
If fewer, admit that the question is ambiguous.

Result:

The model returns 10 blocks of reasoning, each citing a specific legal basis. At the end comes the tally: for example, 9 out of 10 opinions agreed on "YES, the tenant can terminate under the constructive eviction doctrine and the landlord's duty to repair." That's high confidence — you can use it. If the split is 5-3-2 (YES-NO-UNCLEAR), there's no consensus — you need to talk to a live attorney or get more documents.


04

Why It Works

An LLM generates text probabilistically — a single question can have many possible continuations. If the question is deceptive (a wrong answer looks convincing) or bewildering (many more-or-less plausible options), the model will give different answers on different attempts.

At the same time, the model is good at generating many independent variants and spotting dominant patterns. Voting ensembles exploit this: if the right answer is obvious to the model, it shows up in most attempts. If the model isn't sure, the answers scatter, and the system honestly says "no consensus" instead of confidently hallucinating.

Control knobs:

  1. Number of attempts (n): More attempts → a more accurate read on the spread. For simple questions 5-10 is enough; for critical ones, 20-50.
  2. Agreement threshold (k/n):
    • Soft threshold (k=1, simple plurality) → maximum coverage, hallucination risk remains
    • Medium threshold (k=0.6n, 60% agreement) → a balance of coverage and trust
    • Strict threshold (k=0.8n, 80%+ agreement) → few answers, but almost no hallucinations
  3. Model temperature: Higher temperature → more variability in the answers → easier to tell "confident" questions (consensus at any temperature) from "uncertain" ones (the spread grows).

05

Prompt Template

Question: {your_question}

Give me {n} independent answers to this question. Each answer is a separate line of reasoning,
as if you were thinking about the question from scratch each time. Don't copy previous answers.

Format for each answer:
Attempt X: [your answer]

At the end, count how often each unique answer appears.

If {k} or more answers match, that's the consensus answer — give it as the final one.
If no answer got {k} votes, admit that the question is ambiguous and there's no consensus.

Final answer: [...]
Confidence: High / No consensus

Fill in:

  • {your_question} — your question
  • {n} — number of attempts (5-50, more for critical questions)
  • {k} — agreement threshold (for high trust use 0.8n, for balance — 0.6n)

🚀 Quick start — paste into the chat:

Here's the Voting Ensembles technique for making answers more reliable.
Adapt the template to my task: [describe your task — e.g., "check whether a
medical diagnosis is correct", "choose between two business strategies", "solve a hard
math problem"].

Ask me questions to set up:
- How many attempts are needed (n)?
- What agreement threshold (k)?
- Do I need an explanation in each attempt or just the final answer?

[paste the template above]

The LLM will ask how critical the task is (to pick n and k) and what format works best for the answers — because different tasks call for different combinations: legal analysis needs a strict threshold (k=0.8n) and detailed explanations, while a math problem can get by with k=0.5n and short answers. The model will take the voting pattern from the template and adapt it to your task.


06

Limitations

⚠️ Tokens: n attempts = n times more tokens. With n=50, a critical question will eat a big chunk of your budget. Use a high n only for questions where the cost of a mistake is high.

⚠️ Time: Multiple requests take time. If you need an instant answer, this method isn't for you.

⚠️ Doesn't fix fundamental ignorance: If the model doesn't know a fact (cutoff date, specific information outside its training), every attempt will hallucinate. Voting Ensembles help you detect uncertainty, but they don't add knowledge. For unknown facts, use web search.

⚠️ Systematic errors: If all the models were trained on the same data with the same error, the consensus will land on the wrong answer. The method helps against random hallucinations, not against systematic bias.


07

How They Tested It

The team built a theoretical framework for questions with discrete answers. Each question is characterized by two parameters: δ (how deceptive the question is — is there an attractive wrong answer) and η (how bewildering the question is — how many random options there are). From this model they derived three theorems:

  1. Accuracy is maximized at k=1 — the softest threshold always gives the most correct answers
  2. Yield (coverage) is also maximized at k=1 — naturally, since with k=1 there's almost always a consensus
  3. For large ensembles (n→∞), final accuracy tends to 100% if δ<0.5, to 0% if δ>0.5, and to 50% if δ=0.5

This means: if the right answer is even slightly more popular with the model than the wrong one, in the limit you get the right answer. If the wrong one is more popular, all the attempts converge on it.

The theory was tested on Llama3-70B-instruct and Llama3-8B-instruct:

  • Synthetic arithmetic problems (multiplying multi-digit numbers, expressions with several operations)
  • Real clinical data (500 echocardiograms — extracting ejection fraction, stenosis severity, regurgitation)

The results confirmed the theory: for arithmetic, raising k from 1 to 40 (out of n=50) lifted trust from 61% to 88% on multiplication, and from 48% to 65% on complex expressions. For clinical data — from 70% to 93% on mitral regurgitation. Meanwhile yield (coverage) predictably fell — from 90%+ to 60-70%, because a strict threshold filters out questions without a clear consensus.

The surprise: the method works even with chain-of-thought prompting. The worry was that CoT would add determinism and kill the variability, but no — CoT raised baseline accuracy (the model solves harder problems), and voting ensembles on top of CoT still boosted trust.

The practical takeaway: if you need maximum coverage (every question gets an answer), use k=1 (simple plurality). If you need maximum reliability and are willing to sacrifice coverage, raise k to 0.7-0.9 of n. The sweet spot is k≈0.6n: most questions get an answer, but the hallucinations get filtered out.


08

Resources

Increasing LLM Response Trustworthiness Using Voting Ensembles
Shir Goldfinger (University of Pennsylvania), Aparna Nair-Kanneganti (Harvard University), Trevor J. Chan (University of Pennsylvania), Emily Mackay, Brian Anthony (MIT), Alison Pouch (University of Pennsylvania)


Research digest

Key result

The paradox: One question → 50 answers → fewer hallucinations. An LLM generates probabilistically, and on deceptive questions the spread of answers gives away the model's uncertainty. Voting Ensembles let you tell confident answers apart from hallucinations – critical for legal, medical and financial decisions. The model answers N times independently, and you count how often each answer appears. If the dominant answer hits the threshold k (e.g., 40 out of 50) – you accept it. If not – the system says 'no consensus' instead of confidently hallucinating. Trust rose from 61% to 88% on arithmetic and from 70% to 93% on clinical data.

Principle

Not one request – a series of independent attempts. The model as a jury: each juror thinks alone, then they vote. You ask the question 5-50 times with identical wording. In each attempt the model generates independently – as if seeing the question for the first time. You collect the answers and count frequencies. You set an agreement threshold k/n – how many of the N answers must match. A strict threshold (k=0.8n) → few answers, but 90%+ trust. A soft threshold (k=0.5n) → more coverage, but hallucination risk remains. If the dominant answer clears the threshold – that's the final answer. If the answers scatter – you honestly admit the uncertainty.

Why it works

An LLM generates text probabilistically – at every step it picks a token from a probability distribution. If the question is deceptive (a wrong answer looks convincing) or bewildering, the model will take different generation paths on different attempts. On questions it's confident about, the model converges on one answer in 80-90% of attempts; on uncertain ones, you get a 30-40-30 split. This property of stochastic generation becomes a reliability indicator. The researchers showed: the stricter the threshold k, the higher the trust – at k=0.8n trust jumps from 70% to 93% on medical data. The price is losing 20-30% of coverage (the share of questions that get an answer), but for critical decisions that's an honest trade-off: better to say 'I don't know' than to hallucinate a diagnosis.

When to apply

Critical decisions where mistakes are costly → legal opinions (terminating a contract, tenant rights under state law), medical diagnoses (checking symptoms before seeing a doctor), financial forecasts (assessing investment risks). Especially when the question is ambiguous – many plausible options, no single correct answer, expert judgment required. NOT a fit for quick answers (multiple requests take time), a limited token budget (N attempts = N times more tokens), or questions beyond the model's cutoff date (the consensus will land on a hallucination if the model doesn't know the fact).

Mini recipe

1. Gauge how critical it is: A simple task – 5-10 attempts; a critical one (medicine/law) – 20-50. 2. Ask the question N times: Same wording, and ask the model to generate independently – 'Give me 10 independent answers, each as if you're thinking about the question from scratch'. 3. Set the agreement threshold k: For high trust, k=0.8n (80% of answers must match); for a balance of coverage and reliability, k=0.6n (60%). 4. Count the frequencies: Ask the model to tally at the end – 'How many times answer A, how many times B, how many times C'. 5. Check for consensus: If the dominant answer is ≥ k – accept it as final. If not – 'No consensus, the question is ambiguous'.

Examples

[BAD]: `Can a tenant terminate a lease early without a penalty if the landlord hasn't fixed a leak?` – a single request; the model may hallucinate a confident answer to a tricky legal question. [GOOD]: `Question: Can a tenant terminate a commercial lease early without a penalty if the landlord has not fixed a roof leak within 2 months of written notice? Give me 10 independent legal opinions. Each opinion is a separate line of reasoning, as if you were a different lawyer each time. Don't copy previous answers. After each opinion, state: Conclusion (YES/NO/UNCLEAR) and the legal basis. At the end, count: how many YES, NO, UNCLEAR. If 8 out of 10 or more agree – that's the consensus answer. If fewer – admit it's ambiguous.` – Result: 9 out of 10 opinions say 'YES, under the constructive eviction doctrine and the landlord's duty to repair' = high confidence. A 5-3-2 split = no consensus, you need to talk to a live attorney.

In plain words

The problem is that models are pathological liars. When an LLM doesn't know the answer, it doesn't apologize — it makes stuff up with a straight face, because its job is simply to generate likely-sounding text. Voting Ensembles breaks that mechanic over its knee: we make the model answer the same question, say, ten times in a row, and then check whether the stories match. If seven out of ten answers are the same, that's a consensus you can trust; if you get a new version every time, the model is just hallucinating and it's time to shut it up.

It's like going to the doctor with a rare ailment, but instead of one specialist you walk into a room with ten of his clones. If eight of them say "it's an allergy," you head to the pharmacy. But if three say "flu," two say "fracture," and the rest say nothing at all, you realize none of them has a clue. That's the whole trick: the system would rather say "I'm not sure" than hand you dangerous nonsense that lands you in court or in the ER.

Technically it all hinges on the voting threshold k. You decide how strict the filter is: set the bar at 90% agreement and you get crystal-clean data, but the system will answer "no comment" to a lot of hard questions. The method was tested on GSM8K (math) and StrategyQA (logic), and the results confirmed it: when you make the model vote against itself, hallucinations drop several-fold. It works because there's usually one right path to a solution, but endless ways to get it wrong — and they rarely match.

Although the experiments used logic puzzles, the principle of ensemble voting is a lifesaver for any business where mistakes cost more than zero. Lawyers reviewing contracts, doctors analyzing symptoms, programmers writing critical code — none of them can trust a single "opinion" from a model. Voting Ensembles turns a flaky AI into a reliable tool that knows when to hit the brakes if it starts skidding on the curves.

Bottom line: the era of blindly trusting the first answer is over. Instead of trying to train a model to never lie, it's easier to make it double-check itself through the hive mind of its clones. Either we get a rock-solid consensus, or an honest admission that it's out of its depth. That's the only way to move LLMs out of the "fun chatbot" category and into the category of tools you're not afraid to be accountable for.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on Voting Ensembles: Making LLMs More Reliable by Voting Across Multiple Answers arXiv:2510.04048

Sign in to apply this study New accounts get 50 free credits.