Semi-Supervised Action Recognition With Temporal Contrastive Learning

Ankit Singh, Omprakash Chakraborty, Ashutosh Varshney, Rameswar Panda, Rogério Feris, Kate Saenko, Abir Das

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 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. We also perform rigorous ablations and analysis to validate our approach.

Introduction

Deep learning models for video action recognition are notoriously data-hungry, requiring massive datasets with tedious human annotations. While semi-supervised learning (SSL) has seen massive success in image recognition, simply porting these techniques to video often fails because they ignore the temporal dimension. Standard image augmentations like cropping or color jittering do not capture the rich supervisory signals inherent in time.

Temporal Contrastive Learning (TCL) addresses this gap by using temporal consistency—specifically, the invariance of an action's semantics across different playback speeds—as a source of supervision. By maximizing similarity between a video's representations at different speeds, TCL can surpass fully supervised models using as little as 15–33% of the labeled data.

Methods

The TCL framework consists of a two-pathway neural network (Base and Auxiliary) that shares weights to process unlabeled video data.

  1. Temporal Pathways: The "Base" pathway processes a video sampled at a high frame rate (fast), while the "Auxiliary" pathway processes the same video at a lower frame rate (slow).
  2. Instance-Contrastive Loss: The model is trained to maximize the similarity between the encoded representations of the same video at these two different speeds (positive pairs) while minimizing similarity between different videos (negative pairs).
  3. Group-Contrastive Loss: Standard contrastive learning can be overly discriminative, potentially pushing apart different videos of the same action class. To mitigate this, TCL uses pseudo-labels to group unlabeled videos into "neighborhoods." It then maximizes similarity between the average representations of these groups across the two pathways, encouraging the model to learn high-level action semantics rather than just instance-specific features.
Overview of the TCL framework showing the dual-pathway architecture and the instance/group agreement mechanisms.

Results and Key Insights

The researchers evaluated TCL on four diverse benchmarks: Mini-Something-Something-V2, Jester, Kinetics-400, and Charades-Ego.

  • Label Efficiency: On Mini-Something-V2, TCL reached the performance of a 100% fully supervised model using only 33% of the labels. On the Jester dataset, it required only 15% of the labels to match the supervised baseline.
  • Superiority over Baselines: With only 5% labeled data on Mini-Something-V2, TCL achieved 29.81% accuracy, outperforming the next best semi-supervised method (FixMatch) by over 8% absolute.
  • Out-of-Domain Benefits: The model's performance improves even when unlabeled videos come from a different domain (e.g., egocentric video in Charades-Ego). This suggests TCL learns robust features that generalize beyond specific camera angles.
Performance comparison of TCL against baselines on Mini-Something-V2 and Jester datasets across different percentages of labeled data.

Conclusion

TCL demonstrates that "speed invariance" is a natural and powerful inductive bias for video action recognition. By moving from instance-wise contrast to group-wise contrast, the model effectively clusters actions in the feature space without inadvertent competition between similar videos. While the approach is computationally intensive as frame counts increase, it provides a significant leap in label efficiency for video-based SSL tasks.

Summary updated

BibTeX
@inproceedings{singh2021semi,
  author = {Ankit Singh and Omprakash Chakraborty and Ashutosh Varshney and Rameswar Panda and Rogério Feris and Kate Saenko and Abir Das},
  title = {{Semi-Supervised Action Recognition With Temporal Contrastive Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=rkyz6_yXQ_Y},
}
Figure