Problem · 26 studies

How to reduce LLM hallucinations with prompts

Hallucinations drop most when the prompt gives the model a legitimate way not to answer and when you keep only what repeats across runs, instead of trusting a single fluent reply. Rewarded abstention, named failure states, structured checks and extraction instead of rewriting all have measured effects.

Symptom: fluent answers with invented parts

The model states a law, a date, a citation or a statistic in the same calm tone it uses for things it actually knows. The error is not visible in the text: the author is real, the journal is real, the year is plausible, but the paper itself was never written. In agent workflows the same failure looks different: a tool returns an empty result, and the assistant reports an order status anyway.

Three variants are worth telling apart, because they need different fixes: invented facts from memory (closed-book questions), drift away from a document you supplied (summaries, contract questions), and invented data in multi-step agent runs.

Why it happens

The studies converge on one mechanism: the model is built to produce a plausible continuation, and nothing in a plain prompt rewards it for stopping.

  • Answering always pays. The authors of I-CALM argue that in training an answer of any kind was rewarded, while "I don't know" earned nothing, so a guess is the default.
  • The request itself triggers fabrication. In the citation audit, no model invented a single reference when references were not asked for; asking for them switched the model into generating citation-shaped strings.
  • Gaps get filled with what is typical. A single line asking to consider diversity raised invented patient demographics from 0.7% to 33% of answers, because the model pulls the usual co-occurring details into the case.
  • Silent empty data. When a tool reports success but hands back nothing, fabrication rates spike to 45%; when the tool returns an explicit error, the model stays honest.
  • The question gets swapped. Trace Inversion shows the model often answers a convenient rephrasing of your question with full confidence.

Fixes ranked by measured effect

The fixes below are ordered by the size of the effect the authors reported, on their own models and tasks. The metrics differ (accuracy of kept answers, F1 of error detection, fabrication rate), so treat the order as a rough guide, not a league table.

  1. Keep only what repeats. Real facts reproduce; inventions do not. In the citation study, references named by one model matched a real paper 16.5% of the time, those named by three or more models 95.6%; within one model, references that appeared in at least two of three runs matched 88.9%.
  2. Give the model a named failure state. A single line, retrieval_status: OK/FAILED, before the answer cut fabrication by 16x in tool-using agents.
  3. Ask the same thing two ways and compare. In Disagreement-Based Abstention a direct question is compared with a decomposed version; for Gemini Pro on Mintaka a correct answer was 50 times more likely when the two agreed, and the method beat "Are you sure?", "say I don't know" and self-consistency on F1 in 16 of 18 model-dataset pairs.
  4. Check in explicit steps, not with one question. HalluClean (plan, execute, verdict, fix) raised detection F1 from 33% to 68% on GPT-3.5; the task router line alone took summarization from 25% to 60%.
  5. Select, do not rewrite. For questions about a document, SafeLLM numbers the lines and asks only for line numbers, then rebuilds the answer from the source; the study reports up to 95% agreement on medical terms.
  6. Reward abstention in the prompt. With scoring rules (+1 correct, −1 wrong, +0.4 for "I don't know") plus honesty principles, I-CALM lowered false answers for GPT-5 mini from 52.3% to 34.2%.
  7. Make the model list what is missing. The evidence-sufficiency wrapper (data available, data missing, is it sufficient, answer) reduced confident ungrounded answers by 38% from structure alone.
  8. Ask for what is well anchored. Asking for "seminal and foundational" instead of "recent and influential" sources lowered the hallucination rate from 74.1% to 55.0% in the citation audit.
  9. Separate recall from formatting. REAP recalls facts in free text, slice by slice, and formats JSON in a later step; the paper reports more complete lists but gives no single number.

A combined prompt stack

The fixes stack because they act at different points: before the answer, inside it, and after it.

  1. Before: ground the input. Annotate raw values with what is normal and what is a fault, as in the epistemic stability study, and remove hidden premises ("find X if any exist, then rank them").
  2. Inside: put the I-CALM scoring rules and the line "Do not make assumptions without evidence" at the top, and for agents require the status line before any content.
  3. Inside, for documents: "Use ONLY the information from the provided text", plus line selection when wording must stay exact.
  4. After: run the four-step check on anything that will be published, and for citations or key figures repeat the request in fresh chats and keep the overlap.

Each layer costs tokens or extra requests, so match the stack to the cost of an error.

What does not work

  • "Are you sure?" The model usually says yes. In the disagreement study this baseline reached F1 of 0.51-0.76 on Llama-70B and Qwen-8B, against 0.88-0.94 for comparing two prompt modes.
  • Asking it to be more careful. An instruction to double-check the data cut deception by only a third.
  • Harsher penalties. Raising the error penalty to −100 barely changed behavior in I-CALM; the reward for abstaining is the lever.
  • Reasoning under impossible constraints. When GPT-4o had to return "journal articles only" where none fit, reasoning cut open violations from 75% to 13% but raised disguised metadata forgeries from 3% to 11%.
  • Too much caution. In the sufficiency study one model's accuracy fell from 75% to 17% once it started refusing almost everything; soften to "answer with an explicit caveat" if that happens.

Fixes ranked by measured effect

StudyLab scoreFindingEffect
Phantom Citations: Why LLMs Make Up Sources, and Two Reliability FiltersFeb 7, 2026 85 Across 69,557 citations from 10 models, references named by three or more models matched a real paper 95.6% of the time versus 16.5% for single-model references; 'seminal and foundational' framing cut hallucinations by 19.1 percentage points. Helps
Retrieval Status Flag: How to Make an AI Agent Honestly Say "It Didn't Work" Instead of Making Up an AnswerSep 13, 2026 93 A retrieval_status: OK/FAILED line before the answer cut fabrication by 16x in tool-using agents; silent empty tool data otherwise pushed fabrication to 45%. Helps
DBA (Disagreement-Based Abstention): catching unreliable answers when two prompts disagreeFeb 4, 2026 95 Comparing a direct and a decomposed prompt beat 'Are you sure?', 'say I don't know' and self-consistency on F1 in 16 of 18 model-dataset pairs. Helps
HalluClean: A Four-Step Hallucination Check for LLM AnswersNov 12, 2025 92 A four-step plan/execute/verdict/fix check raised hallucination-detection F1 from 33% to 68% on GPT-3.5. Helps
SafeLLM (Extraction over Rewriting): Line Numbering as a Shield Against Hallucinations When Working with DocumentsJun 11, 2026 85 Asking only for numbered source lines instead of a rewritten answer reached up to 95% agreement with correct answers on medical terms in clinical guidelines. Helps
I-CALM: A Prompt Frame That Cuts Hallucinations by Rewarding "I Don't Know"Apr 5, 2026 96 Scoring rules that reward 'I don't know' plus honesty principles lowered GPT-5 mini's false answers on PopQA from 52.3% to 34.2%. Helps
DeepNews Framework: High-Entropy Context Loading + Adversarial Prompting for Deep Long-Form WritingDec 10, 2025 86 In long-form analysis, loading 30,000+ characters of context raised the hallucination-free rate from 40% to 85%. Helps
Voting Ensembles: Making LLMs More Reliable by Voting Across Multiple AnswersOct 5, 2025 73 Accepting an answer only when a strict share of repeated samples agree raised trust from 70% to 93% on clinical data, at the cost of answering fewer questions. Helps
Evidence-Sufficiency Wrapper: how to make a model admit incomplete data instead of confidently hallucinatingJul 20, 2026 82 A data available / data missing / is it sufficient / answer structure reduced confident ungrounded answers by 38%, but one model over-refused and its accuracy fell from 75% to 17%. Mixed
Atomic Fact-Checking (AFC): breaking an answer into verifiable claims instead of explanationsMay 5, 2026 75 Splitting an answer into atomic claims linked to sources raised oncologists' trust from 26.9% to 66.5%; it changes how humans verify, not how often the model errs. Mixed
Reasoning Under Strict Constraints: When Thinking Makes a Model Distort FactsJan 4, 2026 84 Reasoning under impossible format constraints cut open violations from 75% to 13% for GPT-4o but raised disguised metadata forgeries from 3% to 11%. Hurts
Demographic Injection: A Line About Diversity Makes AI Invent a Patient's Race and Income That the Question Never MentionedAug 15, 2026 90 Adding a diversity instruction raised invented demographic details from 0.7% to 33% of answers across 47 models. Hurts

More studies on this technique:

Prompts to copy

Rewarded abstention (I-CALM)

You will be scored according to the following rules:
- Correct answer: +1
- Incorrect answer: -1
- "I don't know": +0.4

Principles:
1. Always tell the truth (do not lie or deceive).
2. Treat all topics with respect and humility.
3. Do not make assumptions without evidence.
4. Be responsible for your words and their consequences.
5. Honor reason, clarity, and understanding.

Question: {question}

Please respond as follows:
- If you know the answer, provide it along with your confidence score (between 0 and 1).
- If you are not sure, say "I don't know" first, then provide your best guess along with your confidence score (between 0 and 1).

From: I-CALM: A Prompt Frame That Cuts Hallucinations by Rewarding "I Don't Know"

Four-step hallucination check (HalluClean)

You are checking {content_type} for factual errors and hallucinations.

{CONTENT_TYPE} TO CHECK:
{text_to_check}

STEP 1: Draft a verification plan. Which facts need to be verified? What could the sources of error be?

STEP 2: Carry out the plan step by step. Check each fact and show your reasoning.

STEP 3: Draw a conclusion: does the text contain hallucinations? Yes or No.

STEP 4: If yes, rewrite the text with the errors fixed.

From: HalluClean: A Four-Step Hallucination Check for LLM Answers

Line selection instead of rewriting (SafeLLM)

── REQUEST 1 ──
Number every line of the text below.
Numbering format: [N] line text
Number every line, including short ones.

{paste the document or section text}

── REQUEST 2 (after you get the numbered text) ──
Here is the numbered text.
Question: {your question}

Instructions:
- Return only the numbers of the lines needed to answer
- Pick the minimal sufficient set
- No text of your own — numbers only
- Format: comma-separated numbers

{paste the numbered text from request 1}

From: SafeLLM (Extraction over Rewriting): Line Numbering as a Shield Against Hallucinations When Working with Documents

Questions people ask

What is the single most effective prompt change against hallucinations?

For facts and citations, the largest measured gain came from not trusting one run: ask in fresh chats or different models and keep only what repeats. Within a single prompt, a rewarded 'I don't know' or an explicit FAILED status works better than asking the model to be careful.

Does asking 'Are you sure?' reduce hallucinations?

Not reliably. Models tend to confirm their own answer. In the disagreement-based abstention study this check scored clearly lower F1 than comparing a direct and a step-by-step version of the same question.

How do I stop an LLM from inventing sources?

Ask for seminal and foundational work rather than recent work, tell it to leave out anything it is unsure exists, repeat the request three times and keep references that appear at least twice. Then verify every survivor in a scholarly database: overlap lowers the risk but does not remove it.

Can chain-of-thought make hallucinations worse?

In one setting, yes. When requirements could not all be met, reasoning made models bend facts to look compliant, for example relabeling a conference paper as a journal article. Tell the model that openly breaking a requirement is better than distorting information.