Neural encoding with visual attention

Meenakshi Khosla, Gia H. Ngo, Keith Jamison, Amy Kuceyeski, Mert R. Sabuncu

Introduction

A fundamental principle of human biology is that we do not process our visual environment with uniform intensity. Instead, our visual system employs an "attentional bottleneck," filtering out background clutter to prioritize specific regions of interest. In computational neuroscience, the task of neural encoding—predicting brain activity (such as fMRI signals) from sensory input—has traditionally struggled to account for this selectivity. Most existing models treat every pixel in a frame as equally important, leading to a gap between model predictions and the biological reality of the human cortex.

This paper explores the integration of a "where to look" mechanism into computational models of the brain. By explicitly modeling visual attention, the authors demonstrate a significant improvement in our ability to predict how the human cortex responds to complex, real-world stimuli like movies.

Methodology

The researchers developed a two-stage architecture designed to mimic the hierarchical and selective nature of human vision:

  1. Feature Extraction: A pre-trained ResNet-50 was used to extract high-level semantic features from movie frames. The model specifically utilized the last residual block (res5), producing a 2048-channel feature map.
  2. The Attention Module: The core innovation is a trainable soft-attention module. This consists of a single convolutional layer followed by a spatial softmax operation, which produces a "saliency map." This map weights the importance of different spatial locations within the feature map.
  3. Convolutional Response Model: Rather than using traditional high-dimensional linear regression for every voxel, the authors employed a 3D convolutional neural network. This model takes the attention-weighted features and "unfolds" them into a high-resolution volumetric prediction of the brain's response.

The study compared three distinct approaches: a baseline with no attention (global pooling), a gaze-weighted model (using actual eye-tracking data as an upper bound), and a learned attention model (where the system discovers its own attention policy through end-to-end training supervised only by fMRI data).

Experimental Setup

The study utilized the Human Connectome Project (HCP) movie-watching database, featuring high-resolution 7T fMRI recordings from 158 participants. The stimuli consisted of four audio-visual movies, including Hollywood clips and short films. Crucially, the dataset included concurrent eye-tracking data recorded at 1000Hz, providing a precise ground truth for where subjects were looking during every second of the film.

Key Insights

The Brain as a Supervisor

One of the most striking findings was that the model did not require eye-tracking data to learn where humans look. By training the model solely to predict fMRI responses, the attention module "discovered" human-like gaze patterns. It learned that features such as faces, hands, and moving objects are the primary drivers of brain activity, producing attention maps that closely match actual human eye movements.

Performance Multiplier

Incorporating visual attention served as a massive performance multiplier. Using real gaze information improved prediction accuracy by approximately 47% compared to models without attention. This suggests that much of the "unexplained variance" in previous encoding studies may simply be the result of ignoring the subject's focus.

Ventral Stream Sensitivity

The improvements were most pronounced in the ventral visual stream (the "what" pathway), including specialized areas like the Fusiform Face Complex (FFC). This aligns with biological expectations, as these regions are dedicated to object and face recognition—tasks that require focused, foveal attention.

Results and Interpretability

Quantitatively, the "Learned Attention" model significantly outperformed both the "No Attention" and "Center-Weighted" baselines across the synchronous, stimulus-driven cortex. When benchmarked against established saliency models (like Itti-Koch and DeepGaze-II) using the Similarity (SIM) metric, the authors' fMRI-trained model actually achieved superior performance, despite never being explicitly trained on eye-tracking data.

Beyond accuracy, this approach offers enhanced interpretability. The predicted saliency maps provide a "window" into the encoding process, allowing researchers to visualize exactly which parts of a movie frame the model identifies as the primary drivers of neural activity.

Limitations and Future Directions

While the model represents a significant step forward, several avenues for future work remain:

  • Temporal Dynamics: The current model processes frames individually. Future iterations could incorporate Recurrent Neural Networks (RNNs) or Transformers to capture the temporal flow of movies.
  • Multi-level Attention: The study focused on high-level features from the end of a ResNet. However, attention also modulates lower-level visual areas (like V1), suggesting that multi-level attention modules could further refine predictions.
  • Population Diversity: As the HCP dataset primarily features healthy young adults, further research is needed to determine how these attention policies shift in different populations, such as children or neurodivergent individuals.

Reference: Khosla, M., Ngo, G. H., Jamison, K., Kuceyeski, A., & Sabuncu, M. R. (2020). Neural encoding with visual attention. arXiv:2010.00516v1.

Summary updated

BibTeX
@inproceedings{khosla2020neural,
  author = {Meenakshi Khosla and Gia H. Ngo and Keith Jamison and Amy Kuceyeski and Mert R. Sabuncu},
  title = {{Neural encoding with visual attention}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=5qF-q57ObZm},
}
Figure