AdaVid: Adaptive Video-Language Pretraining
Chaitanya Patel, Juan Carlos Niebles, Ehsan Adeli
TL;DR
AdaVid tackles the high compute cost of video-language pretraining and long-form video processing by introducing an adaptive transformer architecture whose embedding dimension can be varied per layer during inference. The approach centers on a Modular Adaptive Transformer Layer inspired by Matryoshka Representation Learning, enabling a single model to operate across a range of compute budgets. The authors instantiate AdaVid-EgoVLP for short videos and AdaVid-Agg for long videos, achieving parity with or improvements over EgoVLP and HierVL under various compute conditions, and demonstrating effective scalability to longer frames and videos. This work supports edge and wearable deployments by offering a compute-accuracy trade-off mechanism and a hierarchical aggregation strategy that maintains strong performance with reduced resources. Overall, AdaVid advances practical, flexible video-language pretraining with adaptive capacity decisions across model layers and temporal scales.
Abstract
Contrastive video-language pretraining has demonstrated great success in learning rich and robust video representations. However, deploying such video encoders on compute-constrained edge devices remains challenging due to their high computational demands. Additionally, existing models are typically trained to process only short video clips, often limited to 4 to 64 frames. In this paper, we introduce AdaVid, a flexible architectural framework designed to learn efficient video encoders that can dynamically adapt their computational footprint based on available resources. At the heart of AdaVid is an adaptive transformer block, inspired by Matryoshka Representation Learning, which allows the model to adjust its hidden embedding dimension at inference time. We show that AdaVid-EgoVLP, trained on video-narration pairs from the large-scale Ego4D dataset, matches the performance of the standard EgoVLP on short video-language benchmarks using only half the compute, and even outperforms EgoVLP when given equal computational resources. We further explore the trade-off between frame count and compute on the challenging Diving48 classification benchmark, showing that AdaVid enables the use of more frames without exceeding computational limits. To handle longer videos, we also propose a lightweight hierarchical network that aggregates short clip features, achieving a strong balance between compute efficiency and accuracy across several long video benchmarks.
