Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreement
Koduvayur Subbalakshmi, Sabbir Hossain Ujjal, Venkata Krishna Teja Mangichetty, Nastaran Jamalipour Soofi

TL;DR
This paper introduces CoCoA, a training-free decoding method that reduces hallucinations in large language models by monitoring and penalizing internal layer inconsistencies, significantly improving factual accuracy across tasks.
Contribution
The paper proposes CoCoA, a novel inference-time decoding algorithm that leverages internal layer signals to mitigate hallucinations without retraining models.
Findings
CoCoA improves factual correctness in LLM outputs across multiple tasks.
CoCoA is effective on various model families like Llama-3 and Qwen-2.5.
The method enhances trustworthiness of LLMs without additional training.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Adversarial Robustness in Machine Learning · Misinformation and Its Impacts
