Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

Temporal Multi-Signal Fusion for Token-Level Hallucination Detection

arXiv:2608.181152026-08-20

Catching AI's made-up facts works better when you read them as a stretch of text, not word by word

Existing tools that spot hallucinated (fabricated) text from AI language models score each word in isolation, so they miss cases where the model is confidently wrong. This paper treats hallucination as a span that unfolds over several tokens and reads it with a sequence model (BiGRU) fed 33 fused signals covering text statistics, natural language inference, and language-model surprisal. This approach hit an AUC of 0.840 on the RAGTruth benchmark, 11 points above a token-by-token baseline, with 44% of that gain traced to modeling word order itself.

METAL MEDIA explanatory visual

Catching AI's made-up facts works better when you read them as a stretch of text, not word by word

  1. 01Current token-level hallucination detectors score each word independently and fail exactly when the generating model is confidently wrong.
  2. 02The authors extract a 33-dimensional feature vector per token combining text statistics, Natural Language Inference (NLI) entailment scores, and language-model surprisal, then feed the whole sequence to a Bidirectional Gated Recurrent Unit (BiGRU) that reads context in both directions.
  3. 03Using only the generated text and external models (no access to the generating model's internals), BiGRU reached 0.840 AUC on RAGTruth versus 0.730 for an independent logistic-regression baseline (10 seeds, p=0.002) an 11-point gain.
  4. 04A controlled breakdown attributed the gain to temporal order (44%), sequence-wide aggregation (24%), and nonlinear model capacity (32%).
  5. 05Performance degraded by less than 4% when tested on text from language models unseen during training, and switching a CRF model's scoring method to forward-backward marginals recovered up to 17.9 AUC points.
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Current token-level hallucination detectors score each word independently and fail exactly when the generating model is confidently wrong.
  2. The authors extract a 33-dimensional feature vector per token combining text statistics, Natural Language Inference (NLI) entailment scores, and language-model surprisal, then feed the whole sequence to a Bidirectional Gated Recurrent Unit (BiGRU) that reads context in both directions.
  3. Using only the generated text and external models (no access to the generating model's internals), BiGRU reached 0.840 AUC on RAGTruth versus 0.730 for an independent logistic-regression baseline (10 seeds, p=0.002) an 11-point gain.
  4. A controlled breakdown attributed the gain to temporal order (44%), sequence-wide aggregation (24%), and nonlinear model capacity (32%).
  5. Performance degraded by less than 4% when tested on text from language models unseen during training, and switching a CRF model's scoring method to forward-backward marginals recovered up to 17.9 AUC points.
Table 1: Positioning on RAGTruth. †Span F1. ‡10 seeds. §0.73 = the published Lookback Lens (LogReg) classifier; 0.838 = the same attention features under our BiGRU sequence model. Both use a Qwen3-14B proxy on the open-LLM subset; see §5.9 for the full fair comparison.
MethodAccessMetricScore
ReDeEPActivationsAUC0.733
RagtStackingActivationsAUC0.836
Lookback Lens§AttentionAUC0.73 / 0.838
LettuceDetectBlack-boxSpan F1†0.589
RL4HSBlack-boxSpan F1†0.583
HaluGateBlack-boxToken F10.590
Ours (BiGRU)Black-boxAUC‡0.840±.007
Table 2: Per-token feature groups.
GroupSignalsDim
TextSurface, overlap, running statistics20
NLIEntailment scores + temporal derivatives7
LMSurprisal, rank + fallback handling6
Total33
Table 3: Sequence labeling architectures. All models use h=64. CRF variants use forward-backward marginals for ranking (Section 5.10).
ModelTemporal scopeParams
LogRegNone (per-token)34
MLPNone (per-token)112K
1D-CNNLocal (kernel ≤7)61K
BiGRUFull sequence121K
BiLSTMFull sequence121K
TransformerFull sequence (attention)106K
BiGRU-CRFFull + transitions121K
BiLSTM-CRFFull + transitions121K
Table 4: Research questions and corresponding experiments.
RQExperiments
RQ1: TemporalMain ablation (Section 5.1),
dependenciesdecomposition (5.3),
directional ablation (5.4)
RQ2: Multi-signalSignal ablation (Section 5.1),
fusionpointwise baselines (5.5),
Lookback comparison (5.9)
RQ3: General-Cross-model (5.7),
izationcross-dataset (5.8)
Table 5: Token-level AUC and F1 on RAGTruth test set. CRF models use softmax scoring; see Table 12 for forward-backward results.
ModelText OnlyAll Signals
AUCF1AUCF1
LogReg0.7020.1330.7300.141
1D-CNN0.7880.2080.8070.216
BiLSTM0.8260.2270.8430.247
BiGRU0.8320.2320.8450.242
Transformer0.8020.2330.8040.229
BiGRU-CRF0.8060.1960.6300.245
BiLSTM-CRF0.6030.1880.7810.164
Trans-CRF0.6680.2350.6910.227
Table 6: Mean ± std across 10 seeds (all signals). MLP is a capacity-matched token-independent baseline (112K parameters ≈ BiGRU’s 121K).
ModelAUCF1AP
LogReg.730±.001.141±.000.093±.001
MLP.765±.002.176±.003.127±.002
1D-CNN.813±.002.218±.004.197±.005
BiLSTM.835±.008.242±.008.270±.017
BiGRU.840±.007.257±.010.282±.018
Transformer.819±.008.246±.009.234±.012
Table 7: Controlled decomposition of BiGRU’s advantage over LogReg (10 seeds, all signals).
ModelAddsAUCΔ
LogRegPer-token, linear.730
MLP (112K)Nonlinear capacity.765+3.5 (32%)
Shuffled BiGRUSeq. aggregation.791+2.6 (24%)
BiGRUTemporal order.840+4.9 (44%)
Table 8: Directional ablation (10 seeds, all signals).
ModelAUCAvg Precision
ForwardGRU.802±.008.217±.014
BackwardGRU.817±.005.223±.015
BiGRU.840±.007.282±.018
Table 9: Individual features as standalone detectors.
SignalMethod classAUCAP
LM entropyToken entropy.551.047
LM log-probPerplexity.549.046
NLI contradictionNLI-based.639.087
NLI entailment dropEntailment check.641.066
Context overlapLexical overlap.597.054
Running noveltyNovelty tracking.616.055
LogReg, all 33 features.730.103
BiGRU, all 33 features.840.282
Table 10: Cross-dataset transfer (mean ± std, 10 seeds, all signals).
ModelR → PP → R
AUCF1AUCF1
LogReg.618.712.692.161
BiGRU.634.709.744.185
Transformer.624.719.703.144
Table 11: Fair comparison on the open-LLM subset of RAGTruth (5 seeds). Combined = our 33-dim + Lookback features.
FeaturesModelAUCAP
Proxy: Qwen3-14B
Lookback onlyBiGRU.838±.015.368
Combined (193-dim)BiGRU.866±.007.425
No attention access
Ours only (33-dim)BiGRU.819±.013.298
Table 12: CRF scoring: softmax vs. forward-backward (FB) marginals. Softmax values differ from Table 5 because CRF softmax scores are unstable across seeds (see text).
ModelSoftmaxFBΔ
BiGRU-CRF0.6660.845+0.179
BiLSTM-CRF0.7850.807+0.022
Trans-CRF0.7410.818+0.077
Table 13: Complete list of 33 per-token features. The “Context” column indicates whether the feature encodes temporal information: point = depends only on the current token; cumul = cumulative statistic up to position t; window = sliding window average/max; delta = finite difference between adjacent positions; sent = sentence-level (projected to all tokens in the sentence).
#GroupFeatureContext
1TextWord length (/20)point
2TextIs numericpoint
3TextIs capitalizedpoint
4TextAbsolute position tpoint
5TextRelative position t/(T−1)point
6TextUnigram overlap 𝟏​[wt∈C]point
7TextBigram overlappoint
8TextTrigram overlappoint
9TextEntity indicatorpoint
10TextCumulative overlap ratiocumul
11TextRunning novelty ratecumul
12TextConsecutive novel countcumul
13TextWindowed novelty (5 tok)window
14TextWindowed novelty (10 tok)window
15TextWindowed novelty (20 tok)window
16TextNovelty velocity (1st diff)delta
17TextNovelty accel. (2nd diff)delta
18TextSentence position indexpoint
19TextSentence-relative positionpoint
20TextRunning mean word lengthcumul
21NLIP​(contradiction∣C,s)sent
22NLIP​(entailment∣C,s)sent
23NLIP​(neutral∣C,s)sent
24NLIRunning mean contradictioncumul
25NLIContradiction deltadelta
26NLIWindowed max contr. (10 tok)window
27NLIEntailment dropsent
28LMLog-probability (sum subwords)point
29LMNext-token entropypoint
30LMMean subword rank (log)point
Table 14: Token AUC by sequence length quartile. The BiGRU–LogReg gap grows from +8.1 (Q1) to +12.2 (Q4) as longer sequences provide more temporal context.
QuartileMean Len.LogRegBiGRUΔ
Q1 (short)620.7810.863+0.081
Q21030.7260.814+0.087
Q31350.7080.824+0.116
Q4 (long)2030.7300.851+0.122
Table 15: Onset detection metrics (all signals, tolerance k=3). 1D-CNN achieves the best F1 due to high recall; BiGRU has the best precision.
ModelPrec@3Rec@3F1@3Early
LogReg.100.517.155.423
1D-CNN.147.520.208.412
BiGRU.171.298.196.279
Table 16: BiGRU hyperparameter sweep (mean ± std AUC, 10 seeds). Performance plateaus at h=64 and degrades for h≥128.
hLayersAUCParams
321.837±.00515K
322.842±.00434K
323.840±.00753K
641.841±.00446K
642.839±.005121K
643.843±.005195K
1281.836±.006158K
1282.832±.009455K
1283.830±.011751K
2561.831±.014579K
2562.816±.0061.8M
2563.826±.0112.9M
Table 17: Training recipe ablation on BiGRU; the first row (BCE + constant) is the baseline. No recipe significantly outperforms it, suggesting the AUC ceiling is determined by the features rather than the optimization.
RecipeAUCF1PR
BCE + constant.839±.005.254.158.654
BCE + plateau.837±.006.249.154.661
BCE + cosine.840±.006.248.154.661
Focal + constant.840±.006.248.152.670
Focal + plateau.839±.007.249.153.663
Focal + cosine.839±.007.242.148.675
Table 18: Training recipe ablation on Transformer Pre-LN (10 seeds each).
RecipeAUCF1
BCE + constant.805±.008.204
BCE + plateau.803±.011.203
BCE + cosine.796±.008.198
Focal + constant.799±.008.209
Focal + plateau.801±.010.206
Focal + cosine.797±.009.201
Table 19: Full Lookback Lens comparison (open-LLM subset, 5 seeds).
FeaturesModelAUCF1AP
TinyLlama-1.1B proxy
LookbackLogReg.699.194.173
LookbackBiGRU.822.355.344
CombinedBiGRU.853.355.401
Qwen3-14B proxy
LookbackLogReg.726.204.187
LookbackBiGRU.838.384.368
CombinedBiGRU.866.391.425
Ours onlyBiGRU.819.297.298
Table 20: Architecture comparison with cosine schedule (literature recipes, 5–10 seeds). BiGRU, Mamba, and BiGRU+Attention converge to ∼0.84.
ArchitectureAUCF1ParamsSeeds
BiGRU.840±.007.257121K10
BiGRU+Attention.840±.005.251113K10
Mamba.838±.006.244203K9
BiLSTM.835±.008.242121K10
BixLSTM.827±.006.233125K10
DilatedCNN.826±.006.24461K10
Transformer.796±.008.204106K10
Table 21: Same architectures with ReduceLROnPlateau + early stopping (max 50 epochs, patience 10, 5 seeds). Plateau scheduling raises the ceiling from 0.840 to 0.845 and eliminates most architecture differences.
ArchitectureAUCΔBest EpParams
BiLSTM.845±.003+.01017121K
Mamba.844±.005+.00620203K
BiGRU+Attn.844±.002+.00412113K
BiGRU.843±.003+.0038121K
BixLSTM.843±.004+.01619125K
DilatedCNN.833±.002+.0071361K
Transformer.827±.002+.03146106K
Table 22: Probing comparison: hidden states from the generating model vs. our 33-dim black-box features. Each generator is evaluated only on its own outputs. Hidden states are extracted from 4 evenly spaced layers (dim=16,384).
LLaMA-2-7BMistral-7B
MethodAUCF1AUCF1
Linear probe on HS.543.118.574.142
BiGRU on HS.637.195.631.201
BiGRU on 33-dim (ours).770.245.833.355
BiGRU on 33-dim + HS.748.215.793.282
Table 23: Per-task AUC for five architectures (3 seeds, plateau+ES). QA is easiest across all architectures; Data2txt shows the largest temporal advantage.
ArchitectureQAData2txtSummary
Mamba.890±.007.827±.009.766±.005
BiGRU.885±.002.833±.006.758±.017
BiGRU+Attn.885±.004.830±.008.770±.010
BixLSTM.884±.003.815±.017.771±.013
DilatedCNN.883±.005.795±.009.760±.008

Why it matters

Because hallucinations tend to spread token by token once they start, catching that pattern lets this detector work on closed-source models where internal signals aren't available. That matters for real deployments -- like retrieval-augmented generation in healthcare, legal, or financial settings -- where a single fabricated claim can propagate downstream.

Terms in this paper

  • hallucination · fluent but factually wrong text generated by an AI language model
  • NLI (Natural Language Inference) · a technique that judges whether one sentence entails, contradicts, or is neutral toward another
  • surprisal · a measure of how unexpected a word is according to a language model's predictions
  • BiGRU (Bidirectional Gated Recurrent Unit) · a neural network that reads a sequence both forward and backward to capture context
  • AUC · a score measuring how well a model distinguishes correct from incorrect cases, higher is better
  • CRF (Conditional Random Field) · a structured prediction method that models dependencies between neighboring labels

Figures we cannot republish

  • Figure 2: Decomposition of BiGRU’s 11-point advantage over LogReg. Temporal order is the largest contributor (44%).
  • Figure 3: Feature dynamics aligned to hallucination span onset (1,136 spans). LM entropy spikes at onset; context overlap drops; NLI contradiction rises gradually; BiGRU probability accumulates monotonically.
  • Figure 4: AUC distribution across 10 seeds for key architectures. Temporal models (BiGRU, BiLSTM) consistently outperform non-temporal baselines (LogReg, MLP).
  • Figure 5: Token AUC across all architecture–signal combinations (single seed). Non-CRF temporal models (BiGRU, BiLSTM) consistently outperform baselines across all signal configurations.
  • Figure 6: Leave-one-out cross-model generalization (all signals, 10 seeds). GPT-4 is the hardest transfer target; LLaMA-2-70B is the easiest.
  • Figure 7: Waterfall decomposition of signal contributions to BiGRU’s AUC. NLI and LM features provide complementary gains beyond text features alone.
  • Figure 8: Precision-recall curves for all non-CRF architectures (all signals, seed 42). The low overall precision reflects RAGTruth’s 5.6% hallucination rate.
  • Figure 9: Per-task AUC comparison (all signals). The temporal advantage of BiGRU over LogReg is largest for Data2txt.
  • Figure 10: Token AUC by sequence length quartile. The BiGRU–LogReg gap grows from +8.1 (Q1) to +12.2 (Q4).
  • Figure 11: CRF scoring methods compared. Forward-backward marginals recover up to +17.9 AUC points over softmax scoring.
  • Figure 12: Natural counterfactual: same query, different LLMs, one hallucinating. NLI contradiction separates the two; LM entropy does not; BiGRU integrates both.
  • Figure 13: Bidirectional dataset transfer. Reverse transfer (PsiloQA to RAGTruth) outperforms forward despite fewer training examples.
  • Figure 14: Architecture comparison (cosine schedule). All temporal architectures with full-sequence scope converge to ∼0.84 AUC. With plateau scheduling (Table 21), the ceiling rises to 0.845.
See the figures in the original paper →

Original abstract (English)

Token-level hallucination detectors score each token independently from a single signal, and fail exactly when the generating model is confidently wrong. This paper instead treats hallucination as a temporally extended span and detects it by sequence labeling: each token is scored from a 33-dimensional feature stream that fuses text statistics, Natural Language Inference (NLI) entailment, and language model surprisal, with no access to model internals. A Bidirectional Gated Recurrent Unit (BiGRU) over these features reaches an AUC of 0.840 on RAGTruth (10 seeds), an 11-point gain over an independent logistic-regression baseline (p = 0.002, Wilcoxon signed-rank). A controlled decomposition attributes most of the gain to temporal order rather than model capacity: evidence propagates from confident positions to ambiguous neighbors within a span. The same 0.845 ceiling recurs across recurrent, state-space (Mamba), and attention architectures, locating the bottleneck in the feature set rather than the model. Because it reads only the generated text and external signals, the detector works on closed-source models, and it keeps working on text produced by language models it never saw during training, losing under 4% AUC.

Authors · Igor Itkin

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA