FactCheckmate: Preemptively Detecting and Mitigating Hallucinations in LMs
Not on the map. Why?
Abstract (arXiv)
Language models (LMs) hallucinate. We inquire: Can we detect and mitigate hallucinations before they happen? This work answers this research question in the positive, by showing that the internal representations of LMs provide rich signals that can be used for this purpose. We introduce FactCheckmate, which preemptively detects hallucinations by learning a classifier that predicts whether the LM will hallucinate, based on the model's hidden states produced over the inputs, before decoding begins. If a hallucination is detected, FactCheckmate then intervenes by adjusting the LM's hidden states such that the model will produce more factual outputs. FactCheckmate provides fresh insights that the inner workings of LMs can be revealed by their hidden states. Practically, both its detection and mitigation models are lightweight, adding little inference overhead; FactCheckmate proves a more efficient approach for mitigating hallucinations compared to many post-hoc alternatives. We evaluate FactCheckmate over LMs of different scales and model families (including Llama, Mistral, Qwen and Gemma), across a variety of QA datasets from different domains. Our results demonstrate the effectiveness of FactCheckmate, achieving over 70% preemptive detection accuracy. On average, outputs generated by LMs with intervention are 34.4% more factual compared to those without.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 44 of its 50 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
44 of 50 references.
References · 44
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Mistral 7Bcited by 3,065
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,259
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
32 more
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
- 2023The Internal State of an LLM Knows When It's Lyingcited by 644
- 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 525
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2023A Survey of Hallucination in Large Foundation Modelscited by 365
- 2023HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Modelscited by 329
- 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 317
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 317
- 2023FacTool: Factuality Detection in Generative AI -- A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarioscited by 247
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
- 2020Detecting Hallucinated Content in Conditional Neural Sequence Generationcited by 151
- 2023Inspecting and Editing Knowledge Representations in Language Modelscited by 140
- 2024TruthX: Alleviating Hallucinations by Editing Large Language Models in Truthful Spacecited by 90
- 2024The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Modelscited by 87
- 2024Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Modelscited by 84
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Modelscited by 83
- 2023Towards Mitigating Hallucination in Large Language Models via Self-Reflectioncited by 81
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2024MJ-Bench: Is Your Multimodal Reward Model Really a Good Judge for Text-to-Image Generation?cited by 64
- 2024Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden Statescited by 50
- 2023GRACE: Discriminator-Guided Chain-of-Thought Reasoningcited by 35
- 2024Constructing Domain-Specific Evaluation Sets for LLM-as-a-judgecited by 28
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2025Real-Time Detection of Hallucinated Entities in Long-Form Generationcited by 33
- 2025SafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signalscited by 29
- 2025False Sense of Security: Why Probing-based Malicious Input Detection Fails to Generalizecited by 15
- 2025SelfCheck-Eval: A Multi-Module Framework for Zero-Resource Hallucination Detection in Large Language Modelscited by 4
- 2025Teaching with Lies: Curriculum DPO on Synthetic Negatives for Hallucination Detectioncited by 3
- 2025The Curious Case of Factuality Finetuning: Models' Internal Beliefs Can Improve Factualitycited by 3
- 2026Sparse Reward Subsystem in Large Language Modelscited by 3
- 2026When is Your LLM Steerable?cited by 2
- 2026Do I Really Know? Learning Factual Self-Verification for Hallucination Reductioncited by 1
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probingcited by 1
- 2026HalluTracer: Pre-Decoding Truthfulness Prediction via Depth-Averaged Probe-Logitcited by 0
- 2026HalluTracer: Pre-Decoding Truthfulness Prediction via Depth-Averaged Probe-Logit17 Aug 2026
- 2026Pre-Generation Hallucination Detection in Large Language Models via Soft-Target Attention Probing20 Jun 2026
- 2026When is Your LLM Steerable?10 Jun 2026
- 2026Do I Really Know? Learning Factual Self-Verification for Hallucination Reduction2 Feb 2026
- 2026Sparse Reward Subsystem in Large Language Models1 Feb 2026
- 2025False Sense of Security: Why Probing-based Malicious Input Detection Fails to Generalize4 Sep 2025
- 2025Real-Time Detection of Hallucinated Entities in Long-Form Generation26 Aug 2025
- 2025The Curious Case of Factuality Finetuning: Models' Internal Beliefs Can Improve Factuality11 Jul 2025
- 2025Teaching with Lies: Curriculum DPO on Synthetic Negatives for Hallucination Detection23 May 2025
- 2025SelfCheck-Eval: A Multi-Module Framework for Zero-Resource Hallucination Detection in Large Language Models3 Feb 2025
- 2025SafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signals3 Feb 2025