Simulating Human Gaze with Neural Visual Attention

Leo Schwinn, Doina Precup, Bjoern Eskofier, Dario Zanca

TL;DR

The authors introduce Neural Visual Attention (NeVA), a fully differentiable framework that generates realistic human visual scanpaths driven purely by downstream task performance. By imposing the biological constraint of foveated vision onto deep neural networks, the system learns human-like gaze trajectories without being trained on a single frame of human eye-tracking data.

What Problem Does This Paper Address?

When humans explore a visual scene, we do not absorb every pixel at full resolution simultaneously. Instead, we move our eyes in sequences of fixations and saccades—called scanpaths—guided by both peripheral cues and internal goals.

Existing computational attention models suffer from two main shortcomings:

  1. Static and passive: Most models output static 2D saliency heatmaps rather than dynamic fixation sequences, or they rely on bottom-up heuristics (e.g., low-level contrast, random walks) that assume uniform, full-resolution vision across the entire image.
  2. Lack of task guidance: They cannot incorporate intent or downstream goals (e.g., "What object is here?").

While collecting real human eye-tracking data to train supervised models is prohibitively expensive—especially in specialized domains like medicine or education—unsupervised models have struggled to generate plausible, goal-driven trajectories.

Methods

NeVA models scanpath generation as an optimization problem where an attention controller seeks image regions that maximize performance on an underlying visual task. The framework consists of three differentiable components:

  • Differentiable Foveation Layer: Blurs the input image while keeping a sharp, high-resolution Gaussian window centered around the current fixation point $\xi_t$. It maintains an internal agent state ($h_t$) that accumulates foveated glimpses over time with an exponential forgetting factor $\gamma$.
  • Task Model ($\tau$): A neural network pre-trained on a vision task (e.g., image classification or image reconstruction) that receives the accumulated foveated representation $h_t$ and computes a task loss $\mathcal{L}$.
  • Attention Mechanism ($\alpha$): A Wide ResNet policy network that takes the current internal state and predicts the next fixation coordinates $\xi_{t+1}$. It is trained via backpropagation through the foveation layer and task model to minimize downstream task error.

Crucially, the task model is discarded during inference. The attention policy alone navigates new scenes iteratively using its foveated visual memory.

Input Stimulus ──> [ Foveation Layer (at fixation ξ_t) ] ──> Internal Memory (h_t)
                             ▲                                    │
                             │                                    ├──> [ Task Model τ ] ──> Loss
                             └────── [ Attention Network α ] <────┘

Datasets

  • Task Training: CIFAR-10 was used to train the downstream task networks: a classification ResNet ($\text{NeVA}_C$) and a denoising autoencoder ($\text{NeVA}_R$).
  • Evaluation Benchmarks: Evaluated against real human eye-tracking trajectories across three standard free-viewing datasets:
  • MIT1003: 1,003 images, 15 human observers.
  • TORONTO: 120 images, 20 human observers.
  • KOOTSTRA: 99 images, 31 human observers.

No eye-tracking data was seen during the training of NeVA.

Key Insights and Ideas

  • Human-like gaze emerges from biological constraints: Networks do not need to mimic human scanpaths explicitly. Simply coupling task optimization with human-like foveated visual constraints naturally induces gaze patterns that closely mirror human behavior.
  • Top-down intent guides early exploration: Even during supposedly "free-viewing" conditions, classification-driven attention ($\text{NeVA}_C$) modeled human fixations better than reconstruction ($\text{NeVA}_R$) and purely bottom-up saliency approaches. This supports the cognitive hypothesis that visual search is goal-directed even in the opening seconds (within 10 fixations / ~3 seconds).
  • Center bias alone is insufficient: While center-prior baselines often match static saliency metrics, they fail noticeably when modeling temporal sequential scanpaths.

Key Results

The authors compared 10-step scanpaths against three unsupervised methods—Constrained Lévy Exploration (CLE), Gravitational Eye Movements Laws (G-EYMOL), and Winner-Take-All (WTA)—using String-Edit Distance (SED) and String-Based Time-Delay Embeddings (SBTDE):

  • Dominant Performance: $\text{NeVA}_C$ achieved the best similarity scores across 11 out of 12 dataset-metric combinations (and second-best in the remaining one).
  • Benchmark Scores: On the MIT1003 benchmark, $\text{NeVA}_C$ achieved a Mean SED of 4.30 and Scanpath Plausibility (SPP) SED of 3.15, outperforming the strongest unsupervised competitors (G-EYMOL: 4.48 / 3.39; CLE: 4.60 / 3.41).
  • Comparison to Baselines: NeVA comfortably beat Random (Mean SED: 5.09) and Center-bias (Mean SED: 4.99) baselines across all datasets.
  • Remaining Ceiling: Human inter-observer consistency remains considerably higher (e.g., MIT1003 SPP SED of 1.65), demonstrating that substantial headroom remains.

Limitations and Future Work

  • Simple Task Proxies: Downstream tasks were restricted to CIFAR-10 classification and reconstruction; testing richer vision architectures (e.g., Vision Transformers, object detectors, segmentation) remains open.
  • Intra-Subject Variation: The model outputs a single deterministic or policy-driven path and does not yet capture individual human personality or cognitive differences.
  • Expert Gaze Modeling: Future work aims to leverage domain-specific task networks (such as radiology classifiers detecting tumors) to synthesize synthetic expert scanpaths, potentially reducing data collection burdens in medical AI.

Summary updated

BibTeX
@inproceedings{schwinn2022simulating,
  author = {Leo Schwinn and Doina Precup and Bjoern Eskofier and Dario Zanca},
  title = {{Simulating Human Gaze with Neural Visual Attention}},
  booktitle = {GMML @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=bai3OCRQF_N},
}
Figure