用特殊标记压缩视频,实现小时级长视频高效理解
Video-XL: Extra-Long Vision Language Model for Hour-Scale Video Understanding
- 引入视觉摘要标记,按区间压缩视频信息
- 16倍压缩下损失小,单卡可处理数千帧
- 适合需要长视频分析的研究与应用
长视频理解对当前多模态大模型构成重大挑战,受限于上下文长度和处理成本。现有方法虽尝试减少视觉标记数量,但存在严重瓶颈,影响细粒度视觉感知。本文提出 Video-XL,利用多模态大模型的键值(KV)稀疏化能力,通过为每个视频区间引入视觉摘要标记(VST),将区间内视觉信息压缩为对应的键值对。VST 模块通过指令微调训练,采用课程学习(逐步提升压缩难度)和复合数据构建(融合单图、多图与合成数据)两种策略缓解长视频指令数据稀缺问题。进一步通过动态压缩机制,根据视频内容密度自适应调整压缩粒度。实验表明:1)在多个主流基准上超越同规模先进模型;2)16倍压缩比下信息保留率高,损失极小;3)成本效益显著,单张 A100 GPU 可高质量处理数千帧视频。
原文摘要 · Abstract (English)
Long video understanding poses a significant challenge for current Multi-modal Large Language Models (MLLMs). Notably, the MLLMs are constrained by their limited context lengths and the substantial costs while processing long videos. Although several existing methods attempt to reduce visual tokens, their strategies encounter severe bottleneck, restricting MLLMs' ability to perceive fine-grained visual details. In this work, we propose Video-XL, a novel approach that leverages MLLMs' inherent key-value (KV) sparsification capacity to condense the visual input. Specifically, we introduce a new special token, the Visual Summarization Token (VST), for each interval of the video, which summarizes the visual information within the interval as its associated KV. The VST module is trained by instruction fine-tuning, where two optimizing strategies are offered. 1.Curriculum learning, where VST learns to make small (easy) and large compression (hard) progressively. 2. Composite data curation, which integrates single-image, multi-image, and synthetic data to overcome the scarcity of long-video instruction data. The compression quality is further improved by dynamic compression, which customizes compression granularity based on the information density of different video intervals. Video-XL's effectiveness is verified from three aspects. First, it achieves a superior long-video understanding capability, outperforming state-of-the-art models of comparable sizes across multiple popular benchmarks. Second, it effectively preserves video information, with minimal compression loss even at 16x compression ratio. Third, it realizes outstanding cost-effectiveness, enabling high-quality processing of thousands of frames on a single A100 GPU.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。