English

Active Layer-Contrastive Decoding Reduces Hallucination in Large Language Model Generation

Computation and Language 2025-09-16 v3 Artificial Intelligence Machine Learning

Abstract

Recent decoding methods improve the factuality of large language models (LLMs) by refining how the next token is selected during generation. These methods typically operate at the token level, leveraging internal representations to suppress superficial patterns. Nevertheless, LLMs remain prone to hallucinations, especially over longer contexts. In this paper, we propose Active Layer-Contrastive Decoding (ActLCD), a novel decoding strategy that actively decides when to apply contrasting layers during generation. By casting decoding as a sequential decision-making problem, ActLCD employs a reinforcement learning policy guided by a reward-aware classifier to optimize factuality beyond the token level. Our experiments demonstrate that ActLCD surpasses state-of-the-art methods across five benchmarks, showcasing its effectiveness in mitigating hallucinations in diverse generation scenarios.

Keywords

Cite

@article{arxiv.2505.23657,
  title  = {Active Layer-Contrastive Decoding Reduces Hallucination in Large Language Model Generation},
  author = {Hongxiang Zhang and Hao Chen and Muhao Chen and Tianyi Zhang},
  journal= {arXiv preprint arXiv:2505.23657},
  year   = {2025}
}

Comments

19 pages, 3 figures, EMNLP 2025

R2 v1 2026-07-01T02:48:48.825Z