Abstract
Self-supervised learning of convolutional neural networks can harness large amounts of cheap unlabeled data to train powerful feature representations. As surrogate task, we jointly address ordering of visual data in the spatial and temporal domain. The permutations of training samples, which are at the core of self-supervision by ordering, have so far been sampled randomly from a fixed preselected set. Based on deep reinforcement learning we propose a sampling policy that adapts to the state of the network, which is being trained. Therefore, new permutations are sampled according to their expected utility for updating the convolutional feature representation. Experimental evaluation on unsupervised and transfer learning tasks demonstrates competitive performance on standard benchmarks for image and video classification and nearest neighbor retrieval.
Introduction
Deep learning typically requires massive labeled datasets, which are expensive to curate. Self-supervised learning (SSL) addresses this by using "surrogate tasks" where labels are derived from the data itself—such as reordering shuffled image patches (spatial) or video frames (temporal). However, standard SSL methods often rely on a fixed, random set of permutations for these tasks. This paper introduces an adaptive sampling policy based on Deep Reinforcement Learning (DRL) that creates a dynamic curriculum, selecting permutations that maximize the network's learning progress at any given state.
Methodology: RL-Guided Self-Supervision
The proposed framework consists of two main components: a "Student" Convolutional Neural Network (CNN) and a "Teacher" RL policy.
The Student (CNN)
The student is a CaffeNet architecture trained on a dual surrogate task: re-ordering $3 \times 3$ spatial image grids and temporal sequences of video frames. By solving these tasks jointly, the network learns robust spatiotemporal features. The temporal task acts as a regularizer, preventing the network from "cheating" on the spatial task by focusing on low-level edge misalignments.
The Teacher (RL Policy)
The RL policy is a small network that observes the state of the CNN and selects the most beneficial permutations.
- State: A compact vector representing the CNN's performance (confidence ratios) on a small validation set.
- Action: Selecting from groups of permutations clustered by difficulty using K-means.
- Reward: Based on the improvement in the CNN's validation performance relative to a baseline after training on the chosen permutations.
Experimental Results
The authors evaluated the learned features on several transfer learning benchmarks to test their generalizability to real-world tasks.
Action Recognition and Image Classification
On the UCF-101 action recognition dataset, the RL-guided approach achieved an accuracy of 58.6%, outperforming previous state-of-the-art methods like OPN (56.3%). For image classification on Pascal VOC 2007, the model reached 74.2% mAP, a significant jump over the standard Jigsaw approach (67.6%).
Adaptive Curriculum Insights
Analysis of the RL agent's behavior shows it naturally learns a curriculum. Early in training, it selects a diverse mix of permutations. As the CNN improves, the policy increasingly selects "harder" permutations that provide a stronger training signal, leading to more semantically meaningful features than those learned through random sampling.
Conclusion
By replacing random sampling with an adaptive RL-based policy, this work demonstrates that curriculum learning can significantly improve self-supervised feature representation. The synergy between spatial and temporal tasks, guided by a reinforcement learning agent, provides a more efficient and effective training signal, narrowing the gap between self-supervised and fully supervised learning.
Summary updated