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

ADEPT: 用于Transformer的自适应动态早退出过程

ADEPT: Adaptive Dynamic Early-Exit Process for Transformers

University of Michigan Ann Arbor(密歇根大学安阿伯分校);Samsung Semiconductor(三星半导体)

Sangmin Yoo, Srikanth Malla, Chiho Choi, Wei D. Lu, Joon Hee Choi

AI总结:

ADEPT通过自适应动态早退出机制提升Transformer模型的推理效率,实现生成和预填充阶段的高效计算优化。

摘要:

大型语言模型的推理过程对计算资源提出了显著要求,通常需要处理数十亿个参数。尽管早退出策略已被证明在减少计算需求方面有效,但其应用仅限于生成阶段的第一个token或预填充阶段的提示级别。因此,被跳过的层的键值(KV)缓存仍然是后续token生成的瓶颈,限制了早退出的效益。我们引入ADEPT(用于Transformer的自适应动态早退出过程),一种新的方法,旨在克服这一问题,使早退出能够在预填充和生成阶段动态实现。所提出的自适应token级早退出机制根据token的复杂性动态调整计算,优化效率而不影响性能。ADEPT进一步通过解耦跳过层中的顺序依赖性来增强KV生成过程,使token级早退出更加实用。实验结果表明,ADEPT在语言生成任务中将效率提高了高达25%,在下游分类任务中实现了4倍的速度提升,性能改进最高可达45%。

英文摘要:

The inference of large language models imposes significant computational workloads, often requiring the processing of billions of parameters. Although early-exit strategies have proven effective in reducing computational demands by halting inference earlier, they apply either to only the first token in the generation phase or at the prompt level in the prefill phase. Thus, the Key-Value (KV) cache for skipped layers remains a bottleneck for subsequent token generation, limiting the benefits of early exit. We introduce ADEPT (Adaptive Dynamic Early-exit Process for Transformers), a novel approach designed to overcome this issue and enable dynamic early exit in both the prefill and generation phases. The proposed adaptive token-level early-exit mechanism adjusts computation dynamically based on token complexity, optimizing efficiency without compromising performance. ADEPT further enhances KV generation procedure by decoupling sequential dependencies in skipped layers, making token-level early exit more practical. Experimental results demonstrate that ADEPT improves efficiency by up to 25% in language generation tasks and achieves a 4x speed-up in downstream classification tasks, with up to a 45% improvement in performance.

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

↑