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

Cheng-Yue Wu, Hao Zhang, Shuchen Xue, Zhi-Jian Liu, Shi-Zhe Diao, Li-Geng Zhu, Ping Luo, Song Han, En-Ze Xie

arXiv:2505.22618 · 2026-11-15 공개 · arXiv · PDF

kv-cache training-free throughput-optimization llm-benchmarks parallel-decoding llada diffusion-llm confidence-aware-decoding

Abstract

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.

한국어 요약

한 줄 요약

Fast-dLLM은 KV Cache와 병렬 디코딩을 통해 확산 언어 모델의 추론 속도를 최대 27.6× 향상시키는 훈련 없은 가속화 기법이다.

핵심 기여도

핵심 아이디어

기존 확산 언어 모델은 병렬 디코딩 시 토큰 의존성이 깨지면서 생성 품질이 저하되며, KV Cache를 지원하지 않아 추론 속도가 저하된다. Fast-dLLM은 이 문제를 해결하기 위해 **블록 단위 근사 KV Cache**를 도입하여, 토큰 간 연속성과 유사성을 활용해 캐시를 재사용한다. 이는 확산 모델의 양방향 어텐션 특성을 고려한 설계로, **접두어와 접미어 블록 모두 캐시**하여 계산 효율성을 높인다. 또한, **신뢰도 기반 병렬 디코딩**을 통해, 특정 신뢰도 기준 이상의 토큰만 선택적으로 디코딩함으로써 토큰 의존성을 보존하고, **조건 독립 가정에 의한 의존성 손실**을 완화한다. 이는 기존의 상위 K개 토큰 선택 방식과 달리, **전역 신뢰도 기준**을 도입한 새로운 접근법이다.

기술적 접근법

주요 결과

의의 및 한계

Fast-dLLM은 확산 언어 모델의 실용적 배포 가능성을 높이는 기술로, **KV Cache와 병렬 디코딩을 훈련 없이 적용**함으로써 기존 확산 모델의 주요 한계를 극복한다. 특히, **LLaDA 및 Dream 모델**에서의 성능 개선은 이 접근법의 일반성을 입증한다. 그러나, **모든 확산 모델에 적용 가능하다는 점은 명시되지 않음**. 또한, **신뢰도 threshold 설정에 따라 성능 변동이 있을 수 있음**. 이는 추후 연구에서 최적화 방안이 필요하다.

실용적 활용

Fast-dLLM은 **고속 텍스트 생성이 필요한 실시간 대화형 시스템**, **대규모 언어 모델의 배포 환경**, **병렬 처리가 필수적인 클라우드 인프라** 등에 적용 가능하다. 특히, **LLaDA 및 Dream 모델을 사용하는 기관**에서는 훈련 없이도 추론 속도를 대폭 향상시킬 수 있어 실용적 가치가 높다.