Introduction
Contrastive learning has delivered impressive results for self-supervised video representation. However, existing approaches typically force a choice: optimize for global representations (ideal for tasks like video classification) or local representations (ideal for fine-grained tasks like object detection or sound localization).
This paper introduces a novel contrastive learning framework that bridges this gap. By factorizing video representations into global and local spatio-temporal subspaces using audio-visual correspondence, the authors jointly optimize for both high-level semantics and fine-grained details. The result is a single pretrained model that achieves state-of-the-art performance across a remarkably diverse set of tasks, from action recognition to lip reading and deepfake detection.
The Problem with Task-Specific Pretraining
In real-world applications, downstream tasks are rarely known in advance. Models trained to capture global context fail miserably on tasks requiring fine-grained spatio-temporal details, such as spotting deepfake artifacts or lip reading. Conversely, formulating a contrastive objective for local representations is notoriously difficult due to the "one-to-many" nature of audio-visual data—multiple pixels can contribute to a single sound, and audio is sampled much faster than video frames.
The authors tackle this limitation by building a truly general-purpose video representation that excels at both global and local tasks without needing task-specific pretraining.
Methods: Space-Time Factorization
The core innovation of this work is space-time factorization. The authors split the joint spatio-temporal feature space into two complementary subspaces, each governed by its own contrastive objective:
- Spatially-Local / Temporally-Global Subspace: Designed to capture slowly changing spatial details (e.g., identifying what object is making a sound). It processes video at a low frame rate. To handle the misalignment between audio and specific visual regions, the model uses a Multiple Instance Learning (MIL) framework, treating each spatial grid cell as an instance and contrasting it against the audio.
- Spatially-Global / Temporally-Local Subspace: Designed to capture fast-changing temporal details (e.g., lip movements). It processes video at a high frame rate.
Audio-Visual Spatial Attention: Instead of blindly pooling the high-frame-rate visual features, the model uses the representations learned in the first subspace to generate an attention map. This map highlights regions with high audio-visual correlation (like a talking mouth or a playing guitar). The model then uses this attention map to pool features, ensuring the temporally-local objective focuses only on the parts of the video actually making sound. Both objectives are optimized jointly, using the natural synchronization of audio and video as the only supervisory signal.
Key Insights and Ideas
- Global and Local Features are Synergistic: One might expect a trade-off between global and local performance, but the authors found the opposite. Jointly optimizing both contrastive objectives holistically improves representations in both subspaces. Learning local details actually boosts global classification accuracy.
- Vanilla Contrastive Learning Fails at the Details: Standard global contrastive models (like MoCo) perform poorly on lip reading and deepfake detection. This proves that global-only pretraining is insufficient for general-purpose video understanding.
- Goodbye Bounding Boxes: The learned audio-visual spatial attention maps are incredibly accurate at localizing sounding regions. They are so effective that they can completely replace off-the-shelf face or lip detectors in downstream tasks like lip reading, achieving comparable or better results without relying on supervised bounding box pipelines.
Key Results
The single pretrained model (trained on a custom K-AV-240K dataset combining Kinetics-400 and AVSpeech) achieved state-of-the-art (SOTA) results across the board:
- Deepfake Detection: Crushed previous self-supervised SOTA on the DFDC dataset, jumping from an 85.3 AUC to a 96.7 AUC.
- Lip Reading: Outperformed SOTA supervised methods, achieving a 4.7% Word Error Rate (WER) reduction on LRS2 and a 5.1% accuracy improvement on LRW.
- Action/Sound Classification: Set new SOTA benchmarks on UCF101 (91.1%), HMDB51 (61.9%), and ESC50 (80.1%).
- Event Localization: Reached 82.1% accuracy in fully-supervised settings and 79.8% in weakly-supervised settings on the AVE dataset, beating prior SOTA.
Limitations and Future Work
While highly effective, the framework does have limitations. Because the spatial attention mechanism relies heavily on audio-visual correspondence, it cannot be used for downstream tasks involving completely silent videos.
Furthermore, the current model uses spatial attention to find where sounds originate, but the authors note that adding temporal attention is a crucial next step. For example, certain frames contain obvious deepfake artifacts, and specific audio slices map to distinct phonemes. Finally, the authors acknowledge the inherent risk of learning biases from pretraining data, urging caution when deploying sensitive applications like deepfake detection in the real world.
Summary updated