生成与验证相遇:通过智能并行自动校正解码加速大语言模型推理
Generation Meets Verification: Accelerating Large Language Model Inference with Smart Parallel Auto-Correct Decoding
AI总结:
本研究提出SPACE智能并行自动校正解码方法,通过半自回归监督微调让大语言模型可并行生成与验证token,在HumanEval-X上实现2.7-4.0倍无损推理加速。
摘要:
本研究旨在提升具有数十亿参数的大语言模型(LLM)的推理速度。我们提出了智能并行自动校正解码(Smart Parallel Auto-Correct dEcoding,SPACE),这是一种旨在实现LLM无损加速的创新方法。通过融合半自回归推理与投机解码能力,SPACE独特地让自回归LLM能够并行执行token生成与验证。这一特性通过专门的半自回归监督微调过程实现,该过程让现有LLM具备同时预测多个token的能力。此外,自动校正解码算法支持在单次模型调用中同时生成并验证token序列。通过在一系列LLM上开展的大量实验,SPACE在HumanEval-X基准上实现了2.7倍至4.0倍的推理加速,同时保持了输出质量。
英文摘要:
This research aims to accelerate the inference speed of large language models (LLMs) with billions of parameters. We propose \textbf{S}mart \textbf{P}arallel \textbf{A}uto-\textbf{C}orrect d\textbf{E}coding (SPACE), an innovative approach designed for achieving lossless acceleration of LLMs. By integrating semi-autoregressive inference and speculative decoding capabilities, SPACE uniquely enables autoregressive LLMs to parallelize token generation and verification. This is realized through a specialized semi-autoregressive supervised fine-tuning process that equips existing LLMs with the ability to simultaneously predict multiple tokens. Additionally, an auto-correct decoding algorithm facilitates the simultaneous generation and verification of token sequences within a single model invocation. Through extensive experiments on a range of LLMs, SPACE has demonstrated inference speedup ranging from 2.7x-4.0x on HumanEval-X while maintaining output quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。