Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wu, Chengyue, Zhang, Hao, Xue, Shuchen, Liu, Zhijian, Diao, Shizhe, Zhu, Ligeng, Luo, Ping, Han, Song, Xie, Enze
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911035761360896
author Wu, Chengyue
Zhang, Hao
Xue, Shuchen
Liu, Zhijian
Diao, Shizhe
Zhu, Ligeng
Luo, Ping
Han, Song
Xie, Enze
author_facet Wu, Chengyue
Zhang, Hao
Xue, Shuchen
Liu, Zhijian
Diao, Shizhe
Zhu, Ligeng
Luo, Ping
Han, Song
Xie, Enze
contents Diffusion-based large language models (Diffusion LLMs) have shown promise for non-autoregressive text generation with parallel decoding capabilities. However, the practical inference speed of open-sourced Diffusion LLMs often lags behind autoregressive models due to the lack of Key-Value (KV) Cache and quality degradation when decoding multiple tokens simultaneously. To bridge this gap, we introduce a novel block-wise approximate KV Cache mechanism tailored for bidirectional diffusion models, enabling cache reuse with negligible performance drop. Additionally, we identify the root cause of generation quality degradation in parallel decoding as the disruption of token dependencies under the conditional independence assumption. To address this, we propose a confidence-aware parallel decoding strategy that selectively decodes tokens exceeding a confidence threshold, mitigating dependency violations and maintaining generation quality. Experimental results on LLaDA and Dream models across multiple LLM benchmarks demonstrate up to \textbf{27.6$\times$ throughput} improvement with minimal accuracy loss, closing the performance gap with autoregressive models and paving the way for practical deployment of Diffusion LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2505_22618
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding
Wu, Chengyue
Zhang, Hao
Xue, Shuchen
Liu, Zhijian
Diao, Shizhe
Zhu, Ligeng
Luo, Ping
Han, Song
Xie, Enze
Computation and Language
Diffusion-based large language models (Diffusion LLMs) have shown promise for non-autoregressive text generation with parallel decoding capabilities. However, the practical inference speed of open-sourced Diffusion LLMs often lags behind autoregressive models due to the lack of Key-Value (KV) Cache and quality degradation when decoding multiple tokens simultaneously. To bridge this gap, we introduce a novel block-wise approximate KV Cache mechanism tailored for bidirectional diffusion models, enabling cache reuse with negligible performance drop. Additionally, we identify the root cause of generation quality degradation in parallel decoding as the disruption of token dependencies under the conditional independence assumption. To address this, we propose a confidence-aware parallel decoding strategy that selectively decodes tokens exceeding a confidence threshold, mitigating dependency violations and maintaining generation quality. Experimental results on LLaDA and Dream models across multiple LLM benchmarks demonstrate up to \textbf{27.6$\times$ throughput} improvement with minimal accuracy loss, closing the performance gap with autoregressive models and paving the way for practical deployment of Diffusion LLMs.
title Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding
topic Computation and Language
url https://arxiv.org/abs/2505.22618