Integrative Decoding: Improve Factuality via Implicit Self-consistency
Yi Cheng, Xiao Liang, Yeyun Gong, Wen Xiao, Song Wang, Yuji Zhang, Wenjun Hou, Kaishuai Xu, Wenge Liu, Wenjie Li, Jian Jiao, Qi Chen, Peng Cheng, Wayne Xiong
TL;DR
This work tackles factuality in large language models by addressing the limitations of prior self-consistency approaches for open-ended generation. It introduces Integrative Decoding (ID), an inference-time method that constructs multiple inputs by prepending sampled responses to the prompt and decodes in parallel, aggregating logits to implicitly encourage self-consistency. Across six diverse LLMs and three open-ended benchmarks (TruthfulQA, Biographies, LongFact), ID yields substantial factuality gains and its benefits scale with the number of sampled responses, while maintaining reasonable efficiency. The results suggest that ID offers a practical path toward inference-time scaling of factual accuracy in real-world generation tasks, with robust performance across model scales and sampling strategies, and it points to promising future work combining ID with speculative decoding and more precise decoding strategies.
Abstract
Self-consistency-based approaches, which involve repeatedly sampling multiple outputs and selecting the most consistent one as the final response, prove to be remarkably effective in improving the factual accuracy of large language models. Nonetheless, existing methods usually have strict constraints on the task format, largely limiting their applicability. In this paper, we present Integrative Decoding (ID), to unlock the potential of self-consistency in open-ended generation tasks. ID operates by constructing a set of inputs, each prepended with a previously sampled response, and then processes them concurrently, with the next token being selected by aggregating of all their corresponding predictions at each decoding step. In essence, this simple approach implicitly incorporates self-consistency in the decoding objective. Extensive evaluation shows that ID consistently enhances factuality over a wide range of language models, with substantial improvements on the TruthfulQA (+11.2%), Biographies (+15.4%) and LongFact (+8.5%) benchmarks. The performance gains amplify progressively as the number of sampled responses increases, indicating the potential of ID to scale up with repeated sampling.
