Comparative Analysis between Vision Transformers and CNNs from the view of Neuroscience

Xiuyuan Hu, Hao Zhang, Yang ZhaoICLR 2023 · OpenReview

Abstract

Neuroscience has provide many inspirations for the development of artificial intelligence, especially for neural networks for computer vision tasks. Recent research on animals' visual systems builds the connection between neural sparsity and animals' levels of evolution, based on which comparisons between two most influential vision architecture, Transformer and CNN, are carried out. In particular, the sparsity of attentions in Transformers is comprehensively studied, and previous knowledge on sparsity of neurons in CNNs is reviewed. In addition, a novel metric for neural sparsity is defined and ablation experiments are launched on various types of Transformer and CNN models. Finally, we draw the conclusion that more layers in models will result in higher sparsity, however, too many heads in Transformers may cause reduction of sparsity, which attributes to the significant overlap among effects of attention units.
BibTeX
@inproceedings{hu2023comparative,
  author = {Xiuyuan Hu and Hao Zhang and Yang Zhao},
  title = {{Comparative Analysis between Vision Transformers and CNNs from the view of Neuroscience}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=jrrokKkjVsz},
}

Loading related content...

Figure