SED: Self-Evaluation Decoding Enhances Large Language Models for Better Generation
Ziqin Luo, Haixia Han, Haokun Zhao, Guochao Jiang, Chengyu Du, Tingyun Li, Jiaqing Liang, Deqing Yang, Yanghua Xiao
TL;DR
Self-Evaluation Decoding (SED) targets chaotic points in autoregressive generation by introducing a three-stage process: chaotic-point detection, speculation over top tokens, and self-evaluation feedback that yields a propensity score for token selection. By combining evaluation-guided feedback with the original token probabilities, SED selects tokens that minimize error propagation at uncertain points. Training leverages multi-task learning from augmented evaluation and generation data, and a multi-model ensembling strategy strengthens evaluation signals. Across HotpotQA, XieZhi, and GSM8K with models like falcon-7b-instruct and llama2-7b-chat-hf, ratio-based SED consistently improves accuracy over greedy, beam, and nuclear decoding, underscoring the practical impact of incorporating self-evaluation into decoding. Alignment between speculation and generation is essential for gains, and higher-quality evaluation signals further boost performance.
Abstract
Existing Large Language Models (LLMs) generate text through unidirectional autoregressive decoding methods to respond to various user queries. These methods tend to consider token selection in a simple sequential manner, making it easy to fall into suboptimal options when encountering uncertain tokens, referred to as chaotic points in our work. Many chaotic points exist in texts generated by LLMs, and they often significantly affect the quality of subsequently generated tokens, which can interfere with LLMs' generation. This paper proposes Self-Evaluation Decoding, SED, a decoding method for enhancing model generation. Analogous to the human decision-making process, SED integrates speculation and evaluation steps into the decoding process, allowing LLMs to make more careful decisions and thus optimize token selection at chaotic points. Experimental results across various tasks using different LLMs demonstrate SED's effectiveness.
