Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Subbalakshmi, Koduvayur, Ujjal, Sabbir Hossain, Mangichetty, Venkata Krishna Teja, Soofi, Nastaran Jamalipour
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911494905528320
author Subbalakshmi, Koduvayur
Ujjal, Sabbir Hossain
Mangichetty, Venkata Krishna Teja
Soofi, Nastaran Jamalipour
author_facet Subbalakshmi, Koduvayur
Ujjal, Sabbir Hossain
Mangichetty, Venkata Krishna Teja
Soofi, Nastaran Jamalipour
contents Pretrained Large Language Models (LLMs) are prone to generating fluent yet factually incorrect text-a phenomenon known as hallucinations, undermining their reliability and utility in downstream tasks. We hypothesize that a generated text span's factuality is correlated with its representational instability across the model's internal layers. Based on this, we propose the CoCoA (Confusion and Consistency Aware) decoder, a novel, training-free decoding algorithm that mitigates hallucinations at inference time by listening to these signals in the middle layers. We propose two metrics to quantify this instability in the middle layers and use it to penalize outputs that exhibit high internal confusion, thereby steering the model towards more internally consistent and factually grounded outputs. We further propose a self-information gated variant, CoCoA-SIG, that dynamically modulates this penalty to selectively target high-surprise, unstable generations. Extensive experiments on diverse tasks, including question-answering, summarization, mathematical reasoning and code generation, demonstrate that CoCoA significantly improves factual correctness across multiple model families (e.g., Llama-3, Qwen-2.5, Mistral). By leveraging model-intrinsic signals, CoCoA offers an effective and broadly applicable method for enhancing the trustworthiness of LLMs at inference time, without requiring any model retraining.
format Preprint
id arxiv_https___arxiv_org_abs_2602_09486
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement
Subbalakshmi, Koduvayur
Ujjal, Sabbir Hossain
Mangichetty, Venkata Krishna Teja
Soofi, Nastaran Jamalipour
Computation and Language
Artificial Intelligence
I.2.7
Pretrained Large Language Models (LLMs) are prone to generating fluent yet factually incorrect text-a phenomenon known as hallucinations, undermining their reliability and utility in downstream tasks. We hypothesize that a generated text span's factuality is correlated with its representational instability across the model's internal layers. Based on this, we propose the CoCoA (Confusion and Consistency Aware) decoder, a novel, training-free decoding algorithm that mitigates hallucinations at inference time by listening to these signals in the middle layers. We propose two metrics to quantify this instability in the middle layers and use it to penalize outputs that exhibit high internal confusion, thereby steering the model towards more internally consistent and factually grounded outputs. We further propose a self-information gated variant, CoCoA-SIG, that dynamically modulates this penalty to selectively target high-surprise, unstable generations. Extensive experiments on diverse tasks, including question-answering, summarization, mathematical reasoning and code generation, demonstrate that CoCoA significantly improves factual correctness across multiple model families (e.g., Llama-3, Qwen-2.5, Mistral). By leveraging model-intrinsic signals, CoCoA offers an effective and broadly applicable method for enhancing the trustworthiness of LLMs at inference time, without requiring any model retraining.
title Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement
topic Computation and Language
Artificial Intelligence
I.2.7
url https://arxiv.org/abs/2602.09486