dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
Abstract
Lay Summary
Diffusion-based language models are a newer type of AI text model: they begin with masked words and refine the whole answer over several rounds, instead of writing one word at a time. This lets them look at both earlier and later words, but it also slows generation. At each round, the model often repeats nearly the same calculations for the prompt and for answer words that barely changed since the previous round. We built dLLM-Cache to reuse these calculations during generation, without retraining the model. The method keeps prompt calculations for many rounds because the prompt is fixed, and it refreshes answer calculations only for the words whose internal signals have changed the most. A cheap similarity check tells the system which words need fresh computation and which can safely use cached results. On LLaDA 8B and Dream 7B, dLLM-Cache reduces computation by more than nine times in the best case while keeping performance close to the original models on math, knowledge, coding, and long-context tasks. This makes diffusion language models easier to run in practice, especially when prompts are long, and brings their speed closer to standard chat models.