Predify: Augmenting deep neural networks with brain-inspired predictive coding dynamics
Not on the map. Why?
Abstract (arXiv)
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 attacks. We hypothesize that other feedforward networks could similarly benefit from the proposed framework. To promote research in this direction, we provide an open-sourced PyTorch-based package called Predify, which can be used to implement and investigate the impacts of the predictive coding dynamics in any convolutional neural network.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 36 of its 78 references that are in the map. First posted on arXiv 4 Jun 2021.
Builds on
36 of 78 references.
References · 36
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2019HopSkipJumpAttack: A Query-Efficient Decision-Based Attackcited by 328
- 2018Adversarially Robust Generalization Requires More Datacited by 318
24 more
- 2018Feature Denoising for Improving Adversarial Robustnesscited by 312
- 2019Adversarial Examples Improve Image Recognitioncited by 283
- 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 243
- 2016Deep Predictive Coding Networks for Video Prediction and Unsupervised Learningcited by 203
- 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
- 2019Defense Against Adversarial Attacks Using Feature Scattering-based Adversarial Trainingcited by 95
- 2019Brain-Like Object Recognition with High-Performing Shallow Recurrent ANNscited by 90
- 2019The Odds are Odd: A Statistical Test for Detecting Adversarial Examplescited by 75
- 2016A Boundary Tilting Persepective on the Phenomenon of Adversarial Examplescited by 70
- 2019Recurrence is required to capture the representational dynamics of the human visual systemcited by 58
- 2017APE-GAN: Adversarial Perturbation Elimination with GANcited by 57
- 2017Dense Associative Memory is Robust to Adversarial Inputscited by 45
- 2018Attacks Meet Interpretability: Attribute-steered Detection of Adversarial Samplescited by 38
- 2017The Robust Manifold Defense: Adversarial Training using Generative Modelscited by 35
- 2018Deep Predictive Coding Network for Object Recognitioncited by 23
- 2020Neural Networks with Recurrent Generative Feedbackcited by 23
- 2020Adversarial Robustness of Supervised Sparse Codingcited by 22
- 2020Stable and expressive recurrent vision modelscited by 20
- 2013Deep Predictive Coding Networkscited by 13
- 2021Predictive coding feedback results in perceived illusory contours in a recurrent neural networkcited by 10
- 2018DARCCC: Detecting Adversaries by Reconstruction from Class Conditional Capsulescited by 9
- 2019Recurrent Connections Aid Occluded Object Recognition by Discounting Occluderscited by 5
- 2019Improving the robustness of ImageNet classifiers using elements of human visual cognitioncited by 2
Built on by
Citing papers per year: 2021: 2; 2022: 4; 2023: 4; 2024: 7; 2025: 2.
19 papers.
Sort:
By area:
- 2023Brain-inspired Computational Intelligence via Predictive Codingcited by 30
- 2022A Stable, Fast, and Fully Automatic Learning Algorithm for Predictive Coding Networkscited by 21
- 2022Convolutional Neural Generative Coding: Scaling Predictive Coding to Natural Imagescited by 10
- 2022Diversity vs. Recognizability: Human-like generalization in one-shot generative modelscited by 9
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Surveycited by 7
- 2024Improving deep learning with prior knowledge and cognitive models: A survey on enhancing explainability, adversarial robustness and zero-shot learningcited by 4
- 2021Multimodal neural networks better explain multivoxel patterns in the hippocampuscited by 3
- 2024Latent Representation Matters: Human-like Sketches in One-shot Drawing Taskscited by 3
- 2021On the role of feedback in visual processing: a predictive coding perspectivecited by 2
- 2023Brain-like Flexible Visual Inference by Harnessing Feedback-Feedforward Alignmentcited by 2
- 2024pyhgf: A neural network library for predictive codingcited by 2
- 2022An overview of open source Deep Learning-based libraries for Neurosciencecited by 1
7 more
- 2024Limited but consistent gains in adversarial robustness by co-training object recognition models with human EEGcited by 1
- 2024Contextual Feedback Loops: Amplifying Deep Reasoning with Iterative Top-Down Feedbackcited by 1
- 2023Fixed Inter-Neuron Covariability Induces Adversarial Robustnesscited by 0
- 2023Early Exiting Predictive Coding Neural Networks for Edge AIcited by 0
- 2024How Robust Are Energy-Based Models Trained With Equilibrium Propagation?cited by 0
- 2025GASPnet: Global Agreement to Synchronize Phasescited by 0
- 2025Sensory robustness through top-down feedback and neural stochasticity in recurrent vision modelscited by 0
- 2025Sensory robustness through top-down feedback and neural stochasticity in recurrent vision models9 Aug 2025
- 2025GASPnet: Global Agreement to Synchronize Phases22 Jul 2025
- 2024Contextual Feedback Loops: Amplifying Deep Reasoning with Iterative Top-Down Feedback23 Dec 2024
- 2024pyhgf: A neural network library for predictive coding11 Oct 2024
- 2024Limited but consistent gains in adversarial robustness by co-training object recognition models with human EEG5 Sep 2024
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Survey4 Jul 2024
- 2024Latent Representation Matters: Human-like Sketches in One-shot Drawing Tasks10 Jun 2024
- 2024Improving deep learning with prior knowledge and cognitive models: A survey on enhancing explainability, adversarial robustness and zero-shot learning11 Mar 2024
- 2024How Robust Are Energy-Based Models Trained With Equilibrium Propagation?21 Jan 2024
- 2023Brain-like Flexible Visual Inference by Harnessing Feedback-Feedforward Alignment31 Oct 2023
- 2023Early Exiting Predictive Coding Neural Networks for Edge AI5 Sep 2023
- 2023Brain-inspired Computational Intelligence via Predictive Coding15 Aug 2023
7 more
- 2023Fixed Inter-Neuron Covariability Induces Adversarial Robustness7 Aug 2023
- 2022An overview of open source Deep Learning-based libraries for Neuroscience19 Dec 2022
- 2022Convolutional Neural Generative Coding: Scaling Predictive Coding to Natural Images22 Nov 2022
- 2022A Stable, Fast, and Fully Automatic Learning Algorithm for Predictive Coding Networks16 Nov 2022
- 2022Diversity vs. Recognizability: Human-like generalization in one-shot generative models20 May 2022
- 2021Multimodal neural networks better explain multivoxel patterns in the hippocampus11 Dec 2021
- 2021On the role of feedback in visual processing: a predictive coding perspective8 Jun 2021
- 2023Brain-inspired Computational Intelligence via Predictive Codingcited by 30
- 2022A Stable, Fast, and Fully Automatic Learning Algorithm for Predictive Coding Networkscited by 21
- 2022Convolutional Neural Generative Coding: Scaling Predictive Coding to Natural Imagescited by 10
- 2022Diversity vs. Recognizability: Human-like generalization in one-shot generative modelscited by 9
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Surveycited by 7
- 2024Improving deep learning with prior knowledge and cognitive models: A survey on enhancing explainability, adversarial robustness and zero-shot learningcited by 4
- 2021Multimodal neural networks better explain multivoxel patterns in the hippocampuscited by 3
- 2021On the role of feedback in visual processing: a predictive coding perspectivecited by 2
- 2023Brain-like Flexible Visual Inference by Harnessing Feedback-Feedforward Alignmentcited by 2
- 2024pyhgf: A neural network library for predictive codingcited by 2
- 2022An overview of open source Deep Learning-based libraries for Neurosciencecited by 1
- 2024Limited but consistent gains in adversarial robustness by co-training object recognition models with human EEGcited by 1
12 most cited of 18 All 18 (JSON)
- 2025Sensory robustness through top-down feedback and neural stochasticity in recurrent vision models9 Aug 2025
- 2025GASPnet: Global Agreement to Synchronize Phases22 Jul 2025
- 2024Contextual Feedback Loops: Amplifying Deep Reasoning with Iterative Top-Down Feedback23 Dec 2024
- 2024pyhgf: A neural network library for predictive coding11 Oct 2024
- 2024Limited but consistent gains in adversarial robustness by co-training object recognition models with human EEG5 Sep 2024
- 2024Predictive Coding Networks and Inference Learning: Tutorial and Survey4 Jul 2024
- 2024Improving deep learning with prior knowledge and cognitive models: A survey on enhancing explainability, adversarial robustness and zero-shot learning11 Mar 2024
- 2024How Robust Are Energy-Based Models Trained With Equilibrium Propagation?21 Jan 2024
- 2023Brain-like Flexible Visual Inference by Harnessing Feedback-Feedforward Alignment31 Oct 2023
- 2023Early Exiting Predictive Coding Neural Networks for Edge AI5 Sep 2023
- 2023Brain-inspired Computational Intelligence via Predictive Coding15 Aug 2023
- 2023Fixed Inter-Neuron Covariability Induces Adversarial Robustness7 Aug 2023
12 newest of 18 All 18 (JSON)