Self-Attention-Based Contextual Modulation Improves Neural System Identification

I-Cheng Lin, Tianye Wang, Shang Gao, Shiming Tang, T. Lee
2/12/2026

No confident code implementation found for this paper.

Abstract

Convolutional neural networks (CNNs) have been shown to be state-of-the-art models for visual cortical neurons. Cortical neurons in the primary visual cortex are sensitive to contextual information mediated by extensive horizontal and feedback connections. Standard CNNs integrate global contextual information to model contextual modulation via two mechanisms: successive convolutions and a fully connected readout layer. In this paper, we find that self-attention (SA), an implementation of non-local network mechanisms, can improve neural response predictions over parameter-matched CNNs in two key metrics: tuning curve correlation and peak tuning. We introduce peak tuning as a metric to evaluate a model’s ability to capture a neuron’s top feature preference. We factorize networks to assess each context mechanism, revealing that information in the local receptive field is most important for modeling overall tuning, but surround information is critically necessary for characterizing the tuning peak. We find that self-attention can replace posterior spatial-integration convolutions when learned incrementally, and is further enhanced in the presence of a fully connected readout layer, suggesting that the two context mechanisms are complementary. Finally, we find that decomposing receptive field learning and contextual modulation learning in an incremental manner may be an effective and robust mechanism for learning surround-center interactions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2026selfattentionbased,
  title  = {Self-Attention-Based Contextual Modulation Improves Neural System Identification},
  author = {I-Cheng Lin and Tianye Wang and Shang Gao and Shiming Tang and T. Lee},
  year   = {2026},
  eprint = {2406.07843},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.07843},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.07843.svg)](https://codeofpaper.com/paper/2406.07843)

Discussion