Weakly-Supervised Temporal Action Localization Through Local-Global Background Modeling

Xiang Wang, Zhiwu Qing, Ziyuan Huang, Yutong Feng, Shiwei Zhang, Jianwen Jiang, Mingqian Tang, Yuanjie Shao, Nong SangarXiv 2021 · arXiv

Abstract

Weakly-Supervised Temporal Action Localization (WS-TAL) is a critical task in video understanding that involves identifying the start and end times of actions using only video-level labels. The primary obstacle in WS-TAL is foreground-background confusion, where models struggle to differentiate between the action and its environmental context. This paper introduces LGBM-Net, a framework that integrates local convolutional operations with global LSTM-based modeling. By employing a dual-branch architecture with an attention mechanism, the model effectively suppresses background noise. Our ensemble approach achieved a winning 22.45% mAP on the 2021 HACS Challenge test set.

Introduction

Temporal Action Localization (TAL) requires precise identification of action intervals in untrimmed videos. While fully supervised methods achieve high accuracy, the cost of frame-level annotation is prohibitive. Weakly-Supervised TAL (WS-TAL) offers a more scalable alternative by learning from video-level tags. However, without frame-specific guidance, models often over-fit to background cues—such as a swimming pool in a diving video—leading to poor localization.

Methodology

The proposed Local-Global Background Modeling Network (LGBM-Net) builds upon the BaSNet architecture to address background confusion through a three-stage process.

Feature Extraction

The framework utilizes a diverse set of pre-trained video models to extract high-level features:

  • CSN & Slowfast: Capture fine-grained motion and spatial details.
  • TDN (Temporal Difference Network): Focuses on frame-to-frame variations.
  • ViViT (Video Vision Transformer): Models long-range temporal dependencies.

LGBM-Net Architecture

The core of the system consists of two parallel branches sharing weights:

  1. Local-Global Sub-net: Generates Class Activation Sequences (CAS) by combining Convolutions for local patterns and LSTMs for global video context.
  2. Local-Global Attention Module: Acts as a foreground filter, producing weights to suppress background regions.
LGBM-Net architecture featuring the two-branch structure for foreground-background separation.

Two-Branch Training Strategy

During training, the upper branch processes the full feature set, while the lower branch is constrained by an "Attention Loss" to focus exclusively on foreground actions. This contrastive learning setup forces the network to explicitly model and "subtract" the background.

Experiments and Results

The model was evaluated on the HACS (Human Action Clips and Segments) dataset, a large-scale benchmark for action localization.

Performance Analysis

The researchers compared various backbones and found that CNN-based features generally outperformed Transformer-based features in this weakly-supervised setting. Specifically, the CSN backbone achieved the highest individual validation score of 20.2% mAP.

Comparison of mAP scores across different feature backbones and IoU thresholds.

As shown in the results table, LGBM-Net consistently improves upon the BaSNet baseline across all feature types. The final ensemble of these models reached 23.0% mAP on the validation set and 22.45% mAP on the official HACS test set, securing a top position in the challenge.

Conclusion

LGBM-Net demonstrates that combining local and global modeling with explicit background suppression is highly effective for WS-TAL. While the ensemble strategy significantly boosts performance, a gap remains compared to fully supervised methods. Future work will focus on refining the integration of Transformer architectures and exploring more sophisticated local-global operations to further bridge this performance gap.

Summary updated

Abstract

Weakly-Supervised Temporal Action Localization (WS-TAL) task aims to recognize and localize temporal starts and ends of action instances in an untrimmed video with only video-level label supervision. Due to lack of negative samples of background category, it is difficult for the network to separate foreground and background, resulting in poor detection performance. In this report, we present our 2021 HACS Challenge - Weakly-supervised Learning Track solution that based on BaSNet to address above problem. Specifically, we first adopt pre-trained CSN, Slowfast, TDN, and ViViT as feature extractors to get feature sequences. Then our proposed Local-Global Background Modeling Network (LGBM-Net) is trained to localize instances by using only video-level labels based on Multi-Instance Learning (MIL). Finally, we ensemble multiple models to get the final detection results and reach 22.45% mAP on the test set
BibTeX
@misc{wang2021weakly,
  author = {Xiang Wang and Zhiwu Qing and Ziyuan Huang and Yutong Feng and Shiwei Zhang and Jianwen Jiang and Mingqian Tang and Yuanjie Shao and Nong Sang},
  title = {{Weakly-Supervised Temporal Action Localization Through Local-Global Background Modeling}},
  year = {2021},
  eprint = {2106.11811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.11811},
}
Figure