Abstract
Artificial vision systems are susceptible to adversarial attacks. Small intentional changes to images can cause these systems to mis-classify with high confidence. The brain has many mechanisms for strengthening weak or confusing inputs. One such technique, contour integration, can separate objects from irrelevant background. We show that incorporating contour integration within artificial visual systems can increase their robustness to adversarial attacks.
Introduction
Deep neural networks (DNNs) have achieved remarkable success in image classification, often rivaling or exceeding human performance on standard benchmarks. However, these models remain fundamentally fragile. Adversarial attacks—imperceptible perturbations to input pixels—can lead to high-confidence misclassifications. This vulnerability stems from a lack of "contextual modulation" found in biological vision. In the human primary visual cortex (V1), neurons do not operate in isolation; lateral connections allow them to integrate information from neighboring receptive fields. This process, known as contour integration (CI), enables the brain to perceive continuous shapes amidst noise.
Methods
The authors propose a biologically inspired Contour Integration (CI) Layer integrated into the AlexNet architecture. Unlike standard feed-forward convolutional layers, the CI layer is modulatory, enhancing existing signals based on the presence of co-aligned neighboring edges.
The CI Layer Architecture
The CI layer is positioned after the first convolutional layer. It follows four key biological constraints:
- Modulation Only: It enhances existing signals rather than creating new ones.
- Transparency: In the absence of relevant context, signals pass through unchanged.
- Large Spatial Extent: Lateral connections span a wider area than the initial receptive fields.
- Kernel Mapping: A one-to-one mapping exists between feature kernels and integration kernels.
Training for "Pop-out"
The CI layer was trained on a synthetic dataset of 30,000 images containing Gabor fragments (oriented bars) embedded in random noise. The objective function was designed to match the "enhancement gains" observed in neurophysiological studies of macaque monkeys. Following this specialized training, the CI kernels were integrated into AlexNet, and the subsequent layers were retrained on the ImageNet (ILSVRC 2012) dataset.
Results
The CI-enhanced model was evaluated against standard AlexNet on ImageNet classification and robustness to "one-pixel" adversarial attacks.
Classification and Robustness
The AlexNet + CI model achieved a Top-1 accuracy of 38.0% on ImageNet, a slight improvement over the standard AlexNet's 36.1%. More importantly, the model showed increased resilience to adversarial perturbations. In a 5-pixel attack scenario, the adversary's success rate dropped from 10.4% to 9.55%. By prioritizing smooth, natural contours, the CI layer acts as a structural filter that suppresses the high-frequency noise typical of adversarial attacks.
Generalization to Unseen Shapes
A key finding was the model's ability to generalize. Although trained primarily on linear and slightly curved segments, the CI layer successfully performed "pop-out" for complex shapes like circles.
Conclusion
Incorporating lateral connections and contour integration into artificial vision systems provides a promising path toward biological-level robustness. While the current gains are modest, the research demonstrates that structural changes inspired by the primary visual cortex can help models ignore adversarial noise and focus on the fundamental geometric properties of objects. Future work will explore applying these mechanisms to modern architectures like ResNets and Transformers, as well as testing against a wider array of gradient-based attacks.
Summary updated