{"id": "http://arxiv.org/abs/2505.21467v2", "title": "FlashDLM: Accelerating Diffusion Language Model Inference via Efficient KV Caching and Guided Diffusion", "abstract": "Diffusion language models offer parallel token generation and inherent bidirectionality, promising more efficient and powerful sequence modeling compared to autoregressive approaches. However, state-of-the-art diffusion models (e.g., Dream 7B, LLaDA 8B) suffer from slow inference. While they match the quality of similarly sized autoregressive (AR) models (e.g., Qwen2.5 7B, Llama3 8B), their iterative denoising requires multiple full-sequence forward passes, resulting in high computational costs and latency, particularly for long input prompts and long-context scenarios. Furthermore, parallel token generation introduces token incoherence problems, and current sampling heuristics suffer from significant quality drops with decreasing denoising steps. We address these limitations with two training-free techniques. First, we propose FreeCache, a Key-Value (KV) approximation caching technique that reuses stable KV projections across denoising steps, effectively reducing the computational cost of DLM inference. Second, we introduce Guided Diffusion, a training-free method that uses a lightweight pretrained autoregressive model to supervise token unmasking, dramatically reducing the total number of denoising iterations without sacrificing quality. We conduct extensive evaluations on open-source reasoning benchmarks, and our combined methods deliver an average of 12.14x end-to-end speedup across various tasks with negligible accuracy degradation. For the first time, diffusion language models achieve a comparable and even faster latency as the widely adopted autoregressive models. Our work successfully paved the way for scaling up the diffusion language model to a broader scope of applications across different domains.", "published_at": "2025-05-27T17:39:39+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2505.21467v2", "source_hash": "2a7390d883192038540894f35fc8a02116e7755f0d18b15637b2ad303bbd3ee9", "source_version": "v2", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "inference-acceleration", "long-context", "reasoning"], "code_url": "https://github.com/ZhanqiuHu/flash-dlm-experimental", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.00495v1", "http://arxiv.org/abs/2608.30922v1", "http://arxiv.org/abs/2608.20123v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "full_text_brief": null, "explanations": {}, "resources": {"version": "paper-resources-v1", "source_hash": "2a7390d883192038540894f35fc8a02116e7755f0d18b15637b2ad303bbd3ee9", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "language models achieve a comparable and even faster latency\nas the widely adopted autoregressive models. Our work successfully paved the\nway for scaling up the diffusion language model to a broader scope of applica-\ntions across different domains. Our code and implementation are available at\nhttps://github.com/ZhanqiuHu/flash-dlm-experimental.\n\n### 1 INTRODUCTION\n\nLarge language model (LLM) Liu et al. (2024a); Bai et al. (2023); Touvron et al. (2023) have shown\ngreat success across multiple domains in human life with strong intelligence. In particular, most of the\ncurrent state-of-the-art (SoTA) LLM models are autoregressive (AR) m", "url": "https://github.com/ZhanqiuHu/flash-dlm-experimental", "kind": "code", "span": [1753, 2393], "evidence_hash": "5c99398e29cf729a13d5765596fec77906a4b5ff53a2d6d2c88f550547601408"}, {"origin": "source_excerpt", "evidence": "g, XiaoDong Han, Yan Gao, Yao Hu, Shilin Zhang, and Hai Zhao. Pyramidinfer: Pyramid\nkv cache compression for high-throughput llm inference. arXiv preprint arXiv:2405.12532, 2024.\n\nJiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng\nKong. Dream 7b, 2025. URL https://hkunlp.github.io/blog/2025/dream.\n\nSiyan Zhao, Devaansh Gupta, Qinqing Zheng, and Aditya Grover. d1: Scaling reasoning in diffusion\nlarge language models via reinforcement learning. arXiv preprint arXiv:2504.12216, 2025.\n\n11\n\n## Page 12\n\n### A LLM USAGE\n\nWe used large language models, specifically ChatGPT (GPT-4, OpenAI) and Gemin", "url": "https://hkunlp.github.io/blog/2025/dream", "kind": "project", "span": [36263, 36903], "evidence_hash": "7a08c10286ba0aed5c6f45c08f38c4aa7c9d8aa4a0a988752d2cf2780a3ed5ad"}]}, "slug": "2505.21467-flashdlm-accelerating-diffusion-language-model-inference-via-efficient-kv-caching-and-guided-dif"}