Weakly-supervised Temporal Action Localization by Uncertainty Modeling

Pilhyeon Lee, Jinglu Wang, Yan Lu, Hyeran Byun

Temporal Action Localization (TAL) is a critical task in computer vision, requiring models to identify both the category and the precise temporal boundaries of actions within untrimmed videos. While fully-supervised methods have reached high levels of performance, they rely on expensive, frame-level manual annotations. Weakly-supervised Temporal Action Localization (WTAL) offers a more scalable alternative by using only video-level labels. However, WTAL faces a significant hurdle: accurately distinguishing between action segments and the diverse, often misleading, background.

The Challenge of Background Modeling

In WTAL, the background is notoriously difficult to model. Unlike specific action classes like "Soccer Penalty" or "Golf Swing," the background has no shared semantic meaning. It is often:

  1. Dynamic: Background frames may contain movement—such as fans cheering or trees swaying—that can be easily mistaken for action by a naive classifier.
  2. Inconsistent: Backgrounds vary wildly, ranging from static text screens to complex outdoor scenes.
Dynamic and inconsistent background frames in soccer and golf videos illustrate the difficulty of defining a single 'background' class.

Previous approaches often attempted to treat the background as a separate, $(K+1)$-th class. However, because the background is so heterogeneous, it is nearly impossible to learn a representative weight vector for it. This paper proposes a paradigm shift: treating the background not as a class, but as out-of-distribution (OOD) noise.

Uncertainty Modeling via Feature Magnitude

The core of the proposed framework is the use of uncertainty modeling to separate action from noise. The researchers observed a key empirical property: action frames generally exhibit significantly larger feature magnitudes (L2 norms) than background frames when processed through standard feature extractors like I3D.

Density plot showing the distribution of feature magnitudes for action frames versus background frames, providing the basis for uncertainty modeling.

By leveraging this magnitude as a proxy for "action-ness," the model can estimate the probability that a frame belongs to the "in-distribution" action set. This allows the system to identify potential action segments without needing explicit frame-level labels during training.

The Learning Framework

The model utilizes a Multiple Instance Learning (MIL) strategy combined with two novel loss functions:

  • Uncertainty Modeling Loss ($L_{um}$): This loss encourages the model to widen the gap between the feature magnitudes of predicted action segments and background segments. By forcing action frames toward higher magnitudes and background frames toward lower ones, the model creates a clear discriminative boundary.
  • Background Entropy Loss ($L_{be}$): To prevent the model from accidentally assigning a background frame to a specific action class, this loss maximizes the entropy of the predicted class probabilities for background segments. Essentially, it tells the model that if a frame is background, its prediction should be uniformly distributed (uncertain) across all known action classes.

Performance and Results

The proposed method was evaluated on the THUMOS’14 and ActivityNet benchmarks, where it established new state-of-the-art results for weakly-supervised localization. On THUMOS’14, the model achieved a mean Average Precision (mAP) of 41.9%, a substantial improvement over previous leading methods like BaS-Net (35.3%).

Beyond numerical gains, qualitative results show that the uncertainty-based approach produces much cleaner localization. While older models often suffered from "over-segmentation"—breaking a single continuous action into several small detections—this method maintains temporal consistency by effectively filtering out the background noise that previously caused those fragments.

Conclusion

By reframing the background problem as an out-of-distribution detection task, this work provides a robust solution to one of the most persistent challenges in WTAL. The use of feature magnitude as a proxy for uncertainty is both simple and effective, demonstrating that clever architectural shifts can often outperform increasingly complex class-based modeling.

Summary updated

BibTeX
@inproceedings{lee2021weakly,
  author = {Pilhyeon Lee and Jinglu Wang and Yan Lu and Hyeran Byun},
  title = {{Weakly-supervised Temporal Action Localization by Uncertainty Modeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16280},
}
Figure