Skip-Clip: Self-Supervised Spatiotemporal Representation Learning by Future Clip Order Ranking

Alaaeldin El-Nouby, Shuangfei Zhai, Graham W. Taylor, Joshua M. SusskindarXiv 2019

Abstract

Deep neural networks require collecting and annotating large amounts of data to train successfully. In order to alleviate the annotation bottleneck, we propose a novel self-supervised representation learning approach for spatiotemporal features extracted from videos. We introduce Skip-Clip, a method that utilizes temporal coherence in videos, by training a deep model for future clip order ranking conditioned on a context clip as a surrogate objective for video future prediction. We show that features learned using our method are generalizable and transfer strongly to downstream tasks. For action recognition on the UCF101 dataset, we obtain 51.8% improvement over random initialization and outperform models initialized using inflated ImageNet parameters. Skip-Clip also achieves results competitive with state-of-the-art self-supervision methods.

Introduction

Deep learning models, particularly 3D Convolutional Neural Networks (CNNs) for video analysis, are notoriously data-hungry. The manual labeling of video data is an expensive and time-consuming process, creating a significant "annotation bottleneck." To address this, researchers have turned to self-supervised learning (SSL), where models learn from the data itself through pretext tasks such as solving jigsaw puzzles or colorizing frames.

However, existing video SSL tasks often struggle with temporal ambiguity. For instance, in a video of a person performing a pull-up, individual frames can look remarkably similar whether the video is played forward or backward. Without context, determining the "arrow of time" is difficult. Skip-Clip addresses this by training networks to understand video dynamics through predicting the relative order of future frames based on a specific "context" clip.

Methodology

The core of Skip-Clip is a ranking task in latent space. The model is presented with a "context clip" consisting of 16 contiguous frames and several "target clips" (individual frames) that occur later in the video.

A sequence of ordered frames from a pull-up video, illustrating the temporal progression the model aims to learn.

The architecture employs a 3D CNN to encode the context clip into a feature tensor and a 2D CNN to encode the target frames. Instead of computationally expensive pixel-level prediction, the model must rank target frames based on their temporal distance from the context using a hinge rank loss. This forces the model to learn high-level dynamics and physics.

To prevent the model from learning trivial "shortcuts," two additional components are integrated:

  1. Contrastive Learning: A contrastive loss encourages the model to distinguish between frames from the same video and "negative" frames from different videos.
  2. Spatial Regularization: An auxiliary task requires the model to predict the rotation (0°, 90°, 180°, or 270°) of target frames, ensuring the encoder retains high-quality spatial information.

Experimental Results

The method was primarily evaluated on the UCF101 dataset, a benchmark for action recognition.

  • Performance Gains: Skip-Clip achieved 64.4% accuracy on UCF101, representing a 51.8% relative improvement over random initialization (42.4%).
  • Comparison with Supervised Pre-training: Notably, Skip-Clip outperformed "ImageNet Inflation" (60.3%), suggesting that self-supervised video training can be more effective for video tasks than supervised training on static images.
  • Ablation Studies: The inclusion of the rotation auxiliary task provided a 3.6% boost in accuracy, confirming its role in preventing the learning of trivial features.

Conclusion and Future Work

Skip-Clip demonstrates that ranking future clips in latent space is a powerful pretext task for spatiotemporal representation learning. By conditioning on context and employing spatial regularization, the model effectively captures the "arrow of time." Future work will explore using multi-frame target clips to capture more complex motion and scaling the method to larger datasets like Kinetics to further enhance representation robustness.

Summary updated

BibTeX
@misc{elnouby2019skip,
  author = {Alaaeldin El-Nouby and Shuangfei Zhai and Graham W. Taylor and Joshua M. Susskind},
  title = {{Skip-Clip: Self-Supervised Spatiotemporal Representation Learning by Future Clip Order Ranking}},
  year = {2019},
  eprint = {1910.12770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.12770},
}
Figure