Free Video-LLM: Prompt-guided Visual Perception for Efficient Training-free Video LLMs

Kai Han,Jianyuan Guo,Yehui Tang,Wei He,Enhua Wu,Yunhe Wang
2024-10-16
Abstract:Vision-language large models have achieved remarkable success in various multi-modal tasks, yet applying them to video understanding remains challenging due to the inherent complexity and computational demands of video data. While training-based video-LLMs deliver high performance, they often require substantial resources for training and inference. Conversely, training-free approaches offer a more efficient alternative by adapting pre-trained image-LLMs models for video tasks without additional training, but they face inference efficiency bottlenecks due to the large number of visual tokens generated from video frames. In this work, we present a novel prompt-guided visual perception framework (abbreviated as Free Video-LLM) for efficient inference of training-free video LLMs. The proposed framework decouples spatial-temporal dimension and performs temporal frame sampling and spatial RoI cropping respectively based on task-specific prompts. Our method effectively reduces the number of visual tokens while maintaining high performance across multiple video question-answering benchmarks. Extensive experiments demonstrate that our approach achieves competitive results with significantly fewer tokens, offering an optimal trade-off between accuracy and computational efficiency compared to state-of-the-art video LLMs. The code will be available at <a class="link-external link-https" href="https://github.com/contrastive/FreeVideoLLM" rel="external noopener nofollow">this https URL</a>.
Computer Vision and Pattern Recognition,Artificial Intelligence
What problem does this paper attempt to address?
### Problems the Paper Attempts to Solve This paper aims to address the efficiency issues of large-scale video language models (Video LLMs) in video understanding tasks. Specifically, existing trained video LLMs, while high-performing, require substantial resources for training and inference. On the other hand, untrained video LLMs, though more efficient, generate an excessive number of visual tokens when processing video frames, leading to slow inference speed and high memory consumption. These issues limit the practical application of video LLMs in real-time or resource-constrained environments. To solve these problems, the authors propose a prompt-guided visual perception framework (referred to as Free Video-LLM), which reduces the number of visual tokens through temporal and spatial sampling, thereby significantly improving inference efficiency while maintaining high performance. The specific methods include: 1. **Prompt-guided Temporal Sampling**: Selecting the most relevant video frames based on the relevance of the input prompt and discarding redundant frames. 2. **Prompt-guided Spatial Sampling**: Selecting regions of interest (RoI) in the video based on the relevance of the input prompt, reducing the number of visual tokens processed. Through these methods, Free Video-LLM is able to achieve performance comparable to or even better than existing state-of-the-art video LLMs on multiple video question-answering benchmarks, while significantly reducing the number of required visual tokens and improving computational efficiency.