CoPE-VideoLM: Leveraging Codec Primitives For Efficient Video Language Modeling

TL;DR

CoPE-VideoLM leverages codec primitives (motion vectors, residuals) to reduce token usage by 93% and TTFT by 86%, enabling efficient long-term video understanding.

cs.CV 🔴 Advanced 2026-02-14 61 views
Sayan Deb Sarkar Rémi Pautrat Ondrej Miksik Marc Pollefeys Iro Armeni Mahdi Rad Mihai Dusmanu
video understanding codec primitives transformer model compression multimodal learning

Key Findings

Methodology

This paper introduces lightweight transformer encoders that process motion vectors and residuals from video codecs as sparse tokens, aligning their representations with image encoder embeddings via a pre-training strategy. The approach exploits the GOP structure, retaining full RGB I-frames and encoding P-frames with compact delta tokens, avoiding full image decoding for most frames. The pre-trained encoders facilitate fast convergence during end-to-end fine-tuning. Experiments across 14 benchmarks demonstrate that the method reduces token count by up to 93% and TTFT by 86%, while maintaining or exceeding baseline performance in tasks like question answering, motion reasoning, and long video understanding.

Key Results

  • Compared to standard VideoLMs, CoPE-VideoLM achieves a 93% reduction in token usage and an 86% decrease in time-to-first-token, with performance on diverse benchmarks such as perception tests, QA, and spatial understanding remaining comparable or better. Adjusting keyframe and primitive densities allows flexible trade-offs between efficiency and accuracy, with results showing consistent improvements in accuracy (up to 4%) while drastically lowering computational costs.
  • Pre-training the Δ-Encoder to align motion vector and residual representations with image features accelerates convergence and enhances downstream task performance. The model effectively captures dynamic information with fewer tokens, validated by ablation studies on token density and fusion strategies, demonstrating robustness across different video lengths and content types.
  • The approach leverages the inherent sparsity and structure of video codecs, enabling scalable, long-term video understanding without dense full-frame decoding. Results indicate that the method outperforms prior compressed-domain models, especially in resource-constrained scenarios, paving the way for real-time applications in robotics, video retrieval, and large-scale analytics.

Significance

This work addresses critical bottlenecks in video understanding by integrating codec-based primitives into language models, enabling efficient long-range temporal reasoning. It shifts the paradigm from dense RGB processing to structured, sparse representations, drastically reducing computational load while preserving fine-grained motion and appearance cues. The approach bridges the gap between video compression technology and AI, opening avenues for scalable, real-time video analysis in industry and research. Its ability to maintain high accuracy with minimal tokens makes it suitable for deployment in resource-limited environments, advancing the state-of-the-art in multimodal AI.

Technical Contribution

The core innovation lies in encoding motion vectors and residuals as sparse tokens, combined with a pre-training strategy that aligns these representations with image features. The lightweight Δ-Encoder efficiently compresses temporal dynamics, and the integration with a transformer-based architecture supports flexible token grouping and density adjustment. This design enables significant reductions in token count and inference time, while maintaining or surpassing baseline performance. The method also introduces a novel way to leverage GOP structure for scalable, adaptive video tokenization, representing a substantial step forward in efficient multimodal modeling.

Novelty

This is the first work to directly encode video codec primitives—motion vectors and residuals—as sparse tokens within a language modeling framework, coupled with a pre-training alignment strategy. Unlike prior models that treat frames as dense RGB images or discard residuals, this approach preserves both motion and appearance signals in a variable-length, temporally ordered token sequence. It innovatively exploits the inherent structure of video compression, enabling scalable, efficient long-term video understanding with minimal tokens, setting a new standard in the field.

Limitations

  • The model's performance depends on the quality and structure of the underlying video codec; in non-standard or highly compressed videos, the primitives may be less informative, affecting accuracy.
  • Complex motions or subtle details might not be fully captured by motion vectors and residuals alone, limiting fine-grained recognition in some scenarios.
  • Pre-training and encoding complexity introduce additional system overhead, which may challenge deployment in low-resource environments. Further optimization is needed for broader applicability.

Future Work

Future directions include integrating additional modalities such as optical flow or depth, refining the Δ-Encoder for better generalization, and exploring adaptive token grouping strategies. Extending this framework to other tasks like video retrieval, action recognition, and real-time analytics will broaden its impact. Additionally, optimizing the pre-training process and model architecture for deployment on edge devices remains an important goal.

AI Executive Summary

Video understanding has become a cornerstone of AI research, enabling applications from intelligent assistants to autonomous robots. However, existing models often rely on dense RGB frame processing, which is computationally expensive and limited by the maximum context window. Keyframe sampling strategies, while reducing load, risk missing critical macro and micro-level details, especially in long videos. To address these challenges, this study introduces CoPE-VideoLM, a novel framework that leverages the inherent structure of video codecs—specifically motion vectors and residuals—as sparse, structured tokens. This approach exploits the redundancy and sparsity encoded in standard video compression, allowing the model to process only essential information while skipping redundant full-frame decoding.

The core innovation involves lightweight transformer encoders that aggregate codec primitives and align their representations with image features through a pre-training strategy. This alignment ensures that the sparse tokens can be seamlessly integrated into existing language models, enabling end-to-end training and inference. By maintaining the GOP structure, the model retains temporal order and appearance cues, while the adaptive token grouping allows for flexible trade-offs between efficiency and detail.

Extensive experiments across 14 benchmarks demonstrate that CoPE-VideoLM reduces token usage by up to 93% and TTFT by 86%, outperforming traditional dense models in efficiency while maintaining or exceeding performance in complex tasks such as question answering, motion reasoning, and long-form video understanding. The results validate that leveraging codec primitives not only accelerates inference but also preserves fine-grained dynamic information, making it suitable for real-time applications.

This work significantly advances the field by bridging video compression technology with multimodal AI, offering a scalable, resource-efficient solution for long-term video analysis. Future research will focus on integrating additional modalities, optimizing for deployment, and expanding to broader applications like video retrieval and behavior recognition. Despite current limitations related to codec dependency and subtle motion capture, the proposed framework sets a new benchmark for efficient, high-performance video language modeling, promising transformative impacts across industry and academia.

Deep Dive

Abstract

Video Language Models (VideoLMs) enable AI systems to understand temporal dynamics in videos. To fit within the maximum context window constraint, current methods use keyframe sampling which often misses both macro-level events and micro-level details due to the sparse temporal coverage. Furthermore, processing full images and their tokens for each frame incurs substantial computational overhead. We address these limitations by leveraging video codec primitives (specifically motion vectors and residuals) which natively encode video redundancy and sparsity without requiring expensive full-image encoding for most frames. To this end, we introduce lightweight transformer-based encoders that aggregate codec primitives and align their representations with image encoder embeddings through a pre-training strategy that accelerates convergence during end-to-end fine-tuning. Our approach, CoPE-VideoLM, reduces the time-to-first-token by up to 86% and token usage by up to 93% compared to standard VideoLMs. Moreover, by varying the keyframe and codec primitive densities we maintain or exceed performance on 14 diverse video understanding benchmarks spanning general question answering, temporal and motion reasoning, long-form understanding, and spatial scene understanding.

cs.CV cs.AI cs.CL