Survey and analysis of hallucinations in large language models: attribution to prompting strategies or model behavior
TL;DR Highlight
Splitting hallucination causes into prompt vs. model showed CoT helps in prompt-sensitive cases.
Who Should Read
Backend developers whose LLM answers contain factual errors and who must decide between fixing prompts or switching models
Core Mechanics
- Split hallucination causes in two
- The paper proposes a framework to tell whether the prompt or the model itself is at fault.
- It uses Prompt Sensitivity (PS) and Model Variability (MV) to measure each contribution.
- Same model, different prompt, different results
- GPT-4, LLaMA 2, DeepSeek and others were compared under controlled prompting conditions.
- Hallucination frequency, severity, and mitigation varied by model.
- CoT works when the prompt is the cause
- Chain-of-thought prompting (making the model reason step by step) significantly reduced hallucinations in prompt-sensitive scenarios.
- That effect applies when the prompt is the cause.
- Some hallucinations survive prompt fixes
- In some cases intrinsic model limitations remained.
- Then tweaking prompts is not enough and you need to look at the model or pipeline.
Evidence
- Benchmarks used
- Factuality was judged with TruthfulQA and HallucinationEval.
- Models compared
- GPT-4, LLaMA 2, DeepSeek and others were tested under multiple prompt conditions.
- No numbers in the provided abstract
- It only says CoT significantly reduced hallucinations; specific figures are not in the source.
How to Apply
- Rerun failing questions with prompt variants
- Pick 10 wrong answers and re-ask each 3-5 times with reworded prompts.
- If answers vary, label it prompt-caused; if consistently wrong, label it model-caused.
- Add a CoT instruction for prompt-caused cases
- Add a line to the system prompt asking for step-by-step reasoning before the answer.
- Compare accuracy before and after on the same test set.
- Route model-caused cases elsewhere
- For questions that prompt changes do not fix, test another model or add RAG or post-hoc verification.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's method: prompt sensitivity check)
For the question below, create 5 differently worded variants with the same meaning.
Then answer each variant in two ways: (1) answer directly, (2) write step-by-step reasoning, then answer.
Finally, tabulate whether the answers agree and which wording caused disagreement.
Question: {{질문}}Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles
Original Abstract (Expand)
Hallucination in Large Language Models (LLMs) refers to outputs that appear fluent and coherent but are factually incorrect, logically inconsistent, or entirely fabricated. As LLMs are increasingly deployed in education, healthcare, law, and scientific research, understanding and mitigating hallucinations has become critical. In this work, we present a comprehensive survey and empirical analysis of hallucination attribution in LLMs. Introducing a novel framework to determine whether a given hallucination stems from not optimize prompting or the model's intrinsic behavior. We evaluate state-of-the-art LLMs—including GPT-4, LLaMA 2, DeepSeek, and others—under various controlled prompting conditions, using established benchmarks (TruthfulQA, HallucinationEval) to judge factuality. Our attribution framework defines metrics for Prompt Sensitivity (PS) and Model Variability (MV), which together quantify the contribution of prompts vs. model-internal factors to hallucinations. Through extensive experiments and comparative analyses, we identify distinct patterns in hallucination occurrence, severity, and mitigation across models. Notably, structured prompt strategies such as chain-of-thought (CoT) prompting significantly reduce hallucinations in prompt-sensitive scenarios, though intrinsic model limitations persist in some cases. These findings contribute to a deeper understanding of LLM reliability and provide insights for prompt engineers, model developers, and AI practitioners. We further propose best practices and future directions to reduce hallucinations in both prompt design and model development pipelines.