Predictive coding for dynamic vision: Development of functional hierarchy in a multiple spatio-temporal scales RNN model

Minkyu Choi, Jun Tani

TL;DR

This paper introduces P-MSTRNN, a novel recurrent neural network that can both generate and recognize dynamic visual patterns using a predictive coding framework. By incorporating multiple spatio-temporal scales, the model learns a functional hierarchy that enables robust performance in tasks like human movement prediction and recognition, mimicking how the brain processes visual information.

What Problem Does This Paper Address?

The paper tackles the challenge of creating a unified model for both generating and recognizing dynamic visual sequences, specifically human movement patterns. Existing models often specialize in one task or the other. Furthermore, understanding how the brain develops a hierarchical representation of complex, dynamic visual information is a key question. This work aims to bridge this gap by proposing a model that learns a spatio-temporal hierarchy, enabling it to predict future frames and infer the underlying intention from observed sequences, all within a single, integrated framework inspired by predictive coding principles.

Methods

The core of the proposed solution is the Predictive Multiple Spatio-Temporal Scales RNN (P-MSTRNN). This model builds upon the Multiple Spatio-Temporal Scales RNN (MSTRNN) by incorporating a predictive coding framework. Key methodological aspects include:

  • Hierarchical Architecture: P-MSTRNN features a series of context layers stacked vertically, with an input/output layer at the bottom. Each layer processes information at different spatio-temporal scales.
  • Feature and Context Units: Unlike standard CNNs, each layer in P-MSTRNN comprises two types of units: feature units (FMs) for spatial processing and context units (CMs) for temporal dynamics and information processing. These units are based on leaky integrator neurons, allowing them to retain information over time.
  • Multiple Spatio-Temporal Scales: Different layers are endowed with different time constants, with lower layers having faster dynamics and higher layers having slower dynamics. This allows for the emergence of a spatio-temporal hierarchy.
  • Predictive Coding Framework: The model operates on the principle of prediction error minimization. It generates predictions of future states and uses the difference between predicted and actual inputs (prediction error) to update its internal states and connectivity weights.
  • Convolutional and Deconvolutional Components: The model integrates convolutional neural networks (CNNs) for spatial feature extraction and deconvolutional neural networks for generating visual outputs.
  • Imitative Synchronization via Error Regression: For recognition, the model employs a novel method where it tries to "imitate" past input sequences by minimizing prediction errors within a temporal window. This process allows the network to infer the underlying intention and adapt its generation accordingly.

Datasets

The paper uses a custom dataset for training and evaluation.

  • Human Movement Patterns Dataset: This dataset consists of six whole-body human movement patterns, hierarchically generated by combining predefined sub-primitives (arms and legs). The dataset includes both basic primitives and concatenated sequences of these primitives. The movement patterns were generated by multiple subjects, introducing variance in speed, shape, and height. The pixel resolution of the images is 36x36.

Key Insights and Ideas

  • Unified Generation and Recognition: The P-MSTRNN demonstrates that a single model can effectively perform both dynamic visual pattern generation and recognition, a significant step towards more brain-like processing.
  • Emergent Spatio-Temporal Hierarchy: The model learns a functional hierarchy by imposing different spatio-temporal scales on its neural units. Lower layers capture fine-grained details and fast dynamics, while higher layers represent more abstract and slower-evolving intentions.
  • Robustness through Variance: Training with data from multiple subjects, which introduces variance in movement speed and body shape, leads to more robust recognition performance. This suggests that exposure to variability is crucial for developing adaptable models.
  • Imitative Synchronization as a Recognition Mechanism: The "imitative synchronization via error regression" method provides an effective way for the network to infer intentions and recognize complex transitions in dynamic sequences, even when trained on simpler primitives.
  • Reusing Learned Primitives: The model can learn to generate complex concatenated movement patterns by reusing and combining previously learned basic primitives, showcasing an efficient learning strategy.

Key Results

  • Successful Generation: The P-MSTRNN successfully generated various human movement patterns, including basic primitives and concatenated sequences, with high fidelity.
  • Robust Recognition: The model achieved robust recognition of test movement patterns, even those with multiple transitions and performed by subjects not seen during training.
  • Quantitative Performance: In terms of average Mean Square Error (MSE) on a multi-subject dataset, P-MSTRNN with error regression achieved an MSE of 0.0391, outperforming other models like LSTM Future Predictor and ConvLSTM in entrainment schemes.
  • Impact of Training Data Variance: Training with a multi-subject dataset (resulting in higher variance) yielded a lower MSE (0.0391) compared to training with a single-subject dataset (MSE of 0.0522), highlighting the benefit of diverse training data.

Limitations and Future Work

  • Scaling: The authors suggest future work should focus on scaling the model in terms of frame size and the number and complexity of movement patterns.
  • Robotics Application: Applying the model to robotics is a promising direction, leveraging its top-down and bottom-up pathways for more natural and human-like robot actions.
  • Error Regression as Memory Retrieval: The error regression scheme is viewed as a form of memory retrieval, suggesting further exploration in this area for robots.
  • Computational Cost: While not explicitly stated as a limitation, the complexity of deep recurrent networks and the training process likely imply significant computational requirements.

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