paper-with-me

홈 › Papers

Automatic Layer Selection for Hallucination Detection

2026-05-25 · Xinpeng Wang, William X. Cao, Andrew Gordon Wilson, Zhe Zeng arxiv

Recent studies on hallucination detection have shown that hallucination-related signals are more strongly encoded in intermediate layers than in the final layer of large language models (LLMs). Although a growing body of work has sought to exploit this property for hallucination detection, how to automate the selection of high-performing layers remains underexplored, and principled methods for this purpose are still lacking. To address this gap, we first propose several hypotheses for why such signals emerge in intermediate layers and evaluate corresponding criteria for automatic layer selection across diverse LLM architectures, scales, and tasks, covering both question answering and summarization hallucination detection benchmarks. However, we find that none of these criteria consistently delivers satisfactory performance. We therefore propose a new selection criterion, First Effective Peak of Intrinsic Dimension (FEPoID), which consistently identify optimal or near-optimal layers and outperforms both the aforementioned criteria and existing hallucination detection baselines. FEPoID is training-free and incurs negligible computational overhead. In addition, we study the generation behaviors of LLMs and introduce a simple yet effective truncation strategy, which further amplifies hallucination-related signals and substantially improves overall detection performance. Code is publicly available at https://github.com/DesoloYw/Automatic-Layer-Selection-for-Hallucination-Detection.git

📄 PDF Abstract BibTeX arXiv:2605.26366

Code (0)

등록된 구현이 없습니다.

Tasks

Question Answering

Similar Papers 제목 키워드 기반

Controlled Automatic Task-Specific Synthetic Data Generation for Hallucination Detection

2024-10-16 · Yong Xie, Karan Aggarwal, Aitzaz Ahmad, Stephen Lau

We present a novel approach to automatically generate non-trivial task-specific synthetic datasets for hallucination detection. Our approach features a two-step generation-selection pipeline, using hallucination pattern …

HallucinationIn-Context LearningSynthetic Data Generation

HalluTracer: Hallucination Detection via Depth-Averaging Truth Signals

2026-08-17 · Zhihao Guo, Zonghan Wu, Huan Huo, DaYong Ye 외 arxiv

Even well-aligned large language models confidently generate factually incorrect text, making hallucination a persistent reliability risk in high-stakes deployments. These models nonetheless carry linearly separable trut…

D$^2$HScore: Reasoning-Aware Hallucination Detection via Semantic Breadth and Depth Analysis in LLMs

2025-09-15 · Yue Ding, Xiaofang Zhu, Tianze Xia, Junfei Wu 외 arxiv

Although large Language Models (LLMs) have achieved remarkable success, their practical application is often hindered by the generation of non-factual content, which is called "hallucination". Ensuring the reliability of…

Robust Hallucination Detection in LLMs via Adaptive Token Selection

2025-04-10 · Mengjia Niu, Hamed Haddadi, Guansong Pang

Hallucinations in large language models (LLMs) pose significant safety concerns that impede their broader deployment. Recent research in hallucination detection has demonstrated that LLMs' internal representations contai…

Hallucination

RePPL: Recalibrating Perplexity by Uncertainty in Semantic Propagation and Language Generation for Explainable QA Hallucination Detection

2025-05-21 · Yiming Huang, Junyan Zhang, ZiHao Wang, Biquan Bie 외

Large Language Models (LLMs) have become powerful, but hallucinations remain a vital obstacle to their trustworthy use. While previous works improved the capability of hallucination detection by measuring uncertainty, th…

HallucinationText Generation