arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16118cs.CVcs.LGcs.MM
收藏

冰箱里的大象:用于长视频理解的恒定内存帧打包方法

Elephant in the Fridge: Constant-Memory Frame Packing for Long Video Understanding

Renmin University of China(中国人民大学);University of Washington(华盛顿大学);UNC-Chapel Hill(北卡罗来纳大学教堂山分校)

Shuo Gao, Chenhao Zheng, Zhongzheng Ren

AI总结:

针对长视频理解中VLMs内存消耗与延迟过高的问题,提出无训练的FramePack-U框架,通过内容感知压缩策略实现恒定内存成本,在多基准测试中显著优于现有方法。

摘要:

时长一小时的视频、流媒体内容及电影级长度的视频,正将视觉语言模型(VLMs)推向极限——将每一帧编码为视觉标记的标准方法会产生随视频长度线性增长的序列,导致内存消耗和推理延迟过高。现有方法如标记缩减和关键帧选择虽缩短了标记序列,但仍保留O(n)的缩放特性,无法解决根本瓶颈。我们提出FramePack-U,一种极其简单的无训练帧打包框架,能以恒定内存成本将任意长视频压缩为固定大小的视觉表示。FramePack-U无需微调或架构修改,可在推理时直接插入现成的VLMs。受生成文献中的FramePack启发,我们提出一种在固定标记预算下用于视觉理解的内容感知压缩策略:(1)通过帧与文本提示的语义相似性对每一帧评分,并以多样性驱动的方式对帧排序;(2)将选定的不同分辨率帧打包为固定长度的上下文窗口。这将内存预算集中在既与指令相关又视觉多样的帧上。虽然FramePack-U理论上可将任意多帧打包进固定预算,但我们确定了一种在不同设置下均能稳健泛化的经验实例。在LongVideoBench、MLVU和Video-MME上的大量实验表明,FramePack-U在不同模型家族、参数规模和帧预算下,始终优于全分辨率基线及现有标记缩减和关键帧选择方法。值得注意的是,在Qwen3.5-35B-A3B模型使用128帧预算时,FramePack-U在三个基准上较官方模型分别取得+12.9%、+10.6%和+9.7%的提升。

英文摘要:

Hour-long videos, streaming feeds, and movie-length content are pushing vision-language models (VLMs) past their breaking point -- the standard recipe of encoding each frame into visual tokens yields sequences that grow linearly with video length, causing prohibitive memory consumption and inference latency. Existing approaches, such as token reduction and keyframe selection, shorten the token sequence but leave the O(n) scaling intact, failing to resolve the fundamental bottleneck. We propose FramePack-U, a strikingly simple, training-free frame packing framework that compresses arbitrarily long videos into a fixed size visual representation at constant memory cost. FramePack-U requires no fine-tuning or architectural modification -- it plugs directly into off-the-shelf VLMs at inference time. Inspired by FramePack from the generation literature, we propose a content-aware compression strategy for visual understanding under a fixed token budget. Specifically, FramePack-U (1) scores each frame by its semantic similarity to the text prompt and ranks frames in a diversity-driven manner, and (2) packs the selected frames at varying resolutions into a fixed-length context window. This concentrates the memory budget on frames that are both instruction-relevant and visually diverse. While FramePack-U can in theory pack arbitrarily many frames into the fixed budget, we identify an empirical instantiation that generalizes robustly across settings. Extensive experiments on LongVideoBench, MLVU, and Video-MME show that FramePack-U consistently outperforms full-resolution baselines and prior token reduction and keyframe selection methods across diverse model families, parameter scales, and frame budgets. Notably, on Qwen3.5-35B-A3B with a 128-frame budget, FramePack-U yields gains of +12.9\%, +10.6\%, and +9.7\% over the official model on the three benchmarks, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑