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

Human Eyes-Inspired Recurrent Neural Networks Are More Robust Against Adversarial Noises

Minkyu Choi, Yizhen Zhang, Kuan Han, Xiaokai Wang, Zhongming Liu

TL;DR

This paper introduces a novel recurrent neural network architecture inspired by human visual attention and retinal sampling. By mimicking how humans scan images and process visual information with varying acuity, their model demonstrates significantly improved robustness against adversarial attacks compared to standard computer vision models.

What Problem Does This Paper Address?

Computer vision models, particularly Convolutional Neural Networks (CNNs), often process entire images at once through a single feed-forward pass. While effective for many tasks, this approach can make them vulnerable to adversarial attacks – subtle, imperceptible changes to an image that can drastically alter a model's prediction. Humans, on the other hand, exhibit remarkable resilience to such attacks. This resilience is attributed to their dynamic visual system, which involves:

  • Retinal Sampling: The human retina has a fovea with high resolution and a periphery with lower resolution, meaning we don't process every pixel with equal detail.
  • Eye Movements (Fixations): We actively scan scenes, focusing our gaze on salient regions and moving our eyes to gather more information.
  • Recurrent Processing: The brain integrates information over time and across multiple glances.

The challenge is to translate these biological mechanisms into artificial neural networks to enhance their robustness and make them more human-like in their visual perception.

Methods

The authors propose a dual-stream recurrent neural network inspired by the human visual system's dorsal and ventral pathways.

  • Dorsal Stream (Attention): This stream mimics the brain's "where" pathway. It takes a low-resolution, full view of the image and, using an attention mechanism, predicts the next point of fixation. This process is guided by a saliency map and an inhibition-of-return (IOR) mechanism to prevent revisiting previously attended areas.
  • Ventral Stream (Recognition): This stream mimics the brain's "what" pathway. It receives sampled image patches from the dorsal stream, processes them using a CNN, and then uses a Recurrent Neural Network (RNN) to accumulate information across multiple fixations. This accumulated representation is then used for object classification.

The key novelty lies in the retinal sampling mechanism within the ventral stream. Instead of simply cropping image patches, the model simulates foveated vision, processing the area around the fixation at high resolution and the periphery at lower resolution, mimicking the non-uniform sampling of the human retina. They also explore different sampling strategies:

  • Crop-S: Simple single patch cropping.
  • Crop-D: Double patch cropping with different resolutions.
  • Retina: Simulates foveated imaging and non-uniform sampling.

Datasets

  • ImageNet100: Used for initial single-label classification training and fine-tuning.
  • MS-COCO: Used for multi-label classification training, chosen for its complexity with multiple objects per image, which is beneficial for training the attention mechanism.
  • SALICON: Used for evaluating the human-like attention capabilities of the models.

Key Insights and Ideas

  • Retinal Sampling is Key to Robustness: The "Retina" model, which explicitly mimics foveated vision, shows significantly higher robustness against adversarial attacks than simpler cropping methods. This suggests that the non-uniform processing of visual information is crucial for defense.
  • Overt Attention Outperforms Covert Attention: Models with explicit eye movement simulation (overt attention) are more robust than those with only soft attention mechanisms (covert attention). This highlights the importance of dynamic gaze behavior.
  • Human-like Attention is Achievable: The proposed models, particularly the Retina model, can generate attention maps that closely resemble human attention patterns without direct supervision from human saliency data.
  • Sequential Fixations Enhance Defense: By taking multiple glances, the models can correct errors induced by adversarial attacks, a capability not present in feed-forward models.

Key Results

  • Adversarial Robustness: The Retina model achieved the highest robustness against various adversarial attacks (PGD, FGSM, SPSA), with significantly lower attack success rates compared to other models. For example, against targeted PGD with $\epsilon=10^{-2}$, Retina had an ASR of 55.2%, while Crop-D was 96.1% and Crop-S was 95.9%.
  • Classification Performance: While the Retina model excelled in robustness, models that processed full images (FF-CNN, S3TA) generally performed better on ImageNet100. However, for the more complex MS-COCO dataset, the Retina model's F1 score surpassed others, indicating its suitability for complex scenes.
  • Attention Similarity: The Retina and Crop-D models showed the highest similarity to human attention maps on the SALICON dataset, as measured by AUC, NSS, SIM, and CC metrics.

Limitations and Future Work

  • Dataset Bias: The study primarily used ImageNet, which features large, prominent objects. This context might have reduced the distinction between random and learned fixations. Future work could explore datasets with smaller objects where fixation precision might play a more critical role.
  • Suboptimal Performance on Large Objects: The retinal transformation approach showed suboptimal performance on large objects that extend into the peripheral field in single-label classification tasks. This is attributed to the non-linear distortion introduced by retinal sampling, affecting convolutional operations.
  • Top-Down Connections: While recurrent connections were used, top-down connections, crucial for integrating higher-level cognitive processes with sensory input, were not implemented. Future work could explore incorporating these for more sophisticated models.
  • IOR Importance: The absence of the Inhibition of Return (IOR) mechanism led to a noticeable decrease in robustness, highlighting the importance of varied and shifting fixation points.

The authors suggest that integrating more brain-inspired mechanisms, such as top-down and recurrent connections, holds significant promise for developing more resilient and intuitive AI vision systems.

Summary updated

BibTeX
@article{choi2022human,
  author = {Minkyu Choi and Yizhen Zhang and Kuan Han and Xiaokai Wang and Zhongming Liu},
  title = {{Human Eyes-Inspired Recurrent Neural Networks Are More Robust Against Adversarial Noises}},
  journal = {Neural Computation},
  year = {2022},
}
Figure