Deep Predictive Coding Networks

Rakesh Chalasani, Jose C. PrincipeICLR 2013 · OpenReview

Introduction

Deep Predictive Coding Networks (DPCN) introduce a hierarchical generative model that replaces static, "fixed" priors with dynamic, context-sensitive ones. By using top-down feedback to modulate lower-layer representations, the model learns invariant features from video and demonstrates remarkable robustness to structured noise where standard feed-forward models fail.

In traditional deep learning, we often impose "priors" on data representations—rules dictating that a representation should be sparse or that it should change slowly over time. However, these priors are usually fixed and fail to adapt to the actual context of the scene.

In biological vision, the brain doesn't just process images from the bottom up; it uses "predictive coding," where higher-level areas send predictions down to lower-level areas. For example, if you see a tail and four legs, your "top-down" prior for "dog" increases, helping you resolve the rest of the image. This paper seeks to bring that active, context-aware adaptation to artificial neural networks, specifically for processing time-varying signals like video.

Methods and Architecture

The authors propose a hierarchical state-space model where each layer acts as a Deep Predictive Coding Network.

Hierarchical architecture showing causes and states
  1. Linear Dynamical System (LDS) with Sparsity: At its core, the model treats feature extraction as a dynamical system. It tracks "states" ($x_t$) that evolve over time via a transition matrix. Crucially, it enforces sparsity on both the states and the innovations (changes) in those states.
  2. The "Causes" and "States" Distinction:
    • States ($x_t$): Low-level features extracted from image patches.
  3. Causes ($u_t$): Higher-level units that "pool" states from a local neighborhood. This pooling mechanism is designed to learn invariances (e.g., recognizing a feature even if it shifts or rotates slightly).
  4. Top-Down Modulation: During inference, a higher layer provides a prediction to the layer below. This prediction acts as a dynamic prior, biasing the lower layer toward representations that are consistent with the higher-level context.
  5. Optimization via Smoothing: Solving for sparse states in a dynamical system is mathematically "non-smooth" and difficult. The authors use Nesterov’s smoothness method to approximate the problem, allowing them to use the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA) for efficient inference.
  6. Greedy Learning: The network is trained layer-by-layer in an unsupervised fashion, similar to Deep Belief Networks.

Key Insights

  • Priors as Predictions: The most significant insight is that a prior shouldn't be a constant parameter. Instead, the prior is the output of the layer above. This allows the network to "hallucinate" or fill in missing information based on context.
  • Temporal Stability: By including a state-transition matrix, the model uses the past to predict the present. This prevents the "jitter" often seen in standard sparse coding, where small changes in an image can lead to wildly different sparse codes.
  • Invariance through Co-occurrence: The pooling matrix learns which features frequently appear together. If two edges often move together, the "cause" unit learns to represent them as a single, higher-level entity.

Datasets and Key Results

The model was evaluated on both natural, unlabeled video data to demonstrate feature hierarchy learning, and a synthetic "Bouncing Shapes" video dataset to test classification under structured noise.

Learned Layer 1 Gabor-like filters
  • Feature Hierarchy: In Layer 1, the model naturally learns Gabor-like filters (edge detectors). In Layer 2, it learns more complex structures like corners and junctions, mirroring the progression of the human visual cortex (V1 to V2/V4).
  • Robustness to Noise: When tested on video corrupted with "structured noise" (randomly placed shapes), a standard bottom-up model failed to distinguish the target objects. However, when top-down connections were enabled, the DPCN successfully disambiguated the noise and correctly clustered the three object types.
  • Superior Inference: The proposed algorithm outperformed standard Kalman filters and basic sparse coding in terms of reconstruction error, especially when the dimensionality of the observation was low.

Limitations and Future Work

While powerful, the model has a few limitations. Because it relies on greedy, layer-by-layer training, lower layers do not benefit from higher-layer knowledge during the training phase; the top-down benefit only occurs during inference. Additionally, even with FISTA optimization, iterative generative models are generally slower than pure feed-forward convolutional neural networks (CNNs). Finally, while the authors suggest the model can be extended to a fully convolutional architecture for full images, the current experiments were limited to image patches.

Summary updated

BibTeX
@inproceedings{chalasani2013deep,
  author = {Rakesh Chalasani and Jose C. Principe},
  title = {{Deep Predictive Coding Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2013},
  url = {https://openreview.net/forum?id=yyC_7RZTkUD5-},
}
Figure