Predictive Coding for Dynamic Vision : Development of Functional Hierarchy in a Multiple Spatio-Temporal Scales RNN Model

Minkyu Choi, Jun Tani

Abstract

The current paper presents a novel recurrent neural network model, the predictive multiple spatio-temporal scales RNN (P-MSTRNN), which can generate as well as recognize dynamic visual patterns in the predictive coding framework. The model is characterized by multiple spatio-temporal scales imposed on neural unit dynamics through which an adequate spatio-temporal hierarchy develops via learning from exemplars. The model was evaluated by conducting an experiment of learning a set of whole body human movement patterns which was generated by following a hierarchically defined movement syntax. The analysis of the trained model clarifies what types of spatio-temporal hierarchy develop in dynamic neural activity as well as how robust generation and recognition of movement patterns can be achieved by using the error minimization principle.

Introduction

In biological vision, the brain is not a passive receiver of sensory information. Instead, it functions as a proactive inference engine, constantly generating top-down predictions about incoming stimuli. This "predictive coding" framework posits that perception is the result of minimizing the error between these internal predictions and actual sensory inputs. While modern AI has made strides in either generating video or recognizing actions, few architectures successfully integrate both processes within a unified, hierarchically organized framework.

A significant challenge in modeling dynamic vision is the integration of temporal hierarchy. Human actions consist of fast-changing primitives (e.g., a hand wave) nested within slower-unfolding intentions (e.g., greeting someone). This paper introduces the Predictive Multiple Spatio-Temporal scales RNN (P-MSTRNN) to address this by learning functional hierarchies directly from raw pixel data.

The P-MSTRNN Architecture

The P-MSTRNN architecture integrates two key components: the Multiple Timescales RNN (MTRNN) and deconvolutional neural networks. The MTRNN employs "leaky integrator" neurons with varying time constants (tau). Lower layers are assigned small time constants to capture fast, detailed dynamics, while higher layers have large time constants, allowing them to represent stable, abstract features over longer durations.

The P-MSTRNN architecture integrates spatial and temporal hierarchies, with higher layers operating at larger time scales to represent abstract context.

Spatially, the model utilizes a deconvolutional structure. This allows the network to map high-level latent states down to pixel-level predictions, effectively reversing the standard convolutional process used in image recognition.

Recognition through Error Regression

A core innovation of this work is the use of error regression for action recognition. Unlike standard "entrainment" methods where a model is simply fed the next frame, the P-MSTRNN treats recognition as an optimization problem.

Action recognition via error regression: the model iteratively updates its internal states to minimize prediction error within a sliding 'past window'.

When presented with an input video, the model examines a "past window" of frames. It iteratively adjusts its internal "intention" states in the higher layers to minimize the discrepancy between its generated output and the observed frames. Once synchronized, the model can accurately predict future frames by projecting its internal state forward in time.

Experimental Evaluation and Results

The model was tested on a dataset of human movement patterns governed by a hierarchical syntax. Primitives (specific arm and leg movements) were combined into complex sequences. To test robustness, the dataset included multiple subjects, introducing ~15% variance in physical attributes and movement speed. The videos were processed at a resolution of 36x36 pixels.

Emergent Hierarchy

Analysis of the trained model revealed that a functional hierarchy emerged spontaneously. Higher layers converged to "fixed points" or slow trajectories representing the overall action category. In contrast, lower layers exhibited rhythmic, cyclic patterns corresponding to the physical movement of limbs.

Performance Benchmarks

The P-MSTRNN's error regression scheme significantly outperformed standard generative models in recognition tasks.

Model Type Model Name MSE (Lower is Better)
Error Regression P-MSTRNN 0.0391
Entrainment ConvLSTM 0.0454
Entrainment LSTM Future Predictor 0.0490
Entrainment P-MSTRNN 0.0608

The results demonstrate that the active minimization of prediction error is a more robust mechanism for action recognition than passive entrainment. Furthermore, training on multi-subject data (high variance) actually improved the model's generalization, suggesting that "noise" helps the network learn more flexible internal representations.

Discussion and Conclusion

The P-MSTRNN demonstrates that a unified architecture can effectively bridge the gap between action generation and recognition. By imposing spatio-temporal constraints, the model self-organizes a hierarchy that mirrors the structure of human movement.

Future work will focus on scaling the model to higher-resolution video and more complex, stochastic behaviors. Additionally, the authors envision integrating this predictive framework into robotic control systems, allowing machines to perceive and act using the same underlying hierarchical logic.

Summary updated

BibTeX
@inproceedings{choi2017predictive,
  author = {Minkyu Choi and Jun Tani},
  title = {{Predictive Coding for Dynamic Vision : Development of Functional Hierarchy in a Multiple Spatio-Temporal Scales RNN Model}},
  booktitle = {IJCNN},
  year = {2017},
  url = {https://openreview.net/forum?id=_4C9n9iVyl},
}
Figure