QV-PIC: Query-Aware Visual Position-Independent Caching for Efficient RAG Serving

arXiv cs.CL Papers

Summary

This paper introduces QV-PIC, a query-aware dual-resolution position-independent caching framework for efficient RAG serving, which improves F1 by 21.6 points over vanilla rendered-image PIC while reducing time-to-first-token by 83.8% relative to full prefill.

arXiv:2608.12121v1 Announce Type: new Abstract: Retrieval-Augmented Generation (RAG) repeatedly prefills identical text chunks across queries, incurring redundant computations. Position-Independent Caching (PIC) mitigates it by reusing precomputed Key-Value (KV) across positions, but its efficiency is constrained by the large volume of text tokens. Rendering text chunks as images can compress the text into fewer visual tokens, but the rendered-image PIC suffers more severe quality degradation than the text PIC. This representation-specific gap primarily arises from contextual mismatches across independently compiled caches and the loss of fine-grained textual evidence during visual compression. Existing PIC repair methods mainly address the former through selective recomputation, but they incur online computation and cannot recover lost textual details. We propose QV-PIC, a query-aware dual-resolution PIC reuse framework guided by model-native templates. Offline, QV-PIC compiles visual caches under the model's native chat-template prefix, improving PIC quality without online recomputation. Online, it preserves global context with low resolution and restores fine-grained textual evidence within a high-resolution budget by cumulative query relevance scores, retaining the efficiency benefit of visual compression. Across six tasks, QV-PIC improves average F1 by 21.6 points over vanilla rendered-image PIC, closes the gap to vanilla text PIC, and surpasses optimized text PIC by 2.58 F1 while reducing TTFT by 17.2\%. Relative to full prefill, it cuts TTFT by 83.8%.
Original Article
View Cached Full Text

Cached at: 08/13/26, 03:29 PM

# QV-PIC: Query-Aware Visual Position-Independent Caching for Efficient RAG Serving
Source: [https://arxiv.org/html/2608.12121](https://arxiv.org/html/2608.12121)
Rui MengWangze NiJianxin YanHeng CaoLibin ZhengPeng ChengJinfei Liu

###### Abstract

Retrieval\-Augmented Generation \(RAG\) repeatedly prefills identical text chunks across queries, incurring redundant computations\. Position\-Independent Caching \(PIC\) mitigates it by reusing precomputed Key\-Value \(KV\) across positions, but its efficiency is constrained by the large volume of text tokens\. Rendering text chunks as images can compress the text into fewer visual tokens, but the rendered\-image PIC suffers more severe quality degradation than the text PIC\. This representation\-specific gap primarily arises from contextual mismatches across independently compiled caches and the loss of fine\-grained textual evidence during visual compression\. Existing PIC repair methods mainly address the former through selective recomputation, but they incur online computation and cannot recover lost textual details\. We propose QV\-PIC, a query\-aware dual\-resolution PIC reuse framework guided by model\-native templates\. Offline, QV\-PIC compiles visual caches under the model’s native chat\-template prefix, improving PIC quality without online recomputation\. Online, it preserves global context with low resolution and restores fine\-grained textual evidence within a high\-resolution budget by cumulative query relevance scores, retaining the efficiency benefit of visual compression\. Across six tasks, QV\-PIC improves average F1 by 21\.6 points over vanilla rendered\-image PIC, closes the gap to vanilla text PIC, and surpasses optimized text PIC by 2\.58 F1 while reducing TTFT by 17\.2%\. Relative to full prefill, it cuts TTFT by 83\.8%\.

11footnotetext:Corresponding author\.## Introduction

Retrieval\-Augmented Generation \(RAG\) augments user queries for Large Language Models \(LLMs\) with retrieved external documents to support knowledge\-intensive tasks\([15](https://arxiv.org/html/2608.12121#bib.bib13);[10](https://arxiv.org/html/2608.12121#bib.bib27);[13](https://arxiv.org/html/2608.12121#bib.bib28);[4](https://arxiv.org/html/2608.12121#bib.bib10)\)\. In long\-document RAG, identical document chunks are repeatedly prefilled across queries, incurring redundant prefill computation\. Dynamic retrieval rearranges retrieved chunks with different contextual positions, preventing efficient reuse of caches that rely on exact prefix matching or predefined structures\([8](https://arxiv.org/html/2608.12121#bib.bib14);[12](https://arxiv.org/html/2608.12121#bib.bib15);[30](https://arxiv.org/html/2608.12121#bib.bib6)\)\. Position\-Independent Caching \(PIC\) addresses this limitation by compiling reusable chunks independently and composing their Key\-Value \(KV\) caches at serving time, enabling cross\-position reuse of repeated content\. Existing RAG\-oriented PIC methods\([27](https://arxiv.org/html/2608.12121#bib.bib16);[11](https://arxiv.org/html/2608.12121#bib.bib17)\)are predominantly text\-based\. Although repeated prefill is eliminated, the transmission and computation costs associated with KV caches scale with context length\([14](https://arxiv.org/html/2608.12121#bib.bib8);[17](https://arxiv.org/html/2608.12121#bib.bib7);[19](https://arxiv.org/html/2608.12121#bib.bib9)\)\.

Visual\-text compression offers a complementary opportunity to shorten reusable context representations\. By rendering text chunks as compact images, Vision\-Language Models \(VLMs\) can encode multiple textual units into one visual token, increasing per\-token information density\([16](https://arxiv.org/html/2608.12121#bib.bib18);[26](https://arxiv.org/html/2608.12121#bib.bib19);[24](https://arxiv.org/html/2608.12121#bib.bib21)\)\. We refer to PIC over rendered images as*rendered\-image PIC*, in contrast to*text PIC*over the original text chunks\. Glyph\([6](https://arxiv.org/html/2608.12121#bib.bib20)\), for example, achieves 3\-4×\\timestoken compression while retaining long\-context performance comparable to similarly sized text\-only LLMs\. This result suggests that rendered images can substantially shorten the reusable KV sequence while preserving useful document information under full prefill, motivating rendered\-image PIC reuse across queries for efficient RAG serving\.

![Refer to caption](https://arxiv.org/html/2608.12121v1/fig1.png)Figure 1:Rendered\-image PIC uses fewer KV tokens but incurs a larger full\-prefill\-to\-PIC quality drop than text PIC on Glyph across six LongBench QA tasks at 72 DPI\.This opportunity raises a core question for efficient RAG serving:can rendered\-image PIC match the reuse quality of text PIC?Under identical conditions, we compare text and rendered\-image PIC using Glyph across six LongBench Question\-Answering \(QA\) tasks\. As shown in Figure[1](https://arxiv.org/html/2608.12121#Sx1.F1), although rendering substantially reduces token count, rendered\-image PIC suffers greater degradation from full prefill than text PIC\. This indicates that rendered images cannot directly inherit the PIC reuse capability of text\. This representation\-dependent gap reflects two coupled failure modes\. First, independently compiled caches lack the contextual conditions available during full prefill, causing cache\-state mismatch after composition\. Second, text tokenization preserves characters and words as discrete symbols, whereas visual encoding compresses characters, digits, punctuation, and local layout into fewer visual tokens, each aggregating multiple textual units\. Fine\-grained answer\-bearing evidence may therefore be blurred, conflated, or omitted before the rendered\-image KV cache is constructed\. Rendered\-image PIC must consequently address both*compilation\-context mismatch*and*fine\-grained evidence loss*\.

Prior PIC repair methods primarily address the first failure mode through selective recomputation or chunk\-boundary correction\([27](https://arxiv.org/html/2608.12121#bib.bib16);[11](https://arxiv.org/html/2608.12121#bib.bib17);[29](https://arxiv.org/html/2608.12121#bib.bib22);[20](https://arxiv.org/html/2608.12121#bib.bib23)\)\. Such methods can refresh context\-dependent states after caches are composed, but they introduce additional computation into the online path and operate on an already fixed visual representation\. They cannot reconstruct characters, digits, punctuation, or layout cues that were not preserved during visual encoding\. This limitation is particularly consequential for rendered images, whose answer\-bearing information often lies in fine\-grained textual details rather than the coarse visual semantics sufficient for natural\-image understanding\. Consequently, efficient rendered\-image PIC poses two key challenges:

Challenge 1: Efficient and stable repair of compilation\-context mismatch\.Prepending disposable prefix during compilation and stripping it afterward can absorb chunk\-initial attention sinks without online recomputation\. But arbitrary dummy prefixes induce prefix\-dependent cache states, making the repair sensitive to token identity and length\.

Challenge 2: Efficient restoration of visual\-text details\.Rendering resolution not only controls textual legibility but also visual\-token count\. Uniform low resolution is efficient but risks discarding fine\-grained evidence\. High resolution preserves richer textual details but sharply increases tokens, eroding the efficiency gains of visual\-text compression\.

In response to these challenges, we proposeQV\-PIC, a model\-native template\-conditioned and query\-aware dual\-resolution framework for rendered\-image PIC, which transforms fixed text chunks into controllable fine\-grained units\.For Challenge 1, QV\-PIC compiles each rendered image under the model\-native chat\-template prefix and strips the shared\-prefix KV entries before storage\. This native template provides the request\-invariant prompt\-format condition that is present during full prefill, reducing systematic compilation\-context mismatch without online recomputation\.For Challenge 2, QV\-PIC precompiles low\- and high\-resolution cache versions for each rendered image\. At serving time, it begins with complete low\-resolution context coverage and promotes only a bounded set of query\-relevant rendered images to high resolution according to cumulative query relevance\. The two components are complementary: template\-conditioned compilation first solidifies the quality foundation of the rendered image PIC, and query\-aware dual\-resolution allocation then restores query\-specific textual details\. The online path requires no rendered\-image generation, visual encoding, or context\-side full prefill\. Our contributions are summarized as follows:

- •We reveal the significant impact of text and rendered image representations on PIC reuse\.For identical text content, rendered\-image PIC suffers more severe degradation than text PIC, but the former has more potential in quality\-latency performance\.
- •We propose QV\-PIC, a template\-conditioned and query\-aware dual\-resolution framework for rendered\-image PIC\.It efficiently reduces the compilation\-context mismatch and improves fine\-grained textual evidence fidelity of rendered\-image PIC\.
- •We demonstrate that QV\-PIC achieves consistent quality\-latency improvements\.QV\-PIC improves average F1 by 21\.6 points over vanilla rendered\-image PIC, eliminating its 12\.2\-point gap to vanilla text PIC and outperforming optimized text PIC by 2\.58 points while reducing TTFT by 17\.2%\. Compared with full prefill, it reduces online prefill time by 83\.8%\.

## Background

### Position\-Independent Caching for Text

In RAG serving, the same text chunk may be retrieved by different queries with varying prefixes, orders, and contextual positions\. Conventional prefix caching reuses KV caches only when requests share fixed prefixes or predefined layouts\. For example, Prompt Cache\([8](https://arxiv.org/html/2608.12121#bib.bib14)\)predefines cacheable modules with positions, while RAGCache\([12](https://arxiv.org/html/2608.12121#bib.bib15)\)applies tree\-based KV retrieval and reuses prefix paths across GPU and memory\. Such prefix\-dependent reuse is difficult for dynamic retrieval, where the same chunk may appear in different surrounding contexts\. Text PIC addresses this limitation by independently compiling text chunks into reusable KV caches and linking retrieved caches during online serving\. Cache\-Craft\([1](https://arxiv.org/html/2608.12121#bib.bib29)\)identifies reusable chunk caches and selectively recomputes context\-sensitive states; EPIC\([11](https://arxiv.org/html/2608.12121#bib.bib17)\)formalizes PIC as a compile\-and\-link framework that recomputes only leading tokens to mitigate attention sinks; TurboRAG\([18](https://arxiv.org/html/2608.12121#bib.bib30)\)stitches precomputed KV caches with independent attention masks and reordered RoPE positions\. However, these Text PIC methods still incur online overhead from token selection, recomputation, or scheduling\. Although static offline linking can reduce latency, it is constrained by the form and semantics of precompiled prefixes\. More importantly, they fail to shorten text\-chunk representations\. Thus, even without full prefill, long\-document RAG still requires loading and transferring large text KV caches, limiting PIC reuse efficiency\([17](https://arxiv.org/html/2608.12121#bib.bib7);[19](https://arxiv.org/html/2608.12121#bib.bib9)\)\.

### Position\-Independent Caching for Images

Visual\-text compression renders text as images, increasing visual\-token information density\. Prior work, including Text or Pixels\([16](https://arxiv.org/html/2608.12121#bib.bib18)\), VIST\([26](https://arxiv.org/html/2608.12121#bib.bib19)\), Glyph\([6](https://arxiv.org/html/2608.12121#bib.bib20)\), DeepSeek\-OCR\([24](https://arxiv.org/html/2608.12121#bib.bib21)\), and DeepSeek\-OCR 2\([25](https://arxiv.org/html/2608.12121#bib.bib1)\), shows its effectiveness for long\-context modeling and token compression\. However, compressed visual text remains sensitive to rendering resolution and visual encoding, and OCR readability alone cannot reflect long\-range retrieval and reasoning quality\([28](https://arxiv.org/html/2608.12121#bib.bib24)\)\. Recent work adapts visual processing to task demands: AgentOCR\([7](https://arxiv.org/html/2608.12121#bib.bib2)\)uses segment optical caching to reuse rendered interaction\-history segments, while AgenticOCR\([23](https://arxiv.org/html/2608.12121#bib.bib3)\)identifies query\-relevant regions and performs OCR on demand\. These methods reduce irrelevant visual input but do not reuse page\-level KV caches that can be position\-independently assembled across requests\. Multimodal caching methods such as MPIC\([29](https://arxiv.org/html/2608.12121#bib.bib22)\)and VLCache\([20](https://arxiv.org/html/2608.12121#bib.bib23)\)further reuse visual intermediate states or language\-model KV caches with selective recomputation\. However, their fixed ordinary resolution may discard fine\-grained textual evidence that later KV repair cannot recover, while recomputation still incurs online overhead\.

## Methodology

QV\-PIC addresses two sources of degradation in rendered\-image PIC: cache\-state mismatch and the loss of fine\-grained textual evidence\. Offline, model\-native template\-conditioned compilation improves independently compiled KV quality and establishes a reliable reuse basis\. Online, query\-aware dual\-resolution allocation selectively restores query\-relevant visual details without rerendering or re\-encoding images\.

Figure 2:Overview of QV\-PIC\. Offline, model\-native template\-conditioned compilation builds low\- and high\-resolution rendered\-image caches and source\-text embeddings\. Online, query\-aware dual\-resolution allocation selects one cache version for each rendered image, assembles the selected caches under the current context order, re\-anchors M\-RoPE positions, and prefills only the query\.### Framework Overview

Given a queryqq, letC⁡\(q\)=\(c1,…,cn\)C\(q\)=\(c\_\{1\},\\ldots,c\_\{n\}\)denote the retrieved chunks in the current context order\. Each chunkcic\_\{i\}is rendered asxir=Render⁡\(ci;r\)x\_\{i\}^\{r\}=\\operatorname\{Render\}\(c\_\{i\};r\)at resolutionrr\. As shown in Figure[2](https://arxiv.org/html/2608.12121#Sx3.F2), QV\-PIC follows a two\-phase workflow\.

Phase I: Template\-conditioned cache preparation\.For each reusable chunkcic\_\{i\}, QV\-PIC renders low\- and high\-resolution images and independently compiles one cache per resolution under the model\-native chat\-template prefix\. It strips the prefix KV entries before storage, but retains the resulting template\-conditioned rendered\-image KV entries\. The cache bank stores both resolution variants, token\-count metadata, source\-order metadata, and a source\-text embedding for later routing\.

Phase II: Query\-aware cache assembly\.At serving time, QV\-PIC scores the retrieved chunks against the query and promotes at mostBBquery\-relevant rendered images to high resolution\. All retrieved chunks remain in the context, and exactly one cache version is activated for each rendered image\. The relevance ranking is used only for resolution allocation; cache assembly follows the current context order of the RAG request\. After M\-RoPE re\-anchoring, the assembled cache is supplied as past KV, so the VLM only computes query prefill and answer generation online\.

### Model\-Native Template\-Conditioned Compilation

In full prefill, the rendered\-image context is processed under the model\-native chat\-template prefix, which provides the request\-invariant prompt\-format condition of the VLM’s multimodal serving interface\. Prefix\-free compilation removes this condition, while dummy prefixes replace it with arbitrary tokens whose effect varies with token identity and length\. QV\-PIC instead uses the chat\-template prefix as the compile\-time condition and strips only its KV entries before storage\. This reduces prompt\-format mismatches in independently compiled rendered\-image caches\.

LetMMbe the VLM andhhits model\-native chat\-template prefix\. For a rendered imagexirx\_\{i\}^\{r\}, QV\-PIC constructs

𝒞ir=Striph⁡\(KVM⁡\(\[h;xir\]\)\),\\mathcal\{C\}\_\{i\}^\{r\}=\\operatorname\{Strip\}\_\{h\}\\left\(\\operatorname\{KV\}\_\{M\}\(\[h;x\_\{i\}^\{r\}\]\)\\right\),\(1\)whereStriph\\operatorname\{Strip\}\_\{h\}removes the KV entries corresponding tohh\. Although these prefix entries are discarded, the retained rendered\-image entries are still computed under the native template condition\. At serving time, QV\-PIC adds only one shared prefix cache,𝒞h=KVM⁡\(h\)\\mathcal\{C\}\_\{h\}=\\operatorname\{KV\}\_\{M\}\(h\)\.

Since each rendered\-image cache is compiled independently, its keys are stored before M\-RoPE rotation\([21](https://arxiv.org/html/2608.12121#bib.bib5);[22](https://arxiv.org/html/2608.12121#bib.bib4)\)\. After the current context order and resolution assignment are fixed, QV\-PIC derives the request positions𝐏i​\(q\)\\mathbf\{P\}\_\{i\}\(q\)for each activated cache and applies

𝐊ℓ,ir=ℛℓ​\(𝐊¯ℓ,ir,𝐏i​\(q\)\)\.\\mathbf\{K\}\_\{\\ell,i\}^\{r\}=\\mathcal\{R\}\_\{\\ell\}\\left\(\\bar\{\\mathbf\{K\}\}\_\{\\ell,i\}^\{r\},\\mathbf\{P\}\_\{i\}\(q\)\\right\)\.\(2\)where𝐊¯ℓ,ir\\bar\{\\mathbf\{K\}\}\_\{\\ell,i\}^\{r\}is the unrotated key at layerℓ\\ell, andℛℓ\\mathcal\{R\}\_\{\\ell\}is the model\-native M\-RoPE operator\. Values are position\-independent and are stitched in the same current context order\. Template conditioning improves the independently compiled rendered\-image KV entries, while M\-RoPE re\-anchoring places them at their request positions\. Thus, the two operations are complementary\.

### Query\-Aware Dual\-Resolution Allocation

Uniform low resolution reduces visual\-token and KV costs, but may weaken characters, numbers, and local textual evidence\. Uniform high resolution preserves more detail, but increases the active KV size for every rendered image\. QV\-PIC therefore precompiles both versions and activates high resolution only for query\-relevant rendered images:

ℬi=\{𝒞iL,𝒞iH\},\\mathcal\{B\}\_\{i\}=\\\{\\mathcal\{C\}\_\{i\}^\{L\},\\mathcal\{C\}\_\{i\}^\{H\}\\\},\(3\)where𝒞iL\\mathcal\{C\}\_\{i\}^\{L\}and𝒞iH\\mathcal\{C\}\_\{i\}^\{H\}denote the low\- and high\-resolution caches of rendered imageii\.

##### Query\-relevance scoring\.

QV\-PIC uses a frozen BGE\-M3 encoder\([5](https://arxiv.org/html/2608.12121#bib.bib12)\)E⁡\(⋅\)E\(\\cdot\)to embed the source text of each rendered image offline and the query online:

𝐞i=E⁡\(ci\)‖E⁡\(ci\)‖2,𝐞q=E⁡\(q\)‖E⁡\(q\)‖2\.\\mathbf\{e\}\_\{i\}=\\frac\{E\(c\_\{i\}\)\}\{\\\|E\(c\_\{i\}\)\\\|\_\{2\}\},\\qquad\\mathbf\{e\}\_\{q\}=\\frac\{E\(q\)\}\{\\\|E\(q\)\\\|\_\{2\}\}\.\(4\)The relevance score is cosine similarity:

s~i=𝐞q⊤​𝐞i,si=\[s~i\]\+=max⁡\(s~i,0\)\.\\tilde\{s\}\_\{i\}=\\mathbf\{e\}\_\{q\}^\{\\top\}\\mathbf\{e\}\_\{i\},\\qquad s\_\{i\}=\[\\tilde\{s\}\_\{i\}\]\_\{\+\}=\\max\(\\tilde\{s\}\_\{i\},0\)\.\(5\)Letπ⁡\(q\)\\pi\(q\)sort the retrieved chunks bys~i\\tilde\{s\}\_\{i\}in descending order\. This ranking is used only to choose high\-resolution caches\. When∑isi\>0\\sum\_\{i\}s\_\{i\}\>0, QV\-PIC selects the smallest top\-ranked set whose cumulative positive relevance reaches thresholdα\\alpha, capped by budgetBB:

k⋆=min⁡\(B,min⁡\{k:∑j=1ksπj∑i=1nsi≥α\}\)\.k^\{\\star\}=\\min\\left\(B,\\,\\min\\left\\\{k:\\frac\{\\sum\_\{j=1\}^\{k\}s\_\{\\pi\_\{j\}\}\}\{\\sum\_\{i=1\}^\{n\}s\_\{i\}\}\\geq\\alpha\\right\\\}\\right\)\.\(6\)If all scores are non\-positive, QV\-PIC selects the highest\-scoring chunk as a deterministic fallback\. The promoted set and resolution assignment are

𝒮⁡\(q\)=\{π1,…,πk⋆\},ri​\(q\)=\{H,i∈𝒮⁡\(q\),L,otherwise\.\\mathcal\{S\}\(q\)=\\\{\\pi\_\{1\},\\ldots,\\pi\_\{k^\{\\star\}\}\\\},\\qquad r\_\{i\}\(q\)=\\begin\{cases\}H,&i\\in\\mathcal\{S\}\(q\),\\\\ L,&\\text\{otherwise\}\.\\end\{cases\}\(7\)Here,s~i\\tilde\{s\}\_\{i\}measures query relevance, whereasri​\(q\)r\_\{i\}\(q\)denotes the assigned resolution\.

##### Online assembly and cost\.

After resolution assignment, QV\-PIC activates\{𝒞iri​\(q\)\}i=1n\\\{\\mathcal\{C\}\_\{i\}^\{r\_\{i\}\(q\)\}\\\}\_\{i=1\}^\{n\}and assembles them under the current context order\. IfniLn\_\{i\}^\{L\}andniHn\_\{i\}^\{H\}denote the low\- and high\-resolution token counts of rendered imageii, the active rendered\-image prefix length is

N⁡\(q\)=∑i=1nniL\+∑i∈𝒮⁡\(q\)\(niH−niL\),\|𝒮⁡\(q\)\|≤B\.N\(q\)=\\sum\_\{i=1\}^\{n\}n\_\{i\}^\{L\}\+\\sum\_\{i\\in\\mathcal\{S\}\(q\)\}\\left\(n\_\{i\}^\{H\}\-n\_\{i\}^\{L\}\\right\),\\qquad\|\\mathcal\{S\}\(q\)\|\\leq B\.\(8\)Thus, high\-resolution overhead is paid only for promoted rendered images\. Online routing requires query encoding, similarity scoring, and ranking:

Troute=TE​\(q\)\+O⁡\(n​d\)\+O⁡\(n​log⁡n\),T\_\{\\mathrm\{route\}\}=T\_\{E\}\(q\)\+O\(nd\)\+O\(n\\log n\),\(9\)whereddis the embedding dimension\. Rendering, visual encoding, and rendered\-image KV compilation remain offline\.

## Experiments

In this section, we conduct experiments to evaluate QV\-PIC by addressing the following questions:

Q1: Can model\-native template\-conditioned compilation improve the reuse quality of independently compiled rendered\-image caches?

Q2: Under template\-conditioned compilation, how do the F1 and TTFT of rendered\-image PIC change with uniform DPI scaling?

Q3: Can QV\-PIC achieve higher average F1 with lower average TTFT than uniform 120\-DPI rendered\-image PIC and text PIC?

Q4: How well does QV\-PIC generalize beyond Glyph?

### Experimental Configuration

#### Implementation

We implement all methods in a unified Hugging Face\-PyTorch inference framework and evaluate them on a server equipped with eight NVIDIA A800 80 GB GPUs\. All methods using the same backbone share identical configurations\. Following the rendering protocol of Glyph\([6](https://arxiv.org/html/2608.12121#bib.bib20)\), we fix the rendering canvas size, margins, font, and line spacing while varying only DPI\. We extend Glyph’s 72/96/120\-DPI range to 144 and 168 DPI at 24\-DPI intervals\. QV\-PIC uses 72/120 DPI as its dual\-resolution configuration: 72 DPI preserves full\-context coverage at low cost, whereas 120 DPI provides a clear average quality gain without the larger token and latency costs of 144 and 168 DPI\. For query\-aware dual\-resolution allocation, we rank rendered images by relevance and select the smallest top\-ranked set whose cumulative normalized positive relevance reachesα=0\.65\\alpha=0\.65, capped atB=4B=4high\-resolution rendered images\. Owing to the compute budget, NarrativeQA is evaluated at 72, 96, and 120 DPI, whereas the other tasks use the complete DPI sweep\.

#### Model Selection

ForQ1\-Q3, we use Glyph 9B as the primary model\. Glyph receives rendered\-text\-specific adaptation through continual pretraining on rendered long\-text data and OCR\-aware SFT/RL\. This specialization reduces confounding from basic rendered\-text recognition, allowing Q1\-Q3 to focus on cache compilation and resolution allocation\. ForQ4, we evaluate two technically compatible general\-purpose VLMs of comparable scale: GLM\-4\.1V\-9B\-Thinking\([9](https://arxiv.org/html/2608.12121#bib.bib25)\)and LLaVA\-OneVision\-2\-8B\-Instruct\([2](https://arxiv.org/html/2608.12121#bib.bib26)\)\. Both support multi\-image inputs and provide OCR and document\-understanding capabilities, but neither has undergone rendered\-text\-specific adaptation\. GLM\-4\.1V provides a related\-family setting because Glyph is initialized from GLM\-4\.1V\-9B\-Base, whereas LLaVA\-OneVision\-2 uses a different vision encoder, language backbone, and training recipe, providing a cross\-family setting\. These models are used as conservative transfer probes\. Positive results on them would indicate that QV\-PIC does not rely entirely on Glyph’s rendered\-text\-specific training\. Meanwhile, dedicated rendered\-text adaptation may provide additional quality headroom for QV\-PIC on future compatible backbones\.

#### Baselines

ForQ1, we compare a prefix\-free baseline with three cache\-state repair strategies: dummy\-prefix conditioning usingk∈\{2,4,8,16\}k\\in\\\{2,4,8,16\\\}repetitions of the placeholder tokenx, model\-native template conditioning, and an efficient recomputation method EPIC\-2/4 without token selection\. Thek=4k=4dummy prefix matches the native chat\-template length, while the remaining lengths test sensitivity to arbitrary prefix length\. ForQ2, we compare full prefill and template\-conditioned PIC for both text and rendered\-image inputs across DPI settings\. This separates representation quality from PIC degradation and evaluates the quality and latency effects of uniform DPI scaling\. ForQ3, we compare QV\-PIC with template\-conditioned text PIC, uniform 72\- and 120\-DPI rendered\-image PIC, and QV\-PIC without template conditioning\. This isolates the contribution of dual\-resolution allocation and its complementarity with template conditioning\.Q4repeats the same within\-backbone comparison on two additional VLMs, measuring generalization relative to each model’s own PIC baseline\.

#### Datasets

ForQ1\-Q4, we select six long\-context question\-answering \(QA\) tasks from LongBench\([3](https://arxiv.org/html/2608.12121#bib.bib11)\)\. 2WikiMQA, HotpotQA, and MuSiQue cover multi\-document, multi\-hop evidence aggregation\. MultiFieldQA\-en and NarrativeQA evaluate evidence localization and holistic understanding within long single documents, while TriviaQA focuses on factoid question answering\. Together, these tasks span single\- and multi\-document contexts, localized and distributed evidence, and direct retrieval and multi\-hop reasoning, providing complementary tests of the composition and reuse of independently compiled rendered\-image caches\. We use all 1,150 examples in LongBench evaluation subsets\. MultiFieldQA\-en contains 150 examples, and each of the other five tasks contains 200\. Results are first averaged within each task and then equally averaged across tasks\.

#### Metrics

QV\-PIC is evaluated by answer quality, online latency, and token size\. Answer quality is measured by official LongBench token\-overlap F1 using one deterministic run per example\. TTFT, averaged over three runs, is measured from a CUDA synchronization immediately before each online request to first\-token logits\. For full prefill, TTFT includes visual encoding when applicable, full\-context prefill, and first\-token computation\. For PIC, TTFT includes CPU\-to\-GPU KV transfer and materialization, cache composition, global positional re\-anchoring, query\-suffix prefill, and first\-token computation\. QV\-PIC additionally includes BGE\-M3 query encoding, relevance scoring, ranking, and resolution assignment\.

### Q1: Effectiveness of Model\-Native Template\-Conditioned Compilation

To answer Q1, we compare prefix\-free compilation, dummy\-prefix compilation withk∈\{2,4,8,16\}k\\in\\\{2,4,8,16\\\}, and model\-native template\-conditioned compilation\. For the latter two, the prefix is prepended during offline compilation and their KV entries are then discarded, retaining only the prefix\-conditioned KV\. Rendered\-image experiments use 72 and 120 DPI\. Since the native chat\-template prefix has four tokens, dummy\-prefix\-4 serves as a length\-matched control\. We also compare EPIC\-2/4, which recomputes the first two or four chunk tokens online\. Figures 3 and 4 report the six\-task average F1\.

Figure 3:Six\-task average F1 of rendered\-image PIC under different cache\-compilation and repair settings at 72 and 120 DPI\.##### Prefix\-conditioned compilation outperforms resolution scaling and leading\-token recomputation\.

Prefix\-free rendered\-image PIC obtains average F1 scores of 32\.7 and 32\.9 at 72 dpi and 120 dpi, respectively, which are 12\.2 and 12\.0 points lower than prefix\-free text PIC\. Increasing DPI provides almost no improvement\. EPIC\-2/4 achieves F1 scores of 31\.5 and 33\.3, remaining comparable to prefix\-free Rendered\-Image PIC\. In contrast, the dummy prefixk=2k=2improves F1 to 47\.8 and 48\.9 at the two resolutions, indicating that conditioning each chunk during offline compilation is more effective than recomputing a few leading tokens of each chunk online\. However, as the dummy\-prefix length increases from 2 to 16, the average F1 of both image and text drops substantially, indicating its sensitivity to arbitrary prefix length\. Template\-conditioned compilation achieves average F1 scores of 48\.8, 52\.1, and 51\.7 for 72\-DPI rendered images, 120\-DPI rendered images, and text, respectively\. It outperforms the length\-matched dummy prefix by 3\.0, 5\.2, and 5\.1 points\. This confirms that the gain comes from alignment with the model’s learned input interface rather than the mere presence or length of prefix conditioning\.

##### Answer to Q1\.

Model\-native template conditioning provides the highest PIC quality across resolutions and modalities\.At 120 DPI, it raises the rendered\-image PIC from 32\.9 to 52\.1 F1, converting its original 12\.0\-point gap from text PIC into a 0\.4\-point advantage\. Therefore, model\-native template conditioning constructs higher\-quality reusable caches entirely offline, without online recomputation or tuning an arbitrary dummy\-prefix length\.

Figure 4:Six\-task average F1 of text PIC under different cache\-compilation settings\.

### Q2: Effects of Uniform DPI Scaling on Quality and Latency

Q1 shows that DPI alone cannot repair independently compiled caches, whereas template conditioning establishes a reliable reuse basis and allows higher resolution to deliver further average F1 gains\. Q2 therefore examines how uniform DPI scaling affects the F1 and TTFT of rendered\-image PIC relative to text PIC and full prefill\.

Figure 5:Per\-task F1\-TTFT comparison of full prefill and template\-conditioned PIC for text and rendered image across DPI settings\. Image points are connected in ascending DPI order, and TTFT is shown on a logarithmic scale\.##### Uniform DPI scaling yields unstable F1 changes while TTFT increases consistently\.

As shown in Figure[5](https://arxiv.org/html/2608.12121#Sx4.F5), the best rendered\-image full\-prefill configurations approach or match text full prefill across the six tasks, confirming the quality potential of rendered\-image inputs\. Template\-conditioned rendered\-image PIC improves from an average F1 of 48\.8 at 72 DPI to 52\.1 at 120 DPI, and at least one DPI setting reaches or exceeds text PIC on four tasks\. However, the per\-task F1 gains are non\-monotonic\. Increasing DPI may improve, preserve, or reduce F1, showing that additional visual detail does not reliably translate into higher reuse quality\. In contrast, TTFT increases consistently as visual tokens and KV caches grow\. Although increasing DPI provides more visual detail, it also adds visual tokens whose additional detail is not consistently useful to the current query\. Moreover, even at 120 DPI, rendered\-image PIC remains roughly an order of magnitude faster than rendered\-image full prefill on most tasks\.

##### Answer to Q2\.

Template conditioning enables moderate DPI increases to improve rendered\-image PIC quality while retaining substantial full\-prefill speedups\.However, the gains become limited or unstable whereas TTFT increases consistently, motivating selective high\-resolution allocation to query\-relevant rendered images\.

### Q3: Joint F1\-TTFT Improvement via Query\-Aware Dual\-Resolution Allocation

Q3 examines whether allocating a bounded high\-resolution budget to query\-relevant rendered images can improve the overall performance of rendered\-image PIC reuse\. QV\-PIC retains most rendered\-image caches at 72 DPI and selects the most relevant ones with 120 DPI\. Additionally, we remove template conditioning to evaluate its synergy with query\-aware dual\-resolution allocation\.

##### Query\-aware dual\-resolution allocation improves F1 without uniform high\-resolution overhead\.

As shown in Figure[6](https://arxiv.org/html/2608.12121#Sx4.F6), QV\-PIC simultaneously improves F1 and reduces TTFT over uniform 120\-DPI rendered\-image PIC on HotpotQA, MuSiQue, TriviaQA, and NarrativeQA, indicating that enhancing only query\-relevant images preserves useful visual\-detail gains while avoiding unnecessary visual overhead on irrelevant pages\. Compared with text PIC, it improves F1 and reduces TTFT on MuSiQue, TriviaQA, and NarrativeQA, achieves higher F1 at comparable TTFT on 2WikiMQA, and maintains similar F1 at lower TTFT on HotpotQA and MultiFieldQA\-en\. Moreover, template conditioning raises the average F1 of prefix\-free 72\-DPI PIC from 32\.7 to 48\.8, whereas dual\-resolution allocation alone reaches only 32\.5\. Combining both components increases the average F1 to 54\.3, with gains on all tasks, finally surpassing the 51\.7 F1 of text PIC\. Template conditioning therefore establishes a reliable KV basis, while query\-aware dual\-resolution allocation provides query\-relevant fine\-grained evidence\.

Figure 6:F1\-TTFT comparisons on different PIC methods and component ablation of QV\-PIC\.
##### Answer to Q3\.

QV\-PIC preserves the visual compression advantage while achieving better overall F1\.Compared with text PIC and template\-conditioned 120\-DPI rendered\-image PIC, QV\-PIC attains higher average F1 with lower average TTFT\. The ablation further confirms that the gains arise from the synergism of template\-conditioned compilation and query\-aware dual\-resolution allocation\.

### Q4: Cross\-Model Generalization of QV\-PIC

Q4 examines whether QV\-PIC remains effective on general\-purpose VLMs GLM\-4\.1V and LLaVA\-OneVision\-2\. GLM\-4\.1V provides a related\-family setting, whereas LLaVA\-OneVision\-2 provides a cross\-family test\. We compare prefix\-free 72 DPI rendered\-image PIC, template\-conditioned rendered\-image PIC at 72 and 120 DPI, template\-conditioned text PIC, and QV\-PIC\.

##### QV\-PIC consistently strengthens rendered\-image PIC\.

As shown in Figure[7](https://arxiv.org/html/2608.12121#Sx4.F7), template\-conditioned 72\-DPI rendered\-image PIC substantially improves average F1 over prefix\-free compilation on both models\. Uniform 120\-DPI compilation further improves F1 on both models, confirming that template\-conditioned compilation is not confined to Glyph’s rendered\-text\-specific adaptation\. On GLM\-4\.1V, QV\-PIC achieves the highest average F1 while requiring lower TTFT than both uniform 120\-DPI rendered\-image PIC and template\-conditioned text PIC\. On LLaVA\-OneVision\-2, QV\-PIC substantially improves over the uniform 72\-DPI configuration and nearly matches the highest average F1 obtained by uniform 120\-DPI rendered\-image PIC and text PIC, while requiring markedly lower TTFT than either\.

##### Answer to Q4\.

QV\-PIC shows promising generalization beyond the primary Glyph model\.Across both related\- and cross\-family general\-purpose VLMs, it either achieves the highest F1 with lower TTFT or retains a near\-best F1 at a lower TTFT\. Thus, its gains are not limited to Glyph’s rendered\-text specialization, although the magnitude of the gain depends on the underlying VLM\.

Figure 7:Cross\-model six\-task average F1\-TTFT comparison of QV\-PIC\.

## Conclusion

Regarding the reuse\-quality degradation caused by cache\-state mismatch and fine\-grained evidence loss in rendered\-image PIC, we propose QV\-PIC, a query\-aware visual PIC framework for efficient RAG serving\. It combines model\-native template\-conditioned cache compilation with query\-aware dual\-resolution cache assembly to reduce compilation\-context mismatch and preserve query\-relevant textual evidence\. Across six LongBench QA tasks, QV\-PIC improves rendered\-image PIC by 21\.6 F1 points and surpasses optimized text PIC and uniform 120\-DPI rendered\-image PIC with lower TTFT\. Compared with full prefill, it reduces online prefill time by 83\.8%, enabling fast and accurate long\-document RAG with reusable visual\-text caches\.

## References

- Agarwalet al\.\(2025\)S\. Agarwal, S\. Sundaresan, S\. Mitra, D\. Mahapatra, A\. Gupta, R\. Sharma, N\. J\. Kapu, T\. Yu, and S\. K\. SainiCache\-craft: managing chunk\-caches for efficient retrieval\-augmented generation\.Proceedings of the ACM on Management of Data3\(3\),pp\. 136:1–136:28\.External Links:[Document](https://dx.doi.org/10.1145/3725273),[Link](https://doi.org/10.1145/3725273)Cited by:[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Anet al\.\(2026\)X\. An, Y\. Xie, F\. Tang, Y\. Yan, H\. Tan, D\. Zhu, C\. Chen, X\. Zhao, B\. Qin, K\. Yang, Y\. Shen, Y\. Zhang, K\. Zhang, W\. Zhang, Z\. Cheng, N\. Zhang, C\. Wu, C\. Ge, Z\. Ran, D\. Song, C\. Li, S\. Feng, M\. Hu, Z\. Chen, J\. Niu, B\. Li, Z\. Feng, Z\. Liu, Z\. Ge, and J\. DengLLaVA\-OneVision\-2: towards next\-generation perceptual intelligence\.arXiv preprint arXiv:2605\.25979\.External Links:[Link](https://arxiv.org/abs/2605.25979)Cited by:[Model Selection](https://arxiv.org/html/2608.12121#Sx4.SSx1.SSSx2.p1.1)\.
- Baiet al\.\(2024\)Y\. Bai, X\. Lv, J\. Zhang, H\. Lyu, J\. Tang, Z\. Huang, Z\. Du, X\. Liu, A\. Zeng, L\. Hou, Y\. Dong, J\. Tang, and J\. LiLongBench: a bilingual, multitask benchmark for long context understanding\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),Bangkok, Thailand,pp\. 3119–3137\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.acl-long.172),[Link](https://aclanthology.org/2024.acl-long.172/)Cited by:[Datasets](https://arxiv.org/html/2608.12121#Sx4.SSx1.SSSx4.p1.1)\.
- Borgeaudet al\.\(2022\)S\. Borgeaud, A\. Mensch, J\. Hoffmann, T\. Cai, E\. Rutherford, K\. Millican, G\. B\. Van Den Driessche, J\. Lespiau, B\. Damoc, A\. Clark, D\. De Las Casas, A\. Guy, J\. Menick, R\. Ring, T\. Hennigan, S\. Huang, L\. Maggiore, C\. Jones, A\. Cassirer, A\. Brock, M\. Paganini, G\. Irving, O\. Vinyals, S\. Osindero, K\. Simonyan, J\. Rae, E\. Elsen, and L\. SifreImproving language models by retrieving from trillions of tokens\.InProceedings of the 39th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.162,pp\. 2206–2240\.External Links:[Link](https://proceedings.mlr.press/v162/borgeaud22a.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.
- Chenet al\.\(2024\)J\. Chen, S\. Xiao, P\. Zhang, K\. Luo, D\. Lian, and Z\. LiuM3\-Embedding: multi\-linguality, multi\-functionality, multi\-granularity text embeddings through self\-knowledge distillation\.InFindings of the Association for Computational Linguistics: ACL 2024,Bangkok, Thailand,pp\. 2318–2335\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.137),[Link](https://aclanthology.org/2024.findings-acl.137/)Cited by:[Query\-relevance scoring\.](https://arxiv.org/html/2608.12121#Sx3.SSx3.SSS0.Px1.p1.1)\.
- Chenget al\.\(2025\)J\. Cheng, Y\. Liu, X\. Zhang, Y\. Fei, W\. Hong, R\. Lyu, W\. Wang, Z\. Su, X\. Gu, X\. Liu, Y\. Bai, J\. Tang, H\. Wang, and M\. HuangGlyph: scaling context windows via visual\-text compression\.arXiv preprint arXiv:2510\.17800\.External Links:[Link](https://arxiv.org/abs/2510.17800)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p2.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1),[Implementation](https://arxiv.org/html/2608.12121#Sx4.SSx1.SSSx1.p1.1)\.
- Fenget al\.\(2026\)L\. Feng, F\. Yang, F\. Chen, X\. Cheng, H\. Xu, Z\. Wan, M\. Yan, and B\. AnAgentOCR: reimagining agent history via optical self\-compression\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),San Diego, California, United States,pp\. 5067–5086\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.acl-long.230),[Link](https://aclanthology.org/2026.acl-long.230/)Cited by:[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Gimet al\.\(2024\)I\. Gim, G\. Chen, S\. Lee, N\. Sarda, A\. Khandelwal, and L\. ZhongPrompt cache: modular attention reuse for low\-latency inference\.InProceedings of Machine Learning and Systems,Vol\.6,pp\. 325–338\.External Links:[Link](https://proceedings.mlsys.org/paper_files/paper/2024/hash/a66caa1703fe34705a4368c3014c1966-Abstract-Conference.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- GLM\-V Team \(2025\)GLM\-V TeamGLM\-4\.1V\-Thinking and GLM\-4\.5V: towards versatile multimodal reasoning with scalable reinforcement learning\.arXiv preprint arXiv:2507\.01006\.External Links:[Link](https://arxiv.org/abs/2507.01006)Cited by:[Model Selection](https://arxiv.org/html/2608.12121#Sx4.SSx1.SSSx2.p1.1)\.
- Guuet al\.\(2020\)K\. Guu, K\. Lee, Z\. Tung, P\. Pasupat, and M\. ChangRetrieval augmented language model pre\-training\.InProceedings of the 37th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.119,pp\. 3929–3938\.External Links:[Link](https://proceedings.mlr.press/v119/guu20a.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.
- Huet al\.\(2025\)J\. Hu, W\. Huang, W\. Wang, H\. Wang, T\. Hu, Z\. Qin, H\. Feng, X\. Chen, Y\. Shan, and T\. XieEPIC: efficient position\-independent caching for serving large language models\.InProceedings of the 42nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.267,pp\. 24391–24402\.External Links:[Link](https://proceedings.mlr.press/v267/hu25j.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Introduction](https://arxiv.org/html/2608.12121#Sx1.p4.1),[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Jinet al\.\(2025\)C\. Jin, Z\. Zhang, X\. Jiang, F\. Liu, S\. Liu, X\. Liu, and X\. JinRAGCache: efficient knowledge caching for retrieval\-augmented generation\.ACM Transactions on Computer Systems44\(1\),pp\. 2:1–2:27\.External Links:[Document](https://dx.doi.org/10.1145/3768628),[Link](https://doi.org/10.1145/3768628)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Karpukhinet al\.\(2020\)V\. Karpukhin, B\. Oguz, S\. Min, P\. Lewis, L\. Wu, S\. Edunov, D\. Chen, and W\. YihDense passage retrieval for open\-domain question answering\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing,pp\. 6769–6781\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.emnlp-main.550),[Link](https://aclanthology.org/2020.emnlp-main.550/)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.
- Kwonet al\.\(2023\)W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. E\. Gonzalez, H\. Zhang, and I\. StoicaEfficient memory management for large language model serving with PagedAttention\.InProceedings of the 29th Symposium on Operating Systems Principles,Koblenz, Germany,pp\. 611–626\.External Links:[Document](https://dx.doi.org/10.1145/3600006.3613165),[Link](https://doi.org/10.1145/3600006.3613165)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.
- Lewiset al\.\(2020\)P\. Lewis, E\. Perez, A\. Piktus, F\. Petroni, V\. Karpukhin, N\. Goyal, H\. Küttler, M\. Lewis, W\. Yih, T\. Rocktäschel, S\. Riedel, and D\. KielaRetrieval\-augmented generation for knowledge\-intensive NLP tasks\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\. 9459–9474\.External Links:[Link](https://proceedings.neurips.cc/paper/2020/hash/6b493230205f780e1bc26945df7481e5-Abstract.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.
- Liet al\.\(2025\)Y\. Li, Z\. Lan, and J\. ZhouText or pixels? evaluating efficiency and understanding of LLMs with visual text inputs\.InFindings of the Association for Computational Linguistics: EMNLP 2025,pp\. 10564–10578\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.findings-emnlp.558),[Link](https://aclanthology.org/2025.findings-emnlp.558/)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p2.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Liuet al\.\(2024\)Y\. Liu, H\. Li, Y\. Cheng, S\. Ray, Y\. Huang, Q\. Zhang, K\. Du, J\. Yao, S\. Lu, G\. Ananthanarayanan, M\. Maire, H\. Hoffmann, A\. Holtzman, and J\. JiangCacheGen: KV cache compression and streaming for fast large language model serving\.InProceedings of the ACM SIGCOMM 2024 Conference,Sydney, NSW, Australia,pp\. 38–56\.External Links:[Document](https://dx.doi.org/10.1145/3651890.3672274),[Link](https://doi.org/10.1145/3651890.3672274)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Luet al\.\(2025\)S\. Lu, H\. Wang, Y\. Rong, Z\. Chen, and Y\. TangTurboRAG: accelerating retrieval\-augmented generation with precomputed KV caches for chunked text\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 6588–6601\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.emnlp-main.334),[Link](https://aclanthology.org/2025.emnlp-main.334/)Cited by:[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Qinet al\.\(2025a\)R\. Qin, Z\. Li, W\. He, J\. Cui, F\. Ren, M\. Zhang, Y\. Wu, W\. Zheng, and X\. XuMooncake: trading more storage for less computation—a KVCache\-centric architecture for serving LLM chatbot\.In23rd USENIX Conference on File and Storage Technologies \(FAST 25\),Santa Clara, CA,pp\. 155–170\.External Links:[Link](https://www.usenix.org/conference/fast25/presentation/qin)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Position\-Independent Caching for Text](https://arxiv.org/html/2608.12121#Sx2.SSx1.p1.1)\.
- Qinet al\.\(2025b\)S\. Qin, H\. Yu, C\. Wu, Z\. Li, Y\. Cao, Z\. Zhuge, Y\. Zhou, W\. Yao, Y\. Zhang, Z\. Wang, S\. Bai, J\. Zhang, and J\. LinVLCache: computing 2% vision tokens and reusing 98% for vision\-language inference\.arXiv preprint arXiv:2512\.12977\.External Links:[Link](https://arxiv.org/abs/2512.12977)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p4.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Suet al\.\(2024\)J\. Su, M\. H\. M\. Ahmed, Y\. Lu, S\. Pan, W\. Bo, and Y\. LiuRoFormer: enhanced transformer with rotary position embedding\.Neurocomputing568,pp\. 127063\.External Links:[Document](https://dx.doi.org/10.1016/j.neucom.2023.127063),[Link](https://doi.org/10.1016/j.neucom.2023.127063)Cited by:[Model\-Native Template\-Conditioned Compilation](https://arxiv.org/html/2608.12121#Sx3.SSx2.p3.1)\.
- Wanget al\.\(2024\)P\. Wang, S\. Bai, S\. Tan, S\. Wang, Z\. Fan, J\. Bai, K\. Chen, X\. Liu, J\. Wang, W\. Ge, Y\. Fan, K\. Dang, M\. Du, X\. Ren, R\. Men, D\. Liu, C\. Zhou, J\. Zhou, and J\. LinQwen2\-VL: enhancing vision\-language model’s perception of the world at any resolution\.arXiv preprint arXiv:2409\.12191\.External Links:[Link](https://arxiv.org/abs/2409.12191)Cited by:[Model\-Native Template\-Conditioned Compilation](https://arxiv.org/html/2608.12121#Sx3.SSx2.p3.1)\.
- Wanget al\.\(2026\)Z\. Wang, D\. Ma, H\. Zhong, J\. Li, W\. Zhang, B\. Wang, and C\. HeAgenticOCR: parsing only what you need for efficient retrieval\-augmented generation\.arXiv preprint arXiv:2602\.24134\.External Links:[Link](https://arxiv.org/abs/2602.24134)Cited by:[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Weiet al\.\(2025\)H\. Wei, Y\. Sun, and Y\. LiDeepSeek\-OCR: contexts optical compression\.arXiv preprint arXiv:2510\.18234\.External Links:[Link](https://arxiv.org/abs/2510.18234)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p2.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Weiet al\.\(2026\)H\. Wei, Y\. Sun, and Y\. LiDeepSeek\-OCR 2: visual causal flow\.arXiv preprint arXiv:2601\.20552\.External Links:[Link](https://arxiv.org/abs/2601.20552)Cited by:[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Xinget al\.\(2025\)L\. Xing, A\. J\. Wang, R\. Yan, X\. Shu, and J\. TangVision\-centric token compression in large language model\.InAdvances in Neural Information Processing Systems,Vol\.38,pp\. 37239–37269\.External Links:[Document](https://dx.doi.org/10.52202/085713-1111),[Link](https://papers.nips.cc/paper_files/paper/2025/hash/2f8b56543953d60f262fb2c4b85c50b3-Abstract-Conference.html)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p2.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Yaoet al\.\(2025\)J\. Yao, H\. Li, Y\. Liu, S\. Ray, Y\. Cheng, Q\. Zhang, K\. Du, S\. Lu, and J\. JiangCacheBlend: fast large language model serving for RAG with cached knowledge fusion\.InProceedings of the Twentieth European Conference on Computer Systems,pp\. 94–109\.External Links:[Document](https://dx.doi.org/10.1145/3689031.3696098),[Link](https://doi.org/10.1145/3689031.3696098)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1),[Introduction](https://arxiv.org/html/2608.12121#Sx1.p4.1)\.
- Zhaoet al\.\(2025a\)H\. Zhao, M\. Wang, F\. Zhu, W\. Liu, B\. Ni, F\. Zeng, G\. Meng, and Z\. ZhangVTCBench: can vision\-language models understand long context with vision\-text compression?\.arXiv preprint arXiv:2512\.15649\.External Links:[Link](https://arxiv.org/abs/2512.15649)Cited by:[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Zhaoet al\.\(2025b\)S\. Zhao, J\. Hu, R\. Huang, J\. Zheng, and G\. ChenMPIC: position\-independent multimodal context caching system for efficient MLLM serving\.arXiv preprint arXiv:2502\.01960\.External Links:[Link](https://arxiv.org/abs/2502.01960)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p4.1),[Position\-Independent Caching for Images](https://arxiv.org/html/2608.12121#Sx2.SSx2.p1.1)\.
- Zhenget al\.\(2024\)L\. Zheng, L\. Yin, Z\. Xie, C\. Sun, J\. Huang, C\. H\. Yu, S\. Cao, C\. Kozyrakis, I\. Stoica, J\. E\. Gonzalez, C\. Barrett, and Y\. ShengSGLang: efficient execution of structured language model programs\.InAdvances in Neural Information Processing Systems,Vol\.37,pp\. 62557–62583\.External Links:[Document](https://dx.doi.org/10.52202/079017-2000)Cited by:[Introduction](https://arxiv.org/html/2608.12121#Sx1.p1.1)\.

Similar Articles

RAGOCR: Optical Compression of Retrieval-Augmented Text via Visual Representation

arXiv cs.CL

RAGOCR is a novel framework that compresses retrieved documents into compact visual representations conditioned on the input query, using query-aware dynamic resolution to balance compression rate and information fidelity. Experiments show it surpasses naive RAG by over 15% accuracy while using only one-eighth the input tokens.

RAG-Stack: Co-Optimizing RAG Serving Performance and Quality

arXiv cs.AI

This paper introduces RAG-Stack, a framework that co-optimizes RAG serving performance and answer quality by efficiently exploring the joint algorithm-system configuration space. It finds Pareto frontiers that cover significantly more quality-performance space than existing configuration-search methods.

From Local Mismatch to Global Impact: Optimizing Cache Reuse Policy for Efficient Diffusion

arXiv cs.AI

This paper proposes Global-ImpactCache (GCache), a bilevel optimization framework that learns cache reuse policies for diffusion models by aligning error weighting with final generation quality, instead of relying on local similarity heuristics. It achieves significant speedups and quality improvements on image and video generation tasks, including a 2.17x speedup on Wan2.1 with lower LPIPS.