Training neural networks to mimic the brain improves object recognition performance

Callie Federer, Haoyan Xu, Alona Fyshe, Joel Zylberberg

Abstract

The current state-of-the-art object recognition algorithms, deep convolutional neural networks (DCNNs), are inspired by the architecture of the mammalian visual system and are capable of human-level performance on many tasks. However, even these algorithms make errors. As they are trained for object recognition tasks, it has been shown that DCNNs develop hidden representations that resemble those observed in the mammalian visual system. Moreover, DCNNs trained on object recognition tasks are currently among the best models we have of the mammalian visual system. This led us to hypothesize that teaching DCNNs to achieve even more brain-like representations could improve their performance. To test this, we trained DCNNs on a composite task, wherein networks were trained to: a) classify images of objects; while b) having intermediate representations that resemble those observed in neural recordings from monkey visual cortex. Compared with DCNNs trained purely for object categorization, DCNNs trained on the composite task had better object recognition performance and are more robust to label corruption. Interestingly, we also found that neural data was not required, but randomized data with the same statistics as neural data also boosted performance. Our results outline a new way to train object recognition networks, using strategies in which the brain - or at least the statistical properties of its activation patterns - serves as a teacher signal for training DCNNs.

Introduction

While modern deep convolutional neural networks (DCNNs) achieve human-level performance on many tasks, they still differ from biological vision in critical ways. They are often fragile, susceptible to adversarial attacks, and make "un-human" errors—such as confusing a cat with a toaster. Previous research has shown that as DCNNs improve at categorization, they naturally develop internal representations that resemble the brain. This study flips the script: by forcing a network to be more brain-like from the start, can we create a more robust and accurate object recognizer?

Methodology

The researchers employed a "composite task" training strategy. Instead of training a network solely to minimize classification error, they added a second goal: matching the Representational Similarity Matrix (RSM) of a monkey’s primary visual cortex (V1).

Overview of the CORNet-Z architecture and the Representational Similarity Analysis (RSA) training framework.

The Teacher Signal and RSMs

The study utilized multielectrode recordings from 392 neurons in the V1 area of anesthetized macaque monkeys shown 270 natural images. For every pair of images, the similarity of neural response patterns was calculated to create a $270 \times 270$ RSM, defining the "geometry" of the brain's internal representations.

Training and Datasets

DCNNs (specifically CORNet-Z and VGG-16 architectures) were trained on the CIFAR-100 dataset. The loss function combined standard cross-entropy for classification with the mean-squared error between the network’s internal RSM and the monkey’s V1 RSM. To test robustness, the researchers used a modified CIFAR-100 dataset where training labels were randomly corrupted at rates between 10% and 50%.

Key Results and Insights

Performance and Robustness

Forcing the network to match V1 representations acted as a powerful regularizer. In the CORNet-Z architecture, V1-mimicking networks achieved a test accuracy of approximately 49.5%, compared to 46.5% for the baseline. Furthermore, when 50% of training labels were corrupted, these brain-mimicking networks maintained significantly higher accuracy, demonstrating superior noise rejection.

Comparison of Representational Similarity Matrices (RSMs) for the neural network and monkey V1.

Qualitative Improvements

When the brain-mimicking networks did fail, their errors were more semantically grounded. They were more likely to make "within-superclass" errors (e.g., confusing a hamster for a mouse) rather than nonsensical ones. t-SNE visualizations also revealed that these networks developed more diverse and spread-out unit activations in their early layers.

The Role of Statistical Properties

One surprising finding was that the exact neural responses were not strictly necessary. Training a network to match random Gaussian noise with the same mean and variance as the neural data also boosted performance. This suggests that the statistical distribution or "dynamic range" of brain activity is a key component of its efficiency.

Discussion and Future Work

The study highlights the "early layer advantage," where mimicking V1 (an early visual area) provided the most significant boost. Mimicking higher areas like V4 or IT was less effective, likely due to data limitations or higher specialization in those regions.

Future work should explore scaling these methods to larger architectures and datasets like ImageNet. Additionally, using data from awake animals and integrating recurrent dynamics—a hallmark of biological vision—could further bridge the gap between artificial and biological intelligence.

Summary updated

Abstract

The current state-of-the-art object recognition algorithms, deep convolutional neural networks (DCNNs), are inspired by the architecture of the mammalian visual system, and are capable of human-level performance on many tasks. However, even these algorithms make errors. As they are trained for object recognition tasks, it has been shown that DCNNs develop hidden representations that resemble those observed in the mammalian visual system. Moreover, DCNNs trained on object recognition tasks are currently among the best models we have of the mammalian visual system. This led us to hypothesize that teaching DCNNs to achieve even more brain-like representations could improve their performance. To test this, we trained DCNNs on a composite task, wherein networks were trained to: a) classify images of objects; while b) having intermediate representations that resemble those observed in neural recordings from monkey visual cortex. Compared with DCNNs trained purely for object categorization, DCNNs trained on the composite task had better object recognition performance and are more robust to label corruption. Interestingly, we also found that neural data was not required, but randomized data with the same statistics as neural data also boosted performance. Our results outline a new way to train object recognition networks, using strategies in which the brain - or at least the statistical properties of its activation patterns - serves as a teacher signal for training DCNNs.
BibTeX
@inproceedings{federer2020training,
  author = {Callie Federer and Haoyan Xu and Alona Fyshe and Joel Zylberberg},
  title = {{Training neural networks to mimic the brain improves object recognition performance}},
  booktitle = {Neural Networks},
  year = {2020},
  doi = {10.1016/j.neunet.2020.07.013},
}
Figure