LaCache: Exact Caching and Precision-Adaptive Inference for Diffusion Large Language Models

Xingru Chen, Zelang Liang, Yongjia Ma, Jiqing Zhan, Shuling Yang +2 more
7/16/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Diffusion-based Large Language Models(DLLMs) enable parallel generation via Semi-Autoregressive (SAR) decoding in text generation. However, current methods suffer from severe operator-level redundancy: they recompute the entire sequence during denoising steps, ignoring that the prefix and masked suffix remain invariant within a block.

Show full abstract

We propose LaCache, a training-free acceleration framework that alleviates this redundancy through lossless caching and mixed precision. Specifically, LaCache employs Lossless State Memoization (LSM) by caching three types of intermediate results: (i) EmbedCache for embedding outputs, (ii) RoPECache for token-wise pre-attention states, and (iii) FACache for the online softmax statistics within FlashAttention. These caches allow the model to skip redundant computation on unchanged tokens without altering the output. To further alleviate memory-bandwidth bottlenecks, LaCache inegrates a per-group FP8 quantization strategy for FFN layers, tailored to step-dependent activation distributions across the diffusion process. Experiments demonstrate that LaCache alone achieves approximately 1.3X end-to-end speedup over vanilla DLLM. When combined with existing acceleration methods, LaCache reaches up to 40.2X end-to-end speedup while maintaining comparable task accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026lacache,
  title  = {LaCache: Exact Caching and Precision-Adaptive Inference for Diffusion Large Language Models},
  author = {Xingru Chen and Zelang Liang and Yongjia Ma and Jiqing Zhan and Shuling Yang and Lian Wen and Kun Zhan},
  year   = {2026},
  eprint = {2607.16339},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.16339v2}
}

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/2607.16339.svg)](https://codeofpaper.com/paper/2607.16339)

Discussion