NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ModeRNN: Harnessing Spatiotemporal Mode Collapse in Unsupervised Predictive Learning

Zhiyu Yao, Yunbo Wang, Haixu Wu, Jianmin Wang, Mingsheng Long

TL;DR

ModeRNN introduces a novel recurrent architecture designed to solve "spatiotemporal mode collapse"—a phenomenon where predictive models fail to capture diverse visual dynamics in mixed datasets. By using modular "spatiotemporal slots" and adaptive fusion, the model learns to decouple complex physical processes, leading to state-of-the-art performance in video prediction and weather forecasting.

What Problem Does This Paper Address?

Predictive learning aims to forecast future frames in a video sequence without human labels. However, real-world data is messy; it often contains "mixed modes" of dynamics. For instance, a dataset might include both objects that bounce off each other and objects that pass through each other.

The authors identify a critical failure in existing models: spatiotemporal mode collapse. When a standard RNN encounters highly varied dynamics, it often overfits to a single dominant mode (e.g., assuming objects never collide) or produces a blurry "average" of all possible outcomes. This happens because standard hidden states are too entangled to represent distinct physical rules simultaneously.

Figure 1: Illustration of spatiotemporal mode collapse and our approach.

Methods

The authors propose ModeRNN, built around a basic unit called the ModeCell. The core innovation is providing a strong inductive bias to discover the compositional structure of these latent modes.

The ModeCell operates in three distinct stages:

  1. State Interaction & Slot Binding: The model maintains a "slot bus"—a long-term memory state initialized from a learnable Gaussian distribution. It uses a multi-head attention mechanism to interact the current input with this bus, effectively "binding" different components of the visual scene to specific spatiotemporal slots.
  2. Adaptive Slot Fusion: Since a single sequence might contain multiple patterns, the model learns importance weights to adaptively aggregate these slot features. This allows the model to represent a specific mode as a unique combination of shared underlying factors.
  3. Slot Bus Transition: Finally, the aggregated representation updates the slot bus using an LSTM-style gated mechanism to generate the next hidden state.
Figure 2: The internal architecture of ModeCell, which is the basic unit in the proposed ModeRNN.

Datasets

The model was evaluated on three benchmarks representing different types of mixed dynamics:

  • Mixed Moving MNIST: A synthetic dataset containing sequences with 1, 2, or 3 flying digits, creating varying frequencies of occlusions.
  • KTH Action: A real-world dataset of human actions (walking, jogging, clapping, etc.) involving both global torso movements and local limb movements.
  • Radar Echo: A challenging precipitation forecasting dataset from Guangzhou, China, where dynamics vary significantly based on seasonal climate modes (e.g., typhoons vs. drizzles).

Key Insights and Ideas

  • Mode Collapse isn't just for GANs: While well-known in Generative Adversarial Networks, the authors prove that mode collapse is a significant hurdle for deterministic predictive models, leading to "twisted" or vanishing objects in predictions.
  • Slots as Latent Factors: Borrowing the "slot" concept from static object-centric learning, the authors apply it to dynamics. Instead of one slot representing one object, slots here represent subspaces of spatiotemporal features that can be composed to describe complex behaviors.
  • Inductive Bias Matters: By forcing the model to decouple features into independent slots before fusing them, ModeRNN prevents the hidden state from becoming a "mush" of conflicting physical priors.

Key Results

ModeRNN achieved state-of-the-art results across all tested datasets, often with fewer parameters than competing models like PredRNN or RIM.

  • Mixed Moving MNIST: ModeRNN achieved an MSE of 44.7, significantly lower than ConvLSTM (78.7) and the modular RIM (57.5). Qualitatively, it was the only model that didn't "lose" digits or accidentally transform one digit into another (e.g., a "5" turning into a "6") during long-term prediction.
  • KTH Action: It outperformed the probabilistic SVG model in both PSNR (28.22 vs 27.73) and LPIPS (0.183 vs 0.196), showing it can predict precise human positioning more effectively.
  • Radar Echo: In precipitation forecasting, ModeRNN achieved a Critical Success Index (CSI) of 0.428, outperforming the specialized TrajGRU (0.357).
Qualitative comparison on Moving MNIST showing how other models "collapse" or twist digits.

Limitations and Future Work

While ModeRNN shows strong performance, the authors note that the number of slots ($N$) is a hyperparameter that needs tuning. Their ablation studies found $N=4$ to be optimal for their tests, but more complex real-world scenes might require a more dynamic or hierarchical way to determine slot counts. Additionally, while the model handles "mixed modes" well, it still assumes each sequence corresponds to a relatively stable compositional structure, which might not hold in extremely long, non-stationary video streams.

Summary updated

BibTeX
@article{yao2021modernn,
  author = {Zhiyu Yao and Yunbo Wang and Haixu Wu and Jianmin Wang and Mingsheng Long},
  title = {{ModeRNN: Harnessing Spatiotemporal Mode Collapse in Unsupervised Predictive Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2023.3293145},
}
Figure