Attention Is All You Need for KV Cache in Diffusion LLMs
Quan Nguyen-Tri, Mukul Ranjan, Zhiqiang Shen
摘要
This work studies how to adaptively recompute key–value (KV) caches for diffusion large language models (DLMs) to maximize prediction accuracy while minimizing decoding latency. Prior methods' decoders recompute QKV for all tokens at every denoising step and layer, despite KV states changing little across most steps, especially in shallow layers, leading to substantial redundancy. We make three observations: (1) distant MASK tokens primarily act as a length-bias and can be cached block-wise beyond the active prediction window; (2) KV dynamics increase with depth, suggesting that selective refresh starting from deeper layers is sufficient; and (3) the most-attended token exhibits the smallest KV drift, providing a conservative lower bound on cache change for other tokens. Building on these, we propose Elastic-Cache, a training-free, architecture-agnostic strategy that jointly decides to refresh (via an attention-aware drift test on the most-attended token) and to refresh (via a depth-aware schedule that recomputes from a chosen layer onward while reusing shallow-layer caches and off-window MASK caches). Unlike fixed-period schemes, Elastic-Cache performs adaptive, layer-aware cache updates for diffusion LLMs, reducing redundant computation and accelerating decoding with negligible loss in generation quality. Experiments on LLaDA-Instruct, LLaDA-1.5, and LLaDA-V across mathematical reasoning and code generation tasks demonstrate consistent speedups: on GSM8K (256 tokens), on longer sequences, and on HumanEval, while consistently maintaining higher accuracy than the baseline. Our method achieves significantly higher throughput ( on GSM8K) than existing confidence-based approaches while preserving generation quality, enabling practical deployment of diffusion LLMs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Diffusion Models Beat GANs on Image Synthesis
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Probabilistic Models
- Towards Efficient and Effective Diffusion Language Model Inference via Semantic-Aware Adaptive Denoising 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Towards Efficient and Effective Diffusion Language Model Inference via Semantic-Aware Adaptive Denoising 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Towards Efficient and Effective Diffusion Language Model Inference via Semantic-Aware Adaptive Denoising 引用了 Denoising Diffusion Probabilistic Models
- Set Diffusion: Interpolating Token Orderings between Autoregression and Diffusion for Fast and Flexible Decoding 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Set Diffusion: Interpolating Token Orderings between Autoregression and Diffusion for Fast and Flexible Decoding 引用了 Denoising Diffusion Probabilistic Models
- Structured Denoising Diffusion Models in Discrete State-Spaces 引用了 Denoising Diffusion Probabilistic Models
- Singular Proxies for Adaptive Caching in Diffusion Language Models 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- Video Diffusion Models 引用了 Diffusion Models Beat GANs on Image Synthesis
- Video Diffusion Models 引用了 Denoising Diffusion Probabilistic Models
- Diffusion Models Beat GANs on Image Synthesis 引用了 Denoising Diffusion Probabilistic Models
- Focus-dLLM: Accelerating Long-Context Diffusion LLM Inference via Confidence-Guided Context Focusing 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
- DyLLM: Efficient Diffusion LLM Inference via Saliency-based Token Selection and Partial Attention 引用了 Structured Denoising Diffusion Models in Discrete State-Spaces
引用它的顶会 Paper8
- Focus-dLLM: Accelerating Long-Context Diffusion LLM Inference via Confidence-Guided Context FocusingLingkun Long, Yushi Huang, Shihao Bai, Ruihao Gong 等ACL 2026 · 3 次引用
- Set Diffusion: Interpolating Token Orderings between Autoregression and Diffusion for Fast and Flexible DecodingMarianne Arriola, Volodymyr KuleshovICML 2026 · 2 次引用
- DyLLM: Efficient Diffusion LLM Inference via Saliency-based Token Selection and Partial AttentionYounjoo Lee, Seungkyun Dan, Junghoo Lee, Jaiyoung Park 等ICML 2026 · 2 次引用
- Towards Efficient and Effective Diffusion Language Model Inference via Semantic-Aware Adaptive DenoisingFan Li, Yu Gu, Zhigang Wang, Fangling Leng 等ACL 2026
- Singular Proxies for Adaptive Caching in Diffusion Language ModelsWenhao SUN, Rong-Cheng Tu, Yifu Ding, Zhao Jin 等ICML 2026
它引用的 Paper33
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 次引用
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 次引用
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser 等CVPR 2022 · 13,123 次引用
- Video Diffusion ModelsJonathan Ho, Tim Salimans, Alexey A. Gritsenko, William Chan 等NeurIPS 2022 · 2,948 次引用
- Structured Denoising Diffusion Models in Discrete State-SpacesJacob Austin, Daniel D. Johnson, Jonathan Ho, Daniel Tarlow 等NeurIPS 2021 · 2,256 次引用
相关 Paper
- dCache: Accelerating Diffusion-Based LLMs via Dual Adaptive CachingYuchu Jiang, Yue Cai, Xiangzhong Luo, Jiale Fu 等ICLR 2026 · 16 次引用
- Dynamic-dLLM: Dynamic Cache-Budget and Adaptive Parallel Decoding for Training-Free Acceleration of Diffusion LLMTianyi Wu, Xiaoxi Sun, Yanhua Jiao, Yulin Li 等ICLR 2026 · 6 次引用
- dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive CachingZhiyuan Liu, Yicun Yang, Yaojie Zhang, Junjie Chen 等ICML 2026 · 156 次引用
- Sparse-dLLM: Accelerating Diffusion LLMs with Dynamic Cache EvictionYuerong Song, Xiaoran Liu, Ruixiao Li, Zhigeng Liu 等AAAI 2026 · 43 次引用
- Mask Tokens as Prophet: Fine-Grained Cache Eviction for Efficient dLLM InferenceJianuo Huang, Yaojie Zhang, Yicun Yang, Benhao Huang 等ACL Findings 2026
