Weakly-Guided Self-Supervised Pretraining for Temporal Activity Detection

Kumara Kahatapitiya, Zhou Ren, Haoxiang Li, Zhenyu Wu, Michael S. Ryoo, Gang Hua

Introduction

Temporal Activity Detection (TAD) is a complex computer vision task that requires models to identify both the category of an action and its precise start and end times within a video. Unlike standard video classification, which assigns a single label to a short, trimmed clip, TAD must handle multiple overlapping actions, varying action boundaries, and long sequences of background frames.

A significant challenge in TAD is the scarcity of data; frame-level annotations are expensive and time-consuming to produce, leading to relatively small datasets. Consequently, researchers typically pretrain models on massive classification datasets like Kinetics-400. However, this creates a "task disparity": classification models learn global cues, while detection requires fine-grained temporal understanding. This paper introduces a "weakly-guided self-supervised" pretraining strategy to bridge this gap without requiring additional manual annotations.

Comparison of standard classification pretraining vs. the proposed weakly-guided TAD pretraining.

Methodology

The core idea is to create a pretext task that mimics the structure of detection using only classification-level labels. The approach consists of two primary pillars:

1. Frame-level Pseudo Labels

To simulate the frame-level requirements of TAD, the authors take the single video-level label from a classification dataset and replicate it across every frame. While this introduces noise (as not every frame in a "diving" video contains the actual dive), it establishes a baseline for per-frame prediction during pretraining.

2. Volume Augmentations

To replicate the complexity of real-world detection scenarios, the authors introduce three novel spatio-temporal augmentation techniques:

  • Volume Freeze: A random frame is repeated for a specific duration, creating a static segment. This segment is labeled as "background" (zero), forcing the model to distinguish between active motion and static scenes.
  • Volume MixUp: Two different video clips are blended using a temporally varying "alpha mask." This creates smooth transitions between actions, training the model to handle multi-label overlaps.
  • Volume CutMix: Similar to MixUp, but using spatial windows. A window from one video moves across the frames of another, creating a transient effect where two actions occur in the same frame but in different spatial regions.
Visualization of Volume Freeze, Volume MixUp, and Volume CutMix augmentations and their corresponding labels.

Key Results and Insights

The proposed pretraining strategy consistently outperformed standard classification pretraining across multiple architectures, including X3D, SlowFast, and Coarse-Fine.

On the Charades dataset, a vanilla X3D backbone improved from 20.66% to 23.94% mAP simply by switching the pretraining strategy. Their best ensemble reached 26.95% mAP, setting a new state-of-the-art for RGB-only models. Similar gains were observed on MultiTHUMOS, where the X3D backbone improved from 37.17% to 40.88% mAP.

One of the most striking insights is that task alignment is more important than label precision. Even with noisy pseudo-labels, the structure of the pretext task—predicting labels per frame and handling transitions—is vital for downstream success. Furthermore, by using Volume Freeze to simulate background segments, the authors addressed a common weakness in classification-pretrained models: the tendency to over-predict actions during inactive periods.

Conclusion and Future Work

This work demonstrates that the gap between classification and detection can be effectively bridged through clever self-supervised pretext tasks. By simulating the temporal dynamics of detection during pretraining, models become significantly more robust for downstream TAD tasks.

Future research may look into refining pseudo-labels with "actionness" detectors to reduce noise or finding ways to jointly train all volume augmentations more efficiently, as current ensembling methods increase computational costs.

Summary updated

BibTeX
@inproceedings{kahatapitiya2023weakly,
  author = {Kumara Kahatapitiya and Zhou Ren and Haoxiang Li and Zhenyu Wu and Michael S. Ryoo and Gang Hua},
  title = {{Weakly-Guided Self-Supervised Pretraining for Temporal Activity Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25189},
}
Figure