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

Behind the Machine’s Gaze: Neural Networks with Biologically-inspired Constraints Exhibit Human-like Visual Attention

Leo Schwinn, Doina Precup, Bjoern Eskofier, Dario Zanca

TL;DR

Existing models of visual attention typically assume the eye sees full-resolution scenes, ignoring how our eyes actually work. By forcing neural networks to perceive images through a biologically-inspired foveated vision constraint and guiding them with top-down task losses (like classification or reconstruction), the proposed NeVA algorithm generates remarkably human-like visual scanpaths without ever training on eye-tracking data.

What Problem Does This Paper Address?

Human vision does not process high-resolution scenes all at once. Instead, our retinas sample the world through a tiny high-acuity zone—the fovea (roughly $2^\circ$ of visual angle)—while the periphery receives coarse, low-resolution "gist." We then execute rapid eye movements (saccades) separated by brief pauses (fixations) to build up an understanding of the scene.

In contrast, computational attention models suffer from two major flaws:

  1. Unrealistic visual access: They tacitly assume full access to the complete, unblurred stimulus at every step.
  2. Over-reliance on bottom-up features: Most unsupervised methods rely solely on low-level sensory conspicuity (edges, colors, contrast), overlooking how top-down semantic goals and visual tasks direct where we look.

The authors investigate whether giving deep networks imperfect, foveated vision and driving them with high-level downstream task objectives will naturally produce human-like visual exploration.

Methods

The authors introduce Neural Visual Attention (NeVA), an unsupervised scanpath generator consisting of three components:

  1. Differentiable Foveation Mechanism ($\pi$): Given an image $S$ and fixation coordinate $\xi_t$, the input is blurred via Gaussian filtering ($S \ast G_{\sigma_p}$), preserving high-frequency detail only inside a Gaussian window ($G_{\sigma_\xi}$) centered at $\xi_t$.
  2. Internal Agent State ($h_t$): Perceived glimpses are accumulated over time into an internal memory map using a forgetting coefficient ($\gamma = 0.3$), progressively deblurring attended regions.
  3. Task-Driven Attention Mechanism ($\alpha$):
  4. A downstream task model (e.g., a classifier trained with cross-entropy, or a denoising autoencoder trained with MSE) processes the internal state $h_t$.
  5. An attention model (a Wide ResNet) is trained end-to-end to output the next fixation $\xi_{t+1}$ that maximally reduces the task model's loss.
  6. At test time, the task model is discarded; the attention network predicts fixations sequentially from its own perceived glimpses.

The authors also compare NeVA against an optimization variant (NeVA-O), which selects fixations via direct gradient-based search over the entire image.

Datasets

  • Attention Supervision: CIFAR-10 (and ImageNet for optimization baselines).
  • Scanpath Evaluation:
  • MIT1003: 1,003 natural indoor/outdoor scenes, 15 human subjects (3-second free viewing).
  • Toronto: 120 outdoor/indoor scenes, 20 subjects (4-second free viewing).
  • KOOTSTRA: 99 photographs across 5 semantic categories, 31 subjects (5-second free viewing).
  • Downstream Application Benchmark: 1,000-image subsets from CIFAR-100 and ImageNet, evaluating classification accuracy under progressive scanpath deblurring.

Key Insights and Ideas

  • Imperfect vision drives realistic exploration: NeVA generated more human-like scanpaths than NeVA-O. Because NeVA-O had access to all locations to compute optimal steps, it skipped the purely exploratory saccades that real visual agents must make to reduce spatial uncertainty under partial information.
  • Classification vs. Reconstruction: Classification models rapidly drop their loss within the first fixation, encouraging localized, object-centric fixations. Reconstruction models drop their loss slowly, driving broader, scene-wide exploration.
  • Semantic alignment without domain overlap: Even though NeVA was supervised only on CIFAR-10, it generalized across complex natural scenes in MIT1003 and Toronto. However, perturbing images with imperceptible adversarial noise caused a dramatic drop in scanpath similarity and downstream utility, proving the gaze is heavily conditioned on label semantics rather than simple low-level patterns.

Key Results

  • Human Scanpath Similarity: Across MIT1003, Toronto, and Kootstra, classification-guided NeVA ($\text{NeVA}_C$) achieved the highest similarity to human scanpaths, outperforming competitors (WTA, CLE, G-Eymol) across 11 out of 12 evaluation metrics (using String-Edit Distance and String-Based Time-Delay Embeddings). On MIT1003, $\text{NeVA}_C$ achieved an overall average score of 2.14, compared to G-Eymol (2.28), CLE (2.33), and the inter-human gold standard (1.55).
  • Saccade Dynamics: Without being trained on human eye trajectories, NeVA models exhibited human-like saccade amplitude distributions, correctly capturing the typical peak at $2^\circ\text{--}4^\circ$ visual angle.
  • Downstream Task Efficiency: When sequentially deblurring unseen images from CIFAR-100 and ImageNet, $\text{NeVA}_C$ achieved the highest downstream classification accuracies (39.68% and 61.03%, respectively), significantly beating G-Eymol (37.95% / 55.95%) and the Center baseline (33.41% / 55.72%).

Limitations and Future Work

  • Lack of Reactive Bottom-up Attention: During the first 1–2 fixations, purely bottom-up saliency methods (like G-Eymol and CLE) still match humans better. Human vision is hybrid: quick, involuntary bottom-up reflexes precede deliberate top-down search.
  • Over-specificity of Deep Classifiers: Training task models on ultra-fine-grained datasets (like ImageNet-1k) caused gaze to hyper-fixate on specific object parts (e.g., focusing only on a dumbbell or baseball cap). Future work should explore multi-label objectives, object detectors (e.g., YOLO), or hierarchical task models to prevent early saturation.
  • Simplified Physiology: Fixation duration was treated as constant, and visual memory was approximated by a linear accumulation map rather than a recurrent neural network reflecting realistic short-term working memory.

Summary updated

BibTeX
@article{schwinn2022behind,
  author = {Leo Schwinn and Doina Precup and Bjoern Eskofier and Dario Zanca},
  title = {{Behind the Machine’s Gaze: Neural Networks with Biologically-inspired Constraints Exhibit Human-like Visual Attention}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=7iSYW1FRWA},
}
Figure