An Empirical Study of End-to-End Temporal Action Detection

Xiaolong Liu, Song Bai, Xiang Bai · DOI

Abstract

Temporal action detection (TAD) aims to simultaneously predict the semantic label and the temporal interval of every action instance in an untrimmed video. Rather than end-to-end learning, most existing methods adopt a head-only learning paradigm, where the video encoder is pre-trained for action classification, and only the detection head upon the encoder is optimized for TAD. This paper presents a systematic empirical study of end-to-end TAD, validating its advantages and exploring efficiency-accuracy trade-offs. We build a mid-resolution baseline detector that achieves state-of-the-art performance while running significantly faster than existing methods.

Introduction

Temporal Action Detection (TAD) is a critical task in video understanding, requiring the identification of both action labels and precise temporal boundaries in long, untrimmed videos. Traditionally, researchers have relied on a "head-only" paradigm. In this approach, a video encoder (e.g., I3D, TSM) is pre-trained on a large-scale classification dataset like Kinetics and then frozen. A detection head is subsequently trained on the extracted features.

Comparison of (a) head-only learning, where features are extracted offline, and (b) end-to-end learning, where gradients flow back to the video encoder.

However, frozen features are often sub-optimal for boundary localization as they are tuned for clip-level classification. End-to-end (E2E) training, where the encoder and head are optimized jointly, offers a solution but is computationally demanding. This study rigorously evaluates the E2E paradigm to quantify its benefits and address the associated efficiency challenges.

Methodology and Design Choices

To explore the E2E design space, the authors evaluated several components:

  • Video Encoders: Comparison of 2D (TSN), temporal shift (TSM), 3D (I3D), and dual-pathway (SlowFast) architectures.
  • Detection Heads: Evaluation of graph-based (G-TAD), anchor-free (AFSD), and transformer-based (TadTR) heads.
  • Mid-Resolution Strategy: To manage GPU memory during E2E training, a default resolution of 96×96 was adopted, significantly reducing the pixel count compared to the standard 224×224.
  • Joint Optimization: Gradients are propagated through the detection head back into the video encoder, allowing for the learning of task-specific temporal features.

Key Insights

The empirical study yielded several critical findings:

  1. E2E Superiority: Even at lower resolutions, E2E models consistently outperform high-resolution head-only models. On the THUMOS14 dataset, E2E training provided an average mAP improvement of up to 11%.
  2. Importance of Augmentation: E2E training is prone to overfitting. Strong image augmentations (cropping, flipping, photometric distortion) are essential to realize performance gains.
  3. Encoder Efficiency: Improving the video encoder architecture (e.g., moving from TSM to SlowFast) is more effective for boosting performance than simply increasing input resolution.
  4. Motion Modeling: Encoders with explicit motion modeling (TSM, SlowFast) are vital for capturing the temporal cues necessary for accurate boundary detection.

Key Results

By combining a SlowFast ResNet-50 encoder with a TadTR head, the authors established a new state-of-the-art for E2E TAD.

Comparison of the proposed E2E method against existing state-of-the-art methods on THUMOS14 and ActivityNet benchmarks.

As shown in the table above, the proposed baseline achieves 54.2 mAP on THUMOS14 and 35.10 mAP on ActivityNet. Notably, it is highly efficient, running at 5076 FPS on a single GPU—over 4× faster than the previous E2E leader (AFSD) and significantly faster than feature-based methods when accounting for extraction time.

Conclusion

This study demonstrates that end-to-end learning is a powerful paradigm for Temporal Action Detection, offering substantial accuracy gains over traditional head-only methods. By optimizing the trade-off between resolution and encoder complexity, the authors developed a baseline that is both more accurate and significantly faster. Future work will focus on overcoming memory constraints to enable even higher-resolution E2E training and exploring better synergy with large-scale pre-training.

Code and models are available at: https://github.com/xlliu7/E2E-TAD

Summary updated

BibTeX
@misc{liu2022empirical,
  author = {Xiaolong Liu and Song Bai and Xiang Bai},
  title = {{An Empirical Study of End-to-End Temporal Action Detection}},
  year = {2022},
  eprint = {2204.02932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.02932},
}
Figure