Detecting RAG hallucinations via cascade influence from attention to feedforward networks

Retrieval-augmented generation (RAG) mitigates the problem of insufficient knowledge when large language models (LLMs) are applied to specific domains, but models may still produce responses that are either unsupported or contradict the retrieved information, a phenomenon we term RAG hallucination. Recent mechanistic-interpretability detection methods attribute it to insufficient external-context utilization and excessive parametric-knowledge utilization. They quantify the two utilization signals and obtain a hallucination risk score by weighting or regression, but overlook the cascade influence between them. We propose CASDET, a training-free method considering Attention–FFN cascade influence. For each Transformer block, we form a local control state by removing only the current layer’s external-context contribution at the FFN input, separate the influence signal as the difference between the two FFN outputs, and quantify it with the Logit Lens as the change in the current token’s predicted probability. Layer-wise results are summarized into influence breadth, depth, and intensity, which are combined into a response-level hallucination risk score without thresholds or attention-head/layer selection. Under graded local intervention, a Page’s L test confirms the monotonic strengthening of the influence signal. Across RAGTruth and HalluRAG with four open-source LLMs, CASDET is competitive with the stronger baselines, with a detection time comparable to that of single-forward uncertainty methods and 2–134× shorter than that of the remaining baselines. Our results indicate that the influence of external-context introduction on the expression and use of parametric knowledge differs systematically between non-hallucinated and hallucinated responses, enabling training-free detection.

Authors

Publication Details

Journal
Research Square
Published
2026-11-24
DOI
https://doi.org/10.21203/rs.3.rs-11527734/v1
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Detecting RAG hallucinations via cascade influence from attention to feedforward networks

Pengyu Guo, Qiyang Gu, Fei Wang, Min Tang et al.
Research Square
Explainable Artificial Intelligence (XAI)
preprint

Detecting RAG hallucinations via cascade influence from attention to feedforward networks

Pengyu Guo, Qiyang Gu, Fei Wang, Min Tang, Hui Chen, Fei Zhang
preprint en

Abstract

Retrieval-augmented generation (RAG) mitigates the problem of insufficient knowledge when large language models (LLMs) are applied to specific domains, but models may still produce responses that are either unsupported or contradict the retrieved information, a phenomenon we term RAG hallucination. Recent mechanistic-interpretability detection methods attribute it to insufficient external-context utilization and excessive parametric-knowledge utilization. They quantify the two utilization signals and obtain a hallucination risk score by weighting or regression, but overlook the cascade influence between them. We propose CASDET, a training-free method considering Attention–FFN cascade influence. For each Transformer block, we form a local control state by removing only the current layer’s external-context contribution at the FFN input, separate the influence signal as the difference between the two FFN outputs, and quantify it with the Logit Lens as the change in the current token’s predicted probability. Layer-wise results are summarized into influence breadth, depth, and intensity, which are combined into a response-level hallucination risk score without thresholds or attention-head/layer selection. Under graded local intervention, a Page’s L test confirms the monotonic strengthening of the influence signal. Across RAGTruth and HalluRAG with four open-source LLMs, CASDET is competitive with the stronger baselines, with a detection time comparable to that of single-forward uncertainty methods and 2–134× shorter than that of the remaining baselines. Our results indicate that the influence of external-context introduction on the expression and use of parametric knowledge differs systematically between non-hallucinated and hallucinated responses, enabling training-free detection.

Research Square
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon