Abstract
Learning to recognize actions from only a handful of labeled videos is a challenging problem due to the scarcity of tediously collected activity labels. We approach this problem by learning a two-pathway temporal contrastive model using unlabeled videos at two different speeds, leveraging the fact that changing video speed does not change an action. Specifically, we propose to maximize the similarity between encoded representations of the same video at two different speeds as well as minimize the similarity between different videos played at different speeds. This way, we use the rich supervisory information in terms of 'time' that is present in an otherwise unsupervised pool of videos. With this simple yet effective strategy of manipulating video playback rates, we considerably outperform video extensions of sophisticated state-of-the-art semi-supervised image recognition methods across multiple diverse benchmark datasets and network architectures. Interestingly, our proposed approach benefits from out-of-domain unlabeled videos, showing generalization and robustness.
Introduction
Supervised deep learning models for video action recognition are highly effective but notoriously data-hungry, requiring massive datasets with tedious frame-level or video-level human annotations. To bypass this bottleneck, researchers often turn to Semi-Supervised Learning (SSL), which uses a small amount of labeled data alongside a massive pool of unlabeled data.
While SSL has seen massive success in the 2D image domain (with methods like FixMatch or MixMatch), trivially extending these image-based approaches to videos falls short. Image SSL relies heavily on spatial augmentations (like cropping or color jittering) but ignores the most critical dimension of a video: time. The challenge lies in designing a semi-supervised learning framework that explicitly exploits the temporal dynamics of unlabeled videos to learn better, more robust action representations.
Methodology: Temporal Contrastive Learning (TCL)
The proposed Temporal Contrastive Learning (TCL) framework utilizes a two-pathway architecture to exploit temporal information in unlabeled videos.
Pace-Invariant Two-Pathway Model
The model processes unlabeled videos at two different speeds. The base pathway takes in a fast version of the video (sampled at a higher frame rate, e.g., 8 frames), while the auxiliary pathway takes in a slow version (sampled at a lower frame rate, e.g., 4 frames).
Instance and Group Contrastive Losses
- Instance-Contrastive Loss: The network is trained to maximize the similarity between the fast and slow versions of the same video, while minimizing the similarity between different videos. This forces the model to learn features that are invariant to the speed of the action.
- Group-Contrastive Loss: Standard instance-contrastive loss treats every other video in a batch as a "negative" sample. In action recognition, this is problematic as it might push apart different videos containing the same action. TCL addresses this by generating pseudo-labels for unlabeled videos, grouping them by these predicted labels, and averaging their representations. The contrastive loss is then applied at the group level, pulling together groups with the same pseudo-label across pathways.
Experimental Results
The authors evaluated TCL on four standard benchmarks: Mini-Something-V2, Jester, Kinetics-400, and Charades-Ego (for domain shift analysis).
TCL significantly outperforms state-of-the-art image SSL methods extended to videos:
- Mini-Something-V2: With only 5% labeled data, TCL achieves 29.81% top-1 accuracy, surpassing FixMatch (21.67%) by an 8.14% absolute margin.
- Jester: With just 1% labeled data, TCL reaches 75.21% accuracy, outperforming S4L (64.98%) by over 10%.
- Data Efficiency: TCL matches the performance of a fully supervised model (100% data) using only 33% labeled data on Mini-Something-V2 and 15% on Jester.
Discussion and Conclusion
The core insight of TCL is that time is the ultimate video augmentation; changing playback speed is a natural, temporally-aware augmentation that preserves semantic meaning. By introducing group-level contrastive learning, TCL effectively mitigates the "false negative" problem inherent in instance-level contrastive methods. Furthermore, TCL demonstrates robustness to domain shift, successfully leveraging out-of-domain unlabeled data (e.g., 1st-person videos to improve 3rd-person classification).
While computationally intensive—particularly when scaling the ratio of unlabeled data or increasing frame rates—TCL establishes a new state-of-the-art for semi-supervised video action recognition. Future work will focus on optimizing the framework for memory-efficient architectures like video Transformers.
Summary updated