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

📅 2026-07-16
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Diffusion-based large language models suffer from operator-level redundancy during denoising, as they repeatedly recompute the entire sequence, severely limiting inference efficiency. This work proposes LaCache, a training-agnostic framework that introduces, for the first time, a lossless state caching mechanism coupled with a diffusion-step-aware FP8 grouped quantization strategy to skip redundant computations of unchanged tokens without altering model outputs. LaCache employs three dedicated cache structures—EmbedCache, RoPECache, and FACache—and integrates a step-dependent FP8 quantization technique tailored for feed-forward network (FFN) layers. Experiments demonstrate that LaCache alone achieves approximately 1.3× end-to-end speedup, and when combined with existing acceleration methods, yields up to 40.2× speedup while preserving task accuracy losslessly.
📝 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. 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.
Problem

Research questions and friction points this paper is trying to address.

Diffusion Large Language Models
Semi-Autoregressive Decoding
Operator-level Redundancy
Denoising Steps
Computational Efficiency
Innovation

Methods, ideas, or system contributions that make the work stand out.

Lossless Caching
Precision-Adaptive Inference
Diffusion LLM
Semi-Autoregressive Decoding
FP8 Quantization