Multi-modal Self-Supervision from Generalized Data Transformations

Mandela Patrick, Yuki M. Asano, Полина Кузнецова, Ruth Fong, João F. Henriques, Geoffrey Zweig, Andrea Vedaldi

Abstract

In the image domain, excellent representation can be learned by inducing invariance to content-preserving transformations, such as image distortions. In this paper, we show that, for videos, the answer is more complex, and that better results can be obtained by accounting for the interplay between invariance, distinctiveness, multiple modalities and time. We introduce Generalized Data Transformations (GDTs) as a way to capture this interplay. GDTs reduce most previous self-supervised approaches to a choice of data transformations, even when this was not the case in the original formulations. They also allow to choose whether the representation should be invariant or distinctive w.r.t. each effect and tell which combinations are valid, thus allowing us to explore the space of combinations systematically. We show in this manner that being invariant to certain transformations and distinctive to others is critical to learning effective video representations, improving the state-of-the-art by a large margin, and even surpassing supervised pretraining. We demonstrate results on a variety of downstream video and audio classification and retrieval tasks, on datasets such as HMDB-51, UCF-101, DCASE2014, ESC-50 and VGG-Sound. In particular, we achieve new state-of-the-art accuracies of 72.8% on HMDB-51 and 95.2% on UCF-101.

Introduction

Self-supervised learning (SSL) has achieved remarkable success in computer vision by training models to be invariant to various image augmentations. However, video data presents unique challenges due to its temporal dimension and multi-modal (audio-visual) nature. Previous attempts at video SSL have often relied on ad-hoc "pretext tasks"—such as predicting playback direction or audio-video synchronization—without a unified theoretical framework. This research introduces Generalized Data Transformations (GDTs) to unify these disparate approaches and systematically explore the roles of invariance and distinctiveness in learning robust video representations.

The GDT Framework

The core contribution of this work is the GDT framework, which treats the entire data preparation pipeline as a sequence of transformations. This includes selecting a video source, a specific time clip, a modality (audio or visual), and applying standard augmentations.

Overview of the GDT framework: (A) Hierarchical transformations, (B) Learning Hypotheses via the contrast matrix, and (C) Cross-modal NCE learning.

GDT introduces a contrast matrix $c(T, T')$ that explicitly defines whether two transformed versions of the data should be "attracted" (encouraging similar embeddings) or "repelled" (encouraging distinct embeddings). This allows the model to learn not just what to ignore (invariance), but also what to distinguish (distinctiveness). For instance, while a model should be invariant to lighting changes, it should remain distinctive to temporal cues like time-reversal to understand the sequence of events. The framework utilizes a hierarchical sampling scheme and a pairwise-weighted Noise Contrastive Estimation (NCE) loss to train effectively.

Experimental Results and Insights

The authors evaluated GDT across a wide range of benchmarks, including UCF-101, HMDB-51 for video, and ESC-50, DCASE2014 for audio. Pre-training was conducted on large-scale datasets like Kinetics-400 and the massive IG65M.

Invariance vs. Distinctiveness

A key finding is that universal invariance is not the optimal goal for video. As shown in the ablation studies, forcing a model to be invariant to temporal shifts or time-reversal can actually degrade performance. Instead, treating these transformations as distinctive signals (variance) significantly improves representation quality.

Ablation study comparing SimCLR (visual only) with various GDT configurations (audio-visual). 'v' denotes distinctiveness, while '.' denotes invariance.

The Power of Multi-modality

The results consistently show that cross-modal learning—matching audio to its corresponding video—is far more effective than learning from a single modality. GDT-trained models surpassed previous state-of-the-art methods in video retrieval by massive margins (often over 35% absolute improvement in Recall@1) and achieved new record accuracies of 95.2% on UCF-101 and 72.8% on HMDB-51. Remarkably, GDT pre-training often outperformed standard supervised pre-training on the same datasets, suggesting that the self-supervised task of understanding temporal and multi-modal consistency is a richer learning signal than simple category labeling.

Conclusion and Future Directions

GDT provides a powerful, unified framework for multi-modal self-supervised learning. By systematically balancing invariance and distinctiveness, it achieves state-of-the-art performance across diverse tasks. Future work includes exploring automated methods like Bayesian optimization to navigate the vast space of transformation combinations and extending the framework to include text modalities via automatic speech recognition or captions.

Summary updated

BibTeX
@misc{patrick2021multi,
  author = {Mandela Patrick and Yuki M. Asano and Полина Кузнецова and Ruth Fong and João F. Henriques and Geoffrey Zweig and Andrea Vedaldi},
  title = {{Multi-modal Self-Supervision from Generalized Data Transformations}},
  year = {2021},
}
Figure