paper-with-me

Papers

Enabling KV Caching of Shared Prefix for Diffusion Language Models

2026-05-26 · Younghun Go, Jaehoon Han, Changyong Shin, Chuck Yoo, Gyeongsik Yang arxiv

Key-value (KV) caching for shared prefixes is essential for high-throughput large language model (LLM) serving, but it faces critical challenges in emerging diffusion language models (DLMs). In DLMs, bidirectional attention means that updating any token dynamically alters the entire context and its corresponding KVs. Thus, existing caching techniques developed for LLMs, which assume that KVs remain invariant once computed, corrupt the shared prefix KVs. Our experiments show that applying these techniques to DLMs causes model accuracy to collapse to near zero. To unlock high-throughput DLM serving, we propose bidirectional prefix caching, bicache, the first KV caching technique for shared prefixes in DLMs. bicache is designed based on key observations from our comprehensive analysis: shared prefix KVs remain stable and reusable in shallow layers, while the depth of shallow layers depends on the fraction of shared prefix tokens in each request. Thus, bicache dynamically identifies a safe layer depth for reusing shared prefix KVs and eliminates redundant computation. Evaluations demonstrate that bicache significantly improves serving throughput by 36.3%-98.3% compared to existing techniques without accuracy collapse (only 0-1.8% difference).

📄 PDF Abstract BibTeX arXiv:2606.07571

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Tail-Replay: Escaping the Curse of Linear Attention in Prefix Caching for Hybrid LLMs

2026-08-31 · Yirui Liu, Ruoling Qi, Xuaner Wu, Penghang Liu 외 arxiv

Hybrid large language models interleave full-attention layers with linear-attention layers to reduce the cost of long-context inference. This structure complicates prefix caching: full-attention key-value caches are toke…

EPIC: Efficient Position-Independent Caching for Serving Large Language Models

2024-10-20 · Junhao Hu, Wenrui Huang, Weidong Wang, Haoyi Wang 외

Large Language Models (LLMs) show great capabilities in a wide range of applications, but serving them efficiently becomes increasingly challenging as requests (prompts) become more complex. Context caching improves serv…

ChunkingFew-Shot LearningPositionRetrieval-augmented Generation

PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems

2026-03-11 · Panagiotis Georgios Pennas, Konstantinos Papaioannou, Marco Guarnieri, Thaleia Dimitra Doudali arxiv

Large Language Models (LLMs) rely on optimizations like Automatic Prefix Caching (APC) to accelerate inference. APC works by reusing previously computed states for the beginning part of a request (prefix), when another r…

TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Serving

2025-08-24 · Bingyang Wu, Zili Zhang, Yinmin Zhong, Guanzhe Huang 외 arxiv

Prefix caching is crucial to accelerate multi-turn interactions and requests with shared prefixes. At the cluster level, existing prefix caching systems are tightly coupled with request scheduling to optimize cache effic…

Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching

2026-01-28 · Fengrui Zuo, Zhiwei Ke, Yiming Liu, Wenqi Lou 외 arxiv

Diffusion language models (DLMs) generate text through iterative denoising, but inference requires full-sequence attention at every iteration, resulting in substantial redundant computation on masked tokens. Block-wise d…