LPAT: Learning to Predict Adaptive Threshold for Weakly-supervised Temporal Action Localization

Xudong Lin, Zheng Shou, Shih-Fu Chang

Abstract

Recently, Weakly-supervised Temporal Action Localization (WTAL) has been densely studied but there is still a large gap between weakly-supervised models and fully-supervised models. It is practical and intuitive to annotate temporal boundaries of a few examples and utilize them to help WTAL models better detect actions. However, the train-test discrepancy of action localization strategy prevents WTAL models from leveraging semi-supervision for further improvement. In this paper, we propose a Train-Test Consistent framework, TTC-Loc. In both training and testing time, our TTC-Loc localizes actions by comparing scores of action classes and predicted threshold, which enables it to be trained with semi-supervision. By fixing the train-test discrepancy, our TTC-Loc significantly outperforms the state-of-the-art performance on THUMOS'14, ActivityNet 1.2 and 1.3 when only video-level labels are provided for training. With full annotations of only one video per class and video-level labels for the other videos, our TTC-Loc further boosts the performance and achieves 33.4% mAP (IoU threshold 0.5) on THUMOS's 14.

Introduction

Temporal Action Localization (TAL) aims to identify the temporal boundaries and categories of actions in untrimmed videos. While fully-supervised methods achieve high performance, they require labor-intensive frame-level annotations. Weakly-supervised Temporal Action Localization (WTAL), which uses only video-level labels, has emerged as a cost-effective alternative. However, a significant performance gap remains between weakly and fully supervised models.

A primary reason for this gap is the train-test discrepancy in action localization strategies. During training, conventional WTAL models typically use attention mechanisms or Multiple Instance Learning (MIL) to aggregate snippet-level predictions for video-level classification. Conversely, at test time, these models often rely on manually-set, fixed thresholds to extract action segments from score sequences. This inconsistency prevents models from effectively utilizing temporal boundary annotations, even when a small amount of semi-supervision is available.

Comparison between conventional WTAL models (a) showing discrepancy and the proposed TTC-Loc framework (b) showing consistency.

The TTC-Loc Framework

To address this discrepancy, the proposed TTC-Loc (Train-Test Consistent Localization) framework employs the same localization mechanism during both training and inference: comparing action class scores against a predicted, adaptive threshold. This allows the model to "localize" during training, making it compatible with direct supervision from temporal boundaries.

Methodology and Architecture

The TTC-Loc architecture moves beyond fixed thresholds by learning to predict a dynamic "noise floor" for every video snippet. The process involves:

  1. The (C+1) Classifier: Instead of predicting only $C$ action classes, the model predicts $C+1$ scores per snippet. The additional $(C+1)$-th score serves as a per-snippet predicted threshold $b^{(i)}$, acting as a dynamic background reference.
  2. Soft-Localization Gate: To maintain differentiability for end-to-end training via backpropagation, the framework uses a "soft" gate. For each snippet, the predicted threshold is subtracted from the action scores, and the result is passed through a Sigmoid function to produce soft-localized segments $g^{(i)}$.
  3. Training Objectives: The model is optimized using a three-pronged loss function: a Video-level Classification Loss ($L_{clas}$), a Threshold Regularization Loss ($L_{reg}$) to ensure a large margin between actions and background, and a Localization Loss ($L_{loc}$) for semi-supervised samples.
The detailed architecture of the TTC-Loc framework, illustrating the flow from input video to soft-localized segments and training objectives.

Experimental Results

TTC-Loc was evaluated on standard benchmarks including THUMOS’14 and ActivityNet (1.2 & 1.3).

In the purely weakly-supervised setting, TTC-Loc significantly outperforms state-of-the-art (SOTA) methods. On THUMOS’14, it achieves 23.2% mAP at an IoU threshold of 0.5, surpassing previous leaders like AutoLoc and CleanNet.

The framework's consistency is particularly powerful in semi-supervised settings. By providing full annotations for just one video per class, the performance on THUMOS’14 jumps to 32.0% mAP. With three annotated videos per class, it reaches 34.3% mAP, which is competitive with several fully-supervised methods despite using far less annotation effort.

Conclusion

TTC-Loc resolves the long-standing train-test discrepancy in WTAL by introducing a learned, adaptive thresholding mechanism consistent across both phases. This architectural alignment not only improves baseline weakly-supervised performance but also unlocks the potential of semi-supervision, allowing models to benefit greatly from a minimal amount of high-quality temporal annotations.

Summary updated

BibTeX
@misc{lin2019lpat,
  author = {Xudong Lin and Zheng Shou and Shih-Fu Chang},
  title = {{LPAT: Learning to Predict Adaptive Threshold for Weakly-supervised Temporal Action Localization}},
  year = {2019},
  eprint = {1910.11285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.11285},
}
Figure