TL;DR
DIVE introduces a question-agnostic, head-wise visual KV cache compression method designed for long-term video question-answering scenarios. By pruning non-salient and redundant KV pairs independently across attention heads rather than dropping entire visual tokens, DIVE retains 98.2% of full-cache accuracy while using only 5% of the KV cache, significantly reducing long-term decoding latency.
What Problem Does This Paper Address?
Video Large Language Models (VLLMs) excel at understanding video content, but they are computationally expensive. Long videos generate massive visual Key-Value (KV) caches, leading to high inference latency. This becomes a major bottleneck in "lifespan video QA" settings—such as a video-hosting platform or a virtual assistant where a single pre-recorded video must serve thousands of diverse user queries over its lifetime.
Existing compression techniques fall into two categories, both with significant drawbacks:
- Question-aware methods: These dynamically prune the KV cache for each incoming question. While accurate, they incur a high per-question computational overhead to select the cache, which accumulates heavily over time.
- Question-agnostic methods: These compress the video data once before any questions arrive. However, they typically operate by dropping entire visual tokens across all attention heads. This completely erases specific temporal segments of the video, causing severe accuracy drops under aggressive compression ratios.
DIVE aims to bridge this gap by providing a question-agnostic method that compresses the cache just once but preserves fine-grained temporal information across the video.
Methods
DIVE (Head-wise visual KV cache compression) shifts the pruning granularity from the token level to the individual KV pair level within each attention head. This allows different heads to retain information from different timestamps, maintaining overall temporal coverage.
The framework consists of three core components:
- Uniform KV Budget: Attention scores naturally concentrate on a small subset of heads. Naive pruning would starve less-active heads, destroying multi-head attention diversity. DIVE enforces an identical KV pair budget across every single layer-head pair, ensuring the compressed cache remains distributed.
- Instruction Scoring: To determine what is important without knowing future questions, DIVE generates synthetic "proxy temporal QAs" from dense video captions. It runs a single teacher-forced forward pass using these proxy pairs to measure how strongly each visual KV pair is referenced in a question-answering context.
- KV Head-wise DPP: To prevent selecting redundant information, DIVE models the selection as a Determinantal Point Process (DPP). This mathematical framework penalizes pairwise similarity, selecting a subset of KV pairs that are both highly salient and mutually orthogonal (diverse).
Datasets
The authors evaluated DIVE across five widely used video understanding benchmarks:
- VideoMME (VMME): A comprehensive multi-modal benchmark featuring 900 videos across 6 domains.
- EgoSchema (ES): Approximately 5,000 multiple-choice questions derived from egocentric videos, requiring long-term object and action tracking.
- LongVideoBench (LVB): A benchmark for long-context interleaved video-language understanding containing 3,763 videos.
- MVBench (MVB): 20 systematically constructed temporal tasks.
- MLVU: 3,102 questions across nine long-video tasks ranging from 3 minutes to 2 hours.
Key Insights and Ideas
- Tokens Aren't Atomic: Dropping a visual token discards its information globally. By pruning head-wise, Head 1 can drop a frame while Head 2 keeps it, preserving the video's overarching temporal context.
- Lifespan Demand is Uniform: While a single question might heavily rely on a few specific attention heads, aggregating diverse questions over a video's lifespan evens out the demand. This empirically justifies DIVE's uniform budget allocation across all heads.
- Context-Driven Saliency: Traditional question-agnostic methods rely on static properties like key/value norms. DIVE demonstrates that evaluating cache importance within a simulated question-answering context provides a much better proxy for what future users will actually ask.
Key Results
- Extreme Compression, Minimal Loss: On Qwen2.5-VL, DIVE retains 98.2% of its full-cache accuracy while utilizing only 5% of the visual KV cache.
- Faster Decoding: DIVE achieves 1.16× faster per-token decoding latency (Seconds Per Token) than its closest competitor, FlashVID.
- Amortized Efficiency: DIVE requires a one-time initialization cost to generate captions and score the cache (leading to a higher Time-To-First-Token on the very first query). However, this cost is quickly amortized. By just $n=20$ questions, DIVE achieves a lower cumulative latency than FlashVID, making it highly efficient for long-term deployment.
Limitations and Future Work
- One-Time Initialization Overhead: Because DIVE relies on generating dense video captions and running proxy QAs upfront, it is less beneficial for videos that only receive a small number of questions over their lifetime.
- Skewed Question Streams: The uniform budget allocation assumes a diverse stream of future questions. If user queries are highly skewed toward a narrow set of visual events, the uniform budget becomes sub-optimal.
- Captioning Dependencies: The accuracy of the instruction scoring step depends heavily on the quality of the off-the-shelf dense video captioner. Errors or omissions in the initial captions propagate directly into the KV cache selection.
Summary updated