Self-Supervised Video Representation Learning with Space-Time Cubic Puzzles

Dahun Kim, Donghyeon Cho, In So Kweon

Abstract

Self-supervised tasks such as colorization, inpainting, and jigsaw puzzles have been widely utilized for visual representation learning in still images. Recently, this research has extended to the video domain, where the cost of human labeling is even more significant. However, most existing methods rely on 2D CNN architectures that cannot directly capture the spatio-temporal information essential for video applications. In this paper, we introduce a new self-supervised task called Space-Time Cubic Puzzles to train 3D CNNs using large-scale video datasets. This task requires a network to arrange permuted 3D spatio-temporal crops. By completing these puzzles, the network learns both spatial appearance and temporal relations. In experiments, we demonstrate that our learned 3D representation transfers well to action recognition tasks, outperforming state-of-the-art 2D CNN-based competitors on the UCF101 and HMDB51 datasets.

Introduction

Deep learning thrives on massive labeled datasets, but labeling video is exponentially more expensive and time-consuming than labeling images. While self-supervised learning—where the data provides its own supervision—has been successful for images, applying these techniques to video has been challenging. Most existing video methods rely on 2D CNNs that process frames individually, failing to capture the "arrow of time" or complex 3D dynamics. Conversely, 3D CNNs are powerful but notoriously data-hungry. The authors aim to bridge this gap by creating a task that forces a 3D CNN to understand the relationship between space and time simultaneously without needing a single human-provided label.

Methods: The Space-Time Cubic Puzzle

The core of the paper is the Space-Time Cubic Puzzle. A video clip is treated as a 3D cuboid and partitioned into a $2 \times 2 \times 4$ grid (spatial $\times$ spatial $\times$ temporal).

Sampling and Permutation

Instead of using all 16 possible blocks, which would be computationally heavy and often ambiguous, the authors sample a tuple of 4 blocks. These blocks are sampled either spatially (from a $2 \times 2 \times 1$ slice) or temporally (from a $1 \times 1 \times 4$ column). These 4 blocks are randomly shuffled, and a 3D ResNet, arranged in a "4-tower siamese" architecture, processes each block independently. The features are then concatenated, and the network must predict the original permutation.

Preventing "Cheating"

To ensure the network learns high-level semantics rather than low-level pixel shortcuts, the authors use:

  • Spatio-temporal jittering: Randomly shifting the crop within its grid cell so the network can't just match edges.
  • Channel replication: Using grayscale-like inputs to prevent the network from using chromatic aberration (lens artifacts) to find the crop's original location.
  • Rotation classification: Randomly flipping frames upside-down and requiring the network to recognize the orientation, which doubles the number of classes and increases task difficulty.
Figure 5: Illustration of temporal sequences used in the puzzle task. Determining the direction of time (e.g., catching vs. throwing) requires the network to identify causal temporal cues across multiple 3D crops.

Key Insights and Results

3D is Better than 2D for Video Pretext

Unlike 2D jigsaw puzzles, 3D cubic puzzles force the model to learn temporal evolution. The authors show that their 3D filters actually change over the time dimension, whereas "inflated" 2D filters often remain static. Furthermore, the task forces the network to look for causal temporal cues. Determining the direction of time is often impossible from just two frames (e.g., is the ball being caught or thrown?), but sequences of 3D crops provide the necessary context.

Performance Benchmarks

The model was pretrained on the Kinetics-400 dataset (ignoring labels) and evaluated on UCF101 and HMDB51:

  • Massive Gains over Scratch: On UCF101, the proposed method achieved 65.8% accuracy, a dramatic +23.4% improvement over training the same 3D ResNet from scratch (42.4%).
  • Competitive with Supervision: The self-supervised method performed slightly better than a model trained with full supervision on one-eighth of the Kinetics dataset labels.
  • State-of-the-Art: It outperformed several contemporary self-supervised methods (like Shuffle & Learn or OPN) based on 2D architectures, even when those methods used more parameters.

Conclusion

Space-Time Cubic Puzzles offer a robust method for training 3D CNNs without the need for manual labels. By forcing the network to resolve spatio-temporal permutations, it learns representations that are highly effective for downstream tasks like action recognition. While a performance gap remains compared to full supervised pretraining on massive datasets, this approach significantly closes the gap and demonstrates the power of learning from raw video dynamics.

Summary updated

BibTeX
@inproceedings{kim2019self,
  author = {Dahun Kim and Donghyeon Cho and In So Kweon},
  title = {{Self-Supervised Video Representation Learning with Space-Time Cubic Puzzles}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=hMfFcTTPbt7},
}
Figure