用文本指导选帧,高效压缩视频输入同时保真语义
TiFRe: Text-guided Video Frame Reduction for Efficient Video Multi-modal Large Language Models
- 根据用户输入生成提示词,按语义相似度选关键帧
- 减少80%以上帧数,视频理解准确率提升5.2个百分点
- 适合需要高效处理长视频的多模态大模型应用
随着大语言模型的发展,视频多模态大模型在视频理解与问答任务中表现优异。但其高计算成本主要源于输入大量视频帧带来的注意力开销。简单降低帧率会丢失非关键帧中的重要信息,导致性能下降。为此,本文提出文本引导的视频帧压缩方法TiFRe:通过用户输入生成CLIP风格提示词,利用预训练的CLIP编码器计算每帧与提示词的语义相似度,动态选择最相关帧作为关键帧;并通过帧匹配与融合机制,将非关键帧信息整合进关键帧,减少信息损失。实验表明,该方法在保持性能的同时,显著降低计算开销。
原文摘要 · Abstract (English)
With the rapid development of Large Language Models (LLMs), Video Multi-Modal Large Language Models (Video MLLMs) have achieved remarkable performance in video-language tasks such as video understanding and question answering. However, Video MLLMs face high computational costs, particularly in processing numerous video frames as input, which leads to significant attention computation overhead. A straightforward approach to reduce computational costs is to decrease the number of input video frames. However, simply selecting key frames at a fixed frame rate (FPS) often overlooks valuable information in non-key frames, resulting in notable performance degradation. To address this, we propose Text-guided Video Frame Reduction (TiFRe), a framework that reduces input frames while preserving essential video information. TiFRe uses a Text-guided Frame Sampling (TFS) strategy to select key frames based on user input, which is processed by an LLM to generate a CLIP-style prompt. Pre-trained CLIP encoders calculate the semantic similarity between the prompt and each frame, selecting the most relevant frames as key frames. To preserve video semantics, TiFRe employs a Frame Matching and Merging (FMM) mechanism, which integrates non-key frame information into the selected key frames, minimizing information loss. Experiments show that TiFRe effectively reduces computational costs while improving performance on video-language tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。