Visual Cache Reuse for Efficient Multimodal Inference
Shuheng Gao, Yuankai Fan, Jiaqiang Ma, Jiawei Shao, Yongkun Li, Xuelong Li
Abstract
Vision-language model (VLM) inference incurs substantial prefill latency and memory overhead due to the long visual token sequences of large visual inputs. Existing serving systems typically exploit exact cache reuse through prefix caching or position-independent caching, overlooking the potential of approximate caching in real-world workloads. However, directly reusing an approximate cache entry may introduce spurious visual information, which naive approaches that select a subset of important visual tokens for recomputation fail to adequately mitigate this risk. We present VisMemo, an efficient serving system that enables approximate KV cache reuse for modern VLMs. Its core is a system-algorithm co-design that combines an entropy-aware KV cache reuse algorithm with differentiated cache management. Specifically, VisMemo uses patch entropy to identify reuse candidates and warmup attention to prioritize recomputation based on the current query. To support the large cache capacity across GPU memory, CPU memory, and SSD storage, VisMemo applies distinct I/O and cache policies to exact and approximate hits: sparse patch-level I/O for approximate hits, prioritized retention for exact hits, and a reserved CPU victim cache for preset entries selected using offline workload priors and online reuse observations. VisMemo further optimizes the memory access path between the inference engine and the storage backend, eliminating redundant caching and unnecessary data movement. Experiments on multiple public datasets show that VisMemo preserves output quality under approximate reuse. On a real-world production trace, VisMemo increases the overall cache hit rate from 27.78% to 61.45% and reduces prefill latency by up to 48.3% at 8K input tokens.
Create a lesson
Related papers
Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs
Shared title terminologycs.OSZhengxiang Huang, Shengheng Chen, Chaoyue Niu et al.
Range: Decoupling KV-Cache Reuse Granularity from Storage Work
Shared title terminologycs.OSDingsen Shi, Jiahao Zhang, Liqiang Lv et al.
ActKV: Efficient LLM Agents through Action-Guided KV Cache Management
Shared title terminologycs.OSZihan Wang, Cheng Tang, Lei Gong et al.
CoRun: Padding is Simple and Efficient for Deterministic LLM Inference
Shared title terminologycs.OSShiju Zhao, Jiacheng Yang, Qihang Chen et al.
Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference
Shared title terminologycs.OSYuan Si, Yufeng Lin, Daming Li et al.
GroupKV: Hierarchical KV Cache Management for Long-Context Diffusion LLM Inference
Shared title terminologycs.OSJinhao Wang, Zhexin Hu, Kangjie Zhou et al.