Skip to main content
QUICK REVIEW

[Paper Review] Learning From Brains How to Regularize Machines

Zhe Li, Wieland Brendel|arXiv (Cornell University)|Nov 11, 2019
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology12 citations
TL;DR

This paper proposes regularizing Convolutional Neural Networks (CNNs) using representational similarity from large-scale mouse visual cortex recordings to improve robustness against noise and adversarial attacks. By training predictive models on neural responses and penalizing deviations from these biologically inspired representations, the method enhances model generalization without sacrificing standard accuracy, significantly outperforming baseline and control models under perturbations.

ABSTRACT

Despite impressive performance on numerous visual tasks, Convolutional Neural Networks (CNNs) --- unlike brains --- are often highly sensitive to small perturbations of their input, e.g. adversarial noise leading to erroneous decisions. We propose to regularize CNNs using large-scale neuroscience data to learn more robust neural features in terms of representational similarity. We presented natural images to mice and measured the responses of thousands of neurons from cortical visual areas. Next, we denoised the notoriously variable neural activity using strong predictive models trained on this large corpus of responses from the mouse visual system, and calculated the representational similarity for millions of pairs of images from the model's predictions. We then used the neural representation similarity to regularize CNNs trained on image classification by penalizing intermediate representations that deviated from neural ones. This preserved performance of baseline models when classifying images under standard benchmarks, while maintaining substantially higher performance compared to baseline or control models when classifying noisy images. Moreover, the models regularized with cortical representations also improved model robustness in terms of adversarial attacks. This demonstrates that regularizing with neural data can be an effective tool to create an inductive bias towards more robust inference.

Motivation & Objective

  • To investigate whether incorporating biological neural representation similarity from mouse visual cortices can improve deep learning model robustness.
  • To address the gap in robustness between artificial neural networks and biological brains, particularly under noisy or adversarial inputs.
  • To develop a data-driven regularization method that embeds inductive biases derived from real neural activity into CNNs.
  • To evaluate whether neural representation similarity provides a more effective inductive bias than random or pre-trained features.

Proposed method

  • Recorded population responses from thousands of neurons in the primary visual cortex of awake mice exposed to 5100 natural grayscale images.
  • Calculated signal-to-noise ratios for each neuron to weight responses, improving reliability of neural similarity estimates.
  • Used repeated trials (oracle images) to train strong predictive models of neural activity, enabling denoised representation predictions.
  • Computed representational similarity matrices between image pairs based on predicted neural responses.
  • Modified the CNN's loss function to penalize intermediate feature activations that deviate from the neural similarity structure.
  • Trained ResNet models with joint optimization over classification and neural similarity regularization, using a learnable weighting coefficient α.

Experimental results

Research questions

  • RQ1Can regularization using neural representation similarity from mouse visual cortices improve CNN robustness to input perturbations?
  • RQ2Does neural-based regularization outperform regularization using random features or features from a pre-trained VGG model?
  • RQ3How does the choice of network layer for regularization affect model performance and stability?
  • RQ4Is the improved robustness due to a genuine inductive bias or artifacts like gradient masking?
  • RQ5Can this approach generalize across different types of adversarial attacks and noise distributions?

Key findings

  • Models regularized with neural representation similarity achieved significantly higher accuracy than baseline models when classifying images corrupted by random noise.
  • The neural-regularized model showed marked improvement in adversarial robustness across multiple $L_p$ norms ($L_0$, $L_1$, $L_2$, $L_∞$), outperforming both baseline and control models.
  • Robustness gains were consistent across diverse adversarial attacks, including PGD, C&W, JSMA, and Brendel & Bethge, indicating a genuine improvement in generalization.
  • The regularization effect was specific to neural similarity—models regularized with shuffled or VGG-based features showed substantially less improvement.
  • The optimal regularization layer was not deterministic but tended to be in early to mid-convolutional layers, with layer selection influenced by the regularization strength α.
  • The method preserved standard ImageNet classification performance while enhancing robustness, demonstrating that biological inductive biases can be effectively transferred to artificial networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.