arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.24544cs.CLcs.AI
收藏

跨注意力推测解码

Cross-Attention Speculative Decoding

LGE(LGE公司)

Wei Zhong, Manasa Bharadwaj, Yixiao Wang, Yipeng Ji, Chul Lee

AI总结:

Beagle是一种基于跨注意力的新型推测解码模型,实现了与EAGLE-v2相当的性能,同时简化了架构,提高了训练效率并保持了稳定的内存使用。

摘要:

推测解码(SD)是一种广泛采用的方法,用于加速大型语言模型(LLMs)的推理过程,尤其是在草稿和目标模型高度对齐的情况下。然而,最先进的SD方法通常依赖于紧密耦合的、基于自注意力的Transformer解码器,通常辅以辅助池化或融合层。这种耦合使它们越来越复杂,难以在不同模型之间泛化。我们提出了Budget EAGLE(Beagle),这是目前已知的第一个基于跨注意力的Transformer解码器SD模型,其性能与领先的自注意力SD模型(EAGLE-v2)相当,同时消除了对池化或辅助组件的需要,简化了架构,提高了训练效率,并在训练时间模拟中保持了稳定的内存使用。为了有效训练这种新型架构,我们提出了Two-Stage Block-Attention Training,一种新的方法,能够在块级注意力场景中实现训练稳定性和收敛效率。在多个LLM和数据集上的广泛实验表明,Beagle在推理加速和训练效率方面均优于EAGLE-v2,为推测解码架构提供了有力的替代方案。

英文摘要:

Speculative decoding (SD) is a widely adopted approach for accelerating inference in large language models (LLMs), particularly when the draft and target models are well aligned. However, state-of-the-art SD methods typically rely on tightly coupled, self-attention-based Transformer decoders, often augmented with auxiliary pooling or fusion layers. This coupling makes them increasingly complex and harder to generalize across different models. We present Budget EAGLE (Beagle), the first, to our knowledge, cross-attention-based Transformer decoder SD model that achieves performance on par with leading self-attention SD models (EAGLE-v2) while eliminating the need for pooling or auxiliary components, simplifying the architecture, improving training efficiency, and maintaining stable memory usage during training-time simulation. To enable effective training of this novel architecture, we propose Two-Stage Block-Attention Training, a new method that achieves training stability and convergence efficiency in block-level attention scenarios. Extensive experiments across multiple LLMs and datasets show that Beagle achieves competitive inference speedups and higher training efficiency than EAGLE-v2, offering a strong alternative for architectures in speculative decoding.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑