Paper: 2602.13191 Authors: Sayan Deb Sarkar, Rémi Pautrat, Ondrej Miksik, Marc Pollefeys, Iro Armeni, Mahdi Rad, Mihai Dusmanu Categories: cs.CV, cs.AI, cs.CL
Abstract
Video Language Models (VideoLMs) face a fundamental challenge: balancing temporal coverage with computational efficiency. Current approaches rely on keyframe sampling to fit within context window constraints, but this sparse sampling misses critical macro-level events and micro-level details. CoPE-VideoLM introduces a paradigm shift by leveraging video codec primitives—specifically motion vectors and residuals—that naturally encode video redundancy and sparsity. This approach eliminates the need for expensive full-image encoding on most frames, achieving up to 86% reduction in time-to-first-token and 93% reduction in token usage while maintaining or exceeding performance across 14 diverse video understanding benchmarks.
Key Contributions
- Introduction of codec primitives (motion vectors and residuals) as efficient video representations for VideoLMs, exploiting native video compression structures
- Lightweight transformer-based encoders that aggregate codec primitives and align them with image encoder embeddings through strategic pre-training
- Dramatic efficiency gains: 86% reduction in time-to-first-token and 93% reduction in token usage compared to standard VideoLMs
- Flexible density control mechanism allowing trade-offs between keyframe and codec primitive densities for different use cases
- Comprehensive evaluation across 14 benchmarks spanning general QA, temporal reasoning, long-form understanding, and spatial scene understanding
Technical Methodology
The core innovation of CoPE-VideoLM lies in its exploitation of video codec structures. Modern video codecs (H.264, H.265) compress videos by encoding keyframes (I-frames) fully and representing subsequent frames (P-frames, B-frames) through motion vectors and residuals. Motion vectors capture pixel displacement between frames, while residuals encode the prediction error. These primitives inherently capture temporal dynamics with minimal redundancy.
The architecture consists of three main components:
- Keyframe Encoder: Processes selected I-frames using standard vision transformers to extract spatial features
- Motion Vector Encoder: A lightweight transformer that processes motion vector fields, capturing inter-frame motion patterns
- Residual Encoder: Another lightweight transformer that processes residual information, capturing fine-grained changes not explained by motion
The pre-training strategy aligns codec primitive representations with image encoder embeddings, enabling the model to learn meaningful correspondences between compressed representations and full image features. This alignment accelerates convergence during end-to-end fine-tuning on downstream tasks.
The model’s flexibility comes from adjustable sampling rates: users can vary keyframe density (how many I-frames to process) and codec primitive density (how many P/B-frames to include) based on computational budgets and task requirements.
Performance Analysis
CoPE-VideoLM demonstrates remarkable efficiency-performance trade-offs across diverse benchmarks:
Efficiency Metrics:
- Time-to-first-token reduced by up to 86%, enabling faster inference and better user experience
- Token usage reduced by up to 93%, allowing longer videos to fit within context windows
- Computational overhead dramatically decreased by avoiding full-image encoding for most frames
Benchmark Performance: The model maintains or exceeds baseline performance across 14 benchmarks:
- General video QA tasks show comparable or superior accuracy
- Temporal reasoning tasks benefit from denser temporal coverage enabled by efficient codec primitives
- Long-form video understanding improves due to ability to process more frames within token budgets
- Spatial scene understanding remains strong despite reduced full-image processing
The results suggest that codec primitives capture sufficient information for video understanding tasks, and the sparse keyframe sampling of traditional VideoLMs may be unnecessarily wasteful. The motion vectors effectively encode “what moved where,” while residuals capture appearance changes, together providing a compact yet information-rich representation.
Implications and Future Directions
CoPE-VideoLM opens several promising research directions:
Practical Impact: The dramatic efficiency gains make video understanding more accessible, enabling deployment on resource-constrained devices and processing of longer videos. The 93% token reduction is particularly significant for applications requiring extensive temporal context.
Architectural Insights: The success of codec primitives challenges the assumption that full-image processing is necessary for every frame. This suggests that video understanding models should be designed with video-native representations rather than treating videos as sequences of independent images.
Scalability: The approach naturally scales to longer videos and higher resolutions, as codec primitives remain compact regardless of video length. This contrasts with keyframe-based methods where token count grows linearly with video duration.
Limitations and Extensions: While codec primitives are efficient, they depend on video codec availability. Future work could explore:
- Learned codec-like representations for raw video
- Adaptive primitive density based on video content complexity
- Integration with other compression techniques like neural codecs
- Extension to multi-modal scenarios with audio codec primitives
The work also raises questions about optimal pre-training strategies for aligning compressed and uncompressed representations, and whether similar principles apply to other temporal modalities.
Takeaways
- Video codec primitives (motion vectors and residuals) provide an efficient alternative to full-frame processing in VideoLMs, reducing token usage by up to 93%
- Lightweight transformer encoders can effectively aggregate codec primitives and align them with image embeddings through strategic pre-training
- The approach maintains or exceeds performance across 14 diverse benchmarks while dramatically improving computational efficiency
- Flexible density control allows practitioners to trade off between efficiency and performance based on specific application requirements
- The success of codec primitives suggests that video understanding models should embrace video-native representations rather than treating videos as image sequences
- Time-to-first-token reduction of 86% enables more responsive video understanding applications and better user experiences
- The paradigm shift toward compression-aware architectures may inspire similar approaches in other temporal and multi-modal domains
论文: 2602.13191 作者: Sayan Deb Sarkar, Rémi Pautrat, Ondrej Miksik, Marc Pollefeys, Iro Armeni, Mahdi Rad, Mihai Dusmanu 分类: cs.CV, cs.AI, cs.CL
摘要
视频语言模型(VideoLMs)面临一个根本性挑战:在时间覆盖范围和计算效率之间取得平衡。当前方法依赖关键帧采样来适应上下文窗口限制,但这种稀疏采样会遗漏关键的宏观事件和微观细节。CoPE-VideoLM引入了范式转变,通过利用视频编解码器原语——特别是运动矢量和残差——这些原语天然地编码了视频的冗余性和稀疏性。该方法消除了对大多数帧进行昂贵的全图像编码的需求,实现了首token时间减少86%、token使用量减少93%,同时在14个不同的视频理解基准测试中保持或超越现有性能。
主要贡献
- 引入编解码器原语(运动矢量和残差)作为VideoLMs的高效视频表示,利用原生视频压缩结构
- 轻量级transformer编码器,通过战略性预训练聚合编解码器原语并将其与图像编码器嵌入对齐
- 显著的效率提升:与标准VideoLMs相比,首token时间减少86%,token使用量减少93%
- 灵活的密度控制机制,允许在关键帧和编解码器原语密度之间权衡以适应不同用例
- 跨14个基准的全面评估,涵盖通用问答、时序推理、长视频理解和空间场景理解
技术方法
CoPE-VideoLM的核心创新在于对视频编解码器结构的利用。现代视频编解码器(H.264、H.265)通过完整编码关键帧(I帧)并通过运动矢量和残差表示后续帧(P帧、B帧)来压缩视频。运动矢量捕获帧间像素位移,而残差编码预测误差。这些原语本质上以最小冗余捕获时间动态。
架构由三个主要组件组成:
- 关键帧编码器: 使用标准视觉transformer处理选定的I帧以提取空间特征
- 运动矢量编码器: 处理运动矢量场的轻量级transformer,捕获帧间运动模式
- 残差编码器: 处理残差信息的另一个轻量级transformer,捕获运动无法解释的细粒度变化
预训练策略将编解码器原语表示与图像编码器嵌入对齐,使模型能够学习压缩表示与完整图像特征之间的有意义对应关系。这种对齐加速了下游任务端到端微调时的收敛。
模型的灵活性来自可调节的采样率:用户可以根据计算预算和任务需求调整关键帧密度(处理多少I帧)和编解码器原语密度(包含多少P/B帧)。
性能分析
CoPE-VideoLM在各种基准测试中展示了卓越的效率-性能权衡:
效率指标:
- 首token时间减少高达86%,实现更快的推理和更好的用户体验
- token使用量减少高达93%,允许更长的视频适应上下文窗口
- 通过避免对大多数帧进行全图像编码,计算开销显著降低
基准性能: 模型在14个基准测试中保持或超越基线性能:
- 通用视频问答任务显示相当或更优的准确性
- 时序推理任务受益于高效编解码器原语实现的更密集时间覆盖
- 长视频理解因能够在token预算内处理更多帧而改善
- 尽管减少了全图像处理,空间场景理解仍然保持强劲
结果表明,编解码器原语为视频理解任务捕获了足够的信息,传统VideoLMs的稀疏关键帧采样可能是不必要的浪费。运动矢量有效编码”什么移动到哪里”,而残差捕获外观变化,两者共同提供紧凑但信息丰富的表示。
影响与未来方向
CoPE-VideoLM开启了几个有前景的研究方向:
实际影响: 显著的效率提升使视频理解更易获得,能够在资源受限设备上部署并处理更长的视频。93%的token减少对需要广泛时间上下文的应用尤为重要。
架构洞察: 编解码器原语的成功挑战了每帧都需要全图像处理的假设。这表明视频理解模型应该使用视频原生表示来设计,而不是将视频视为独立图像序列。
可扩展性: 该方法自然扩展到更长的视频和更高的分辨率,因为无论视频长度如何,编解码器原语都保持紧凑。这与基于关键帧的方法形成对比,后者的token数量随视频时长线性增长。
局限性与扩展: 虽然编解码器原语高效,但它们依赖于视频编解码器的可用性。未来工作可以探索:
- 为原始视频学习类似编解码器的表示
- 基于视频内容复杂度的自适应原语密度
- 与神经编解码器等其他压缩技术集成
- 扩展到包含音频编解码器原语的多模态场景
该工作还提出了关于对齐压缩和非压缩表示的最优预训练策略的问题,以及类似原则是否适用于其他时序模态。
要点总结
- 视频编解码器原语(运动矢量和残差)为VideoLMs中的全帧处理提供了高效替代方案,token使用量减少高达93%
- 轻量级transformer编码器可以有效聚合编解码器原语,并通过战略性预训练将其与图像嵌入对齐
- 该方法在14个不同基准测试中保持或超越性能,同时显著提高计算效率
- 灵活的密度控制允许实践者根据具体应用需求在效率和性能之间权衡
- 编解码器原语的成功表明,视频理解模型应该采用视频原生表示,而不是将视频视为图像序列
- 首token时间减少86%使视频理解应用更具响应性,提供更好的用户体验
- 向压缩感知架构的范式转变可能会在其他时序和多模态领域激发类似方法