Are Convolutional Neural Networks or Transformers more like human vision?

Shikhar Tuli, Ishita Dasgupta, Erin Grant, Thomas L. Griffiths
5/15/2021
cs.CV
transformer-attention

Official code: shikhartuli/cnn_txf_bias (43 stars, Jupyter Notebook, last commit 2021-05-18).

Abstract

Modern machine learning models for computer vision exceed humans in accuracy on specific visual recognition tasks, notably on datasets like ImageNet. However, high accuracy can be achieved in many ways.

Show full abstract

The particular decision function found by a machine learning system is determined not only by the data to which the system is exposed, but also the inductive biases of the model, which are typically harder to characterize. In this work, we follow a recent trend of in-depth behavioral analyses of neural network models that go beyond accuracy as an evaluation metric by looking at patterns of errors. Our focus is on comparing a suite of standard Convolutional Neural Networks (CNNs) and a recently-proposed attention-based network, the Vision Transformer (ViT), which relaxes the translation-invariance constraint of CNNs and therefore represents a model with a weaker set of inductive biases. Attention-based networks have previously been shown to achieve higher accuracy than CNNs on vision tasks, and we demonstrate, using new metrics for examining error consistency with more granularity, that their errors are also more consistent with those of humans. These results have implications both for building more human-like vision models, as well as for understanding visual object recognition in humans.

View on arXivView PDF

Code Implementations(1)

[CogSci'21] Study of human inductive biases in CNNs and Transformers.

433Jupyter Notebook, RNov 13, 20205 years ago
cnnsinductive-biasestransformers

Similar Papers

Cite this paper

@article{tuli2021convolutional,
  title  = {Are Convolutional Neural Networks or Transformers more like human vision?},
  author = {Shikhar Tuli and Ishita Dasgupta and Erin Grant and Thomas L. Griffiths},
  year   = {2021},
  eprint = {2105.07197},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.07197}
}

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

Discussion