Papers › dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching

dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching

17 May 2025arXiv:2506.06295archive 2025-07-28

Zhiyuan Liu, Yicun Yang, Yaojie Zhang, Junjie Chen, Chang Zou, Qingyuan Wei, Shaobo Wang, Linfeng Zhang

Autoregressive Models (ARMs) have long dominated the landscape of Large Language Models. Recently, a new paradigm has emerged in the form of diffusion-based Large Language Models (dLLMs), which generate text by iteratively denoising masked segments. This approach has shown significant advantages and potential. However, dLLMs suffer from high inference latency. Traditional ARM acceleration techniques, such as Key-Value caching, are incompatible with dLLMs due to their bidirectional attention mechanism. To address this specific challenge, our work begins with a key observation that dLLM inference involves a static prompt and a partially dynamic response, where most tokens remain stable across adjacent denoising steps. Based on this, we propose dLLM-Cache, a training-free adaptive caching framework that combines long-interval prompt caching with partial response updates guided by feature similarity. This design enables efficient reuse of intermediate computations without compromising model performance. Extensive experiments on representative dLLMs, including LLaDA 8B and Dream 7B, show that dLLM-Cache achieves up to 9.1 x speedup over standard inference without compromising output quality. Notably, our method brings dLLM inference latency close to that of ARMs under many settings. Codes are provided in the supplementary material and will be released publicly on GitHub.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2506.06295")

Code

Syntology Ran 1 of 13 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: community (archive-listed): 13 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

maomaocun/dllm-cache mentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 1 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
12unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from maomaocun/dLLM-cache. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

rotate_half maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e03d53ba9d4f9ae5 · report
RoPe_forward maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA.py community (archive-listed) unverified Apache-2.0 (permissive) · 2af6f8d97abc409f · report
add_gumbel_noise maomaocun/dLLM-cache/demo_MMada_cache.py community (archive-listed) unverified Apache-2.0 (permissive) · 008ab2cfccca5ac2 · report
add_gumbel_noise maomaocun/dLLM-cache/demo_MMada_mmu_cache.py community (archive-listed) unverified Apache-2.0 (permissive) · 22cb8c51f0a9038f · report
apply_rotary_pos_emb maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py community (archive-listed) unverified Apache-2.0 (permissive) · ebbbedae1f60f76d · report
attention maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_Dream.py community (archive-listed) unverified Apache-2.0 (permissive) · e23dc4567306b759 · report
convert_to_float maomaocun/dLLM-cache/Dream_test_flops_script.py community (archive-listed) unverified Apache-2.0 (permissive) · 3822a0903091ccc2 · report
create_prompt maomaocun/dLLM-cache/LLama_test_flops_script.py community (archive-listed) unverified Apache-2.0 (permissive) · 0976b0b29f8d1d22 · report
generate_with_cache maomaocun/dLLM-cache/demo_MMada_cache.py community (archive-listed) unverified Apache-2.0 (permissive) · 89ffc142130a4ab0 · report
get_num_transfer_tokens maomaocun/dLLM-cache/demo_MMada_cache.py community (archive-listed) unverified Apache-2.0 (permissive) · ab0375db4fa54d7c · report
llada_attention_hook_for_cache maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_LLaDA_V.py community (archive-listed) unverified Apache-2.0 (permissive) · c35f5a7a8c404548 · report
mmu_generate_with_cache maomaocun/dLLM-cache/demo_MMada_mmu_cache.py community (archive-listed) unverified Apache-2.0 (permissive) · 5e2dc62c98e4c717 · report
refresh_index maomaocun/dLLM-cache/dllm_cache/hooks/cache_hook_Dream.py community (archive-listed) unverified Apache-2.0 (permissive) · 17ea12936141556f · report

Tasks

Denoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections