Abstract Current linearizing encoding models that predict neural responses to sensory input typically neglect neuroscience-inspired constraints that could enhance model efficiency and interpretability. To address this, we propose a new method called affine feature response transform (AFRT), which exploits the brain's retinotopic organization. Applying AFRT to encode multi-unit activity in areas V1, V4, and IT of the macaque brain, we demonstrate that AFRT reduces redundant computations and enhances the performance of current linearizing encoding models by segmenting each neuron's receptive field into an affine retinal transform, followed by a localized feature response. Remarkably, by factorizing receptive fields into a sequential affine component with three interpretable parameters (for shifting and scaling) and response components with a small number of feature weights per response, AFRT achieves encoding with orders of magnitude fewer parameters compared to unstructured models. We show that the retinal transform of each neuron's encoding agrees well with the brain's receptive field. Together, these findings suggest that this new subset within spatial transformer network can be instrumental in neural encoding models of naturalistic stimuli.
Introduction
Understanding how the biological brain processes visual information requires robust neural encoding models—computational frameworks that predict neural responses to sensory stimuli. A common paradigm involves passing images through a pre-trained Convolutional Neural Network (CNN) and learning a linear mapping from the resulting features to recorded neural activity. However, these "unstructured" models often ignore the fundamental principle of retinotopy: the fact that individual neurons respond only to localized regions of the visual field, known as receptive fields. By attempting to map global features to local responses, standard models suffer from high parameter counts, susceptibility to overfitting, and poor interpretability.
The Affine Feature Response Transform (AFRT)
To address these limitations, we introduce the Affine Feature Response Transform (AFRT). This model explicitly factorizes the encoding process into two distinct components: "where" the neuron is looking and "what" features it is responding to.
As shown in Figure 1, the AFRT architecture begins with an Affine Transform block. Instead of processing the entire image, a constrained Spatial Transformer Network (STN) uses just three learnable parameters—horizontal shift, vertical shift, and scale—to crop and resize the input stimulus $S_i$ into a localized patch $V_i$. This patch represents the neuron's estimated receptive field. This localized input is then fed into a frozen, pre-trained feature extractor (AlexNet), where a small set of linear weights maps the specific features to the predicted neural response $y$.
Experimental Results
We evaluated AFRT using multi-unit activity (MUA) recorded from areas V1, V4, and IT of the macaque brain while the subject viewed naturalistic images from the THINGS database.
The results, summarized in Figure 2, demonstrate that AFRT significantly outperforms the standard unstructured baseline across all three brain regions. Beyond accuracy, the biological inductive bias of AFRT provides massive computational advantages. By isolating the spatial crop, the model reduces the number of required parameters by three orders of magnitude (e.g., from ~6.4 million to ~6,000 per neuron). This reduction acts as a powerful regularizer, enabling the model to achieve high performance even with limited neural data.
Interpretability and Biological Alignment
AFRT offers unprecedented interpretability. The learned affine parameters directly define a bounding box for each neuron's receptive field. Our analysis confirmed that the model's learned spatial constraints align with biological expectations: receptive fields in deeper regions (V4, IT) were found to be larger than those in early regions (V1). Furthermore, the model naturally discovered a hierarchical preference, where V1 activity was best predicted by early CNN layers, while V4 and IT activity aligned with deeper layers.
Discussion and Future Directions
While the current AFRT model uses a constrained affine transform (excluding rotation or shear) to maintain simplicity, it provides a highly efficient and interpretable bridge between deep learning and neuroscience. Future work will explore extending this framework to capture temporal dynamics in video stimuli and training the feature extractor end-to-end. Ultimately, the precision and efficiency of AFRT-like models could be foundational for developing advanced visual neuroprosthetics, allowing for more accurate and localized stimulation of the visual cortex.
Summary updated