TL;DR
Large Vision-Language Models (LVLMs) drown in memory costs because high-resolution images and videos generate thousands of tokens that clog the Key-Value (KV) cache. Existing compression methods prune tokens based on what looks generally "interesting" before the model even starts answering, often accidentally throwing away tiny, crucial details. Q-ViK trains a lightweight, psychic-like "student" module to predict which specific visual tokens the future answer will actually need, slashing KV cache memory by up to 89% with virtually zero loss in accuracy.
What Problem Does This Paper Address?
When an LVLM processes an image and a question, it first runs a "prefill" stage, computing and storing Key-Value (KV) states for every prompt token so it doesn't have to recompute them while generating the answer word-by-word. Because a single high-res image or video can turn into thousands of visual tokens, this KV cache quickly becomes a massive memory and latency bottleneck.
The natural fix is KV cache eviction—throwing away unimportant tokens right after the prefill stage. Standard methods decide what to keep based on pre-decode signals, like visual redundancy or which image regions get the most attention during prefill.
The authors identify a critical flaw here, which they call the future-utility mismatch. What a model looks at broadly when first reading the prompt is not necessarily what it needs when formulating the exact answer. For example, if you ask for the gasoline price in an image, prefill saliency highlights the whole gas pump display, potentially evicting the tiny, fine-grained numerical digits needed to actually read the price.
Methods
Instead of guessing utility from prompt-time heuristics, Q-ViK learns to predict the future using offline teacher-student distillation:
- Privileged Offline Teacher: During training, a frozen LVLM generates answers using the full, uncompressed KV cache. The authors record how much attention the generated answer tokens pay to each cached image token, aggregating this into a ground-truth future-utility signal.
- Lightweight Student Scorer: Because you don't have the answer at test time, Q-ViK trains a tiny per-layer neural network (a visual context CNN + MLP) to predict the teacher's utility distribution using only prefill hidden states. Crucially, it fuses local image features with the pooled question representation, making the score explicitly question-conditioned. It is trained with both a distribution regression loss (MSE) and a pairwise ranking loss so top tokens clearly beat bottom ones.
- Single-Shot Inference Eviction: At test time, the teacher is discarded. Right after prefill, the student runs once, scores the image tokens, and evicts the low-utility ones. Recognizing modality asymmetry—text instructions are compact and vital, while visual tokens are bulky and redundant—Q-ViK keeps 100% of text KVs and only prunes visual KVs, without modifying the backbone model.
Datasets
No new benchmarks are introduced; instead, the authors test generalization across a wide suite of existing datasets:
- Student Training: Trained strictly on single-image VQA datasets: TextVQA, ScienceQA, and GQA.
- Seen & Held-Out Single-Image Evaluation: Evaluated on seen splits (ScienceQA-IMG, TextVQA, GQA) and unseen benchmarks covering fine-grained OCR/evidence (DocVQA, ChartQA, TextCaps), captioning (COCO, NoCaps), and general reasoning/hallucination (MME, MMBench-EN, MMStar, POPE, VizWiz).
- Zero-Shot Multi-Image & Video: Tested without retraining on MileBench (CLEVR-Change, IEdit, Spot-the-Diff), SEED-Bench-video, and Video-MME.
Key Insights and Ideas
- Prefill saliency is a trap under tight budgets: When you compress aggressively (e.g., keeping only 10–20% of tokens), methods relying on prompt-time attention collapse on OCR and document tasks because small text tokens look weak during prefill. Conditioning on future answer utility rescues these details.
- Single-image training generalizes to time and space: Even though the student scorer only ever saw single images during training, its learned notion of "question-relevant visual evidence" transfers zero-shot to multi-image comparison and long-form video benchmarks.
- Open-ended captioning is the exception to the rule: On NoCaps (open-ended image captioning), baseline methods that prioritize broad visual coverage occasionally beat Q-ViK—and even beat the uncompressed model. When there is no specific question, broad scene coverage matters more than targeted evidence hunting.
Key Results
Tested on LLaVA-1.5-7B and LLaVA-OneVision-7B, Q-ViK shines brightest under extreme compression:
- Near-lossless aggressive compression: On LLaVA-1.5-7B at a 20% total prompt-KV budget, Q-ViK scores 53.6 across 13 benchmarks (vs. 53.9 Full Cache), while baselines like FastV (35.4) and SparseVLM (38.3) collapse—especially on DocVQA, where FastV drops to 11.4 while Q-ViK holds at 26.5.
- Massive gains on high-res backbones: On LLaVA-OneVision-7B at a 10% image-token budget, Q-ViK maintains a 74.1 average (vs. 74.5 Full Cache), trouncing VFlowOpt (62.6) and VisionZip (60.1). On DocVQA, VFlowOpt drops 35 points while Q-ViK stays at 86.8.
- Real hardware speedups: On LLaVA-OneVision-7B (10% budget), Q-ViK cuts prompt KV-cache memory by 89% (400.8 MB down to 42.2 MB) and reduces per-token decode latency by 22%.
- Zero-shot video transfer: On Video-MME (Short) at 10% retention, Q-ViK scores 70.9 (matching the 70.8 Full Cache), whereas VisionZip and VFlowOpt drop by 6.0 and 9.0 points, respectively.
Limitations and Future Work
- Text-heavy prompts limit compression: Because Q-ViK preserves all text KVs by design, total memory savings hit a ceiling if the prompt is mostly text. Sequentially adding text-KV eviction saves more memory, though the authors note it hurts long-context text performance.
- Per-backbone training required: The student scorer is tied to the hidden representations of a specific LVLM, so switching backbones requires retraining. Fortunately, this is cheap—taking just 3.2 GPU-hours for LLaVA-1.5-7B and 9.9 GPU-hours for LLaVA-OneVision-7B on a single RTX 3090.
- Needle-in-a-haystack struggles: Q-ViK underperforms on MileBench's needle-in-a-haystack retrieval tasks. Future directions aren't explicitly mapped out, though overcoming text-heavy bounds and multi-image needle retrieval remain clear open challenges.
Summary updated