TALLFormer: Temporal Action Localization with a Long-memory Transformer

Feng Cheng, Gedas Bertasius
4/4/2022
cs.CV
transformer-attention

Official code: klauscc/TALLFormer (53 stars, Python, Apache-2.0, last commit 2023-01-03).

Abstract

Most modern approaches in temporal action localization divide this problem into two parts: (i) short-term feature extraction and (ii) long-range temporal boundary localization. Due to the high GPU memory cost caused by processing long untrimmed videos, many methods sacrifice the representational power of the short-term feature extractor by either freezing the backbone or using a small spatial video resolution.

Show full abstract

This issue becomes even worse with the recent video transformer models, many of which have quadratic memory complexity. To address these issues, we propose TALLFormer, a memory-efficient and end-to-end trainable Temporal Action Localization Transformer with Long-term memory. Our long-term memory mechanism eliminates the need for processing hundreds of redundant video frames during each training iteration, thus, significantly reducing the GPU memory consumption and training time. These efficiency savings allow us (i) to use a powerful video transformer feature extractor without freezing the backbone or reducing the spatial video resolution, while (ii) also maintaining long-range temporal boundary localization capability. With only RGB frames as input and no external action recognition classifier, TALLFormer outperforms previous state-of-the-arts by a large margin, achieving an average mAP of 59.1% on THUMOS14 and 35.6% on ActivityNet-1.3. The code is public available: https://github.com/klauscc/TALLFormer.

View on arXivView PDF

Code Implementations(1)

klauscc/TALLFormerOfficial100%
Apache-2.0
532Python, CudaApr 2, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{cheng2022tallformer,
  title  = {TALLFormer: Temporal Action Localization with a Long-memory Transformer},
  author = {Feng Cheng and Gedas Bertasius},
  year   = {2022},
  eprint = {2204.01680},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.01680}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.01680.svg)](https://codeofpaper.com/paper/2204.01680)

Discussion