Predify: Augmenting deep neural networks with brain-inspired predictive coding dynamics
Bhavin Choksi, Milad Mozafari, Callum Biggs O'May, Benjamin Ador,, Andrea Alamia, Rufin VanRullen

TL;DR
This paper introduces Predify, a brain-inspired predictive coding framework integrated into deep neural networks, which enhances robustness to input perturbations and adversarial attacks, inspired by neuroscience principles.
Contribution
The paper presents a novel predictive coding approach for deep networks, improving robustness and providing an open-source implementation for further research.
Findings
Improved robustness of VGG16 and EfficientNetB0 against corruptions
Predictive coding dynamics enhance adversarial attack resistance
Open-source PyTorch package for implementing predictive coding
Abstract
Deep neural networks excel at image classification, but their performance is far less robust to input perturbations than human perception. In this work we explore whether this shortcoming may be partly addressed by incorporating brain-inspired recurrent dynamics in deep convolutional networks. We take inspiration from a popular framework in neuroscience: 'predictive coding'. At each layer of the hierarchical model, generative feedback 'predicts' (i.e., reconstructs) the pattern of activity in the previous layer. The reconstruction errors are used to iteratively update the network's representations across timesteps, and to optimize the network's feedback weights over the natural image dataset-a form of unsupervised training. We show that implementing this strategy into two popular networks, VGG16 and EfficientNetB0, improves their robustness against various corruptions and adversarial…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Cell Image Analysis Techniques · Neural dynamics and brain function
