Brain Decodes Deep Nets

Huzheng Yang, James Gee, Jianbo ShiCVPR 2023

Abstract

Understanding the internal representations of Large Vision Models remains a significant challenge in AI research. This paper introduces FactorTopy, a novel framework that maps the internal features of deep neural networks (DNNs) directly onto the human brain's visual cortex using fMRI data. By treating the brain as a biological "template," the study reveals that models like CLIP share a strikingly similar hierarchical organization with humans—a trait that makes them significantly more robust to catastrophic forgetting during fine-tuning.

Introduction

Despite the meteoric rise of Large Vision Models, they remain "black boxes." While performance metrics are easily obtained, understanding how billions of parameters are organized across layers, scales, and channels is notoriously difficult. The human brain, conversely, is a highly organized system with well-mapped functional regions: the early visual cortex (V1) handles low-level features like edges, while late regions like the Fusiform Face Area (FFA) process complex semantics.

This research explores whether the brain’s functional architecture can serve as a mirror to diagnose AI model behavior. By mapping AI features to specific brain voxels, the authors aim to analyze scaling effects and understand why certain models adapt more effectively to new tasks.

Methods: The FactorTopy Framework

The authors introduce FactorTopy, a "plug-and-play" brain encoding model designed to predict fMRI signals from image stimuli, primarily using the Natural Scenes Dataset (NSD)—a high-quality 7-Tesla fMRI dataset. The core innovation lies in its factorized approach to feature selection from pre-trained networks (e.g., ViT, CLIP, Stable Diffusion).

Overview of the FactorTopy framework, illustrating feature extraction, the brain encoding model, and the factorized selection across layer, space, scale, and channel dimensions.

The framework operates through four primary mechanisms:

  1. Factorized Selection: Instead of an unconstrained mapping, FactorTopy decomposes selection into four independent dimensions: Space (2D image coordinates), Layer (network depth), Scale (local patches vs. global tokens), and Channel (specific feature detectors).
  2. Topology Constraints: The model enforces "smoothness" based on the principle that neighboring brain voxels typically perform similar tasks. This ensures they select similar network features, reducing noise and increasing mapping confidence.
  3. Visualization by Coloring: By identifying which DNN layer best predicts a specific brain region, the researchers can "paint" the network’s hierarchy onto a 3D or flattened map of the brain.
  4. Channel Clustering: Brain-to-network weights are used to cluster AI channels, revealing the specific "concepts" (e.g., faces or textures) detected by different network components.

Key Insights and Results

The application of FactorTopy across various models yielded several critical findings:

The "CLIP" Exception and Scaling

While most self-supervised models (e.g., MAE, DiNOv2) exhibited non-hierarchical or "messy" brain alignment, CLIP showed a clear hierarchical structure. Its early layers mapped to the early visual cortex, while late layers aligned with semantic regions. This suggests that contrastive learning via natural language supervision encourages a more "human-like" logic. Furthermore, scaling CLIP (from Small to XL) improved this alignment, whereas scaling other architectures often decreased their brain-like organization.

Hierarchy and Robustness

The study found that "brain-like" hierarchical models are more robust to catastrophic forgetting. When fine-tuning on specialized datasets (e.g., ISIC skin cancer classification), CLIP maintained its internal structure. In contrast, models like SAM or DiNOv2 underwent significant internal "re-wiring," leading to higher rates of forgetting.

Diffusion Models

Stable Diffusion presents a unique case; it organizes information primarily by time steps rather than layer depth. Early denoising steps align with high-level semantic brain regions, while late steps correspond to early visual (edge-detection) regions.

Quantitative Performance

CLIP and MAE achieved the highest $R^2$ scores in predicting brain activity, particularly in high-level regions like the FFA and EBA. The authors proposed a "hierarchy slope" metric to quantify alignment; CLIP-XL achieved a score of 0.50, significantly outperforming smaller versions and supervised ImageNet models (0.11–0.39).

Limitations and Future Work

The utility of FactorTopy is currently constrained by the scarcity of high-quality, large-scale fMRI data like the NSD. Additionally, the authors note that AI efficiency does not strictly require brain-like organization; some high-performing models may operate on logic fundamentally different from biological vision. Future research aims to extend this framework to dynamic video stimuli and incorporate the feedback loops prevalent in biological neural systems.

Summary updated

BibTeX
@inproceedings{yang2023brain,
  author = {Huzheng Yang and James Gee and Jianbo Shi},
  title = {{Brain Decodes Deep Nets}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure