TAU
A video prediction model that replaces recurrent units with a parallel temporal attention module.
Video · 324 operations Checked
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
- 44.7M
- Operations
- 324
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2023
- Cited by
- 232 (as of 28 October 2026)
- Authors
- Cheng Tan, Zhangyang Gao, Lirong Wu and others
- Source
- GitHub: chengtan9907/OpenSTL
- 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20738
- Graph hash
- ada19bfd7835330d4c85bace452aca4d79e7ac0243f35d3838edec5e2455a862
- Skeleton hash
- 046872f90aa11b26c6c3498289326fe4a015b7c889b2e03ae34e5a1bb6c0ca22
- Architecture hash
- ca23b69514d2e22a1fb69b13b7b626da637ede2f61d1c2269ab61c61e93d8103
- Diagram SHA-256
- 95137b9c6bcf2aa98664e78a7ec19b9f870f075d95e736137a7cff672fd5eabe
- 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
TAU (Temporal Attention Unit) is a model for spatiotemporal predictive learning, the task of generating future video frames from past ones. The paper observes that mainstream methods rely on recurrent units to capture long-term temporal dependencies and are computationally inefficient because those architectures cannot be parallelized. TAU replaces the recurrent unit with an attention module that runs in parallel, splitting temporal attention into a statical part within each frame and a dynamical part across frames.
The layout is kept simple: a spatial encoder of four 2D convolutional layers, a stack of TAU modules, and a spatial decoder of four 2D transposed convolutional layers. Inside the temporal module the frames are arranged in order along the channel dimension. The dynamical attention learns channel weights in a squeeze-and-excitation manner, and the final attention is the product of the dynamical and statical attention.
Training adds a differential divergence regularization to the mean squared error loss so that variations between frames are taken into account. The paper evaluates on Moving MNIST and TaxiBJ, tests generalization by training on KITTI and evaluating on Caltech Pedestrian, and uses KTH for predictions of flexible length.
Key idea. The paper proposes the Temporal Attention Unit, a parallelizable replacement for recurrent units that decomposes temporal attention into intra-frame statical attention and inter-frame dynamical attention.
- tau
- temporal attention unit
- spatiotemporal predictive learning
- video prediction
- future frame prediction
- openstl
- moving mnist
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tan2023temporalattentionunitefficient,
title={Temporal Attention Unit: Towards Efficient Spatiotemporal Predictive Learning},
author={Cheng Tan and Zhangyang Gao and Lirong Wu and Yongjie Xu and Jun Xia and Siyuan Li and Stan Z. Li},
year={2023},
eprint={2206.12126},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2206.12126},
}