NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Grounded or Fabricated? Unsupervised Detection of LLM Hallucinations via Contextualized Influence on Response Embeddings

Zeyang Ding, Feng Xiao, Jicong FanNeurIPS 2026

TL;DR

Large language models (LLMs) frequently hallucinate plausible-sounding falsehoods, and catching them usually requires expensive multi-answer generation or brittle supervised classifiers. This paper introduces CIRE, a fast, unsupervised method that detects hallucinations from a single response by measuring how much the model's internal representation of the answer shifts when the original question is removed. If the question barely shapes the answer's internal geometry, the model is much more likely to be making things up.

What Problem Does This Paper Address?

LLMs have an annoying habit of stating falsehoods with absolute confidence. Current hallucination detectors generally fall into three traps:

  1. External verification requires retrieval pipelines or reference databases, which aren't always available or clean.
  2. Sampling-based consistency (like SelfCheckGPT) asks the model the same question ten times to see if its story changes—effective, but far too slow and expensive for real-time applications.
  3. Supervised probes train classifiers on internal brainwaves (hidden states) using labeled hallucinations, which often fail to generalize when the model encounters a new domain or a novel type of error.

The authors ask: Can we estimate hallucination risk on the fly, using just a single response, zero training data, and no external knowledge?

Methods

The authors propose CIRE (Contextualized Influence on Response Embeddings), built on a clever geometric intuition: a grounded answer should be heavily shaped by the question asked, whereas generic or fabricated responses are often weakly tethered to it.

Figure 2: The framework of the proposed method.

Here is how CIRE works after an LLM generates a response $R$ to a question $S$:

  1. Paired Encoding: Extract the intermediate token embeddings of the response from a fixed middle layer (e.g., layer 16 in a 7B model) in two ways: once contextualized with the question ($[S; R]$), and once completely in isolation ($R$ alone).
  2. Contextual Influence ($\text{IFL}$): Measure the geometric shift between these two token-embedding matrices using the relative Frobenius norm (essentially, the Euclidean distance across all tokens and dimensions, normalized by the isolated answer's magnitude so response length doesn't skew the score).
  3. Confidence Weighting: Because an answer can depend on the question yet still be unlikely under the model's own distribution, CIRE multiplies $\text{IFL}$ by $P$, the geometric mean of the generated token probabilities (the inverse of perplexity).

A lower final score ($\text{IFL} \cdot P$) flags a higher risk of hallucination. What's new here is replacing expensive multi-sample consistency checks with a lightweight, within-response representation contrast—no gradients, extra decoding, or detector fitting required.

Datasets

Because CIRE is completely training-free, no datasets are used for training. Evaluation is conducted across five standard Question Answering (QA) and factuality benchmarks (up to 1,000 examples each, using gpt-4o-mini as an automated judge alongside a human audit):

  • CoQA and SQuAD v2.0 (reading comprehension / context-grounded QA)
  • TriviaQA and NQ-Open (open-domain factoid QA)
  • TruthfulQA (817 validation questions designed to trigger common human misconceptions)

No new benchmarks are introduced. The authors test across four open-source decoder-only backbones: Llama-2-7B, Mistral-7B, OPT-6.7B, and Qwen3-32B.

Key Insights and Ideas

  • Correct answers "react" more to the question: In a preliminary test across three datasets, correct answers exhibited a stronger question-induced embedding shift ($\text{IFL}$) than GPT-generated hallucinations 94.0% of the time.
Figure 1: An observation was conducted on the TriviaQA, NQ-Open, and SQuAD datasets, with 50 questions randomly sampled from each. For each question, we compare the correct answer with a question-related but hallucinated answer generated by GPT-4o-mini. The proposed IFL scores are computed for both cases: [Question, Correct Answer] and [Question, Hallucinated Answer]. In the plot, each point represents a question, with axes corresponding to the two IFL scores. Higher IFL values indicate stronger question-conditioned representation shift. In the green region, the correct answer has a higher IFL. Several examples of successful and failed cases are shown on the right.
  • It's genuine semantic dependence, not a positional quirk: One might suspect the embeddings shift simply because prepending any text changes token positions. The authors ran a clever intervention keeping the answers fixed: swapping the original question for a semantic paraphrase preserved almost all detection power (69.7% vs. 71.1% AUROC), whereas prepending length-matched irrelevant text collapsed performance to near-chance (52.2%).
  • Dependence and confidence are true complements: Neither signal works well alone. Across all 20 test settings, answers with high $\text{IFL}$ but low probability $P$ were correct only 50.7% of the time; high $P$ with low $\text{IFL}$ yielded 45.9% correctness. When both were in the top quartile, correctness jumped to 82.3%.

Key Results

  • Strong single-pass detection: Against nine reference baselines (including Perplexity, Semantic Entropy, INSIDE, and HalluGuard), CIRE ranks first in 36 out of 40 dataset–model–metric blocks, improving mean AUROC across datasets by 1.23 to 2.61 percentage points over the strongest comparator (reaching 80.22% AUROC on TriviaQA).
  • Competitive with multi-sampling at a fraction of the cost: When compared against expanded baselines like full CoCoA-PPL (which requires 10 extra stochastic generations per query), CIRE achieves virtually identical detection quality (67.97% vs. 68.02% macro AUROC) while slashing online latency by ~10.7x—taking just 0.137 seconds/query versus CoCoA-PPL's 1.463 seconds.

Limitations and Future Work

  • Confident, on-topic falsehoods slip through: Contextual dependence is a probabilistic risk signal, not a fact-checker. Even when both $\text{IFL}$ and $P$ are in the top quartile, 17.7% of responses remain hallucinated—for instance, when an LLM confidently recalls a plausible misconception on TruthfulQA (e.g., answering "July" instead of "September" for a specific holiday).
  • Parametric memory edge cases: Conversely, a correct fact recalled purely by rote from parametric memory might shift very little when the question is removed, triggering a false alarm.
  • White-box access: Extracting intermediate layer embeddings requires access to the model's hidden states, meaning CIRE cannot be applied directly to closed-API black-box models without using a white-box proxy. Future directions are not explicitly outlined by the authors.

Summary updated

BibTeX
@inproceedings{ding2026grounded,
  author = {Zeyang Ding and Feng Xiao and Jicong Fan},
  title = {{Grounded or Fabricated? Unsupervised Detection of LLM Hallucinations via Contextualized Influence on Response Embeddings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ur1ym0WRCP},
}
Figure