LoRU: Uncertainty Is Relative in LLM Hallucination Detection

Yuji Zhang, Rong Xu, Christie Djidjev, Jiawei Xu, Jinrui Fang, ChengXiang Zhai, Ying DingarXiv 2026

TL;DR

When detecting hallucinations in long, multi-step LLM outputs, judging a token's uncertainty by its raw, absolute score is like judging the loudness of a whisper without knowing if you're in a library or at a rock concert. This paper shows that LLM uncertainty is heavily warped by recent context, and introduces LoRU—a lightweight, training-free plug-in that catches hallucinations by looking for local spikes in uncertainty relative to a sliding window of recent tokens.

What Problem Does This Paper Address?

Imagine an LLM writing out a long chain-of-thought math proof or a multi-step factual answer. We want to know if the final answer is a hallucination without checking an external encyclopedia. A popular approach is to measure the model's internal "uncertainty" (like token probability or entropy) as it generates each word.

Here is the catch: how do you combine hundreds of token-level uncertainty scores into a single "risk score" for the whole response? Simply averaging them—or picking the highest absolute spike—falls into a trap. Suppose token $t_1$ appears during a genuinely difficult, complex phrasing, while token $t_2$ is a blatantly fabricated name inside an otherwise simple,boilerplate sentence. Both tokens might have the exact same raw uncertainty score! Yet $t_1$ is completely normal for its neighborhood, whereas $t_2$ is a massive red flag. Traditional aggregation treats them as equally risky because it ignores the surrounding landscape.

Figure 1: Limitation of absolute uncertainty. Identical uncertainty scores can have different implications de- pending on their surrounding uncertainty patterns.

Methods

Instead of inventing yet another way to measure raw token uncertainty, the authors build Local Relative Uncertainty (LoRU), a training-free aggregation wrapper that plugs directly onto existing uncertainty estimators.

LoRU is built on two pillars: Locality and Relativity.

  1. Sliding-Window Ranking: As the model generates text, LoRU looks at each token $t$ and compares its uncertainty signal against a sliding window of the previous $W$ tokens (e.g., $W = 20$). It assigns the token a local relative rank between $0$ and $1$—essentially asking, "What fraction of recent tokens were less uncertain than this one?"
  2. Rank-Guided Aggregation: Crucially, LoRU uses these relative ranks to select or weight where the evidence is, while still using the original estimator's raw uncertainty magnitudes to compute the final risk score.
LoRU's empirical motivation and local relative ranking mechanism.

The authors explore three ways to aggregate this ranked evidence:

  • LoRU-ScanTop: Scans the response for the single contiguous span (e.g., 5 tokens) with the highest average local rank and averages the raw uncertainties only there.
  • LoRU-PartitionTop: Chops the response into non-overlapping chunks (e.g., 20 tokens long), plucks the single highest-ranked token from each chunk, and averages their raw uncertainties—preserving clues across the entire reasoning chain.
  • LoRU-WeightedAgg: Keeps every token in the response, but softly weights entire sentences based on the average local rank of their tokens relative to the window right before the sentence began.

Datasets

Because LoRU is completely training-free, datasets are used strictly for empirical analysis and evaluation (with no external retrieval allowed, forcing models to rely on parametric memory and reasoning):

  • AIME24–26: 90 competition-level mathematics problems requiring long symbolic and numerical reasoning.
  • MuSiQue-4hop: 458 four-hop factual questions where models must chain together multiple factual recalls (plus synthetic 2-hop chains derived from MuSiQueQA for controlled context experiments).
  • DeepSearchQA: 316 single-answer, multi-step information-seeking questions.

No new benchmarks were introduced.

Key Insights and Ideas

  • Preceding context creates artificial confidence—even when it's wrong: In a clever synthetic experiment, the authors fed an LLM a first-hop reasoning step (sometimes gold-standard, sometimes deliberately false) and measured its uncertainty on the exact same second-hop answer. Having preceding reasoning in the context boosted the model's confidence in 63.7% of cases—even when the preceding reasoning contained false information! Absolute thresholds fail here because context shifts the baseline.
  • Uncertainty "memory" is surprisingly short-lived: When you strip away global baseline differences and linear trends across a response, the correlation between token uncertainties drops off a cliff within just a few tokens. Long-range correlations are mostly an illusion of global response difficulty. Therefore, comparing a token against the entire prefix is noisy; a tight local window is where the real signal lives.
  • Different reasoning tasks hide their red flags differently: In multi-hop factual QA, factual entity mentions naturally spike in entropy, and spreading your attention across the whole text (PartitionTop) works best. In math, long stretches of deterministic numbers and symbols dilute global averages, making concentrated span hunting or soft weighting valuable.

Key Results

Tested across three model families (Llama-3.1-8B-Instruct, Qwen3.5-4B, Qwen3.8-27B), three datasets, and five baseline scoring methods (spanning simple log-likelihood, epistemic perturbations, and step-level momentum):

  • Broad Plug-in Gains: Across 65 experimental settings, the best LoRU variant improved hallucination detection (AUROC) in 76.9% of cases, delivering an average relative gain of 5.5%.
  • Remarkable Consistency on Multi-Hop QA: On MuSiQue-4hop, LoRU-PartitionTop beat the native baseline estimator in 14 out of 15 model-estimator combinations.
  • Zero Inference Overhead: LoRU requires zero retraining and zero extra LLM forward passes—just $O(TW)$ lightweight rank comparisons on signals you already computed.
  • Synergy of Local + Relative: An ablation study showed that combining a local window with relative ranking beats either local $z$-scoring or full-prefix ranking, yielding a statistically significant positive interaction of +4.7 AUROC points.

Limitations and Future Work

  • No One-Size-Fits-All Strategy: None of the three aggregation strategies (ScanTop, PartitionTop, WeightedAgg) dominates everywhere. Effectiveness depends on how uncertainty is distributed in a task and whether the ranking signal aligns well with the underlying scoring estimator. Developing an adaptive mechanism that automatically picks the right strategy and window size ($W$) per response is an open next step.
  • White-Box / Gray-Box Requirement: While LoRU needs no extra forward passes, it does require token-level uncertainty outputs (like log-probabilities or entropy), limiting its use on strictly closed, text-only black-box APIs.
  • From Passive Detection to Active Steering: The authors note that local relative uncertainty doesn't just have to sit at the finish line grading answers—future systems could use sudden local rank spikes mid-generation to trigger real-time fact verification, retrieval, or reasoning backtracking.

Summary updated

BibTeX
@misc{zhang2026loru,
  author = {Yuji Zhang and Rong Xu and Christie Djidjev and Jiawei Xu and Jinrui Fang and ChengXiang Zhai and Ying Ding},
  title = {{LoRU: Uncertainty Is Relative in LLM Hallucination Detection}},
  year = {2026},
  eprint = {2611.36630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36630},
}
Figure