Source-linked AI summary

Unsupervised Representation Learning by Sorting Sequences

Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, Ming-Hsuan Yang

arXiv:1708.01246v1cs.CV

TL;DR

The paper asks how to learn visual representations from abundant unlabeled videos without semantic annotations. It trains a network to sort shuffled frames using pairwise feature comparisons, and reports favorable or competitive transfer across action recognition, image classification, and object detection. The conclusion notes a remaining gap relative to supervised pre-training.

  • Problem

    Manual annotations are expensive and scarce in some domains, motivating representation learning from unlabeled images and videos.

  • Method

    The method formulates sorting randomly shuffled video frames into chronological order as a self-supervised task and uses an Order Prediction Network based on pairwise feature extraction.

  • Results

    As pre-training, the method outperforms state-of-the-art approaches on UCF-101 and HMDB-51 and performs competitively on PASCAL VOC 2007 classification and detection.

  • Takeaways & Limitations

    Temporal sequence sorting can provide a transferable representation for both video understanding and image understanding tasks.

  • Takeaways & Limitations

    A performance gap remains between the unsupervised and supervised pre-training methods.

Abstract

from arXiv · show

We present an unsupervised representation learning approach using videos without semantic labels. We leverage the temporal coherence as a supervisory signal by formulating representation learning as a sequence sorting task. We take temporally shuffled frames (i.e., in non-chronological order) as inputs and train a convolutional neural network to sort the shuffled sequences. Similar to comparison-based sorting algorithms, we propose to extract features from all frame pairs and aggregate them to predict the correct order. As sorting shuffled image sequence requires an understanding of the statistical temporal structure of images, training with such a proxy task allows us to learn rich and generalizable visual representation. We validate the effectiveness of the learned representation using our method as pre-training on high-level recognition problems. The experimental results show that our method compares favorably against state-of-the-art methods on action recognition, image classification and object detection tasks.

1. Introduction

The paper addresses the limits of manually annotated data by using temporal structure in unlabeled videos as supervision for sequence-sorting representation learning. Its pairwise Order Prediction Network learns representations that perform favorably across action recognition, classification, and detection tasks.

  • Manual annotation limits scalable representation learning, whereas unlabeled images and videos are abundant.
  • Sequence sorting trains a network to recover the chronological order of randomly shuffled video frames without semantic labels.The task uses temporal coherence and requires reasoning about the statistical temporal structure of image sequences.
  • The Order Prediction Network extracts features from every frame pair and fuses them to predict the sequence order.This design is inspired by comparison-based sorting, rather than simultaneous feature extraction from all frames.
  • As pre-training, the method outperforms state-of-the-art approaches on UCF-101 and HMDB-51 and generalizes competitively to PASCAL VOC 2007 classification and detection.The introduction reports favorable performance using less than 30,000 videos for unsupervised training.
  • The sorting formulation provides richer supervision than binary temporal-order verification.For an n-tuple, the network predicts n!/2 forward-backward-equivalent combinations.
  • The learned representation serves as pre-training for action recognition, image classification, and object detection.

2. Related Work

Prior self-supervised methods exploit spatial context, reconstruction, appearance variation, or temporal cues in unlabeled visual data. This work instead uses temporal context through sequence sorting and pairwise order reasoning.

  • Self-supervised learning defines supervisory signals from the structure of raw visual data rather than semantic labels.Examples use spatial context, reconstruction, cross-channel prediction, or grouped visual entities.
  • The proposed method uses temporal context instead of the spatial context used by related self-supervised approaches.
  • Unlabeled videos add a time dimension and appearance variations of objects that can support visual representation learning.
  • Video-based methods include frame reconstruction, temporal smoothness, tracking, and egomotion-based representation learning.
  • Unlike binary order verification, sequence sorting predicts n!/2 forward-backward-equivalent combinations for each n-tuple.Its Order Prediction Network also differs from simple feature concatenation by extracting pairwise features before final prediction.
  • The model learns image representations usable for both video understanding and image understanding tasks.

3. Feature Learning by Sequence Sorting

The method learns representations by sorting shuffled video-frame tuples, balancing task difficulty through motion-aware sampling and augmentations. Its Order Prediction Network compares frame pairs before predicting the overall order.

  • 3. Feature Learning by Sequence Sorting: The sequence-sorting proxy task trains a CNN to recover temporal coherence from randomly shuffled frames in unlabeled videos.
  • 3. Feature Learning by Sequence Sorting: For four-frame tuples, the task is a 24-way permutation classification problem reduced to 12 classes by grouping forward and backward orders.
  • 3.1. Training Data Sampling: Training tuples must avoid both static regions that are nearly impossible to sort and low-level cues that make sorting trivial.
  • 3.1. Training Data Sampling: Optical-flow magnitude selects frames and spatial patches containing large motion for tuple construction.
  • 3.1. Training Data Sampling: Spatial jittering prevents simple frame alignment from revealing the order.
  • 3.1. Training Data Sampling: Channel splitting discourages low-level color cues by copying one randomly selected channel across all three channels.
  • 3.2. Order Prediction Network: The Order Prediction Network extracts frame features, computes pairwise features, and predicts order from their concatenation.The frame branches share parameters in a Siamese architecture, and the network is trained end-to-end.
  • 3.2. Order Prediction Network: Pairwise extraction is designed to capture ordering relationships more effectively than concatenating all frame features at once.

4. Experiments

The experiments evaluate sequence-sorting pre-training across action recognition, image classification, object detection, ablations, and feature visualizations. Results support pairwise feature extraction, transferability, and competitive cross-task performance, while also identifying design constraints.

  • Experimental setup: The experiments compare binary, 3-tuple, 4-tuple, and concatenation variants across action recognition, classification, detection, and ablation settings.The 3-tuple and 4-tuple variants predict 3 and 12 classes, respectively.
  • Action recognition: 57.3% accuracy versus 52.1% for Vondrick et al. [39] is reported on UCF-101, while OPN outperforms [30] by 5.1% using UCF-101 training videos.Using HMDB-51 videos for both unsupervised and supervised training, OPN performs slightly worse than [30].
  • Action recognition: More than 10% gain on UCF-101 and 5% on HMDB-51 are reported against [8] under a single-frame-difference comparison setting.The comparison uses Diff inputs and initializes weights with models trained on RGB and Diff features.
  • Transferability: 22.5% versus 15.2% for [24] is achieved when transferring features pre-trained on UCF-101 without labels, suggesting generalizable representations across domains.Performance is slightly higher when there is no domain gap, using HMDB-51 training videos.
  • Classification and detection: Among video-based methods, performance is competitive with [41], while requiring considerably less training time and fewer training videos; ImageNet-trained methods perform better.The authors attribute the gap to object-centric ImageNet images versus human-centric training videos.
  • Ablation analysis: Using 80 × 80 patches offers advantages in parameter count, training time, and most importantly performance compared with 120 × 120 patches and entire images.Patch-size selection significantly affects fully connected layer parameters and training time.
  • Ablation analysis: Channel splitting improves over random channel swapping and dropping, while adding a direction constraint does not help because it removes tuples with shape deformation.The reported rationale is that the direction constraint can prevent learning meaningful high-level features.
  • Ablation analysis: Pairwise feature extraction outperforms simple concatenation on both order prediction and action recognition for 3-tuples and 4-tuples.Its improvement over concatenation is larger for 4-tuples because the order-prediction task is more difficult.

5. Conclusions

The paper presents sequence sorting as an unsupervised representation-learning method for shuffled video frames and proposes an Order Prediction Network. It improves over state-of-the-art methods on action recognition and generalizes competitively to classification and detection, but remains behind supervised pre-training.

  • 5. Conclusions: The method learns representations by sorting shuffled frame sequences into chronological order with an Order Prediction Network.The paper frames sequence sorting as the central unsupervised task.
  • 5. Conclusions: Pre-training improves performance over state-of-the-art methods on UCF-101 and HMDB-51 and generalizes competitively to classification and detection tasks.These results are reported across video action recognition and image-oriented recognition tasks.
  • 5. Conclusions: A performance gap remains between unsupervised and supervised pre-training methods.The authors identify modeling long-term video evolution, potentially with a recurrent neural network, as future work.
Loading 1708.01246v1…