Weakly-Supervised Video Re-Localization with Multiscale Attention Model

Yung-Han Huang, Kuang-Jui Hsu, Shyh-Kang Jeng, Yen-Yu Lin

Abstract

Video re-localization is the task of identifying a specific action segment within a long, untrimmed video based on a short query clip. Traditional approaches require dense, frame-by-frame annotations for training, which are costly and difficult to scale. This paper introduces a weakly-supervised framework that leverages video-level labels. The core of the approach is a multiscale attention mechanism designed to capture actions of varying durations and a "co-attention" loss that discriminates between target actions and background context. Experimental results on ActivityNet demonstrate that the proposed model achieves state-of-the-art performance in both weakly-supervised and fully-supervised settings.

Introduction: The Challenge of Video Re-Localization

Action recognition has traditionally focused on pre-trimmed clips. However, real-world video is typically untrimmed and contains significant background noise. While temporal action detection can locate actions, it is often limited to a fixed set of categories. Video re-localization offers a more flexible "query-by-example" alternative: finding a segment in a reference video that matches a provided query clip.

The video re-localization task: matching a short query clip to a segment within a long reference video.

The primary bottleneck for this task is the requirement for frame-level annotations during training. This paper addresses this by enabling training with only video-level labels—knowing an action exists somewhere in the reference video without knowing its exact boundaries.

Methodology

The proposed architecture consists of three primary stages: feature extraction, attention-based context modeling, and localization prediction.

The proposed model architecture featuring a C3D feature extractor, multiscale and self-attention modules, and an LSTM-based localization predictor.

1. Feature Extractor

The model utilizes a pre-trained C3D network to extract spatiotemporal features from both the query and reference videos, converting raw frames into high-dimensional vector representations.

2. Attention Modules

The core innovation lies in the attention mechanism:

  • Multiscale Attention: Actions vary significantly in duration. To account for this, the model employs multiple attention "heads" with different temporal receptive fields, achieved through varying 1D convolution kernel sizes and dilation rates.
  • Self-Attention: This module processes the reference video to understand its internal context, helping the model distinguish the "foreground" action of interest from the "background" environment.

3. Localization Predictor

The attended features are fed into a sequence of Bidirectional LSTMs and standard LSTMs. These layers process the temporal dependencies to predict the probability of each frame in the reference video belonging to the target action.

Co-Attention Loss

To facilitate training without precise timestamps, the authors adapt a "co-attention loss." This loss function encourages the model to maximize the similarity between the query and the predicted target segment while simultaneously minimizing the similarity between that segment and the surrounding background. This "push-pull" dynamic allows the model to learn discriminative boundaries from weak supervision.

Experimental Evaluation

The model was evaluated using a large-scale dataset derived from ActivityNet, comprising 9,400 untrimmed videos across 160 training classes and 20 unseen testing classes. Performance was measured using mean Average Precision (mAP) across various temporal Intersection-over-Union (IoU) thresholds.

Key Results

  • Superior Weak Supervision: The model achieved an average mAP of 20.7%, significantly outperforming the frame-level baseline (9.9%).
  • State-of-the-Art Full Supervision: When trained with full frame-level labels, the model reached 28.2% mAP, surpassing the previous state-of-the-art (CGBM at 25.7%).
  • Generalization: The model generalizes effectively to unseen action categories, as it learns to compare similarities rather than memorizing specific class labels.

Conclusion and Future Work

This work demonstrates that multiscale temporal modeling and discriminative co-attention loss are highly effective for video re-localization under weak supervision. While the model currently relies on simple thresholding for boundary detection in the weakly-supervised mode, future work could involve more sophisticated boundary prediction or self-supervised feature learning to further bridge the gap with fully-supervised systems.

Summary updated

BibTeX
@inproceedings{huang2020weakly,
  author = {Yung-Han Huang and Kuang-Jui Hsu and Shyh-Kang Jeng and Yen-Yu Lin},
  title = {{Weakly-Supervised Video Re-Localization with Multiscale Attention Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6763},
}
Figure