Perturbations Matter: Sensitivity-Guided Hallucination Detection in LLMs

Jinyuan Luo, Zhen Fang, Yixuan Li, Seongheon Park, Ling ChenOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Current methods for detecting LLM hallucinations by looking at "brain states" (internal representations) often fail because truthful and false activations look nearly identical. This paper introduces Sample-Specific Prompting (SSP), a method that "pokes" the model with custom-tailored perturbations to see how its internal states shift; because truthful answers are significantly more sensitive to these nudges than hallucinations, SSP achieves state-of-the-art detection with high efficiency.

What Problem Does This Paper Address?

Large Language Models (LLMs) are notorious for "hallucinating"—generating text that sounds perfectly coherent but is factually wrong. Detecting these errors is a major hurdle for deploying AI in high-stakes fields like law or medicine.

Researchers usually try to solve this in two ways:

  1. Self-assessment: Asking the model "Are you sure?" or checking its output probabilities. This often fails because models are frequently overconfident in their lies.
  2. Internal Representation Probing: Looking at the model's hidden layers (its "thoughts") to find a "truth signal."

The authors point out a "separability bottleneck": in standard hidden states, the vector for a truthful answer and a hallucinated one often overlap almost entirely. Because LLMs are trained for fluency rather than factual accuracy, their internal states prioritize "sounding right" over "being right," making it nearly impossible for a simple classifier to tell them apart.

Methods

The authors propose a shift from static analysis to dynamic perturbation. Instead of looking at a single snapshot of the model's state, they look at how that state changes when the input is slightly tweaked.

Sample-Specific Prompting (SSP)

The core of their approach is a three-part framework:

  • Prompt Initialization: For a given Question-Answer pair, they generate a "noise prompt"—a stylistically different but semantically neutral version of the answer (e.g., changing the tone).
  • Prompt Embedding Generator ($G_\phi$): This is a lightweight MLP that takes the Q&A pair and "optimizes" the noise prompt's embedding. The goal is to find the specific "poke" that will cause the biggest reaction in a truthful state and the smallest in a hallucinatory one.
  • Contrastive Training: They train a learnable encoder ($f_\phi$) to map these internal states into a space where they can measure the "sensitivity" (the cosine distance between the original state and the perturbed state).

By training the system to maximize this distance for truth and minimize it for hallucinations, they create a clear, discriminative signal for detection.

Datasets

The researchers evaluated SSP across four diverse generative QA benchmarks:

  • TruthfulQA: Designed to mimic human falsehoods and misconceptions.
  • TriviaQA: A large-scale factual knowledge dataset.
  • CoQA: A conversational question-answering dataset.
  • TydiQA-GP: A reading comprehension benchmark.

They tested these using several popular open-source models, including LLaMA-3 (8B and 1B), Qwen-2.5 (7B), and Vicuna-13B.

Key Insights and Ideas

  • The Sensitivity Gap: The most striking "aha moment" is the discovery that truthful internal representations are "fragile" in a useful way. They respond uniquely to stylistic perturbations, whereas hallucinations appear more "rigid" or "flat" in the model's latent space.
  • The 99% Theory: The authors provide a mathematical proof showing that for almost any given sample (~99% in their tests), there exists a specific prompt that can perfectly separate truth from hallucination based on sensitivity.
  • Middle-Layer Magic: Like other probing research, they found that the "truth signal" is strongest in the middle layers of the transformer. Early layers are too focused on raw input, and late layers are too focused on generating the next token.
  • Efficiency over Sampling: Most high-accuracy detection methods require "multi-sampling" (generating 10+ different answers and comparing them), which is computationally expensive. SSP shows that a single, well-placed perturbation can be more effective than a dozen random samples.

Key Results

  • Superior Accuracy: SSP consistently outperformed 16 different baselines. For example, on the TriviaQA dataset using Vicuna-13B, SSP outperformed standard "Self-evaluation" by a massive 25.58% in AUROC (Area Under the Receiver Operating Characteristic).
  • Strong Generalization: The method isn't just memorizing a specific dataset. When trained on TriviaQA and tested on the completely different TydiQA-GP, it still maintained high performance (~73.89% AUROC), significantly beating other "probes" like SAPLMA or EGH.
  • Speed: SSP requires only 0.75 seconds per sample during inference. This is much faster than multi-sampling methods like Semantic Entropy or SPUQ, which can take several seconds to generate and process multiple responses.
  • Data Efficiency: The system achieves high performance even when trained on as few as 100 labeled samples, making it practical for real-world scenarios where labeled "truth vs. hallucination" data is scarce.

Limitations and Future Work

  • White-Box Only: The biggest limitation is that SSP is a "white-box" method. It requires access to the model's internal embeddings and gradients. This means it cannot be used on closed-source models like GPT-4o or Claude 3.5 via their standard APIs.
  • Layer Dependency: The method relies on selecting the right hidden layers for extraction. While the paper provides guidance, this might vary significantly between different model architectures.
  • Future Directions: The authors suggest exploring "black-box" versions of this theory—perhaps looking at how output probabilities shift under these specific perturbations rather than internal embeddings.

Summary updated

Abstract

Hallucination detection is essential for ensuring the reliability of large language models. Internal representation–based methods have emerged as the prevailing direction for detecting hallucinations, yet the internal representations often fail to yield clear separability between truthful and hallucinatory content. To address this challenge, we study the separability of the sensitivity to prompt-induced perturbations in the internal representations. A theory is established to show that, with non-negligible probability, each sample admits a prompt under which factual samples exhibit greater sensitivity to prompt-induced perturbations than hallucinatory samples. When the theory is applied to the representative datasets, the probability reaches nearly 99%, suggesting that sensitivity to perturbations provides a discriminative indicator. Building on this insight, we propose a theory-informed method Sample-Specific Prompting (SSP), which adaptively selects prompts to perturb the model’s internal states and measures the resulting sensitivity as a detection indicator. Extensive experiments across multiple benchmarks demonstrate that SSP consistently outperforms existing hallucination detection methods, validating the practical effectiveness of our method SSP in hallucination detection.
BibTeX
@misc{luo2026perturbations,
  author = {Jinyuan Luo and Zhen Fang and Yixuan Li and Seongheon Park and Ling Chen},
  title = {{Perturbations Matter: Sensitivity-Guided Hallucination Detection in LLMs}},
  year = {2026},
  url = {https://openreview.net/forum?id=aZdcNDf3pc},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure