Source-linked AI summary

Self-Supervised Video Representation Learning With Odd-One-Out Networks

Basura Fernando, Hakan Bilen, Efstratios Gavves, Stephen Gould

arXiv:1611.06646v4cs.CV

TL;DR

Video representation learning commonly depends on costly manual annotations, while unlabeled videos contain useful spatio-temporal structure. Odd-one-out networks use a multi-branch CNN to identify a wrongly ordered video subsequence among correctly ordered subsequences generated without manual annotation. O3N obtains 60% classification accuracy on UCF101 and outperforms previous self-supervised action-classification results on HMDB51 by more than 12%.

  • Problem

    Video representation learning commonly depends on costly manual annotations, while unlabeled videos contain useful spatio-temporal structure.

    Source: §1 · p. 1
  • Method

    Odd-one-out networks use a multi-branch CNN to identify a wrongly ordered video subsequence among correctly ordered subsequences generated without manual annotation.

    Source: §1 · p. 2, §3 · p. 3, §4 · p. 5
  • Results

    O3N obtains 60% classification accuracy on UCF101 and outperforms previous self-supervised action-classification results on HMDB51 by more than 12%.

    Source: §7 · p. 9
  • Takeaways & Limitations

    The learned video features generalize to related tasks such as action recognition and improve across different temporal encoders.

    Source: §1 · p. 2, §7 · p. 9

Abstract

from arXiv · show

We propose a new self-supervised CNN pre-training technique based on a novel auxiliary task called "odd-one-out learning". In this task, the machine is asked to identify the unrelated or odd element from a set of otherwise related elements. We apply this technique to self-supervised video representation learning where we sample subsequences from videos and ask the network to learn to predict the odd video subsequence. The odd video subsequence is sampled such that it has wrong temporal order of frames while the even ones have the correct temporal order. Therefore, to generate a odd-one-out question no manual annotation is required. Our learning machine is implemented as multi-stream convolutional neural network, which is learned end-to-end. Using odd-one-out networks, we learn temporal representations for videos that generalizes to other related tasks such as action recognition. On action classification, our method obtains 60.3\% on the UCF101 dataset using only UCF101 data for training which is approximately 10% better than current state-of-the-art self-supervised learning methods. Similarly, on HMDB51 dataset we outperform self-supervised state-of-the art methods by 12.7% on action classification task.

1. Introduction

The paper targets video representation learning without costly manual annotations by using data structure as supervision. It introduces odd-one-out learning and a multi-branch architecture to learn motion-aware features that transfer to action recognition.

Motivation

  • Manual annotation is costly for videos, while unlabeled videos contain rich spatio-temporal structure useful for representation learning.Frame-level annotation and noisy video tags make supervised learning difficult for action recognition.Source: §1 · p. 1

Odd-one-out learning

  • Odd-one-out learning trains a model to identify one wrongly ordered video subsequence among N correctly ordered subsequences without human labels.The odd element is randomly positioned, requiring comparison among all elements rather than a fixed positional shortcut.Source: Figure 1 · p. 1, §1 · p. 2

Video representations

  • The method focuses on motion patterns and learns video-segment representations that preserve spatio-temporal structure.It differs from approaches that treat videos primarily as collections of frames or learn only appearance representations.Source: §1 · p. 2

Contributions

  • The proposed contributions are a novel self-supervised task, a compatible neural architecture, and evidence that the learned representations outperform recent self-supervised video methods.The network is implemented as a multi-branch CNN with shared weights and fusion for cross-sequence reasoning.Source: §1 · p. 2

2. Related work

Prior work includes unsupervised representation-learning methods, self-supervised tasks, and temporal video encodings. The paper distinguishes its approach by using a harder multi-class odd-one-out task intended to learn temporal information without external pretrained features or optical flow.

Unsupervised feature learning

  • Unsupervised representation learning has used autoencoders, restricted Boltzmann machines, convolutional deep belief networks, LSTMs, and recurrent neural networks.Source: §2 · p. 2

Self-supervised learning

  • Self-supervised methods infer supervisory signals from data structure, including image context, tracked video patches, and egomotion.These approaches avoid manual annotations but may depend on reliable tracking, stable triplet-loss optimization, or odometry measurements.Source: §2 · p. 2

Exemplar CNNs

  • Exemplar CNNs create a separate class for each transformed image, but their learned invariances depend on the selected transformations.For a million images, this entails training a one-million-class CNN.Source: §2 · p. 2

Temporal video learning

  • Prior video methods studied temporal direction or sequence encoding, but one LSTM approach required supervised pretrained frame features.Source: §2 · pp. 2–3

Positioning O3N

  • Compared with binary frame-order verification, the proposed N + 1-way classification requires analogical reasoning and is designed to encode temporal information for action recognition.The paper also avoids external optical-flow data and ImageNet-transferred filter weights.Source: §2 · p. 3

3. Odd-one-out learning

Odd-one-out learning creates annotation-free questions by placing one temporally invalid video subsequence among correctly ordered subsequences, then trains a multi-branch network to locate it.

3. Odd-one-out learning

  • Odd-one-out questions contain N correctly ordered subsequences and one frame-shuffled subsequence from the same video.The odd element is randomly positioned, preventing the network from exploiting a fixed location.Source: §3 · p. 3
  • Randomly permuting the odd element converts prediction into an (N + 1)-way classification problem trained by maximum likelihood.The self-supervised dataset is generated automatically from unlabeled videos.Source: §3 · p. 3
  • The odd-one-out network uses N + 1 weight-sharing convolutional branches, fuses their activations, and predicts the odd element with a softmax classifier.Fusion enables comparisons across question elements rather than independent inspection.Source: §3 · pp. 3–4
  • The two fusion designs are activation concatenation and a lower-dimensional sum of pairwise activation differences.The sum-of-difference model preserves odd-one-out activation structure in a d-dimensional vector.Source: §3 · p. 3, Figure 2 · p. 4
  • The architecture’s inputs and fusion choices are illustrated as concatenation of FC6 activations versus a sum-of-difference network.Figure 2 depicts one wrong sequence alongside two correct sequences from the same video.Source: Figure 2 · p. 4
  • Sampling-strategy comparisons include consecutive, random, and constrained consecutive variants, with the latter using a 1.5 × W window.Figure 3 marks the odd subsequence and the constrained sampling region.Source: Figure 3 · p. 4

4. Learning video representations with O3N

O3N learns temporal video representations by exploiting frame-order structure: correctly ordered subsequences form the related set, while a shuffled subsequence is the odd element.

4. Learning video representations with O3N

  • O3N targets video-classification features by learning temporal representations that capture structure across frame sequences.The method is motivated by the strong temporal structure inherent in videos.Source: §4 · p. 4
  • Video questions are formed by subsampling W frames from a sequence and generating elements through consecutive, random, or constrained consecutive sampling.Each strategy changes the relationship among the sampled subsequences and therefore the features learned.Source: §4 · p. 4
  • In consecutive sampling, even elements are valid consecutive clips, whereas the odd clip randomly orders frames and violates temporal order.The odd frames may come from any location in the original video.Source: §4 · p. 5
  • Random sampling preserves frame order within nonconsecutive even sequences, while the odd sequence is created by shuffling randomly sampled frames.This separates temporal-order supervision from the requirement that even frames be consecutive.Source: §4 · p. 5
  • Constrained consecutive sampling draws W-frame clips from a 1.5 × W window, making even clips overlap by more than 50%, while the odd clip remains shuffled.The even subsequences retain the original order constraints.Source: §4 · p. 5

5. Video frame encoding

The network encodes video subsequences into temporal representations before convolution, using frame-difference, dynamic-image, or stacked-difference encoders. These encoders summarize motion and sequence structure into image-like tensors or multi-channel inputs.

5. Video frame encoding

  • Video subsequences are temporally encoded before entering the network, and the architecture can use 3D convolutions, recurrent encoders, rank pooling, or frame concatenation.The experiments focus on difference-based video-clip encoders, but the odd-one-out framework is compatible with several temporal encoding methods.Source: §5 · p. 5
  • Figure 4 compares dynamic-image, summed-difference, and stacked-difference outputs for six-frame drumming clips.The figure presents the three encoder output types under the same sequence length.Source: Figure 4 · p. 5
  • Sum-of-differences computes frame differences and sums them into a single image that captures the sequence structure.The resulting tensor retains the input spatial resolution and has three RGB channels.Source: §5 · p. 5
  • Dynamic images similarly summarize a sequence into one image, after smoothing frames and applying temporally derived weights.The weights form a weighted linear combination of the original frames.Source: §5 · pp. 5–6
  • Stacked frame differences preserve multiple temporal differences as a multi-channel image rather than collapsing them into standard RGB channels.This representation is intended to capture short-clip motion and dynamics.Source: §5 · p. 6

6. Experiments

The experiments evaluate whether odd-one-out features learned from UCF101 and HMDB51 videos support action classification. The default protocol uses six-question video subsequences, Dynamic Image encoding, and a reduced fully connected layer.

6. Experiments

  • The experiments test odd-one-out learned features for action classification using UCF101 and HMDB51 video datasets.UCF101 contains 101 action categories, while HMDB51 contains 51 action classes; both include challenging visual variation.Source: §6 · p. 6
  • The study also examines sampling strategies, network design choices, and alternative video-clip encoders with odd-one-out networks.These experiments assess multiple aspects of the learning task and architecture.Source: §6 · p. 6

6.1. Default odd-one-out training for videos.

  • The default odd-one-out question contains five correctly ordered six-frame subsequences and one incorrectly ordered subsequence.Random sampling is used by default for generating the questions.Source: §6.1 · p. 6
  • Default training uses AlexNet with 128 activations in the first fully connected layer, sum-of-differences fusion, Dynamic Image encoding, and 200 epochs of stochastic-gradient optimization.Training uses batches of 64 questions on the first UCF101 split, with temporal jittering and a logarithmically varying learning rate.Source: §6.1 · p. 6

6.2. Fine tuning for action recognition.

Action-recognition fine-tuning initializes convolutional filters from odd-one-out training and aggregates predictions over six-frame subsequences. Sampling experiments compare consecutive, random, and constrained-consecutive generation against random initialization.

6.2. Fine tuning for action recognition.

  • Fine-tuning initializes convolutional filters with odd-one-out weights, then trains an AlexNet action classifier using six-frame subsequences and stronger fully connected-layer learning rates.Temporal jittering and dropout are used during supervised fine-tuning.Source: §6.2 · p. 6
  • At inference, the classifier scores all non-overlapping six-frame subsequences and predicts the video category with the maximum summed log probability.The aggregation assumes independent subsequences.Source: §6.2 · p. 6

6.3. Evaluating sampling types for O3N learning.

  • Random initialization obtains 47.0% on UCF101, while odd-one-out consecutive sampling reaches 50.6% and constrained-consecutive sampling reaches 52.4%.All three odd-one-out initialization methods outperform random initialization on supervised action classification.Source: §6.3 · p. 7, Table 1 · p. 7
  • Random sampling produces the best results for both supervised and self-supervised tasks among the evaluated sampling processes.The authors associate consecutive sampling’s difficulty with slow motions and limited generalization from small motion cues.Source: §6.3 · p. 7
  • The authors conclude that odd-one-out learning can produce features that generalize to video action classification without requiring a carefully designed sampling process.This conclusion is framed as potential generalization to other tasks and applications.Source: §6.3 · p. 7

6.4. Capacity of fully connected layers.

The experiments study fully connected-layer capacity, fusion choice, and odd-one-out question size. Smaller fully connected layers improve both reported downstream and self-supervised results, while six-element questions provide the best average supervised performance.

6.4. Capacity of fully connected layers.

  • The authors argue that sum-of-difference fusion may push analogical reasoning into convolutional filters despite slightly lower performance on the odd-one-out task.This interpretation links the fusion choice to the quality of learned representations rather than only auxiliary-task accuracy.Source: §6.4 · p. 7
  • Reducing fully connected activations from 4096 to 128 improves self-supervised performance from 25.7% to 29.6% and supervised action classification from 51.3% to 53.2%.The comparison uses sum-of-difference fusion, and the authors note that reduced capacity may partly limit overfitting.Source: §6.4 · p. 7, Table 2 · p. 7
  • Feature concatenation performs better than sum-of-difference fusion on the self-supervised task, but sum-of-difference fusion performs better on supervised action classification.The reported self-supervised values are 33.6% for concatenation and 29.6% for sum-of-difference fusion.Source: §6.4 · p. 7, Table 2 · p. 7

6.5. How big the O3N questions should be?

  • Increasing question size makes the self-supervised classification task harder and lowers its accuracy, while supervised performance improves up to six elements.Supervised performance saturates and then decreases for question sizes of eight and ten elements.Source: §6.5 · pp. 7–8, Table 3 · p. 8
  • Two-element questions yield 49.3% supervised accuracy, whereas the best average supervised results occur with six-element questions.The authors suggest that very easy or very difficult questions may teach the network less.Source: §6.5 · p. 8

6.6. Video-clip encoding methods.

The evaluation compares three temporal video-clip encoders for O3N learning on UCF101 and HMDB51. O3N improves initialization across encoder types, with stacking frame differences performing best among the tested encoders.

  • The same improvement trend appears on HMDB51, while Dynamic Image performs 1.1% worse than sum-of-difference after O3N learning.Source: §6.6 · p. 8
  • O3N improves random-initialization results by 10.9%, 6.2%, and 9.8% across the three video-clip encoders.The improvement is reported for sum-of-difference, Dynamic Image, and stacked-difference encoders, respectively.Source: §6.6 · p. 8
  • Stacking frame differences achieves the best results for both random and O3N initialization.Source: §6.6 · p. 8
  • With ImageNet initialization, UCF101 accuracies are 64.9%, 67.2%, and 70.1% for sum-of-difference, Dynamic Image, and stacked-difference encoders.Source: §6.6 · p. 8

6.7. Visualizing the learned network filters

The paper visualizes filters learned by three temporal encoders and compares O3N features with prior self-supervised methods. The stacked-difference encoder learns visibly different filters, while O3N reports substantial benchmark gains over the strongest cited self-supervised baseline.

6.7. Visualizing the learned network filters

  • The stacked-difference encoder learns a totally different filter set from the sum-of-difference and Dynamic Image encoders.The visualization averages filter depths into RGB channels and uses six-frame clips with six elements per question.Source: §6.7 · p. 8, Figure 5 · p. 9
  • Sum-of-difference and Dynamic Image encoders learn somewhat similar first-layer filters.Source: §6.7 · p. 8, Figure 5 · p. 9

6.8. Comparing with state-of-the-art.

  • O3N exceeds the second-best cited self-supervised method by almost 10% on UCF101 and by 12.7% on HMDB51.The comparison uses split 1 of both datasets and includes DrLim, TempCoh, Obj. Patch, and Seq.Ver.Source: §6.8 · p. 8, Table 5 · p. 9
  • The cited supervised state of the art reaches about 94.2% on UCF101 using optical flow, improved trajectories, RGB data, and massive supervised pretraining.The paper positions O3N as a promising self-supervised direction rather than matching this multimodal supervised result.Source: §6.8 · p. 9

7. Conclusion

The conclusion presents O3N as a self-supervised approach for learning video features without category annotations. It reports strong action-classification performance and consistent gains across temporal encoders.

  • O3N obtains about 60% on UCF101 without external pretrained networks or optical-flow features.Source: §7 · p. 9
  • O3N outperforms previous self-supervised action-classification results on HMDB51 by more than 12%.Source: §7 · p. 9
  • O3N produces consistent improvements across three different temporal video encoders.Source: §7 · p. 9
Loading 1611.06646v4…