Self-Supervised Video Representation Using Pretext-Contrastive Learning

Li Tao, Xueting Wang, Toshihiko YamasakiarXiv 2020

Abstract

Self-supervised video representation learning has traditionally been divided into two approaches: pretext tasks, which focus on internal temporal/spatial structures, and contrastive learning, which focuses on instance discrimination. This paper introduces Pretext-Contrastive Learning (PCL), a unified framework that jointly optimizes both objectives. By combining "local" intra-sample supervision with "global" inter-sample discrimination, PCL significantly enhances the performance of self-supervised models. Experimental results on UCF101 and HMDB51 demonstrate that PCL consistently outperforms baseline pretext tasks and achieves state-of-the-art results with high data efficiency.

Introduction

Self-supervised learning (SSL) for video aims to learn useful representations from unlabeled data. Historically, this has involved either designing pretext tasks (e.g., clip ordering, rotation prediction) or contrastive learning (e.g., instance discrimination). While pretext tasks capture fine-grained temporal dynamics, they often reach performance plateaus. Conversely, contrastive learning excels at global discrimination but may overlook internal temporal structures. PCL addresses this gap by integrating both paradigms into a single training strategy.

Methods: The PCL Framework

The core of the proposal is the Pretext-Contrastive Learning (PCL) framework. It is designed as a joint optimization strategy rather than a standalone pretext task.

The PCL framework applied to (a) single-clip and (b) multi-clip self-supervised methods.

Joint Loss Function

PCL employs a weighted sum of two loss components: $$L_{total} = L_{pretext} + \alpha L_{contrast}$$ Here, $L_{pretext}$ represents the loss from a traditional task like Video Clip Prediction (VCP), while $L_{contrast}$ utilizes Noise Contrastive Estimation (NCE) for instance discrimination. This dual objective forces the network to simultaneously understand internal clip structure and distinguish between different video instances.

Local-Global Synergy

The authors argue that pretext tasks provide "local" views (internal structure), while contrastive learning provides a "global" view (inter-video differences). To further enhance motion sensitivity, the framework can utilize "residual clips"—the pixel-wise difference between consecutive frames—to minimize reliance on static background cues. Additionally, strong data augmentations (color jitter, Gaussian blur) are applied to improve the robustness of the learned representations.

Experimental Setup

The framework was evaluated on standard benchmarks:

  • UCF101: 13,320 videos, 101 categories.
  • HMDB51: 7,000 videos, 51 categories.
  • Kinetics-400: Used for large-scale pre-training (~240k videos).

PCL's generality was tested across multiple pretext tasks (VCP, VCOP, 3DRotNet) and backbones (C3D, R3D, R(2+1)D, ResNet-18).

Key Results and Discussion

PCL demonstrates substantial improvements over baseline pretext tasks and competitive state-of-the-art methods.

UCF101 classification performance vs. duration of training data. PCL achieves superior accuracy with significantly less data compared to other methods.

Performance Gains

On the UCF101 video retrieval task using a C3D backbone, the baseline VCP task achieved 17.3% Top-1 accuracy. Integrating PCL boosted this performance to 50.3%. For action recognition, PCL pre-trained on Kinetics-400 reached 85.7% accuracy on UCF101, outperforming methods like SpeedNet and MemDPC.

Data Efficiency

A standout feature of PCL is its efficiency. As shown in the results, PCL achieves higher performance than many competing methods while using only a fraction of the pre-training data (e.g., ~3.6% of the data used by some large-scale models).

Conclusion

Pretext-Contrastive Learning successfully bridges the gap between local temporal understanding and global instance discrimination. By showing that these two paradigms are complementary rather than redundant, PCL provides a robust, "plug-and-play" framework for advancing self-supervised video representation. Future work may involve exploring multi-pretext combinations and scaling to larger, uncurated datasets.

Summary updated

BibTeX
@misc{tao2020self,
  author = {Li Tao and Xueting Wang and Toshihiko Yamasaki},
  title = {{Self-Supervised Video Representation Using Pretext-Contrastive Learning}},
  year = {2020},
  eprint = {2010.15464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15464},
}
Figure