Abstract
Contrastive learning has shown great potential in video representation learning. However, existing approaches fail to sufficiently exploit short-term motion dynamics, which are crucial to various downstream video understanding tasks. In this paper, we propose Motion Sensitive Contrastive Learning (MSCL) that injects the motion information captured by optical flows into RGB frames to strengthen feature learning. To achieve this, in addition to clip-level global contrastive learning, we develop Local Motion Contrastive Learning (LMCL) with frame-level contrastive objectives across the two modalities. Moreover, we introduce Flow Rotation Augmentation (FRA) to generate extra motion-shuffled negative samples and Motion Differential Sampling (MDS) to accurately screen training samples. Extensive experiments on standard benchmarks validate the effectiveness of the proposed method. With the commonly-used 3D ResNet-18 as the backbone, we achieve the top-1 accuracies of 91.5% on UCF101 and 50.3% on Something-Something v2 for video classification, and a 65.6% Top-1 Recall on UCF101 for video retrieval, notably improving the state of the art.
Introduction
Self-supervised learning has revolutionized image recognition, but video representation remains a significant challenge. Most current methods rely on contrastive learning, which distinguishes between different video clips by focusing on global features. However, these methods often fail to capture the local, short-term motion dynamics essential for distinguishing complex actions, such as "throwing" versus "catching" a ball. Because video frames are highly redundant, models often "cheat" by relying on static background objects rather than understanding the underlying motion.
To address this, we propose Motion Sensitive Contrastive Learning (MSCL). Unlike previous methods that operate primarily at the clip level, MSCL introduces frame-level supervision to explicitly link visual appearance with motion dynamics.
The MSCL Framework
The MSCL framework forces the model to attend to fine-grained motion through three primary innovations:
- Local Motion Contrastive Learning (LMCL): Instead of comparing entire clips, LMCL matches specific RGB frames to their corresponding optical flow maps. This frame-level alignment ensures the model learns how specific visual arrangements translate into specific movements.
- Flow Rotation Augmentation (FRA): To enhance discriminative power, we generate "hard negative" samples by rotating motion vectors in optical flow maps. This creates samples that appear visually correct but possess incorrect motion directions, forcing the model to distinguish true motion from rotated variants.
- Motion Differential Sampling (MDS): Recognizing that static clips are less informative, MDS uses a mathematical sieve based on Sobel operators to prioritize training on clips with high motion variance, maximizing learning efficiency.
The architecture employs a standard 3D ResNet-18 for the RGB pathway and a lightweight 2D CNN for the optical flow pathway. The use of a 2D CNN for flow is a deliberate design choice to prevent "temporal leakage," where 3D convolutions might allow the model to infer motion from adjacent frames rather than truly understanding the local motion vector.
Experimental Results
MSCL was evaluated on several major benchmarks, including Kinetics-400, UCF101, HMDB51, and Something-Something v2 (SSv2). The results demonstrate a new state-of-the-art for self-supervised video representation:
- Action Classification: Using an R3D-18 backbone, MSCL achieved 91.5% top-1 accuracy on UCF101 and 50.3% on SSv2. The performance on SSv2 is particularly noteworthy, as this dataset emphasizes temporal action over static object recognition.
- Video Retrieval: In search tasks, MSCL reached a 65.6% Top-1 Recall on UCF101, significantly outperforming previous methods like MoDist and TCLR.
- Efficiency: Thanks to the targeted sampling of the MDS strategy, the model achieves these results with fewer training epochs than many competitors.
Conclusion
By using optical flow as a frame-level supervisor and introducing motion-specific augmentations, MSCL significantly improves the motion sensitivity of self-supervised video models. While the current implementation relies on pre-extracted optical flow, future work may focus on distilling this motion sensitivity directly into RGB-only models to reduce inference-time computation. MSCL demonstrates that explicitly modeling the "how" of motion is just as critical as modeling the "what" of visual appearance.
Summary updated