Temporal Expert Caching for Accelerating Inference in MoE Diffusion Language Models
Abstract
Diffusion models have become the industry standard for image and video generation, with properties such as parallel decoding and bidirectional context distinguishing them from classical autoregressive alternatives. Diffusion language models (DLMs) bring the same principles to text, and recent models are competitive with autoregressive ones on code and mathematical reasoning. Sparse mixture-of-experts (MoE) variants such as the LLaDA series make these models more practical, offering large-model quality at a fraction of the per-token compute. On memory-constrained GPUs such as 12 GB consumer cards, however, the ~32 GB of expert weights do not fit, and each of the dozens of denoising steps reloads them from host memory. Weight transfer, not compute, then dominates generation time. We identify two properties of iterative denoising that make most of this cost avoidable: between consecutive steps, per-token hidden states barely change (cosine similarity 0.97), and each layer routes to nearly the same set of experts (Jaccard overlap 0.94-0.97). We exploit this temporal locality with three mechanisms: per-expert output caching that skips unchanged tokens, temporal weight prefetching driven by previous-step routing, and a CPU SwiGLU fallback for misses. Across two LLaDA-mini models, two GPU architectures (L40S and A6000), and seven benchmarks, the combined system is a median 9x faster end-to-end than HF Accelerate at a 12 GB budget, with task accuracy preserved within run-to-run variance.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- Accepted at the NeurIPS 2026 DiffuLM Workshop. 18 pages, 3 figures
Related papers
Subgoals as Compass: Temporal Vision-Language Reward Modeling for Complex Tasks
Shared title terminologycs.LGHyewon Choi, Minseok Jeong, SooJean Han
Same-Expert Iteration Improves a Translation MoE Where Expert Communication Does Not
Shared title terminologycs.LGLibo Sun, Peixiong He, Po-wei Harn et al.
How Much Weight Can Your LLM Bench? Benchmarking Weight-Space Programming on Open Language Models
Shared title terminologycs.LGPedro Moreira, Leonida Lumburovska
Sample Efficient Ranking of Language Models Using Pairwise Comparisons
Shared title terminologycs.LGSomnath Basu Roy Chowdhury, Rahul Kidambi, Avinava Dubey et al.
KEEP: Dynamic Expert Sparsification for Mixture-of-Experts Models
Shared title terminologycs.LGMaximilian Kleinegger, Dan Alistarh
Backtracking with Linear-in-Depth Search-Space Growth: Width-Limited Tree Search for Large Language Models
Shared title terminologycs.LGJiacheng Xu, Fuxiang Zhang, Chaojie Wang et al.