All models

TSM

2D CNN video classifier that models time by shifting part of its channels between neighboring frames.

Video · 324 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (21 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Task
Video
Parameters
24.3M
Operations
324
Framework
PyTorch
Recurrent
No
Published
ICCV 2019
Cited by
2,138 (as of 27 October 2026)
Authors
Ji Lin, Chuang Gan, Song Han
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20856
Graph hash
bf2ec5af5ddc386645c2b7226f057d92a6288cccd1390b4b02d821c4b08645f8
Skeleton hash
e98158a12def2ea6322d242d7cb73bfcf1571b5792d60054d17e3f4e03e7cdea
Architecture hash
e44294d17fdf94775d0f531577420c43da7731582a6b061626d0693ac2cfdba2
Diagram SHA-256
c29e59f4ab2e8c8d30401d049e4ee303c9cfc06199bdffdde052ce93382196d6
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

TSM, the Temporal Shift Module, gives a 2D CNN a way to model time in video at zero computation and zero parameters. The paper sets it against two options: conventional 2D CNNs are computationally cheap but cannot capture temporal relationships, while 3D CNN methods perform well but are computationally intensive.

The module shifts part of the channels along the temporal dimension, so that neighboring frames exchange information. The released code, which is based on the TSN codebase, describes it as a plug-and-play module that enables temporal reasoning at the cost of zero parameters and zero FLOPs. The README's naive implementation shifts one fold of channels left along time and a second fold right, and does not shift the remaining channels.

The paper reports that TSM ranked first on the Something-Something leaderboard upon publication. It also extends the module to an online setting and reports latency of 13ms on Jetson Nano and 35ms on Galaxy Note8 for online video recognition. For the 8-frame Kinetics setting, the repository says its test script should give around 68.8% for TSN and 71.2% for TSM.

Key idea. TSM shifts part of the channels along the temporal dimension so that a 2D CNN models time at zero computation and zero parameters.

  • TSM
  • Temporal Shift Module
  • temporal shift
  • video understanding
  • video action recognition
  • efficient video recognition
  • Something-Something
  • Kinetics

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lin2019tsmtemporalshiftmodule,
      title={TSM: Temporal Shift Module for Efficient Video Understanding}, 
      author={Ji Lin and Chuang Gan and Song Han},
      year={2019},
      eprint={1811.08383},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1811.08383}, 
}