All models

TDN

A ResNet50 video classifier that models motion with short-term and long-term temporal difference modules.

Video · 1,056 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 (980 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.4M
Operations
1,056
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2021
Cited by
510 (as of 3 November 2026)
Authors
Limin Wang, Zhan Tong, Bin Ji, Gangshan Wu
License
Apache-2.0
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
m20761
Graph hash
29273ae4989925bbcac83f1f6597d4d889907ccce5461647a88a7c86c38018c1
Skeleton hash
89d7c0bc60cb175633c248a050740004d69d7481b28bb216978f0757ca451d4e
Architecture hash
e84017ab68713f998f961c8df05d503b86750da1eb52cd1beafa132cd3822b1c
Diagram SHA-256
760eeb7cda81b56f4c84b2a078367508fe120307fa35befe14b7d4dd07c4df79
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

TDN (Temporal Difference Network) is a video architecture for action recognition built around a temporal difference operator, the difference between frames or between features at different times. Earlier methods treated RGB difference as a separate modality with its own network, and TDN instead builds the difference into modules of one end-to-end network.

Each video is divided into segments and one frame is sampled from each, following the sparse sampling of TSN. A short-term module supplies each sampled frame with the RGB differences of the frames around it, processed at low resolution by a light-weight CNN and added to the frame features in the early stages. A long-term module in the later stages takes differences between the features of adjacent segments and uses them as an attention map to enhance the frame-level features. The paper says the ResNet version increases FLOPs over the original 2D TSN-ResNet by around 9%.

The paper implements TDN with ResNet50 and ResNet101 and samples 8 or 16 frames from each video. This model is the ResNet50 version with 8 frames and 174 output classes, the number of categories in the first version of Something-Something. For TDN-ResNet50 with 8 frames, 1 crop and 1 clip, the repository lists 52.3% top-1 accuracy on Something-Something V1.

Key idea. TDN generalizes RGB difference into temporal difference modules that capture short-term and long-term motion in videos, as an alternative to 3D convolutions.

  • TDN
  • Temporal Difference Network
  • Temporal Difference Networks
  • temporal difference module
  • TDM
  • action recognition
  • video recognition
  • Something-Something
  • Kinetics-400
  • RGB difference

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

Cite the paper

@misc{wang2021tdntemporaldifferencenetworks,
      title={TDN: Temporal Difference Networks for Efficient Action Recognition}, 
      author={Limin Wang and Zhan Tong and Bin Ji and Gangshan Wu},
      year={2021},
      eprint={2012.10071},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2012.10071}, 
}