The Blessings of Unlabeled Background in Untrimmed Videos

Yuan Liu, Jingyuan Chen, Zhenfang Chen, Bing Deng, Jianqiang Huang, Hanwang Zhang

Abstract

Weakly-supervised Temporal Action Localization (WTAL) aims to detect action segments with only video-level action labels in training. The key challenge is how to distinguish the action of interest segments from the background, which is unlabeled even on the video-level. While previous works treat the background as "curses", we consider it as "blessings". Specifically, we first use causal analysis to point out that common localization errors are due to the unobserved confounder that resides ubiquitously in visual recognition. Then, we propose a Temporal Smoothing PCA-based (TS-PCA) deconfounder, which exploits the unlabeled background to model an observed substitute for the unobserved confounder, to remove the confounding effect. Note that the proposed deconfounder is model-agnostic and non-intrusive, and hence can be applied in any WTAL method without model re-designs. Through extensive experiments on four state-of-the-art WTAL methods, we show that the deconfounder can improve all of them on the public datasets: THUMOS-14 and ActivityNet-1.3.

The Challenge of Weakly-supervised Localization

In Temporal Action Localization (TAL), the goal is to identify the start and end times of specific actions within long, untrimmed videos. Weakly-supervised TAL (WTAL) is particularly challenging because the model is trained only on video-level tags (e.g., "long jump") without frame-level annotations.

Existing WTAL models frequently struggle to distinguish foreground actions from background context, leading to three primary types of errors:

  1. Over-completeness: The model includes too much background (e.g., an athlete preparing for a jump).
  2. Incompleteness: The model misses parts of the action, catching only the most salient frames.
  3. Class Confusion: The model confuses actions occurring in similar environments (e.g., different field events).
Common localization errors in WTAL: over-completeness (top), incompleteness (middle), and class confusion (bottom).

From Curses to Blessings: A Causal Perspective

Rather than viewing the unlabeled background as noise, this research treats it as a "blessing" that can be used to model the context. The authors argue that localization errors are caused by unobserved confounders—contextual factors like a stadium background that correlate with both video features and action labels, creating biased associations.

To address this, the paper introduces a causal inference framework. By identifying these confounding paths, the model can perform a "backdoor adjustment" to intervene and decouple the action from its surrounding context.

Causal graph illustrating the relationship between input video features (X), the unobserved confounder (C), and the action label (Y), with Z serving as a substitute confounder.

The TS-PCA Deconfounder

The proposed solution is the Temporal Smoothing PCA-based (TS-PCA) deconfounder. This method leverages the fact that background frames dominate untrimmed videos. By applying Principal Component Analysis (PCA) across the dataset, the primary components effectively capture the "common denominator" or global context (the confounder).

A temporal smoothing loss is applied to ensure the extracted features maintain the natural flow of video. Crucially, this deconfounder is model-agnostic. It functions as a plug-and-play calibration step that adjusts the model's Class Activation Sequence (CAS) during inference to remove confounding bias without requiring a full model redesign or retraining.

Experimental Results

The TS-PCA deconfounder was evaluated on two major benchmarks: THUMOS-14 and ActivityNet-1.3. It consistently improved the performance of four state-of-the-art WTAL baselines (STPN, A2CL-PT, BasNet, and WUM).

  • THUMOS-14: Integrating the deconfounder with the WUM model resulted in a mean Average Precision (mAP) boost of 1.52% on average, and 1.8% at a strict IoU=0.6 threshold.
  • ActivityNet-1.3: The method achieved average mAP improvements of 1.8% for STPN and 1.2% for A2CL-PT.
  • State-of-the-Art: The combined WUM+TP model established a new state-of-the-art for weakly-supervised localization, even outperforming some older fully-supervised methods.

Conclusion

By reframing the unlabeled background as a source of contextual information rather than a nuisance, this work provides a robust, causal approach to improving action localization. The TS-PCA deconfounder offers an elegant, non-intrusive way to enhance existing models, moving the field closer to understanding the true causes of action labels in complex video data.

Summary updated

BibTeX
@inproceedings{liu2021blessings,
  author = {Yuan Liu and Jingyuan Chen and Zhenfang Chen and Bing Deng and Jianqiang Huang and Hanwang Zhang},
  title = {{The Blessings of Unlabeled Background in Untrimmed Videos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=SQNyCqi7EPw},
}
Figure