Learning to aggregate feature representations

Guy GazivarXiv 2019

Abstract

Predicting human brain activity from visual stimuli remains a significant challenge due to biological variance and limited data. This paper introduces a framework that adaptively aggregates features across multiple stages of a pretrained SE-ResNeXt-50 network to perform brain encoding. By learning a channel-wise mask to weight representations, the model predicts Representational Dissimilarity Matrices (RDMs) for both fMRI and MEG data. Our approach ranked in the top five of the Algonauts 2019 challenge. Analysis of the learned weights reveals that later network stages are crucial for predicting activity in both the Early Visual Cortex (EVC) and Inferior Temporal (IT) cortex, suggesting a more complex hierarchical relationship than previously assumed.

Introduction

The goal of brain encoding is to develop computational models capable of transforming an image into the specific pattern of neural activity it would elicit in the human brain. The Algonauts 2019 Challenge formalized this task, requiring models to generalize across subjects, handle extreme data scarcity (only ~200 images), and reconcile multi-modal data from fMRI and MEG. Instead of predicting raw voxel activity, the challenge focuses on Representational Similarity Analysis (RSA), where models must predict the similarity between images as perceived by the brain, represented as a Representational Dissimilarity Matrix (RDM).

Methods

The proposed framework utilizes an SE-ResNeXt-50 backbone, pretrained on ImageNet, to extract robust visual features. The core innovation is the "Learning to Aggregate" mechanism.

Figure 1: The proposed architecture extracts feature maps from five stages of an SE-ResNeXt-50. A learnable channel-wise mask modulates these features to create an aggregated embedding for RDM calculation.

Multi-level Embedding and Learned Masking

Rather than selecting a single network layer, the model extracts feature maps from five distinct stages (Stages 0–4). A continuous, learnable mask $\beta^s_j$ is applied to each channel $j$ at stage $s$. This allows the optimization process to "screen" or "modulate" features based on their specific utility for predicting brain activity in different regions or time intervals.

Optimization and Loss

To account for subject-to-subject variability, a reliability-weighted loss function was implemented, giving more weight to image pairs with high inter-subject agreement. Depending on the target (EVC vs. IT), the model was either fully fine-tuned or trained only on the aggregation mask module.

Results

The method achieved highly competitive results, placing in the top five for both fMRI and MEG tracks. For fMRI, the model reached a noise-normalized $R^2$ of 24.93% for the EVC and 15.55% for the IT cortex. MEG performance was even higher, with 51.21% for early intervals and 35.10% for late intervals.

Figure 2: Learned mask weights across network stages for EVC (left) and IT (right). Both models show a preference for later network stages, particularly Stage 4.

Discussion

A key finding of this work is the "Late Stage Surprise": contrary to the conventional view that early CNN layers correspond to the EVC and late layers to the IT cortex, our model favored later network stages for both regions. As shown in Figure 2, the EVC model leaned heavily on higher-level representations even when evaluated at a finer resolution of 17 stages.

Furthermore, the results demonstrated Cross-Modal Synergy, where incorporating MEG data during training improved fMRI-EVC model performance. This suggests that temporal dynamics provide useful constraints for spatial encoding. Future work should address the limitations of "universal" RDMs, which may overlook individual differences in brain architecture, and explore larger datasets to better span the space of natural visual stimuli.

Summary updated

BibTeX
@misc{gaziv2019learning,
  author = {Guy Gaziv},
  title = {{Learning to aggregate feature representations}},
  year = {2019},
  eprint = {1907.01034},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.01034},
}
Figure