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

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.

Introduction

Autoregressive (AR) models currently dominate the landscape, but Diffusion Language Models (DLMs) are gaining traction due to their ability to decode tokens in arbitrary orders and support parallel generation. However, DLMs face a significant "efficiency tax." Unlike AR models, which use causal attention and can leverage standard KV caching, DLMs are non-causal. Their bidirectional attention means every token can influence every other token. Consequently, when a single token changes during the diffusion process, the global context shifts, necessitating a full recomputation of all hidden states at every step. This $O(T \times N^2)$ complexity makes open-source DLMs prohibitively slow compared to their AR counterparts.

Previous attempts to mitigate this through "sparse updates" (recomputing only a subset of tokens) have been hampered by high computational overhead in identifying which tokens to update and rigid, layer-agnostic update budgets.

Methodology: The SPA-Cache Framework

SPA-Cache addresses these bottlenecks through two primary innovations: the Singular Proxy Identifier and Adaptive Budget Allocation.

Singular Proxy Identifier

To identify "drifting" tokens—those whose representations have changed enough to require an update—SPA-Cache avoids monitoring high-dimensional hidden states (e.g., 4096 dimensions). Instead, it projects these states into a low-dimensional subspace (e.g., 128 dimensions) using Singular Value Decomposition (SVD). Theoretical analysis reveals that "Value" states in the attention mechanism are the most reliable indicators of drift. By monitoring this "singular proxy," the system drastically reduces the computational cost of the cache controller.

The three-phase architecture of SPA-Cache, illustrating update identification, attention with partially cached KV, and FFN/output state updates.

Adaptive Budget Allocation

Empirical observation shows that token representations do not evolve uniformly across layers. Early layers (embeddings) and late layers (outputs) are relatively stable, while middle layers—where complex semantic transformations occur—are highly volatile. SPA-Cache employs a piecewise Gaussian function to dynamically allocate a higher update budget to these volatile middle layers, preventing redundant computation in stable regions without sacrificing accuracy.

Distribution of drifting tokens across layers, justifying the use of a dynamic update budget that prioritizes volatile middle layers.

Experimental Evaluation

The researchers evaluated SPA-Cache across seven benchmarks, including GSM8K, GPQA, MATH500, BBH, MMLU-Pro, MBPP, and HumanEval, using state-of-the-art DLMs such as LLaDA-8B and Dream-v0-7B.

Key Results

  • Throughput: SPA-Cache achieved up to an 8× improvement over vanilla decoding (e.g., on the MBPP benchmark).
  • Efficiency: It consistently outperformed existing caching methods like dLLM-Cache and Fast-dLLM by 2–4× in speed while maintaining comparable or better accuracy.
  • Latency: The singular proxy approach reduces identification overhead significantly. Total execution time per layer was reduced from 5.3 ms in the baseline to 2.2 ms with the singular proxy, approaching the theoretical floor for sparse computation.

Discussion and Insights

A critical finding is the "Anisotropy Trap": using "Attention Output" as a drift identifier fails because deeper features often collapse into a narrow cone (high cosine similarity), making it difficult to distinguish tokens needing updates. SPA-Cache avoids this by focusing on Value states. Furthermore, because SPA-Cache optimizes the layer-wise bottleneck, it is orthogonal to sequence-level optimizations; when combined with parallel decoding, it can achieve up to a 28× speedup.

Conclusion

SPA-Cache significantly reduces the inference bottleneck for DLMs by combining low-dimensional drift identification with layer-adaptive budgeting. Future research will focus on optimizing the "prefilling" stage, investigating performance on ultra-long sequences, and maintaining accuracy in high-temperature sampling regimes where temporal smoothness is reduced.

Summary updated

BibTeX
@misc{sun2026spa,
  author = {Wenhao Sun and Rong-Cheng Tu and Yifu Ding and Zhao Jin and Jingyi Liao and Yongcheng Jing and Dacheng Tao},
  title = {{SPA-Cache: Singular Proxies for Adaptive Caching in Diffusion Language Models}},
  year = {2026},
  eprint = {2602.02544},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.02544},
}
Figure