Introduction
Spatiotemporal prediction—forecasting future states in a sequence of images or data grids—is a cornerstone of modern computer vision, with applications in meteorology, traffic management, and robotics. While Recurrent Neural Networks (RNNs) like LSTMs are the standard tool for these tasks, they often struggle with non-stationarity. This refers to complex variations where local pixel values, shapes, and intensities evolve unpredictably over time, violating the stationary assumptions inherent in many simpler models.
Researchers from Tsinghua University identified that in state-of-the-art models like PredRNN, approximately 80% of "forget gates" become saturated (stuck at 0 or 1). This saturation limits the network's ability to learn complex temporal changes, often leading to blurry predictions that merely extrapolate linear trends.
The Memory In Memory (MIM) Architecture
The proposed Memory In Memory (MIM) network introduces a nested recurrent structure designed to replace the standard temporal forget gate in a Spatiotemporal LSTM (ST-LSTM). The architecture is built on two key principles:
- Differencing Strategy: Inspired by classical ARIMA (Autoregressive Integrated Moving Average) models, MIM uses a differencing operation ($H_t - H_{t-1}$) to "stationarize" the input. By focusing on the change between states, the network can more easily model higher-order dynamics.
- Nested Modules: The MIM block contains two internal modules:
- MIM-N (Non-stationary Module): This module takes the differenced hidden states to specifically capture rapidly changing, non-stationary components.
- MIM-S (Stationary Module): This module processes the output of MIM-N to handle more stable, approximately stationary features.
This hierarchical approach allows the network to decompose complex spatiotemporal signals into more manageable components, facilitating the learning of "the change in the change."
Experimental Results
The MIM model was rigorously evaluated across four diverse datasets: Moving MNIST, TaxiBJ (traffic flow), Radar Echo (precipitation), and Human3.6M (articulated motion).
MIM achieved state-of-the-art performance across all benchmarks. On the Moving MNIST dataset, it reached a Mean Squared Error (MSE) of 44.2, a significant improvement over Causal LSTM (46.5) and PredRNN (56.8). In precipitation forecasting, MIM demonstrated a 16% improvement in image sharpness compared to PredRNN.
Qualitative results on the Human3.6M dataset showed that MIM is uniquely capable of predicting complex articulated movements, such as walking, without losing limb definition or blurring the subject into the background.
Conclusion
The Memory In Memory network represents a significant advancement in spatiotemporal prediction by integrating classical statistical insights into a modern deep learning framework. By explicitly modeling non-stationarity through nested memory modules and differencing, MIM overcomes the limitations of standard recurrent gates. While the architecture is more computationally demanding, its ability to produce sharp, accurate long-term predictions makes it a powerful tool for complex real-world forecasting tasks. Future research may explore combining MIM with structural priors, such as Graph Neural Networks, to further enhance its predictive capabilities for articulated objects.
Summary updated