Streaming-dLLM: Accelerating Diffusion LLMs via Suffix Pruning and Dynamic Decoding
Zhongyu Xiao, Zhiwei Hao, Jianyuan Guo, Yong Luo, Jia Liu, Jie Xu, Han Hu
TL;DR
Streaming-dLLM tackles the slow inference of diffusion LLMs by addressing spatial suffix redundancy and temporal inefficiency in block-wise diffusion. It introduces Attenuation Guided Suffix Modeling to prune redundant suffix attention and Dynamic Confidence Aware Parallel Decoding with an EOS-based Early Exit, all in a training-free framework. Across Dream and LLaDA backbones and multiple benchmarks, it achieves up to 68.2x throughput improvement with comparable or improved generation quality, and substantial reductions in per-sample latency. The approach significantly enhances practical deployment of diffusion decoding for long-context generation.
Abstract
Diffusion Large Language Models (dLLMs) offer a compelling paradigm for natural language generation, leveraging parallel decoding and bidirectional attention to achieve superior global coherence compared to autoregressive models. While recent works have accelerated inference via KV cache reuse or heuristic decoding, they overlook the intrinsic inefficiencies within the block-wise diffusion process. Specifically, they suffer from spatial redundancy by modeling informative-sparse suffix regions uniformly and temporal inefficiency by applying fixed denoising schedules across all the decoding process. To address this, we propose Streaming-dLLM, a training-free framework that streamlines inference across both spatial and temporal dimensions. Spatially, we introduce attenuation guided suffix modeling to approximate the full context by pruning redundant mask tokens. Temporally, we employ a dynamic confidence aware strategy with an early exit mechanism, allowing the model to skip unnecessary iterations for converged tokens. Extensive experiments show that Streaming-dLLM achieves up to 68.2X speedup while maintaining generation quality, highlighting its effectiveness in diffusion decoding. The code is available at https://github.com/xiaoshideta/Streaming-dLLM.
