NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Predictive Coding Network for Object Recognition

Haiguang Wen, Kuan Han, Junxing Shi, Yizhen Zhang, Eugenio Culurciello, Zhongming Liu

TL;DR

Researchers have developed the Deep Predictive Coding Network (PCN), a brain-inspired architecture that uses bi-directional, recursive loops to refine its understanding of an image over time. By mimicking how the human brain sends "predictions" down and "errors" up through its visual hierarchy, the PCN outperforms standard feedforward networks and can even reconstruct images it was only trained to classify.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) are essentially "one-way streets." Information flows from the pixels to the final classification in a single feedforward pass. While highly effective, this differs fundamentally from the human brain, which is packed with feedback and recurrent connections.

In biology, our brains don't just see; they predict. Higher-level areas send expectations down to lower-level areas, and only the "errors" (the parts of the image the brain didn't expect) are sent back up. This allows us to resolve ambiguity—like recognizing a cat partially hidden behind a curtain. The authors tackle the challenge of implementing this "predictive coding" theory into a deep learning framework to see if it improves object recognition and robustness.

Methods

The authors introduce the Deep Predictive Coding Network (PCN). Unlike a standard VGG-style network, the PCN is bi-directional and recurrent.

Architecture of the Deep Predictive Coding Network (PCN) compared to a plain CNN, showing feedback loops and unfolding over time.
  • The Feedback Process: Higher layers send a "prediction" of what the lower layer should be seeing.
  • The Feedforward Process: Lower layers calculate the difference between the actual input and the top-down prediction (the "prediction error") and send only that error up to update the higher-level representation.
  • Recursive Loops: The network doesn't just run once. It runs for multiple "cycles" ($t$). With each cycle, the internal representations are updated to minimize the total prediction error across the whole hierarchy.
  • Weight Sharing: The authors tested versions where the feedback weights are simply the transpose of the feedforward weights, keeping the parameter count identical to a "plain" CNN.

Datasets

The model was evaluated on four standard computer vision benchmarks:

  • CIFAR-10 and CIFAR-100: Small color images of objects and animals.
  • SVHN (Street View House Numbers): Digits cropped from photos of house numbers.
  • MNIST: The classic handwritten digit dataset.

The authors compared the PCN against "Plain" CNN counterparts—networks with the exact same number of layers and filters but without the feedback/recurrent loops.

Key Insights and Ideas

  • "Longer" vs. "Deeper": The authors argue that instead of just adding more layers (making a network deeper), we can make it "longer" in time. By reusing the same layers over multiple recursive cycles, the network performs a longer cascade of nonlinear transformations without increasing the number of physical parameters.
  • Dynamic Error Correction: As illustrated in the architecture diagram's output progression, the PCN might start with a weak or distributed guess at $t=0$. As the cycles progress, the feedback loops "correct" the internal representation, leading to a definitive and sharp classification.
  • Emergent Generative Power: Even though the PCN was trained purely for classification (a discriminative task), its top-down connections allow it to reconstruct the input image. This suggests that predictive coding helps the network learn a more "complete" internal model of the world.

Key Results

  • Superior Accuracy: PCN consistently outperformed its feedforward-only counterparts across all datasets. For example, on CIFAR-100, the PCN improved accuracy from 62.11% (plain) to 72.58%.
  • Efficiency: A 9-layer PCN achieved performance comparable to much deeper models like ResNet-164, despite having significantly fewer layers.
  • Performance over Time: Accuracy tended to increase with the number of recursive cycles. The network literally gets "smarter" the longer it is allowed to "think" about an image.
Testing accuracy increases as the PCN processes the image over more time steps (t).
  • Faster Convergence: During training, PCNs reached higher accuracy levels much faster than plain CNNs.

Limitations and Future Work

  • Computational Cost: Because the PCN runs multiple passes for a single image, it requires more FLOPs (floating-point operations) during inference than a single-pass CNN. However, the authors note that for video input, the overhead is minimal because the network can use representations from the previous frame as a starting point.
  • Scaling to Large Data: While the results on CIFAR and SVHN are impressive, the paper does not test on massive datasets like ImageNet (though the authors mention this is a focus of their concurrent/future work).
  • Hyperparameter Tuning: The update rates for the feedforward and feedback processes ($a_l$ and $b_l$) add a layer of complexity to the training process compared to standard backpropagation.

Summary updated

BibTeX
@inproceedings{wen2018deep,
  author = {Haiguang Wen and Kuan Han and Junxing Shi and Yizhen Zhang and Eugenio Culurciello and Zhongming Liu},
  title = {{Deep Predictive Coding Network for Object Recognition}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=S149fiWO-B},
}
Figure