TL;DR
This paper introduces a brain-inspired "predictive coding" mechanism to enhance the robustness of deep neural networks against noise and adversarial attacks. By adding recurrent feedback connections to a standard VGG16 model, the network learns to iteratively refine its internal representations, effectively projecting noisy inputs onto a learned data manifold and improving classification accuracy under perturbation.
What Problem Does This Paper Address?
Deep neural networks, despite their impressive performance on clean image datasets like ImageNet, are notoriously brittle. They struggle significantly when faced with even minor perturbations to input images, such as noise or adversarial attacks designed to fool them. This lack of robustness is a major hurdle for deploying these models in real-world scenarios where perfect input conditions are rare. Humans, on the other hand, exhibit remarkable robustness to such variations. This paper aims to bridge this gap by drawing inspiration from neuroscience, specifically the theory of predictive coding, to imbue deep learning models with a more human-like resilience.
Methods
The core innovation is the integration of a "predictive coding" strategy into a pre-trained VGG16 feedforward network, creating a new architecture called PVGG. This strategy involves adding generative feedback connections between layers. At each layer, the network attempts to "predict" or reconstruct the activity of the preceding layer using these feedback connections. The difference between the actual activity and the predicted activity (the "prediction error") is then used to iteratively update the network's internal representations over multiple timesteps.
Key aspects of the method include:
- Hierarchical Architecture: The VGG16 backbone is divided into five convolutional blocks, each treated as an encoding layer ($e_n$). Deconvolution layers ($d_{n-1}$) are added to act as feedback/decoding layers.
- Predictive Coding Updates: An iterative process updates both encoding and decoding layer representations using a combination of feedforward, feedback, and error-correction terms. The feedback term allows higher layers to inform lower layers, while the error-correction term uses prediction errors to refine representations.
- Unsupervised Feedback Training: While the feedforward weights are pre-trained for classification, the feedback (deconvolution) weights are trained unsupervisedly to minimize reconstruction errors. This allows the network to learn a representation of the data manifold without explicit labels for the feedback pathway.
- Iterative Refinement: The network's representations are updated over several timesteps. This iterative process is crucial for the robustness gains, allowing the network to "denoise" inputs and align representations with the learned data manifold.
Datasets
- Training: The VGG16 backbone was pre-trained on ImageNet. The feedback weights were trained unsupervisedly on the natural image dataset (implied to be ImageNet or a similar large-scale dataset).
- Evaluation:
- ImageNet test dataset: Used for evaluating classification accuracy under various noise conditions.
- ImageNet-C: A benchmark dataset containing 19 types of image corruptions across 5 severity levels, used to evaluate robustness to naturalistic distortions.
- Adversarial Attacks: The model was tested against a suite of targeted adversarial attacks, including gradient-based methods (BasicIterativeMethod, RandomProjectedGradientDescent, CarliniWagner) and a non-gradient based method (BoundaryAttack).
Key Insights and Ideas
- Brain-Inspired Dynamics for Robustness: The paper strongly suggests that incorporating biologically plausible recurrent dynamics, like those proposed by predictive coding theory, can significantly improve the robustness of otherwise brittle feedforward networks.
- "Projection Towards the Learned Manifold": The iterative refinement process effectively acts as a mechanism to project noisy or perturbed inputs onto the "manifold" of clean data learned during training. This is a key insight into how the robustness is achieved.
- Emergent Denoising: The feedback connections, trained solely for reconstruction, exhibit an emergent denoising capability. The network learns to clean up noisy inputs without being explicitly trained to do so, which is a powerful demonstration of the learned internal model.
- Unsupervised Feedback is Key: The success of the feedback pathway in improving robustness, despite being trained unsupervisedly, highlights the potential of leveraging unlabeled data and neuroscientific principles for enhancing model capabilities.
Key Results
- Improved Accuracy under Noise: The PVGG model showed improved classification accuracy over timesteps when presented with images corrupted by additive Gaussian noise, outperforming the original feedforward VGG16 baseline. For example, with a noise level of $\sigma=0.50$, accuracy improved from 35.25% to over 50% after 19 timesteps.
- Reduced Correlation Distance: Across all layers and noise levels, the normalized correlation distance between representations of clean and noisy images decreased over timesteps, indicating that the noisy representations were becoming more similar to their clean counterparts.
- Robustness to Adversarial Attacks: The PVGG model required significantly larger adversarial perturbations to be fooled compared to the feedforward baseline. For instance, with the CarliniWagner L2 attack, the median perturbation required increased from approximately $1.98 \times 10^{-3}$ to $5.9 \times 10^{-3}$ over timesteps.
- Consistent Improvement on ImageNet-C: The model demonstrated steady improvements in mean Corruption Error (mCE) scores across various corruption types and severities over timesteps, indicating enhanced robustness to naturalistic distortions.
Limitations and Future Work
- Not State-of-the-Art Adversarial Defense: The authors acknowledge that while PVGG improves robustness, it does not yet match the performance of state-of-the-art adversarial defenses, which often involve costly adversarial training.
- Future Work:
- Generalization to Other Architectures: The authors plan to generalize their findings to other feedforward architectures, such as ResNet.
- Combining with Other Defenses: They suggest that combining their brain-inspired approach with adversarial training or hyperparameter tuning could further boost adversarial robustness.
- Exploring Biological Plausibility: Further investigation into the biological plausibility of the learned dynamics and error propagation mechanisms is suggested.
Summary updated