Monitoring Decoding: Mitigating Hallucination via Evaluating the Factuality of Partial Response during Generation

Yurui Chang, Bochuan Cao, Lu Lin
3/5/2025
cs.CLcs.LG

No official code found. Best implementation: yuruic/monitoring_decoding (2 stars, last commit 2025-06-30).

Abstract

While large language models have demonstrated exceptional performance across a wide range of tasks, they remain susceptible to hallucinations -- generating plausible yet factually incorrect contents. Existing methods to mitigating such risk often rely on sampling multiple full-length generations, which introduces significant response latency and becomes ineffective when the model consistently produces hallucinated outputs with high confidence. To address these limitations, we introduce Monitoring Decoding (MD), a novel framework that dynamically monitors the generation process and selectively applies in-process interventions, focusing on revising crucial tokens responsible for hallucinations. Instead of waiting until completion of multiple full-length generations, we identify hallucination-prone tokens during generation using a monitor function, and further refine these tokens through a tree-based decoding strategy. This approach ensures an enhanced factual accuracy and coherence in the generated output while maintaining efficiency. Experimental results demonstrate that MD consistently outperforms self-consistency-based approaches in both effectiveness and efficiency, achieving higher factual accuracy while significantly reducing computational overhead.

View on arXivView PDF

Code Implementations(1)

The official repository for Monitoring Decoding: Mitigating Hallucination via Evaluating the Factuality of Partial Response during Generation

20PythonJun 30, 20251 years ago

Similar Papers

Cite this paper

@article{chang2025monitoring,
  title  = {Monitoring Decoding: Mitigating Hallucination via Evaluating the Factuality of Partial Response during Generation},
  author = {Yurui Chang and Bochuan Cao and Lu Lin},
  year   = {2025},
  eprint = {2503.03106},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03106v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.03106.svg)](https://codeofpaper.com/paper/2503.03106)

Discussion