Unsupervised Video Representation Learning by Bidirectional Feature Prediction

Nadine Behrmann, Juergen Gall, Mehdi Noroozi

Abstract

Self-supervised learning (SSL) for video representation often relies on future feature prediction, where a model attempts to guess subsequent frames based on a short preceding clip. However, this approach frequently allows models to "cheat" by relying on static background cues rather than learning true temporal dynamics. We present a bidirectional feature prediction framework that jointly predicts both the past and the future from a central "present" segment. By utilizing contrastive learning and "swapped negatives" to enforce temporal consistency, our method forces the network to understand the arrow of time. Our results on UCF101 and HMDB51 demonstrate that bidirectional joint prediction significantly outperforms unidirectional baselines and other state-of-the-art self-supervised methods.

Introduction

In computer vision, the goal of self-supervised learning is to derive meaningful representations from unlabeled data. For video, a common pretext task is predicting the future. While intuitive, this task has limitations: it ignores the rich supervisory signal provided by the unobserved past and often fails to capture motion dynamics if the model can identify the action through static objects (e.g., a basketball court implies basketball, regardless of movement).

This paper addresses these issues by proposing that the past is as valuable as the future. We introduce a framework that requires a model to encode a "present" video segment and simultaneously predict the features of both the preceding "past" and the succeeding "future" segments.

Methodology

Bidirectional Framework

The core of our approach is the division of a video clip into three distinct segments: Past, Present, and Future. A neural network backbone (2D3D-ResNet18) encodes the Present segment into a feature representation $z_v$. The model is then tasked with predicting the joint features of the Past ($z_p$) and Future ($z_f$).

Conceptual overview of bidirectional feature prediction, showing the relationship between present, past, and future segments in the feature space.

Contrastive Learning and Hard Negatives

Instead of predicting raw pixels, which is computationally intensive and often results in blurry outputs, we operate in a latent feature space using the InfoNCE contrastive loss. The model learns to pull the "correct" past-future feature pair close to the present representation while pushing away incorrect pairs.

To prevent the model from taking shortcuts, we introduce swapped negatives. These are pairs where the actual past and future segments are used, but their temporal order is flipped. Because the static content remains identical, the model can only distinguish the correct pair from the swapped negative by understanding the temporal flow of the action. This "secret sauce" ensures the learned representations are deeply rooted in motion and temporal structure.

Architecture

Our implementation utilizes a 2D3D-ResNet18 backbone, which integrates 3D convolutions in the final layers to better capture spatio-temporal features. A Convolutional Gated Recurrent Unit (ConvGRU) is employed to aggregate information across the temporal dimension, facilitating the prediction of distant features.

Experimental Results

We evaluated our model on three standard benchmarks: UCF101, HMDB51, and Kinetics-400. The bidirectional approach consistently demonstrated superior performance compared to unidirectional models and previous self-supervised techniques.

Comparison of our bidirectional method against various self-supervised baselines and unidirectional prediction on UCF101 and HMDB51 datasets.

Key Findings

  • Joint Prediction Advantage: Predicting the past and future jointly is significantly more effective than predicting them as disjoint tasks. This joint requirement forces the model to learn the global relationship between temporal segments.
  • Performance Gains: On the challenging HMDB51 dataset, our model achieved 45.3% top-1 accuracy when pretrained on Kinetics-400, a 10% absolute improvement over the unidirectional "Future prediction" baseline (35.3%).
  • Ablation of Negatives: We found that treating the past simply as a negative sample (a "wrong answer") actually degrades performance. The past must be treated as a positive signal to be predicted to maximize representation quality.

Conclusion

By shifting the focus from simple future prediction to bidirectional joint prediction, we have developed a more robust framework for video SSL. The inclusion of temporal hard negatives prevents the model from relying on static shortcuts, leading to representations that better capture the essence of human action. Future work may involve extending this framework to include multi-modal data such as audio and optical flow to further enrich the learned features.

Summary updated

BibTeX
@inproceedings{behrmann2020unsupervised,
  author = {Nadine Behrmann and Juergen Gall and Mehdi Noroozi},
  title = {{Unsupervised Video Representation Learning by Bidirectional Feature Prediction}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
  doi = {10.1109/wacv48630.2021.00171},
}
Figure