Q-ViK: Question-Guided Visual KV Cache Eviction for Large Vision-Language Models

Solhee Hwang, Jangho KimNeurIPS 2026

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.

Figure 1: Eviction decisions under prefill saliency, the future-utility signal, and Q-ViK. (a) Image- question-answer example: “What is the gasoline price?” (b) Prefill-saliency eviction preserves broad display-related regions before decoding, but misses fine-grained price evidence. (c) The future-utility signal is obtained by full-cache decoding and aggregating answer-to-visual attention over prefill image tokens. (d) Q-ViK predicts this future-conditioned utility before decoding and retains the answer-relevant visual KV entries.

Methods

Instead of guessing utility from prompt-time heuristics, Q-ViK learns to predict the future using offline teacher-student distillation:

  1. 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.
  2. 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.
  3. 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.
Figure 2: Overall pipeline of Q-ViK. (1) The full-cache LVLM (teacher) aggregates answer-to-image attention into layer-wise future-utility signals. (2) A lightweight CNN-MLP scorer (student) learns to predict these signals from image hidden states, their CNN context features, and the question hidden state. (3) At inference, only the student is run once after prefill; all text KVs are kept, and only the top-k image KVs (green) are retained for decoding.

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

Abstract

Large vision-language models (LVLMs) rely on increasingly long visual contexts, making the KV cache a major inference-time bottleneck. Existing KV cache compression methods typically use pre-decode signals such as prefill attention, visual redundancy, objectness, or layer-wise allocation, but these criteria do not directly indicate which visual tokens in the KV cache will be reused by future answer tokens. We introduce Q-ViK, a question-conditioned visual utility framework for LVLM KV cache eviction. During offline training, we run full-cache decoding and aggregate answer-to-visual attention over cached visual tokens, yielding a privileged *future-utility signal* that reflects the visual KV entries actually used during generation. We use this signal to train a lightweight question-conditioned scorer that predicts visual cache utility from prefill representations alone. At inference time, Q-ViK requires neither full-cache lookahead nor generated traces: it preserves textual KV entries and evicts low-utility visual KV entries with a single post-prefill scoring step. Experiments on seen and held-out multimodal benchmarks show that Q-ViK preserves task-relevant visual evidence in the KV cache more effectively than pre-decode saliency, especially under aggressive KV cache compression.
BibTeX
@inproceedings{hwang2026q,
  author = {Solhee Hwang and Jangho Kim},
  title = {{Q-ViK: Question-Guided Visual KV Cache Eviction for Large Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xvyNCwtt1q},
}
Figure