LaCache: Exact Caching and Precision-Adaptive Inference for Diffusion Large Language Models
Xingru Chen, Zelang Liang, Yongjia Ma, Jiqing Zhan, Shuling Yang, Lian Wen, Kun Zhan
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.
Create a lesson
Related papers
Did the Model Forecast It, or Already Know It? Evaluating Large Language Models for Novel Drug-Target Prioritisation with a Temporal Knowledge-Graph Oracle
Shared title terminologycs.AIPui Chung Siu, Yuan Liang, Claudia Cabrera et al.
Few-Shot Adaptation of Vision-Language Models via Agentic Model Editing
Shared title terminologycs.AIYusheng Zhao, Xiao Luo, Zhiping Xiao et al.
Confidence scores for gated automation of large language models
Shared title terminologycs.AILuiz G. A. Alves, Aaron Vermeersch
Perception Is Enough, at the Right Scale: Scale-Adaptive Token Pruning for Vision-Language-Action Models
Shared title terminologycs.AIYifeng Lin, Liuxiang Qiu, Yunfeng Chen et al.
Agentic coding without the cloud: evaluating open-weight large language models on longitudinal data preparation tasks
Shared title terminologycs.AIMack Nixon, Liam Wright, Yevgeniya Kovalchuk et al.
Benchmarking the Safety of Large Language Models for Robotic Health Attendant Control
Shared title terminologycs.AIMahiro Nakao, Kazuhiro Takemoto