Do we really need temporal convolutions in action segmentation?

Dazhao Du, Bing Su, Yu Li, Zhongang Qi, Lingyu Si +1 more
5/26/2022
cs.CV
transformer-attention

Official code: ddz16/TUT (3 stars, Python, last commit 2024-01-08).

Abstract

Action classification has made great progress, but segmenting and recognizing actions from long untrimmed videos remains a challenging problem. Most state-of-the-art methods focus on designing temporal convolution-based models, but the inflexibility of temporal convolutions and the difficulties in modeling long-term temporal dependencies restrict the potential of these models.

Show full abstract

Transformer-based models with adaptable and sequence modeling capabilities have recently been used in various tasks. However, the lack of inductive bias and the inefficiency of handling long video sequences limit the application of Transformer in action segmentation. In this paper, we design a pure Transformer-based model without temporal convolutions by incorporating temporal sampling, called Temporal U-Transformer (TUT). The U-Transformer architecture reduces complexity while introducing an inductive bias that adjacent frames are more likely to belong to the same class, but the introduction of coarse resolutions results in the misclassification of boundaries. We observe that the similarity distribution between a boundary frame and its neighboring frames depends on whether the boundary frame is the start or end of an action segment. Therefore, we further propose a boundary-aware loss based on the distribution of similarity scores between frames from attention modules to enhance the ability to recognize boundaries. Extensive experiments show the effectiveness of our model.

View on arXivView PDF

Code Implementations(1)

ddz16/TUTOfficial100%

Pytorch implementation of the TUT model from the 2023 ICME paper: Do we really need temporal convolutions in action segmentation?

31Python, Jupyter Notebook2 years ago

Similar Papers

Cite this paper

@article{du2022really,
  title  = {Do we really need temporal convolutions in action segmentation?},
  author = {Dazhao Du and Bing Su and Yu Li and Zhongang Qi and Lingyu Si and Ying Shan},
  year   = {2022},
  eprint = {2205.13425},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.13425}
}

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/2205.13425.svg)](https://codeofpaper.com/paper/2205.13425)

Discussion