Abstract
Visual perception in the brain largely depends on the organization of neuronal receptive fields. Although extensive research has delineated the coding principles of receptive fields, most studies have been constrained by their foundational assumptions. Moreover, while machine learning has successfully been used to reconstruct images from brain data, this approach faces significant challenges, including inherent feature biases in the model and the complexities of brain structure and function. In this study, we introduce an inverse receptive field attention (IRFA) model, designed to reconstruct naturalistic images from neurophysiological data in an end-to-end fashion. This approach aims to elucidate the tuning properties and representational transformations within the visual cortex. The IRFA model incorporates an attention mechanism that determines the inverse receptive field for each pixel, weighting neuronal responses across the visual field and feature spaces. This method allows for an examination of the dynamics of neuronal representations across stimuli in both spatial and feature dimensions. Our results show highly accurate reconstructions of naturalistic data, independent of pre-trained models. Notably, IRF models trained on macaque V1, V4, and IT regions yield remarkably consistent spatial receptive fields across different stimuli, while the features to which neuronal representations are selective exhibit significant variation. Additionally, we propose a data-driven method to explore representational clustering within various visual areas, further providing testable hypotheses.
Introduction
Reconstructing visual stimuli from brain activity is a cornerstone of neural decoding. Recent advancements have leveraged large-scale generative models, such as latent diffusion models or GANs, to produce high-fidelity images from neural signals. However, these methods often suffer from "hallucination," where the model fills in details based on its training data rather than the actual neural representation. This bias obscures the underlying biological mechanisms of visual encoding.
Furthermore, traditional decoding models struggle to distinguish between spatial attention (where a neuron looks) from feature attention (what a neuron looks for). To address these challenges, we developed the Inverse Receptive Field Attention (IRFA) model. This end-to-end architecture is trained exclusively on neural data, allowing it to map how visual space and features are represented across the primate visual hierarchy without external priors.
Methods: The IRFA Architecture
The core of our approach is the IRFA mechanism, which flips the traditional concept of a receptive field. While a receptive field defines the region of space that activates a neuron, an inverse receptive field (IRF) identifies which neurons contribute to the reconstruction of a specific pixel.
The model processes multi-unit activity (MUA) from 15 Utah arrays (960 channels) implanted in a macaque monkey. The architecture consists of:
- Multi-head Embedding: Neural recordings from different arrays are treated as distinct heads and embedded into a high-dimensional feature space.
- Transpose Attention: A self-attention mechanism dynamically estimates spatial and feature-based IRFs, mapping neural responses onto a virtual image grid.
- U-Net Reconstruction: The resulting attention maps are processed by a U-Net to generate the final image.
- Hybrid Loss Function: The model is trained from scratch using a combination of pixel-wise (L1), perceptual (VGG), and adversarial (discriminator) losses.
Key Insights: Static Space vs. Dynamic Features
A primary finding of this work is the distinct behavior of spatial and feature-based attention. By analyzing the learned IRFs, we observed that the spatial locations neurons monitor remain remarkably stable across different stimuli. In contrast, the specific features (textures, shapes, colors) to which these neurons are tuned shift dynamically depending on the image being viewed.
This dynamic feature selectivity provides empirical support for the "biased competition theory" of attention, suggesting that the visual cortex actively reconfigures its representational priorities to highlight salient features in a scene. Furthermore, applying unsupervised clustering (t-SNE and DBSCAN) to the attention weights revealed that spatial IRFs naturally group into 15 clusters, perfectly corresponding to the 15 physical electrode arrays. Feature IRFs, however, formed over 1,100 clusters, reflecting the high dimensionality of feature processing in the brain.
Results and Performance
The IRFA model demonstrates superior performance compared to existing end-to-end baselines. Quantitatively, the 64-feature IRFA model achieved higher AlexNet feature correlations across all layers (e.g., FC8 correlation of 0.515 vs. 0.446 for the baseline). Qualitatively, the model successfully reconstructs complex natural scenes from the THINGS database, capturing accurate shapes, colors, and layouts without the hallucinations common in generative models.
Ablation studies confirmed that the number of feature channels is a critical factor; increasing the capacity for feature representation directly improves reconstruction quality. Additionally, the hybrid loss approach was found to be essential for maintaining both structural fidelity and naturalistic appearance.
Conclusion and Future Directions
The IRFA model provides a powerful, bias-free framework for neural decoding that yields both high-quality reconstructions and deep neurobiological insights. While the current study relies on invasive recordings in macaques, future work will explore the applicability of this architecture to non-invasive human data, such as fMRI. This research not only advances neural decoding technology but also offers a new tool for generating and testing hypotheses about the functional organization of the visual cortex.
Summary updated