Decoding Memories: An Efficient Pipeline for Self-Consistency Hallucination Detection

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gao, Weizhi, Liu, Xiaorui, Wang, Feiyi, Lu, Dan, Yin, Junqi
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912558741454848
author Gao, Weizhi
Liu, Xiaorui
Wang, Feiyi
Lu, Dan
Yin, Junqi
author_facet Gao, Weizhi
Liu, Xiaorui
Wang, Feiyi
Lu, Dan
Yin, Junqi
contents Large language models (LLMs) have demonstrated impressive performance in both research and real-world applications, but they still struggle with hallucination. Existing hallucination detection methods often perform poorly on sentence-level generation or rely heavily on domain-specific knowledge. While self-consistency approaches help address these limitations, they incur high computational costs due to repeated generation. In this paper, we conduct the first study on identifying redundancy in self-consistency methods, manifested as shared prefix tokens across generations, and observe that non-exact-answer tokens contribute minimally to the semantic content. Based on these insights, we propose a novel Decoding Memory Pipeline (DMP) that accelerates generation through selective inference and annealed decoding. Being orthogonal to the model, dataset, decoding strategy, and self-consistency baseline, our DMP consistently improves the efficiency of multi-response generation and holds promise for extension to alignment and reasoning tasks. Extensive experiments show that our method achieves up to a 3x speedup without sacrificing AUROC performance.
format Preprint
id arxiv_https___arxiv_org_abs_2508_21228
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Decoding Memories: An Efficient Pipeline for Self-Consistency Hallucination Detection
Gao, Weizhi
Liu, Xiaorui
Wang, Feiyi
Lu, Dan
Yin, Junqi
Computation and Language
Artificial Intelligence
Large language models (LLMs) have demonstrated impressive performance in both research and real-world applications, but they still struggle with hallucination. Existing hallucination detection methods often perform poorly on sentence-level generation or rely heavily on domain-specific knowledge. While self-consistency approaches help address these limitations, they incur high computational costs due to repeated generation. In this paper, we conduct the first study on identifying redundancy in self-consistency methods, manifested as shared prefix tokens across generations, and observe that non-exact-answer tokens contribute minimally to the semantic content. Based on these insights, we propose a novel Decoding Memory Pipeline (DMP) that accelerates generation through selective inference and annealed decoding. Being orthogonal to the model, dataset, decoding strategy, and self-consistency baseline, our DMP consistently improves the efficiency of multi-response generation and holds promise for extension to alignment and reasoning tasks. Extensive experiments show that our method achieves up to a 3x speedup without sacrificing AUROC performance.
title Decoding Memories: An Efficient Pipeline for Self-Consistency Hallucination Detection
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2508.21228