Abstract
Temporal Action Localization (TAL) in untrimmed video is important for many applications. But it is very expensive to annotate the segment-level ground truth (action class and temporal boundary). This raises the interest of addressing TAL with weak supervision, namely only video-level annotations are available during training. However, the state-of-the-art weakly-supervised TAL methods only focus on generating good Class Activation Sequence (CAS) over time but conduct simple thresholding on CAS to localize actions. In this paper, we first develop a novel weakly-supervised TAL framework called AutoLoc to directly predict the temporal boundary of each action instance. We propose a novel Outer-Inner-Contrastive (OIC) loss to automatically discover the needed segment-level supervision for training such a boundary predictor. Our method achieves dramatically improved performance: under the IoU threshold 0.5, our method improves mAP on THUMOS’14 from 13.7% to 21.2% and mAP on ActivityNet from 7.4% to 27.3%. It is also very encouraging to see that our weakly-supervised method achieves comparable results with some fully-supervised methods.
Introduction
Temporal Action Localization (TAL) involves identifying both the category and the precise start and end times of actions within long, untrimmed videos. While fully supervised methods have achieved high accuracy, they rely on labor-intensive, frame-by-frame annotations. Weakly-supervised TAL aims to mitigate this by training models using only video-level labels (e.g., "this video contains diving") rather than precise timestamps.
Traditional weakly-supervised approaches typically generate a Class Activation Sequence (CAS)—a temporal heatmap of action probabilities—and apply simple thresholding to estimate boundaries. However, thresholding is often imprecise and sensitive to noise. AutoLoc addresses these shortcomings by directly predicting temporal boundaries through a learnable framework guided by a novel contrastive loss.
Methodology
AutoLoc introduces a two-branch architecture designed to move beyond non-parametric thresholding toward direct boundary regression.
Architecture
The framework processes video snippets through a feature extractor and feeds the resulting feature maps into two parallel branches:
- Classification Branch: This branch generates the CAS, identifying the likelihood of specific action classes across the video's timeline.
- Localization Branch: This branch predicts the center location and duration of action "anchors." These anchors are then transformed into predicted "inner" boundaries.
Outer-Inner-Contrastive (OIC) Loss
The core innovation of AutoLoc is the Outer-Inner-Contrastive (OIC) loss. Since ground-truth timestamps are unavailable, the model requires a signal to refine its boundary predictions. The OIC loss is based on the intuition that a well-localized action segment should exhibit high activation internally and low activation in its immediate temporal surroundings.
As shown in the architecture diagram below, the loss is calculated by comparing the average activation within the predicted segment (Inner Area) to the average activation in a slightly expanded region (Outer Area). By minimizing avg(outer) - avg(inner), the model is incentivized to "tighten" the predicted boundaries around the peak activity. Crucially, this loss function is differentiable, allowing for end-to-end training via backpropagation.
Experimental Results
AutoLoc was evaluated on two major benchmarks: THUMOS’14 (20 action classes) and ActivityNet v1.2 (100 activity classes). The results demonstrate a significant performance leap over previous weakly-supervised state-of-the-art (SOTA) methods:
- THUMOS’14: At an IoU threshold of 0.5, the mean Average Precision (mAP) increased from 13.7% to 21.2%, representing a 54.7% relative improvement.
- ActivityNet v1.2: The mAP at IoU 0.5 rose from 7.4% to 27.3%, a nearly four-fold increase.
Notably, AutoLoc's performance is competitive with some older fully-supervised methods, such as S-CNN, despite having no access to temporal ground truth during training.
Discussion and Conclusion
AutoLoc demonstrates that effective temporal localization can be achieved without expensive frame-level labels by leveraging the contrast between action segments and their background. The OIC loss functions similarly to classical signal processing filters (like the Laplacian of Gaussian) but within a modern, learnable deep learning context.
While highly effective, the model's performance remains tied to the quality of the initial CAS generated by the classification backbone. Future work may explore more robust backbones or adapt the OIC loss principle to other domains, such as weakly-supervised object detection in static images. By bridging the gap between weak and full supervision, AutoLoc provides a scalable path forward for large-scale video understanding.
Summary updated