Affix Cache for Diffusion Large Language Models
Kaihua Liang, An Zhong, Xin Tan, Zafar Ayyub Qazi, Hong Xu, Jian Weng, Marco Canini
Abstract
Diffusion Large Language Models (DLLMs) enable non-autoregressive decoding, but efficient inference support remains immature: unlike autoregressive models, whose requests reuse a shared prefix key-value (KV) cache, DLLMs use bidirectional attention, so a shared context's KV states depend on the tokens still being decoded, leaving directly reused caches stale and full recomputation necessary. We present ACache, a cross-request cache reuse mechanism for shared spans, or affixes, at any position: prefix, infix, or suffix. ACache measures the influence of affix tokens on the masked generation region to identify a small request-specific subset as Anchor Tokens, and recomputes only their KV states while reusing the remaining affix cache. Built on state-of-the-art intra-request caching mechanisms, ACache recovers most of the accuracy lost to direct affix-cache reuse on average when recomputing around 20% of affix tokens, and at that budget preserves more accuracy than selection criteria adapted from prior cross-request cache-reuse systems. We co-design ACache with a modern inference engine, whose attention reads each request's recomputed Anchor KV states alongside one affix cache shared across concurrent requests. Against the same system with only intra-request caching, ACache cuts recompute latency by up to 56.7%, translating to as much as 1.71 end-to-end throughput, while reducing peak KV cache memory by up to 45.8%.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 31 pages, 5 figures
Related papers
Explainable Emotion and Mental Health Reasoning in Large Language Models Using Theories of Emotion
Shared title terminologycs.CLTadesse Destaw Bela, Iqra Ameer, Helena Gómez Adorno et al.
From Vanishing Gradients to Recursive Self-Improvement: Evaluating the Most Influential Papers in Large Language Model Evolution (1997-2026)
Shared title terminologycs.CLSaadh Jawwadh
Beyond Omission: Measuring Critical-Information Fulfillment of Large Language Models in Bengali and English
Shared title terminologycs.CLAvijit Roy
RES: Accelerating Diffusion Language Models with Rolling Entropy Sampling
Shared title terminologycs.CLPatrick Pynadath, Nicolas Perez-Nieves, Bobak Shahriari et al.
Population-Based Post-Training for Large Language Models
Shared title terminologycs.CLYixuan Even Xu, Aleksei Petrenko, Raja Giryes et al.
Reducing Permutation Sensitivity in Multimodal Large Language Models via Shared Positions and Attention-Only Distillation
Shared title terminologycs.CLYifei Cheng, Xiaolin Zhang, Yu-Xuan Qiu