Do Invariances in Deep Neural Networks Align with Human Perception?

Vedant Nanda, Ayan Majumdar, Camila Kolling, John P. Dickerson, Krishna P. Gummadi +2 more
11/29/2021
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: nvedant07/Human-NN-Alignment (0 stars, Jupyter Notebook, last commit 2023-02-09).

Abstract

An evaluation criterion for safe and trustworthy deep learning is how well the invariances captured by representations of deep neural networks (DNNs) are shared with humans. We identify challenges in measuring these invariances.

Show full abstract

Prior works used gradient-based methods to generate identically represented inputs (IRIs), ie, inputs which have identical representations (on a given layer) of a neural network, and thus capture invariances of a given network. One necessary criterion for a network's invariances to align with human perception is for its IRIs look 'similar' to humans. Prior works, however, have mixed takeaways; some argue that later layers of DNNs do not learn human-like invariances (\cite{jenelle2019metamers}) yet others seem to indicate otherwise (\cite{mahendran2014understanding}). We argue that the loss function used to generate IRIs can heavily affect takeaways about invariances of the network and is the primary reason for these conflicting findings. We propose an adversarial regularizer on the IRI generation loss that finds IRIs that make any model appear to have very little shared invariance with humans. Based on this evidence, we argue that there is scope for improving models to have human-like invariances, and further, to have meaningful comparisons between models one should use IRIs generated using the regularizer-free loss. We then conduct an in-depth investigation of how different components (eg architectures, training losses, data augmentations) of the deep learning pipeline contribute to learning models that have good alignment with humans. We find that architectures with residual connections trained using a (self-supervised) contrastive loss with $\ell_p$ ball adversarial data augmentation tend to learn invariances that are most aligned with humans. Code: \url{github.com/nvedant07/Human-NN-Alignment}.

View on arXivView PDF

Code Implementations(1)

Code for AAAI 2023 paper "Do Invariances in Deep Neural Networks Align with Human Perception?" (https://arxiv.org/abs/2111.14726)

00Jupyter Notebook, PythonDec 1, 20223 years ago

Similar Papers

Cite this paper

@article{nanda2021invariances,
  title  = {Do Invariances in Deep Neural Networks Align with Human Perception?},
  author = {Vedant Nanda and Ayan Majumdar and Camila Kolling and John P. Dickerson and Krishna P. Gummadi and Bradley C. Love and Adrian Weller},
  year   = {2021},
  eprint = {2111.14726},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.14726}
}

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/2111.14726.svg)](https://codeofpaper.com/paper/2111.14726)

Discussion