TSM: Temporal Shift Module for Efficient and Scalable Video Understanding on Edge Device

Ji Lin, Chuang Gan, Kuan Wang, Song Han
9/27/2021
cs.CVcs.ARcs.LG

Official code: mit-han-lab/temporal-shift-module (2,228 stars, MIT, last commit 2024-07-11).

Abstract

The explosive growth in video streaming requires video understanding at high accuracy and low computation cost. Conventional 2D CNNs are computationally cheap but cannot capture temporal relationships; 3D CNN-based methods can achieve good performance but are computationally intensive. In this paper, we propose a generic and effective Temporal Shift Module (TSM) that enjoys both high efficiency and high performance. The key idea of TSM is to shift part of the channels along the temporal dimension, thus facilitate information exchanged among neighboring frames. It can be inserted into 2D CNNs to achieve temporal modeling at zero computation and zero parameters. TSM offers several unique advantages. Firstly, TSM has high performance; it ranks the first on the Something-Something leaderboard upon submission. Secondly, TSM has high efficiency; it achieves a high frame rate of 74fps and 29fps for online video recognition on Jetson Nano and Galaxy Note8. Thirdly, TSM has higher scalability compared to 3D networks, enabling large-scale Kinetics training on 1,536 GPUs in 15 minutes. Lastly, TSM enables action concepts learning, which 2D networks cannot model; we visualize the category attention map and find that spatial-temporal action detector emerges during the training of classification tasks. The code is publicly available at https://github.com/mit-han-lab/temporal-shift-module.

View on arXivView PDF

Code Implementations(1)

MIT

[ICCV 2019] TSM: Temporal Shift Module for Efficient Video Understanding

2,228422C++, ShellMar 27, 20192 years agoMIT
accelerationefficient-modellow-latencynvidia-jetson-nanotemporal-modeling+2 more

Similar Papers

Cite this paper

@article{lin2021tsm,
  title  = {TSM: Temporal Shift Module for Efficient and Scalable Video Understanding on Edge Device},
  author = {Ji Lin and Chuang Gan and Kuan Wang and Song Han},
  year   = {2021},
  eprint = {2109.13227},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.13227}
}

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

Discussion