Abstract
Self-supervised learning (SSL) has significantly advanced image recognition, yet video representation learning remains challenging due to the complexity of capturing joint spatiotemporal features. This paper introduces Constrained Spatiotemporal Jigsaw (CSJ), a pretext task designed to force models to reason about spatiotemporal continuity. By constraining 3D jigsaw permutations through dimension factorization and grouping, the authors preserve Largest Continuous Cuboids (LCCs), making the task solvable for neural networks. Evaluation on UCF101, HMDB51, and Kinetics-400 demonstrates that CSJ achieves state-of-the-art results in action recognition and video retrieval.
Introduction
While 2D jigsaw puzzles are effective for image SSL, extending them to 3D video volumes leads to an intractable permutation space. For instance, a $3 \times 3 \times 3$ grid results in $27! \approx 10^{28}$ possible permutations—a search space far too vast for effective learning. Previous methods often decoupled spatial and temporal cues, failing to capture the inherent continuity of video data. This work addresses these limitations by proposing a constrained version of the 3D jigsaw puzzle that balances task difficulty with representational learning.
Methodology: Constrained Spatiotemporal Jigsaw (CSJ)
The core of the proposed method is the transformation of an unconstrained 3D jigsaw into a structured, solvable task.
Task Design
CSJ employs two primary strategies to constrain the permutation space:
- Dimension Factorization: Instead of shuffling all voxels simultaneously, permutations are applied sequentially across the temporal (T), height (H), and width (W) dimensions.
- Grouping: Jigsaw pieces are shuffled in groups to ensure that the resulting clip retains large, un-shuffled blocks known as Largest Continuous Cuboids (LCCs). These LCCs serve as anchors for the model to understand spatiotemporal context.
Surrogate Learning Tasks
To solve the CSJ, the authors propose four multi-scale surrogate tasks:
- LCCD (Largest Continuous Cuboid Detection): A regression task to locate the top-2 largest continuous blocks.
- CSPC (Clip Shuffling Pattern Classification): Identifying which of eight predefined shuffling patterns was applied.
- CLSC (Contrastive Learning over Shuffled Clips): Associating the original video with its most continuous shuffled version.
- CCMR (Clip Continuity Measure Regression): Predicting a scalar value representing the overall continuity of the clip.
The model architecture utilizes an R2D3D backbone (ResNet-3D variant) integrated with non-local blocks to capture long-range dependencies across the video volume.
Experiments and Results
The model was pre-trained on Kinetics-400 and evaluated on UCF101 and HMDB51 using linear probing and full fine-tuning protocols.
Action Recognition
On the UCF101 dataset, the CSJ-pretrained R2D3D-18 model achieved a fine-tuned accuracy of 70.4%, significantly outperforming the previous ST-Puzzle method (63.9%). When scaled to an R2D3D-34 backbone, the performance reached 79.5% on UCF101 and 50.9% on HMDB51, surpassing models like CBT that utilize 10x more data and multiple modalities (audio+text), despite CSJ being an RGB-only approach.
Video Retrieval
CSJ demonstrates strong discriminative power in nearest-neighbor retrieval tasks. It established a new state-of-the-art Top-1 recall of 21.5% on UCF101, indicating that the learned features are highly effective even without task-specific fine-tuning.
Conclusion
The Constrained Spatiotemporal Jigsaw (CSJ) effectively addresses the intractability of 3D jigsaw puzzles for video SSL. By focusing on spatiotemporal continuity through LCCs and multi-scale surrogate tasks, CSJ enables models to learn rich, discriminative representations. The results highlight the importance of task solvability in self-supervised learning and set new benchmarks for video-based action recognition and retrieval.
Summary updated