Active Predictive Coding Networks: A Neural Solution to the Problem of Learning Reference Frames and Part-Whole Hierarchies

Dimitrios C. Gklezakos, Rajesh P. N. Rao

Abstract

Active Predictive Coding Networks (APCNs) represent a novel class of hierarchical neural networks designed to address the "spatial amnesia" of standard convolutional neural networks. By integrating hypernetworks with reinforcement learning and predictive coding, APCNs learn to decompose objects into part-whole hierarchies using intrinsic reference frames. This paper summarizes the architecture, which dynamically generates "sub-programs" to parse visual scenes, resulting in an interpretable and compositional model capable of zero-shot transfer across diverse datasets like MNIST and Omniglot.

Introduction

Standard Deep Convolutional Neural Networks (CNNs) excel at classification but often suffer from "spatial amnesia," treating images as a "bag of features" and losing track of precise positional relationships. Geoffrey Hinton and others have argued that true visual understanding requires representing objects as part-whole hierarchies, where each part exists in its own local coordinate system or reference frame relative to the whole. Active Predictive Coding Networks (APCNs) address this challenge by building a scalable, end-to-end trainable architecture that learns these reference frames and parses trees dynamically.

Methodology

The APCN architecture is built upon three core pillars:

  1. Hypernetworks as Program Generators: Higher-level "manager" networks use their internal state to dynamically generate weights (the "program") for lower-level "worker" networks. This allows the model to adapt its parsing strategy based on the perceived object.
  2. Hierarchical Predictive Coding: The model learns by predicting the next "glimpse" of an image. Prediction errors are used to update internal states, mimicking theories of neocortical information processing.
  3. Reinforcement Learning for Attention: A "glimpse sensor" explores small parts of an image. Since choosing where to look is non-differentiable, the REINFORCE algorithm is used to train action networks to select informative locations.
Figure 1: Overview of the APCN architecture, showing (a) hierarchical state/action vectors, (b) top-level vs. bottom-level function mapping, and (c) the state and action generation processes across macro-steps (t) and micro-steps (τ).

The architecture operates through macro-steps (top-level decisions regarding major parts) and micro-steps (bottom-level exploration of details within those parts). This hierarchical structure allows the network to maintain spatial consistency across different levels of abstraction.

Key Insights and Results

APCNs produce literal tree structures for every image, identifying parts and their relative positions. By separating "what" (state vector) from "where" (action vector), the model demonstrates compositionality; swapping these vectors between different images allows for the generation of hybrid objects.

Evaluation on MNIST, Fashion-MNIST, and Omniglot revealed several key results:

  • Superior Reconstruction: Hierarchical sampling proved more efficient than random or single-level baselines.
  • Zero-Shot Transfer: Models trained on specific Omniglot alphabets successfully parsed characters from entirely unseen alphabets, suggesting the learning of a general "grammar" of strokes.
  • Pattern Completion: The model can "hallucinate" missing parts of an object from a single initial glimpse by leveraging learned hierarchical priors.

Discussion

While promising, APCNs currently face limitations in scalability to complex natural datasets like ImageNet and rely on fixed time horizons for glimpses. Future work aims to incorporate more flexible glimpse durations, more efficient RL methods, and broader geometric transformations such as rotation and shear into the learned reference frames.

Summary updated

BibTeX
@misc{gklezakos2022active,
  author = {Dimitrios C. Gklezakos and Rajesh P. N. Rao},
  title = {{Active Predictive Coding Networks: A Neural Solution to the Problem of Learning Reference Frames and Part-Whole Hierarchies}},
  year = {2022},
  eprint = {2201.08813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.08813},
}
Figure