面向自回归语言模型的带同步并行解码的快速鲁棒早退框架
Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding
AI总结:
针对自回归语言模型推理延迟高及现有早退框架的性能缺陷,提出融合深浅模块与同步并行解码的FREE框架及基于Beta混合模型的自适应阈值估计器,在生成任务上实现更优的快速鲁棒推理效果。
摘要:
为解决自回归语言模型推理延迟高的问题,已有研究提出早退框架,可根据生成下一个词元的复杂度为每个词元分配自适应计算路径。但我们发现该框架存在若干缺陷:包括由状态复制机制或大量退出路径导致的性能下降,以及对退出置信度阈值的敏感性。为此,我们提出快速鲁棒早退(Fast and Robust Early-Exiting, FREE)框架,该框架融合了深浅模块与同步并行解码技术。框架通过将当前词元的解码过程与先前堆叠的早选词元同步,实现更快的推理。此外,由于并行解码可同时获取浅层和深层模型的预测结果,我们提出一种新型自适应阈值估计器,利用Beta混合模型确定合适的置信度阈值。我们在大量生成任务上通过实验证明了所提框架的优越性。
英文摘要:
To tackle the high inference latency exhibited by autoregressive language models, previous studies have proposed an early-exiting framework that allocates adaptive computation paths for each token based on the complexity of generating the subsequent token. However, we observed several shortcomings, including performance degradation caused by a state copying mechanism or numerous exit paths, and sensitivity to exit confidence thresholds. Consequently, we propose a Fast and Robust Early-Exiting (FREE) framework, which incorporates a shallow-deep module and a synchronized parallel decoding. Our framework enables faster inference by synchronizing the decoding process of the current token with previously stacked early-exited tokens. Furthermore, as parallel decoding allows us to observe predictions from both shallow and deep models, we present a novel adaptive threshold estimator that exploits a Beta mixture model to determine suitable confidence thresholds. We empirically demonstrated the superiority of our proposed framework on extensive generation tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。