Manuscript Offprint

arXiv:2610.25136

Visual Cache Reuse for Efficient Multimodal Inference

Shuheng Gao, Yuankai Fan, Jiaqiang Ma, Jiawei Shao, Yongkun Li, Xuelong Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 naïve 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.

1 Introduction

Vision-language models (VLMs) are widely deployed in interactive real-time applications such as visual question answering (VQA) [36, 37, 54], UI agent automation [4, 18, 56], and multimodal search [2, 14, 20, 28], where a low time-to-first-token (TTFT) is required to provide a responsive user experience [42, 66]. In these models, high-resolution images and videos are first encoded into long sequences of visual tokens [7], which are then concatenated with the text tokens [8, 16, 58]. During prefilling, the resulting attention computation grows quadratically with input sequence length [51], making

Figure

(a) Position-independent KV caching.

Figure

(b) Approximate KV caching.

Figure 1. Illustration of two KV cache reuse strategies.

visual inputs a major source of latency while their key-value (KV) cache occupies substantial GPU memory and strains both computation and memory resources [23, 39, 49, 52].

To accelerate VLM inference, as with large language models (LLMs), existing serving systems commonly employ prefix caching, reusing KV caches across requests that share the same prefix [17, 60, 65]. Considering that the prefix-match requirement is often unmet when textual prompts vary, position-independent KV caching has emerged to expand cache-reuse opportunities by selectively recomputing cache for only a small fraction of visual tokens to account for changed positional contexts [19, 35, 41, 59, 64] (as depicted in Figure 1a). Nevertheless, these approaches still rely on exact token-level matching and can reuse visual KV caches only when the visual token sequences are identical [35, 41]. In practice, VLM workloads often contain highly similar visual inputs, such as partially modified screenshots. Exact token-level matching therefore treats these requests as cache misses, even when most visual patches remain unchanged, leaving substantial reusable visual KV cache unexploited (see §2.1 for more details). This reveals approximate KV reuse opportunities beyond the identical visual match.

However, approximate caching for VLMs is non-trivial. Visual similarity alone does not imply that the entire (visual) KV cache remains valid: an approximate match may differ in fine-grained details (e.g., a single table entry) that are critical to the query [37]. In addition, visual KV representations also depend on the preceding textual context; changes to the textual prefix can therefore alter these representations and compromise cache reuse [19, 59]. A naïve

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

∗^{*}Work done during internship at TeleAI.

approach to approximate caching is recomputation [8, 16]. Similar to position-independent KV caching methods, recomputation provides a naïve form of approximate caching: it recomputes a larger fraction of high-importance tokens while reusing the KV caches of low-importance counterparts (Figure 1b). Unfortunately, severe token sinks and attention noise make the selection unreliable for estimating the importance of visual tokens [22, 55] (more details can be seen in §2.2).

In this paper, we introduce VisMemo, an efficient VLM inference system that leverages approximate KV cache reuse to reduce serving latency while preserving generation quality. VisMemo is motivated by our observation that entropy [45] provides a stable signal for estimating the risk of reusing visual patches 1^{1}: low-entropy patches generally encode limited visual information and are more likely to remain stable when reusing, whereas high-entropy patches capture richer visual details and therefore require more conservative treatment. Based on this insight, we develop an entropy-aware algorithm for approximate KV cache reuse. It selects patches that have low entropy in both images as reuse candidates, then uses the normalized attention score collected during a short warmup phase [41, 59] to prioritize recomputation among the remaining patches according to the current user query. By using entropy to identify reusable patches and attention to prioritize recomputation, it avoids solely relying on a noisy attention map while preserving visual information relevant to the current query (§3.3).

Although the proposed entropy-aware algorithm preserves output quality, realizing the benefits of approximate caching requires accommodating a substantially larger KV cache footprint. This, in turn, necessitates the system-level optimization atop existing hierarchical KV cache architectures [15, 23, 30, 40, 57] that incorporates heterogeneous storage tiers while maintaining low-latency performance. First, a unified system must support two cache-reuse modes with distinct access patterns: exact reuse retrieves an entire KV cache entry and exhibits strong locality, whereas approximate reuse retrieves only the KV caches of selected patches and exhibits weaker locality. To accommodate these differences, we propose a differentiated cache-management mechanism that efficiently supports both reuse modes within a hierarchical KV cache architecture. Second, we introduce a prior-guided placement strategy that combines offline workload priors with online reuse signals to determine which cache entries to retain in a dedicated CPU-side victim cache (§3.4).

To evaluate the performance of VisMemo we conduct comprehensive experiments on a real-world conversational VLM workload [11] and four public visual understanding benchmarks [25, 31, 36, 37], using the Qwen3-VL [4] and GLM-4.6V [18] models. The experiment results show that VisMemo outperforms existing solutions in approximate-hit quality, improving ANLS by up to 19.72 points over the stronger baseline while maintaining comparable exact-hit quality. Notably, approximate matching increases the overall cache-hit rate from 27.23% to 60.28%, while approximate reuse reduces prefill latency by up to 48.3% compared with full prefill on the real-world workload. Our system-level optimizations further accelerate both exact and approximate hits relative to the original Mooncake backend [40].

We summarize our main contributions as follows:

• Approximate KV cache reuse for VLMs. We identify substantial opportunities for KV cache reuse beyond exact visual matches in real-world VLM workloads, to the best of our knowledge, are the first to introduce approximate caching for efficient VLM inference.

• System-algorithm co-design. We propose VisMemo, an approximate caching system for VLM inference that combines an efficient KV cache reuse algorithm with effective hierarchical cache management. At the algorithmic level, VisMemo introduces an entropy-aware method that selects high-relevant patches for recomputation and low-entropy patches for reuse. At the system level, VisMemo designs a differentiated cache management scheme to support both exact and approximate reuse via sparse I/O at patch-granular, coupled with prioritized retention and eviction policies.

• Practical system implementation and evaluation. We implement VisMemo by extending SGLang [65] and Mooncake. VisMemo achieves the highest overall scores in the five datasets, increases the total cache hit rate from 27.78% to 61.45%, and reduces prefill latency by up to 48.3%.

References (31)