TL;DR
Existing hallucination detection methods for Large Language Models (LLMs) are often too slow or expensive for real-world applications because they rely on heavy post-generation verification. This paper introduces a lightweight, streaming approach that trains linear and LoRA probes on a model's internal hidden states to flag entity-level hallucinations token-by-token. Running directly within the model's forward pass, these probes achieve state-of-the-art detection accuracy with negligible computational overhead, enabling real-time interventions like selective abstention.
What Problem Does This Paper Address?
As LLMs are increasingly deployed in high-stakes domains like medicine and law, factual reliability is paramount. However, these models frequently "hallucinate"—generating plausible-sounding but entirely fabricated information.
While current research has made progress in detecting hallucinations in short-form question-answering (QA), real-world usage typically involves open-ended, long-form generation. In long-form text, correct and incorrect claims are deeply intertwined. Existing long-form detection frameworks (like SAFE or FActScore) rely on expensive multi-step pipelines that extract claims, query external search engines, and use a secondary LLM judge to verify the text after it has been fully generated. This introduces massive latency and cost, making real-time streaming detection impossible. The authors address this gap by shifting the focus from post-hoc sentence-level claim verification to real-time, token-level entity verification.
Methods
The core idea is to treat hallucination detection as a token-classification task operating directly on the internal representations of the LLM.
- Entity-Level Focus: Instead of evaluating abstract claims, the method targets concrete entities (names, dates, citations). Entities have clean token boundaries, making them ideal for token-level sequence labeling.
- Automated Annotation Pipeline: To build a training dataset, the authors use a frontier LLM (Claude 4 Sonnet) augmented with web search to automatically extract entities from long-form generations and label them as "Supported," "Not Supported," or "Insufficient Information." Every token within a fabricated entity span is assigned a positive hallucination label.
- Internal Probing: Using these token labels, the authors train lightweight classifiers on top of the target LLM's hidden activations (specifically at layer $\sim 95\%$ of the model's depth). They experiment with two architectures:
- Linear Probes: Simple linear layers that read hidden states without modifying the underlying model parameters.
- LoRA Probes: Low-Rank Adaptation parameters integrated into the model layers to optimize internal representations for detection.
- KL Regularization: To prevent LoRA training from degrading the model's general capabilities or altering its output distribution, the authors introduce a Kullback-Leibler (KL) divergence penalty against the original frozen model.
Datasets
The authors train and evaluate their approach across four model families using several key datasets:
- LongFact++: A newly introduced dataset that expands the original LongFact benchmark by 10x. It contains ~22,000 fact-seeking prompts across four distinct domains: topic-focused queries, biographies, citation-heavy research topics, and landmark legal cases.
- HealthBench: A held-out evaluation dataset consisting of long-form medical dialogue prompts to test cross-domain generalization.
- TriviaQA: A standard short-form QA dataset used to evaluate how well the probes transfer to brief generation settings.
- MATH: A held-out dataset testing out-of-distribution mathematical reasoning, which naturally lacks discrete entities but serves as a test for broader correctness signaling.
Key Insights and Ideas
- Long-Form Supervision is Essential: Probes trained exclusively on long-form data generalize remarkably well to short-form QA tasks. However, the reverse is not true: probes trained only on short-form data suffer a $\sim 0.10$ AUC drop when evaluated on long-form text. This indicates that long-form data exposes unique internal features of factuality that short-form data cannot replicate.
- Cross-Model Transferability: Probes trained on one model's internal states can successfully detect hallucinations in entirely different model families. This strongly suggests that the internal representation of "knowing vs. hallucinating" captures fundamental, model-agnostic features of truthfulness rather than model-specific artifacts.
- Generalization Beyond Entities: Despite being trained strictly to identify fabricated entities, the probes successfully flag incorrect answers in the out-of-distribution MATH dataset. The probes appear to be capturing a broader internal signal of model correctness.
Key Results
Evaluating across multiple model families, the token-level probes consistently out-performed traditional uncertainty-based baselines (such as token perplexity and semantic entropy).
For Llama-3.3-70B on the LongFact benchmark, the LoRA probe achieved an AUC of 0.90, vastly outperforming the computationally expensive semantic entropy baseline, which only managed an AUC of 0.71.
Furthermore, the authors demonstrated a real-time intervention called selective answering on the SimpleQA benchmark. By monitoring the probe scores token-by-token and halting generation to output an abstention ("I don't know") the moment the score crossed a threshold, they successfully boosted the model's conditional accuracy on attempted questions from under 30% to over 50%.
Limitations and Future Work
While promising, the authors highlight several limitations that prevent immediate production deployment:
- Relational Errors: The entity-level focus misses "relational" hallucinations, where the entities themselves are real but the stated relationship between them is false (e.g., swapping the roles of two real people in a lawsuit).
- Annotation Noise: The automated LLM-plus-search annotation pipeline achieves an 80.6% recall and a 15.8% false positive rate, meaning the training data contains inherent noise that bounds probe performance.
- The Reliability Gap: The best LoRA probes top out at $\sim 70\%$ recall at a 10% false positive rate on long-form text. In practice, using these probes for selective answering means sacrificing roughly 50% of correct answers to meaningfully suppress hallucinations.
Future work will focus on scaling token-level detection to broader semantic spans and refining annotation quality to close this reliability gap.
Summary updated