GSM
2D CNN for video action recognition with Gate-Shift Modules that route features across frames.
Video · 627 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
- 10.5M
- Operations
- 627
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2020
- Cited by
- 196 (as of 28 October 2026)
- Authors
- Swathikiran Sudhakaran, Sergio Escalera, Oswald Lanz
- Source
- GitHub: swathikirans/GSM
- License
- BSD-2-Clause
- 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
- m16972
- Graph hash
- 0b4551af73b07616074b20417590f246088103708b173ffe4679451cfbe4bfe8
- Skeleton hash
- d39be76d2a4a61a0b0c2a4ca1f8d1c0419987898c4e82c0f056dd624efaf2151
- Architecture hash
- c138e3a1f1d4109e16d310d701313d946ab3496ffa20ea7a690877286aa72d5d
- Diagram SHA-256
- 490a851337347ceb914de45cd90790c86efed9abda21d9d52fd42ec36805f386
- 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
The Gate-Shift Module (GSM) is a lightweight block that turns a 2D CNN into a spatio-temporal feature extractor for video action recognition. The paper starts from the observation that deep 3D CNNs, with their large number of parameters and computations, may under-perform when sufficiently large training datasets are lacking.
GSM decomposes a convolution output with a learnable spatial gating into two tensors, a gated version and its residual. The gated features are shifted forward and backward in time by a hard-coded shift of channel groups, then added to the residual and passed to the next layer. The gate is a single spatio-temporal 3D kernel with tanh activation, so very few parameters are added. With tanh the gating values lie between -1 and +1, which lets each location learn either temporal feature averaging or temporal feature differencing.
The full network adopts TSN as the reference architecture, with BN-Inception and InceptionV3 as backbone options, and a GSM is added inside each Inception block, 10 in total. The action is predicted by average pooling the frame level scores. The 3D convolution in the gating layer is initialized with zeros, so the model starts as a standard TSN. On Something-V1, which has 174 fine-grained object manipulation actions, the paper reports a gain of 32 percentage points in accuracy over TSN with 0.48% additional parameters.
Key idea. The Gate-Shift Module adds learnable spatial gating to a 2D CNN, deciding at each location which features are shifted through time and which stay in place.
- GSM
- Gate-Shift Module
- Gate-Shift Networks
- video action recognition
- spatial gating
- temporal shift
- Something-Something-V1
- Diving48
- gate-shift network
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{sudhakaran2020gateshiftnetworksvideoaction,
title={Gate-Shift Networks for Video Action Recognition},
author={Swathikiran Sudhakaran and Sergio Escalera and Oswald Lanz},
year={2020},
eprint={1912.00381},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1912.00381},
}