Exploring Stronger Feature for Temporal Action Localization

Zhiwu Qing, Xiang Wang, Ziyuan Huang, Yutong Feng, Shiwei Zhang, Jianwen Jiang, Mingqian Tang, Changxin Gao, Nong SangarXiv 2021

Abstract

Temporal action localization (TAL) aims to identify the start and end times of actions within a video alongside their respective categories. Due to GPU memory constraints, mainstream methods typically rely on pre-extracted features. Consequently, the quality of these features sets the upper bound for detection performance. This technical report explores classic convolution-based backbones and recent transformer-based architectures. We find that while transformer-based methods excel in classification, they often fail to generate accurate action proposals. Furthermore, increasing frame resolution to preserve spatial information significantly enhances TAL performance. Our optimized pipeline, utilizing a single SlowFast feature with a BMN+TCANet combination, achieved 42.42% mAP on the validation set—surpassing the 2020 multi-model ensemble winner. Ultimately, our approach secured 1st place in the CVPR 2021 HACS supervised Temporal Action Localization Challenge.

Introduction

Temporal Action Localization (TAL) is a critical task in video understanding, requiring models to pinpoint the temporal boundaries of human actions in untrimmed videos. The standard paradigm involves a two-stage process: feature extraction followed by localization. The first stage is often a bottleneck; if the extracted features lack sufficient temporal or spatial detail, the subsequent localization stage cannot recover that lost information. This study investigates the effectiveness of various backbones, specifically comparing established Convolutional Neural Networks (CNNs) with emerging Vision Transformers (ViTs), to determine which provides the most robust features for TAL.

Methodology

The proposed framework evaluates four major backbones: CNN-based models (SlowFast and CSN) and Transformer-based models (ViViT and TimeSformer). The pipeline, illustrated in Figure 1, consists of three primary components:

  1. Feature Extraction: Backbones are pre-trained on Kinetics and fine-tuned on the HACS dataset.
  2. Proposal Generation: The Boundary Matching Network (BMN) identifies candidate segments, which are then refined by the Temporal Context Aggregation Network (TCANet).
  3. Classification and Fusion: Video-level classification scores are fused with refined temporal proposals to produce the final localized actions.
Overview of the Temporal Action Localization pipeline, featuring both convolution-based and transformer-based backbones.

A significant technical improvement involved optimizing input resolution. By transitioning from standard $224 \times 224$ square crops to $256 \times 320$ rectangular crops for CNNs, the authors preserved more spatial context at the frame edges, which proved vital for accurate boundary detection.

Key Insights

The Classification-Localization Gap

A primary finding of this research is that high classification accuracy does not necessarily translate to high localization performance. For instance, while the ViViT transformer achieved the highest clip-level classification accuracy (91.92%), it was less effective than the CSN model at generating precise temporal proposals. This suggests that classification models may rely on static background cues, whereas localization requires sensitivity to the dynamic onset and offset of actions.

Spatial Resolution and Context

Spatial information is crucial for TAL. Using rectangular crops that better match the native aspect ratio of video frames reduces information loss. This adjustment consistently boosted performance across CNN-based models, highlighting the importance of maintaining spatial integrity during feature extraction.

Results

The proposed methods were evaluated on the HACS (Human Action Clips and Segments) dataset. The team's single-model SlowFast feature achieved a remarkable 42.42% mAP on the validation set. By ensembling features from CSN, SlowFast, and ViViT (the "C+S+V" ensemble), the performance reached 44.83% mAP on the validation set and 44.29% on the test set, securing the top rank in the CVPR 2021 HACS Challenge.

Comparison of different features and methods on the HACS dataset, showing the superior performance of the ensemble approach.

Conclusion

This work demonstrates that feature quality is paramount in Temporal Action Localization. While Transformers are powerful classifiers, CNNs currently offer superior temporal proposal generation. Future work should focus on making Transformer architectures more flexible regarding input resolutions and improving their ability to capture the fine-grained temporal boundaries necessary for state-of-the-art localization.

Summary updated

BibTeX
@misc{qing2021exploring,
  author = {Zhiwu Qing and Xiang Wang and Ziyuan Huang and Yutong Feng and Shiwei Zhang and Jianwen Jiang and Mingqian Tang and Changxin Gao and Nong Sang},
  title = {{Exploring Stronger Feature for Temporal Action Localization}},
  year = {2021},
  eprint = {2106.13014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.13014},
}
Figure