Abstract
We describe a latent approach that learns to detect actions in long sequences given training videos with only whole-video class labels. Our approach makes use of two innovations to attention-modeling in weakly-supervised learning. First, and most notably, our framework uses an attention model to extract both foreground and background frames whose appearance is explicitly modeled. Most prior works ignore the background, but we show that modeling it allows our system to learn a richer notion of actions and their temporal extents. Second, we combine bottom-up, class-agnostic attention modules with top-down, class-specific activation maps, using the latter as form of self-supervision for the former. Doing so allows our model to learn a more accurate model of attention without explicit temporal supervision. These modifications lead to 10% AP@IoU=0.5 improvement over existing systems on THUMOS14. Our proposed weakly-supervised system outperforms recent state-of-the-arts by at least 4.3% AP@IoU=0.5. Finally, we demonstrate that weakly-supervised learning can be used to aggressively scale-up learning to in-the-wild, uncurated Instagram videos. The addition of these videos significantly improves localization performance of our weakly-supervised model.
The Challenge of Weakly-Supervised Localization
Temporal action localization—identifying exactly when an action starts and ends in a video—is a cornerstone of video understanding. However, training these models typically requires expensive, frame-by-frame human annotations. Weakly-supervised action localization (WSAL) attempts to solve this using only video-level labels (e.g., knowing a video contains "Golf" without knowing exactly when).
The challenge in WSAL is that most models only focus on finding the most "discriminative" frames—the ones that look most like the action. This often leads to two problems:
- Over-localization: The model might only pick the "peak" of an action (like the moment a ball is hit) rather than the whole sequence.
- Background Confusion: Without an explicit definition of what "background" looks like, the model may struggle to find the precise boundaries where an action begins or ends.
Proposed Methodology
The authors propose three key innovations to the standard attention-based WSAL pipeline, centered around the idea that the background should be treated as a formal class rather than ignored.
- Explicit Background Modeling: Unlike prior works that ignore non-action frames, this model uses an attention variable ($\lambda_t$) to pool frames into two distinct representations: a foreground feature ($x_{fg}$) and a background feature ($x_{bg}$). It then forces the network to classify $x_{bg}$ as the "background" class, providing a strong negative signal that sharpens the model's understanding of action boundaries.
- Self-Guided Attention: The model uses two types of attention. "Bottom-up" attention looks for generic saliency, while "top-down" attention uses Class Activation Maps (T-CAMs) to see which frames the classifier finds important. A Self-guided Loss forces these two views to agree, effectively using the classifier's own knowledge to refine its temporal focus.
- Foreground-Background Clustering: A bottom-up loss ensures that the features extracted for foreground actions and background scenes are as distinct as possible in the feature space, even without looking at the class labels.
Experimental Results and Scaling
The model was evaluated on standard benchmarks including THUMOS14 (20 action classes) and ActivityNet 1.3 (200 action classes). Additionally, the authors curated a supplemental dataset of ~900 short clips from Instagram (e.g., #baseballpitch) to demonstrate how uncurated social media data can be used to "scale up" learning and re-balance skewed datasets.
Key Results
- Performance Leap: On THUMOS14, the proposed method achieved a 10% improvement in Mean Average Precision (mAP) at IoU=0.5 compared to the previous baseline (STPN).
- State-of-the-Art: The system outperformed other recent weakly-supervised methods by at least 4.3%.
- Competitive with Full Supervision: In low-overlap regimes (IoU=0.1), the weakly-supervised model actually performs comparably to some older fully-supervised systems.
- Qualitative Success: Visualization shows the model is much better at "splitting" consecutive actions (like two tennis serves in a row) that previous models would have lumped into one giant detection.
Insights and Future Directions
A primary takeaway is that background is a class, too. Even in a weakly-supervised setting, treating the "not-action" parts of a video as a formal class improves the discriminative power of the foreground model. Furthermore, the success with Instagram micro-videos suggests that we don't always need perfectly curated datasets; the high "action-to-background" ratio in social media clips makes them excellent supplemental training material.
However, limitations remain. While the model excels at finding actions, it still struggles to match the precise boundaries of fully-supervised models at high IoU thresholds (e.g., IoU=0.7+). It also occasionally fails on complex, multi-phase actions like "Clean and Jerk," where a person stands still between phases; the model tends to see the middle pause as "background" and splits the single action into two separate detections.
Summary updated