Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding

LLM MQIA
2024年01月15日
为了缓解大型语言模型(LLMs)中自回归解码产生的高推理延迟,探索性解码已经成为LLM推理的一种新的解码范式。在每个解码步骤中,这种方法首先高效地草拟出几个未来的标记,然后并行验证它们。与自回归解码不同,探索性解码促进了每个步骤同时解码多个标记,从而加速推理。本文提供了对这种有前途的解码范式的全面概述和分析。我们首先提供了探索性解码的正式定义和公式化。然后,我们对其关键要素进行了深入讨论,包括当前领先的技术、面临的挑战以及该领域的潜在未来方向。我们的目标是让这项工作成为进一步研究探索性解码的催化剂,最终为更有效的LLM推理做出贡献。
To mitigate the high inference latency stemming from autoregressive decoding in Large Language Models (LLMs), Speculative Decoding has emerged as a novel decoding paradigm for LLM inference. In each decoding step, this method first efficiently drafts several future tokens and then verifies them in parallel. Unlike autoregressive decoding, Speculative Decoding facilitates the simultaneous decoding of multiple tokens per step, thereby accelerating inference. This paper presents a comprehensive overview and analysis of this promising decoding paradigm. We begin by providing a formal definition and formulation of Speculative Decoding. Then, we organize in-depth discussions on its key facets, including current leading techniques, the challenges faced, and potential future directions in this field. We aim for this work to serve as a catalyst for further research on Speculative Decoding, ultimately contributing to more efficient LLM inference.
许愿