Abstract
Self-supervised learning (SSL) in video often adopts the principle of temporal invariance, training models to treat different clips from the same video as identical instances. However, this approach can inadvertently discard the motion dynamics essential for distinguishing complex actions. We propose a Time-Equivariant Contrastive Learning framework that prioritizes temporal equivariance—the ability to recognize how a video has been manipulated in time. By contrasting relative transformations between clips, our model learns to explicitly represent motion patterns. Experimental results on UCF101, HMDB51, and Diving48 demonstrate that our method achieves state-of-the-art performance in action recognition and video retrieval, particularly in motion-centric scenarios.
Introduction
In computer vision, SSL typically leverages data augmentations to learn invariant representations. While effective for static images, applying temporal invariance to video can be problematic. For instance, distinguishing a "backflip" from a "frontflip" requires sensitivity to temporal order and speed. If a model is trained to be invariant to temporal shifts, it may fail to capture these defining dynamics. We address this by developing a framework that forces the model to map temporal transformations to predictable changes in feature space, thereby capturing richer motion information without human supervision.
Methods
The proposed framework centers on a contrastive objective that operates on the relationships between video clips.
- Relative Transformation Encoding: Two clips from a video are processed by a 3D-CNN to extract feature vectors. A Multi-Layer Perceptron (MLP) then encodes the "relative transformation" between these features into a single vector.
- Transformation Discrimination: The model is trained to recognize identical temporal transformations across different video instances. It "attracts" similar transformation vectors (e.g., both pairs separated by 2 seconds) and "repels" dissimilar ones.
- Auxiliary Pretext Tasks: To facilitate training, three auxiliary tasks are introduced: speed prediction (1x, 2x, 4x, 8x), direction prediction (forward vs. backward), and a novel overlap/order classification task.
- Instance Discrimination: A standard contrastive loss is maintained to ensure the model retains the ability to distinguish between different scenes and objects.
Results and Discussion
The model was pre-trained on Kinetics-400 and evaluated on several benchmarks. On UCF101, it achieved a fine-tuned accuracy of 88.2%, and 63.6% on HMDB51, surpassing contemporary SSL methods. In video retrieval, the model reached a Recall@1 of 64.3% on UCF101. Notably, on the Diving48 dataset—where actions are defined purely by motion—the method achieved 34.9% accuracy, nearly doubling the performance of earlier specialized SSL models.
Ablation studies confirm the importance of the equivariant objective. As shown in the table below, removing equivariance or auxiliary tasks leads to significant performance drops across all metrics.
Conclusion
By shifting the focus from temporal invariance to equivariance, we enable self-supervised models to better capture the motion dynamics inherent in video. The inclusion of auxiliary tasks serves as a critical "kickstart" for learning these features. Furthermore, the equivariant objective performs well even with smaller batch sizes, making it more accessible for researchers with limited hardware. Future work may explore extending this framework to other forms of equivariance, such as 3D rotations, or integrating multi-modal signals to further enhance video representations.
Summary updated