All models

MotionRNN

A video prediction RNN that inserts a MotionGRU unit between the stacked layers of PredRNN.

Video · 5,828 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

This diagram has 5,828 operations (667 KB) and is drawn when you ask.

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
7.2M
Operations
5,828
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2021
Cited by
220 (as of 27 October 2026)
Authors
Haixu Wu, Zhiyu Yao, Jianmin Wang, Mingsheng Long
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
m18550
Graph hash
4a9bb5c58855cd31f918d91d6fd2141369909e4475a7b8fa7c4c0be99202e01e
Skeleton hash
1c7f068dc012a1fa5b90e7484ec5696d8b72ed0fd38f004d489f100efafca9a3
Architecture hash
56d63268ac1568d3ee32f7f303eda8499e701ad513fbd51f262b86a97fe03061
Diagram SHA-256
466182e730f5606ad4ab7295bc7b811df3a18693ef3ab3b67b2564cf44b4244e
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

MotionRNN is a recurrent framework for video prediction aimed at spacetime-varying motions, meaning motions that keep changing across both space and time. The paper argues that earlier methods mainly capture temporal state transitions and overlook the variations of the motion itself.

Its starting observation is that physical motion can be decomposed into transient variation and motion trend, the trend being the accumulation of previous motions. The MotionGRU unit models both in a unified way. According to the repository, the model tries to learn the motion direction and distance for each patch.

MotionGRU sits between the stacked layers of a recurrent predictive model as an operator, without changing the original state transition flow. It can be embedded into earlier models such as ConvLSTM or PredRNN with the help of a Motion Highway, which trades off moving and unchanged parts. The paper states that this architecture avoids motion vanishing in stacked multiple-layer predictive models. The repository's training script pairs MotionRNN with PredRNN on the Human dataset.

Key idea. MotionRNN adds a MotionGRU unit and a Motion Highway to RNN-based predictive models so that they capture both the transient variation and the trend of motion.

  • motionrnn
  • motiongru
  • motion highway
  • video prediction
  • spacetime-varying motions
  • spatiotemporal prediction
  • predictive rnn
  • future frame prediction

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

Cite the paper

@misc{wu2021motionrnnflexiblemodelvideo,
      title={MotionRNN: A Flexible Model for Video Prediction with Spacetime-Varying Motions}, 
      author={Haixu Wu and Zhiyu Yao and Jianmin Wang and Mingsheng Long},
      year={2021},
      eprint={2103.02243},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2103.02243}, 
}