Grounded or Fabricated? Unsupervised Detection of LLM Hallucinations via Contextualized Influence on Response Embeddings
Zeyang Ding, Feng Xiao, Jicong Fan
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › LLM Hallucination Detection · Type: new method · Keywords: LLM hallucination detection, unsupervised learning, embedding discrepancy, contextual influence, real-time detection
Areas: Safety & Security › Language Model Security › Hallucination Detection; Evaluation & Benchmarks › Language Model and Agent Safety › LLM Evaluation Benchmarks; Evaluation Methodology & Auditing › Language Model Benchmarking › Reliability and Truthfulness Benchmarks
Summary
The paper introduces an efficient unsupervised method for detecting LLM hallucinations by measuring the embedding discrepancy between a response generated independently and one contextualized with the question, enabling groundedness assessment without labeled data.
Explained to a 5-year-old
Big computer programs called language models sometimes make up answers that sound right but are wrong. To check if they are lying, we look at how they answer when they think alone and how they answer when we give them the question. If the two answers are very different, it means the question helped them stay true to facts. If the answers are almost the same, it means they might have made something up. This way we can find made-up facts without needing a lot of extra work or special training.
Explained to a 5-year-old, longer
Language models are computer programs that can write sentences like a person would. Sometimes they write things that sound real but are not true at all. This problem is especially dangerous when the answers are used for doctors, lawyers, or important questions. Existing ways to catch these mistakes either need a lot of computer power or need special training data. The new idea is to compare two versions of the answer: one made without looking at the question, and one made with the question. By looking at how far apart the two answers are, we can guess if the answer is based on facts or made up. If the answers are very different, it means the question helped the model stay true. If the answers are almost the same, it means the model might have invented something false. This method does not need anyone to label which answers are wrong, so it works for any kind of mistake. It also uses less computer time than older methods that ask the model many times. Because it is simple and fast, it can be used right away when the model is answering questions in real time. This helps make the model safer for important jobs where wrong facts can cause big problems.
For a technical reader
The paper tackles the challenge of detecting hallucinations-plausible but incorrect outputs-in large language models. It compares the model’s embedding of a response generated in isolation to the embedding of a response conditioned on the input question. A large difference between these embeddings indicates the answer is grounded, while a small difference suggests hallucination. This unsupervised approach avoids the need for labeled data and reduces computational cost compared to existing methods. Experiments across several tasks show it matches or exceeds prior detection performance.
Problem
Hallucinations in large language models produce plausible but factually incorrect outputs, posing risks in high-stakes applications. Existing detection methods either require generating multiple responses, which is computationally expensive, or rely on supervised training limited to known hallucination types, leaving a gap for efficient, generalizable detection.
Method
The approach measures the embedding discrepancy between the LLM’s response considered independently and the response contextualized with the question. A large discrepancy indicates that the question significantly influences the response, suggesting it is grounded, whereas a small discrepancy signals a higher likelihood of hallucination.
Results
The approach achieves superior or comparable detection performance while reducing detection cost relative to multiple-response methods.
Contributions
It proposes an efficient unsupervised hallucination detection method that leverages embedding discrepancy to assess grounding without requiring labeled hallucinations, and it demonstrates consistent performance across multiple tasks with lower computational cost than existing alternatives.
Practical relevance
The method enables safer deployment of LLMs in critical domains by providing a fast, interpretable way to detect hallucinations in real-time applications.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction