Different Spectral Representations in Optimized Artificial Neural Networks and Brains

Richard C. Gerum, Cassidy Pirlot, Alona Fyshe, Joel Zylberberg
8/22/2022
cs.LGcs.AIq-bio.NC

Official code: rgerum/spectral-representations (3 stars, Python, MIT, last commit 2023-08-29).

Abstract

Recent studies suggest that artificial neural networks (ANNs) that match the spectral properties of the mammalian visual cortex -- namely, the $\sim 1/n$ eigenspectrum of the covariance matrix of neural activities -- achieve higher object recognition performance and robustness to adversarial attacks than those that do not. To our knowledge, however, no previous work systematically explored how modifying the ANN's spectral properties affects performance.

Show full abstract

To fill this gap, we performed a systematic search over spectral regularizers, forcing the ANN's eigenspectrum to follow $1/n^α$ power laws with different exponents $α$. We found that larger powers (around 2--3) lead to better validation accuracy and more robustness to adversarial attacks on dense networks. This surprising finding applied to both shallow and deep networks and it overturns the notion that the brain-like spectrum (corresponding to $α\sim 1$) always optimizes ANN performance and/or robustness. For convolutional networks, the best $α$ values depend on the task complexity and evaluation metric: lower $α$ values optimized validation accuracy and robustness to adversarial attack for networks performing a simple object recognition task (categorizing MNIST images of handwritten digits); for a more complex task (categorizing CIFAR-10 natural images), we found that lower $α$ values optimized validation accuracy whereas higher $α$ values optimized adversarial robustness. These results have two main implications. First, they cast doubt on the notion that brain-like spectral properties ($α\sim 1$) \emph{always} optimize ANN performance. Second, they demonstrate the potential for fine-tuned spectral regularizers to optimize a chosen design metric, i.e., accuracy and/or robustness.

View on arXivView PDF

Code Implementations(1)

MIT
30PythonMay 19, 20223 years agoMIT

Similar Papers

Cite this paper

@article{gerum2022different,
  title  = {Different Spectral Representations in Optimized Artificial Neural Networks and Brains},
  author = {Richard C. Gerum and Cassidy Pirlot and Alona Fyshe and Joel Zylberberg},
  year   = {2022},
  eprint = {2208.10576},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.10576}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.10576.svg)](https://codeofpaper.com/paper/2208.10576)

Discussion