Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching

Fengrui Zuo, Zhiwei Ke, Yiming Liu, Wenqi Lou, Chao Wang +1 more
1/28/2026
3 citations
cs.LG
diffusion-flowquantization-pruning

Official code: vhicrgit/Window-Diffusion (4 stars, Python, last commit 2026-06-10).

Abstract

Diffusion language models (DLMs) generate text through iterative denoising, but inference requires full-sequence attention at every iteration, resulting in substantial redundant computation on masked tokens. Block-wise diffusion can reduce this cost, yet it typically relies on retraining and constrained update orders, limiting its direct applicability to pretrained DLMs.

Show full abstract

Our token-level analysis reveals pronounced structural locality in DLM inference. Decoding is driven by a small set of prefix-localized active tokens; the influence of distant undecoded context diminishes rapidly, and decoded tokens exhibit stage-wise temporal stability, enabling reuse of intermediate representations except for a brief post-decode transient. Motivated by these observations, we propose \textbf{\placeholder}\footnote{The source code is available at https://github.com/vhicrgit/Window-Diffusion.}, a window-based token pruning and caching method for inference. We maintain a local computation window that slides rightward as denoising progresses, and partition undecoded tokens into: (i) \textit{active tokens} that are computed online, (ii) \textit{buffer tokens} whose KV states are cached and periodically refreshed, and (iii) \textit{far-field tokens} that are pruned outside the window. Computation is restricted to active and buffer tokens within the window, while far-field tokens are omitted at each stage. Experiments on LLaDA and Dream show that, under matched compute budgets, our method achieves up to $99\times$ inference speedup while largely preserving generation performance.

View on arXivView PDF

Code Implementations(1)

42Python, ShellJan 27, 20265 months ago

Similar Papers

Cite this paper

@article{zuo2026windowdiffusion,
  title  = {Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching},
  author = {Fengrui Zuo and Zhiwei Ke and Yiming Liu and Wenqi Lou and Chao Wang and Xuehai Zhou},
  year   = {2026},
  eprint = {2601.20332},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.20332v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.20332.svg)](https://codeofpaper.com/paper/2601.20332)

Discussion