Abstract
Self-supervised video representation learning has traditionally relied on clip-level contrastive learning, which often fails to capture the global temporal context and suffers from false positive pairs. We present VCLR (Video-level Contrastive Learning), a framework designed to learn comprehensive video representations by sampling frames across the entire video duration. By enforcing a video-level contrastive loss and a temporal order constraint, VCLR effectively models long-range dependencies. Our approach achieves state-of-the-art performance on multiple benchmarks, including UCF101, HMDB51, and Something-Something-v2, demonstrating superior capabilities in action classification and temporal localization.
Introduction
Contrastive learning has revolutionized self-supervised learning in the image domain by training models to distinguish between different views of the same image. However, extending this paradigm to video is non-trivial. Most existing methods treat short, localized clips as "views." While computationally efficient, this approach ignores the dynamic nature of video. For instance, a long sports video may transition from diving to swimming to an awarding ceremony. Treating a "diving" clip and an "awarding" clip as a positive pair simply because they originate from the same video file introduces false positives, confusing the model's representation of specific actions. Furthermore, focusing solely on local clips prevents the model from learning the global context—the overarching narrative of the video.
Methodology: The VCLR Framework
To overcome these limitations, we propose VCLR, which shifts the learning objective from clip-level to video-level. The framework consists of several key components:
1. Segment-based Sampling
Instead of random clip extraction, VCLR divides a video into $K$ equal segments. One frame is sampled from each segment to form an ordered "tuple" representing the entire video. By creating an anchor tuple and a positive tuple from the same video, the model is exposed to the full temporal evolution of the scene.
2. Video-level Contrastive Loss ($L_{Segment}$)
The core objective is to maximize the similarity between tuples from the same video while minimizing similarity with tuples from different videos. This forces the encoder to extract features that are consistent across the entire video duration, effectively capturing the global context.
3. Temporal Order Regularization ($L_{Order}$)
To ensure the model understands the sequential logic of actions, we introduce a temporal shuffling task. The model must predict whether a given tuple is in its original chronological order or has been shuffled. This task provides a strong supervisory signal for long-range temporal reasoning.
Experiments and Results
We pretrained VCLR on the Kinetics400 dataset using a 2D ResNet-50 backbone. The learned representations were then evaluated across several downstream tasks.
Action Classification
VCLR set new benchmarks for self-supervised methods on standard datasets. On UCF101, it achieved 85.6% accuracy, and on HMDB51, it reached 54.1%. Notably, on the motion-centric Something-Something-v2 (SthSthv2) dataset, VCLR significantly outperformed previous methods, proving that global context is crucial for understanding complex physical interactions.
Temporal Action Localization
In tasks requiring the identification of action boundaries within untrimmed videos (ActivityNet), VCLR demonstrated superior performance. The global features provided more distinct boundaries than local clip-based features, facilitating more accurate localization of start and end times.
Feature Visualization
Qualitative analysis using Grad-CAM reveals that VCLR focuses more intently on moving regions of interest (e.g., an athlete in motion) compared to baseline methods, which often attend to static background elements.
Conclusion
VCLR demonstrates that global temporal context is a vital component of video representation learning. By moving beyond local clips and addressing the false positive problem through segment-based sampling and temporal order constraints, VCLR achieves state-of-the-art results across diverse video tasks. Future work will explore the integration of VCLR with more advanced architectures like Video Transformers and its application to massive-scale untrimmed video datasets.
Summary updated