arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.08134cs.LGcs.AI
收藏

DARE:扩散语言模型激活重用以提高推理效率

DARE: Diffusion Language Model Activation Reuse for Efficient Inference

Chandra Family Department of Electrical and Computer Engineering(查德拉家族电子与计算机工程系);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Cornell University(康奈尔大学)

Natalia Frumkin, Bokun Wang, Hung-Yueh Chiang, Chi-Chih Chang, Mohamed S. Abdelfattah, Diana Marculescu

AI总结:

DARE通过利用扩散语言模型中token级冗余性,提高推理效率,减少计算量,同时保持生成质量。

摘要:

扩散大语言模型(dLLMs)作为一种有前途的替代方案,提供了更大的表达能力以及并行生成和更快推理的潜力。然而,开源dLLMs仍不成熟,在效率和质量上落后于自回归(AR)模型。我们识别出dLLMs的一个未被充分探索的特性:双向自注意力中的token级冗余性。自注意力激活在token间高度相关,查询表示的时间变化可以预测相应键、值和输出激活的冗余性。我们引入DARE,包含两个互补机制:DARE-KV,重用缓存的键值(KV)激活,以及DARE-O,重用输出激活以减少冗余计算同时保持质量。DARE实现了每层1.20倍的延迟降低,并重用了高达87%的注意力激活,推理和代码生成基准测试中降级可忽略。DARE-KV和DARE-O分别导致平均性能下降仅为2.0%和1.2%。结合前缀缓存和Fast-dLLM等技术,DARE提供了无再训练的附加增益。这些结果确立了token级重用作为提高扩散基LLM效率的有效策略,同时保持生成保真度。代码:https://github.com/enyac-group/DARE

英文摘要:

Diffusion Large Language Models (dLLMs) have emerged as a promising alternative to auto-regressive (AR) models, offering greater expressive capacity and potential for parallel generation and faster inference. However, open-source dLLMs remain immature, lagging behind AR models in both efficiency and quality. We identify an underexplored property of dLLMs: *token-wise redundancy* in bi-directional self-attention. Self-attention activations are highly correlated across tokens, and temporal changes in query representations can predict redundancy in corresponding key, value, and output activations. We introduce DARE, with two complementary mechanisms: DARE-KV, which reuses cached key-value (KV) activations, and DARE-O, which reuses output activations to reduce redundant computation while preserving quality. DARE achieves up to 1.20x per-layer latency reduction and reuses up to 87% of attention activations, with negligible degradation on reasoning and code-generation benchmarks. DARE-KV and DARE-O incur average performance drops of only 2.0% and 1.2%, respectively. Combined with techniques such as prefix caching and Fast-dLLM, DARE provides additive gains without retraining. These results establish token-wise reuse as an effective strategy for improving the efficiency of diffusion-based LLMs while preserving generation fidelity. Code: https://github.com/enyac-group/DARE

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

↑