Weakly-Supervised Action Localization by Generative Attention Modeling

Baifeng Shi, Qi Dai, Yadong Mu, Jingdong Wang

Abstract

Weakly-supervised temporal action localization (WSAL) seeks to pinpoint action boundaries in video sequences using only video-level category labels. A persistent hurdle in this field is "action-context confusion," where models struggle to distinguish between the actual action and its semantically related surroundings (e.g., an athlete preparing for a jump). This paper proposes Discriminative and Generative Attention Modeling (DGAM), a novel framework that addresses this by combining a discriminative classifier with a generative Conditional Variational Auto-Encoder (CVAE). DGAM models the distribution of frame features conditioned on attention, allowing the system to learn the visual nuances that separate foreground actions from background context. Evaluated on THUMOS14 and ActivityNet 1.2, DGAM achieves state-of-the-art results, demonstrating superior precision in boundary localization.

Introduction: The Challenge of Action-Context Confusion

In the realm of weakly-supervised learning, models typically rely on an attention mechanism to identify frames that are most informative for video-level classification. However, this often leads to action-context confusion.

Consider a video of a long jump: frames showing the athlete preparing or the sandpit after the jump are technically "context," not the action itself. Because these context frames are visually and semantically related to the "long jump" category, standard models often mistakenly label them as part of the action. They help the classifier identify the video, so the model gives them high attention. The challenge lies in teaching a model that a "sandpit" is a clue for a "long jump" but is not the "jump" itself.

Action-context confusion in a long jump video. Context frames like "Preparing" and "Finishing" are often misidentified as the action.

DGAM: Discriminative and Generative Attention Modeling

The authors decompose the localization problem into two parts using a Bayesian formulation, aiming to maximize the probability of the attention $\lambda$ given the video features $X$ and label $y$. This results in two main components:

  1. Discriminative Attention Modeling: This is a standard "bottom-up" approach that learns to assign high attention to frames that help classify the video correctly.
  2. Generative Attention Modeling: This is the core innovation. The authors use a Conditional Variational Auto-Encoder (CVAE) to model the likelihood of a frame's features given its attention value.

The intuition is that action frames and context frames, while both related to the same class, have distinct feature distributions (e.g., different motion intensities or postures). The CVAE learns to reconstruct frame features. By forcing the model to accurately predict features based on attention, it encourages the attention mechanism to separate the foreground (action) from the background (context).

Alternating Optimization

The model is trained using an alternating optimization strategy to balance the discriminative and generative tasks:

  • Stage (a): The CVAE is fixed while the attention and classification modules are updated to improve discriminative power.
  • Stage (b): The attention and classification modules are fixed while the CVAE is updated to better model the feature distributions using the current attention as a "pseudo-label."
The DGAM training framework uses an alternating optimization strategy: (a) updating the attention and classification modules while the CVAE is frozen, and (b) updating the CVAE while other modules are frozen.

Key Results and Insights

DGAM achieved significant performance gains over previous state-of-the-art (SOTA) methods on major benchmarks:

  • THUMOS14: At an Intersection over Union (IoU) threshold of 0.5, DGAM achieved 28.8% mAP, outperforming the previous best (26.8%).
  • ActivityNet 1.2: Achieved an average mAP of 24.4%, a 2% absolute improvement over the previous SOTA.
  • Precision at High IoU: DGAM performs particularly well at higher IoU thresholds (0.6, 0.7), suggesting that its predicted boundaries are much finer and more accurate than those of purely discriminative models.

By treating context as a "special background" that is semantically informative rather than just noise, and using generative modeling as a regularizer, DGAM forces the system to recognize the inherent visual differences between an action and its surroundings. While the method adds some computational complexity and relies on the quality of underlying backbone features (like I3D), it represents a major step forward in resolving the ambiguity of weakly-supervised localization.

Summary updated

BibTeX
@inproceedings{shi2020weakly,
  author = {Baifeng Shi and Qi Dai and Yadong Mu and Jingdong Wang},
  title = {{Weakly-Supervised Action Localization by Generative Attention Modeling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00109},
}
Figure