SPA-Cache: Singular Proxies for Adaptive Caching in Diffusion Language Models
Wenhao Sun, Rong-Cheng Tu, Yifu Ding, Zhao Jin, Jingyi Liao, Yongcheng Jing, Dacheng Tao
TL;DR
Diffusion language models struggle with standard KV caching due to arbitrary decoding orders, incurring heavy hidden-state recomputation. SPA-Cache tackles this by (i) using a singular proxy based on a low-rank projection to identify update-critical tokens and (ii) applying an adaptive, layer-wise budget that concentrates updates on volatile layers while caching stable ones; these strategies are supported by stability bounds linking value-state drift to attention behavior and by a low-rank approximation guarantee. Empirically, SPA-Cache yields up to $8\times$ throughput gains over vanilla decoding and up to $28\times$ when combined with parallel decoding, while maintaining comparable generation quality across seven benchmarks and two diffusion LMs. This work provides a principled, training-free caching approach that makes diffusion-based, high-throughput decoding more practical for real-world deployments.
Abstract
While Diffusion Language Models (DLMs) offer a flexible, arbitrary-order alternative to the autoregressive paradigm, their non-causal nature precludes standard KV caching, forcing costly hidden state recomputation at every decoding step. Existing DLM caching approaches reduce this cost by selective hidden state updates; however, they are still limited by (i) costly token-wise update identification heuristics and (ii) rigid, uniform budget allocation that fails to account for heterogeneous hidden state dynamics. To address these challenges, we present SPA-Cache that jointly optimizes update identification and budget allocation in DLM cache. First, we derive a low-dimensional singular proxy that enables the identification of update-critical tokens in a low-dimensional subspace, substantially reducing the overhead of update identification. Second, we introduce an adaptive strategy that allocates fewer updates to stable layers without degrading generation quality. Together, these contributions significantly improve the efficiency of DLMs, yielding up to an $8\times$ throughput improvement over vanilla decoding and a $2$--$4\times$ speedup over existing caching baselines.
