TL;DR
This paper introduces KVTP, a novel framework that efficiently processes long videos by adaptively pruning vision tokens based on their relevance to a given query. By bridging the gap between keyframe selection and token pruning, KVTP significantly reduces computational costs (up to 80% token reduction and 64% FLOPs reduction) while maintaining high performance on challenging video understanding tasks.
What Problem Does This Paper Address?
Large Vision-Language Models (VLMs) excel at understanding video content, but their application to long videos is hampered by massive computational overhead. This is primarily due to the sheer number of visual tokens generated from thousands of frames, which must be processed by the VLM's backbone. Existing solutions like keyframe selection discard frames entirely, potentially losing crucial temporal context, while token pruning methods often treat each frame independently, failing to leverage inter-frame dependencies. This paper tackles the challenge of efficiently processing long videos by intelligently selecting and pruning visual information without sacrificing the continuity and richness of the video's narrative.
Methods
The core of KVTP lies in its Keyframe-oriented Vision Token Pruning approach. This involves two main stages:
- Query-Frame Relevance Predictor Fine-Tuning: The authors leverage the pretrained SigLIP vision encoder, known for its strong image-text alignment capabilities. They fine-tune this encoder to predict the relevance of each video frame to a given query. This predictor is trained using a novel objective function that incorporates a context fusion head. This head integrates both local clip-level and global video-level contextual information, allowing for a more nuanced understanding of frame importance beyond simple query-frame similarity. The relevance scores are then converted into frame-specific pruning rates.
- Keyframe-Oriented Vision Token Pruning: Instead of hard frame selection or uniform token pruning, KVTP applies soft frame selection. This means that frames deemed less relevant still have a small fraction of their tokens retained, preserving essential cues for high-level reasoning and maintaining temporal coherence. These adaptive pruning rates are then integrated with existing token pruning pipelines (like PruMerge, ToMe, and random sampling) to achieve efficient inference.
Datasets
The authors introduce SparseKV-QA, a new benchmark designed specifically for evaluating long-form video understanding with sparse key information. This dataset is constructed by curating and reorganizing subsets from seven existing video QA datasets (VideoMME, EgoSchema, NeXT-QA, ActivityNetQA, Perception Test, VideoChatGPT, and MVBench). The key innovation of SparseKV-QA is its focus on videos where only a small subset of frames is crucial for answering specific queries, mimicking real-world scenarios like surveillance or content summarization.
Key Insights and Ideas
- Bridging the Gap: The paper effectively bridges the gap between coarse-grained keyframe selection and fine-grained token pruning by using query-frame relevance to guide adaptive token pruning rates.
- Soft Frame Selection is Crucial: Unlike traditional hard keyframe selection, retaining a small fraction of tokens from less relevant frames is vital for maintaining temporal and contextual continuity, leading to better performance.
- Context Matters: Incorporating both local and global context into the relevance prediction significantly improves its accuracy, enabling a more robust understanding of frame importance.
- Parameter Efficiency: KVTP offers a lightweight yet effective solution, achieving significant efficiency gains without requiring extensive retraining of the entire VLM backbone.
Key Results
- Significant Efficiency Gains: KVTP can reduce token usage by up to 80% and FLOPs by up to 64% without compromising performance.
- Performance Improvement: When integrated with existing token pruning methods, KVTP consistently improves performance across various benchmark subsets, notably on VideoMME and Egoschema.
- Scalability: The method demonstrates effectiveness across different VLM scales, tested on both 7B and 72B backbone versions of LLaVA-Video.
- Ablation Studies: The context fusion head was shown to be crucial for performance, and the effectiveness of soft frame selection was validated across different sparsity levels.
Limitations and Future Work
- Keyframe Sparsity Control: The paper acknowledges that controlling keyframe sparsity through hyperparameters like $\beta$ is an important aspect of the evaluation. Future work could explore more automated or adaptive methods for determining optimal sparsity levels.
- Generalization of Predictor: While the predictor is fine-tuned on SparseKV-QA, further investigation into its generalization capabilities across a wider range of video domains and query types could be beneficial.
- Real-world Deployment: While the paper demonstrates efficiency, further research into seamless integration and deployment in real-world applications with diverse video content and user interactions would be valuable.
Summary updated