Temporal Action Proposal Generation with Transformers

Lining Wang, Haosen Yang, Wenhao Wu, Hongxun Yao, Hujie HuangarXiv 2021

Abstract

Temporal Action Proposal Generation (TAPG) is a critical task in video understanding, aiming to identify temporal segments containing human actions in untrimmed videos. Traditional methods often struggle with long-range dependencies or produce imprecise boundaries. We present the TAPG Transformer, a novel framework that replaces conventional convolutional layers with a dual-Transformer architecture. By employing a Boundary Transformer for precise start/end detection and a Proposal Transformer to model inter-proposal relationships, the system achieves state-of-the-art performance on major benchmarks while significantly reducing computational redundancy through a Fibonacci-based sparse sampling mechanism.

Introduction

In the domain of video analysis, Temporal Action Proposal Generation (TAPG) serves as the temporal counterpart to object detection in images. The objective is to extract "proposals"—specific time intervals in a long, untrimmed video that likely contain an action, such as "diving" or "playing violin."

Historically, research has been divided into two primary approaches:

  1. Anchor-based methods: These utilize pre-defined windows. While effective at estimating confidence, they often produce rigid, imprecise boundaries.
  2. Boundary-based methods: These predict start and end probabilities for every frame. Although flexible, they are susceptible to local noise and often fail to capture the global context of an action, leading to unreliable confidence scores.

The fundamental challenge lies in the long-range dependencies inherent in video actions. For instance, the beginning of a "high jump" is contextually linked to the landing several seconds later. Standard Convolutional Neural Networks (CNNs), constrained by local receptive fields, frequently miss these global relationships.

Methodology

The TAPG Transformer treats video frames and action proposals as sequences, leveraging the self-attention mechanism to capture global context across the entire video duration.

High-level overview of the TAPG Transformer pipeline, illustrating the flow from feature extraction to final proposal matching.

Dual-Transformer Architecture

The framework consists of two specialized modules:

  • Boundary Transformer: This module processes the entire sequence of video features. By using self-attention, it captures long-term dependencies to output a probability sequence for "start" and "end" points. This global view allows the model to distinguish between momentary pauses and the actual termination of an action.
  • Proposal Transformer: This module models how different proposals relate to one another. By understanding the context of surrounding proposals, it can more accurately regress a confidence score for each candidate segment.

Sparse Sampling and Fuzzy Matching

To address the computational expense of evaluating every possible start/end combination, the authors introduce a Sparse Sampling Mechanism. This utilizes a Fibonacci sequence to determine sliding window sizes, creating a diverse yet manageable set of candidate proposals. Finally, a Fuzzy Matching process aligns high-probability boundaries with high-confidence proposals to generate the final results.

Detailed architecture of the Boundary and Proposal Transformers, highlighting the Encoder-Decoder structure and the Sparse Sampling mechanism.

Experiments and Results

Datasets

The model was evaluated on two industry-standard benchmarks:

  • ActivityNet-1.3: A large-scale dataset with 20,000 videos across 200 categories, characterized by long videos and diverse actions.
  • THUMOS14: A challenging dataset with action instances of highly variable frequency and duration, requiring high precision in localization.

Key Results

The TAPG Transformer established new performance benchmarks:

  • THUMOS14: Achieved an Average Recall (AR@100) of 53.5%, significantly outperforming BMN (47.7%) and the previous state-of-the-art, RTD-Net (49.0%). Detection accuracy ([email protected]) reached 50.8%.
  • ActivityNet-1.3: Reached an AUC of 68.3%, matching or exceeding top-tier models like BSN++.

Qualitative analysis demonstrates the model's robustness against "noisy" backgrounds. In complex sequences like diving, the model maintains a logical, continuous event identification even when the camera cuts to the audience or an empty platform.

Conclusion

The TAPG Transformer demonstrates that self-attention is inherently better suited for temporal proposal generation than 1D convolutions due to its unlimited receptive field. By modeling inter-proposal relationships and utilizing efficient sparse sampling, the framework achieves superior accuracy and efficiency. Future work may explore end-to-end training with the feature extractor and the use of pure attention on raw high-dimensional features as hardware constraints diminish.

Summary updated

BibTeX
@misc{wang2021temporal,
  author = {Lining Wang and Haosen Yang and Wenhao Wu and Hongxun Yao and Hujie Huang},
  title = {{Temporal Action Proposal Generation with Transformers}},
  year = {2021},
  eprint = {2105.12043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.12043},
}
Figure