Beyond Uniform Detection: Adaptive Hallucination Detection for RAG Across Response Regimes

Jungwuk Park, Sejong Ryu, Jy-yong Sohn, Jaekyun MoonNeurIPS 2026

TL;DR

Even when you hand a Large Language Model (LLM) the exact facts it needs via Retrieval-Augmented Generation (RAG), it still hallucinates—but how it lies depends entirely on how much it talks. In short-form answers, models typically pick the wrong entity from the text, whereas in long-form essays, they slowly drift off-script into their own pre-trained memories. This paper introduces ARGUS, an adaptive detector that switches its lie-detection strategy based on response length, catching hallucinations across both regimes where one-size-fits-all detectors fail.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is supposed to keep LLMs honest by grounding them in external documents. Yet hallucinations persist, and researchers generally hunt for them in one of two ways: checking output probabilities (is the model confident in its tokens?) or probing internal hidden states (is the model’s pre-trained memory fighting the retrieved text?).

The authors discover a regime-dependent signal reversal: no single detector class works everywhere.

Figure 1: Hallucination in RAG varies across response regimes. (Left) In short-form QA, the model selects an incorrect answer among candidates in the retrieved context. (Right) In long-form generation, the response starts grounded in the retrieved evidence but gradually drifts into unsupported content.
  • Short-form QA (e.g., naming a person): The model stays anchored in the retrieved text, so there is very little "internal conflict" for hidden-state probes to catch. Instead, it simply grabs the wrong plausible candidate from the passage (~86% of short-form hallucinations appear directly in the context). Output probabilities work much better here.
  • Long-form generation (e.g., summarizing news): As the model writes longer paragraphs, it conditions heavily on its own prior words, gradually drifting away from the source text. Because each next word remains locally fluent and probable, output-probability detectors go blind—while internal hidden-state detectors light up.

Existing methods apply a uniform strategy regardless of response length, leaving them vulnerable on at least half the battlefield.

Methods

To cover both regimes, the authors build ARGUS, which pairs two novel, specialized signals with a smooth, length-based dial.

Figure 3: Overview of our proposed ARGUS method. In short-form tasks, we compute a bidirectional likelihood that evaluates the response against a reasoning step generated after it. In long-form tasks, we compute a hidden-state conflict score from per-layer context-grounding vs. internal-knowledge contributions. The two are adaptively combined via length-based weighting w(T).
  1. Bidirectional Likelihood (for Short-Form): Standard token confidence fails when a model is confidently wrong. ARGUS prompts the model to generate a brief (20-token) reasoning step after giving its answer. It then takes the top-$K$ ($K=3$) alternative answers the model almost picked and checks which candidate best aligns with both the evidence and that post-hoc reasoning. True answers produce much tighter logical consistency than misselected ones.
  2. Hidden-State Conflict via Source Decomposition (for Long-Form): Rather than projecting hidden states into vocabulary space (like the standard "logit lens") or running extra passes with random documents, ARGUS looks directly at the residual stream of pre-norm transformers. At each token, it decomposes attention updates by where the model is looking—External (query + retrieved context) vs. Internal (its own prior response tokens + Feed-Forward Network parametric memory)—and measures their cosine similarity with the final hidden state. If internal alignment overtakes external alignment, the model is drifting.
  3. Adaptive Weighting: ARGUS blends the two scores using a sigmoid function of response length $T$ (with a transition midpoint $T_0 = 10$ tokens). Short answers lean on bidirectional likelihood; long answers lean on hidden-state conflict (and can skip the extra reasoning generation entirely to save compute).

Datasets

The authors do not introduce new datasets; instead, they evaluate across 8 existing benchmarks assuming accurate retrieval:

  • Short-form (6 open-book QA datasets from MrQA): HotpotQA, TriviaQA, SearchQA, SQuAD, NewsQA, and Natural Questions (NQ).
  • Long-form (2 RAG benchmarks): RAGTruth (manually annotated across QA, data-to-text, and news summarization) and Dolly (AC) (context-consistency evaluation).

Key Insights and Ideas

  • Hallucination drift is measurable over time: When the authors split long responses into front, middle, and back segments, internal-vs-external hidden-state conflict rose steadily toward the end of responses—and climbed much steeper for hallucinated texts than faithful ones.
Conflict score rising across response segments
  • Naive ensembling backfires: You might think, "Why not just add an output score and an internal score together?" When tested, a fixed sum of signals actually degraded performance below the best single detector in both regimes because the weaker signal diluted the informative one. Adaptive routing is essential.
  • Tiny reasoning budgets go a long way: Just 20 tokens of post-response reasoning is enough to expose "confidently wrong" short-form answers, after which performance gains plateau.

Key Results

Tested across LLaMA2-7B, LLaMA2-13B, and LLaMA3-8B against 10 baselines, ARGUS achieves the strongest overall AUROC (AUC) across regimes:

Detection performance reversal across short- and long-form RAG
  • Short-form: On LLaMA2-13B, ARGUS reaches 0.8184 AUC, beating standard Perplexity (0.7630) and crushing state-of-the-art internal conflict detectors like ReDeEP (0.5827) and LUMINA (0.5782). Similar jumps hold on LLaMA2-7B (0.8077 vs. 0.7392 Perplexity) and LLaMA3-8B (0.7271 vs. 0.6700).
  • Long-form: While Perplexity collapses to 0.3823 AUC on LLaMA2-13B, ARGUS hits 0.7999 AUC, outperforming both ReDeEP (0.7616) and LUMINA (0.7286). It also leads all baselines on LLaMA3-8B (0.7279 AUC) and trails only ReDeEP slightly on LLaMA2-7B (0.6894 vs. 0.7058).
  • Zero per-dataset tuning: All hyperparameters ($K=3$, $T_0=10$, 20 reasoning tokens) remained fixed across every model and benchmark.

Limitations and Future Work

  • Assumes clean retrieval: The core study assumes the retrieved context actually contains accurate, relevant information (focusing purely on generation failures rather than retrieval failures, though a perturbed context test is noted in the appendix).
  • Length is just a proxy: The authors explicitly note that token length $T$ doesn't define a regime—it merely acts as a convenient observable proxy for how much autoregressive self-conditioning has accumulated.
  • White-box access required: Computing token probabilities and decomposing per-layer attention/FFN updates requires full access to model internals, ruling out closed-source API-only models. Exploring broader regime-aware signals remains a promising avenue for making RAG systems trustworthy.

Summary updated

Abstract

Existing hallucination detectors for retrieval-augmented generation (RAG), whether based on model outputs (e.g., likelihood) or internal representations, typically apply a uniform detection strategy across responses. However, we find that different detection signals are informative in different response regimes, making a uniform strategy insufficient for both short- and long-form generation. In short-form tasks such as factoid QA, hallucination typically appears as selecting an incorrect final answer among multiple context-relevant candidates. In this regime, model-output-based signals that discriminate among plausible answers are particularly important. We therefore propose a bidirectional likelihood measure that evaluates logical consistency based on the retrieved evidence and a reasoning step generated after the response. In contrast, long-form descriptive responses are more prone to gradual drift: as generation proceeds, the model increasingly relies on its own prior generations and parametric knowledge, while unsupported continuations may remain locally plausible, making output-based cues less informative. For this regime, we measure context--knowledge conflict by tracking the directional alignment of context-grounding versus internal-knowledge contributions in the hidden states. Building on these regime-specific signals, we introduce ARGUS, an adaptive hallucination detector that emphasizes the more effective signal according to the response regime. Experiments on multiple RAG benchmarks show that our method achieves strong performance across both short- and long-form settings.
BibTeX
@inproceedings{park2026beyond,
  author = {Jungwuk Park and Sejong Ryu and Jy-yong Sohn and Jaekyun Moon},
  title = {{Beyond Uniform Detection: Adaptive Hallucination Detection for RAG Across Response Regimes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3Bp2vd7ixA},
}
Figure