Augmenting Convolutional networks with attention-based aggregation

Hugo Touvron, Matthieu Cord, Alaaeldin El-Nouby, Piotr Bojanowski, Armand Joulin +2 more
12/27/2021
cs.CV

Official code: facebookresearch/deit (4,348 stars, Apache-2.0, last commit 2024-03-15).

Abstract

We show how to augment any convolutional network with an attention-based global map to achieve non-local reasoning. We replace the final average pooling by an attention-based aggregation layer akin to a single transformer block, that weights how the patches are involved in the classification decision. We plug this learned aggregation layer with a simplistic patch-based convolutional network parametrized by 2 parameters (width and depth). In contrast with a pyramidal design, this architecture family maintains the input patch resolution across all the layers. It yields surprisingly competitive trade-offs between accuracy and complexity, in particular in terms of memory consumption, as shown by our experiments on various computer vision tasks: object classification, image segmentation and detection.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official DeiT repository

4,348591PythonDec 23, 20202 years agoApache-2.0

Similar Papers

Cite this paper

@article{touvron2021augmenting,
  title  = {Augmenting Convolutional networks with attention-based aggregation},
  author = {Hugo Touvron and Matthieu Cord and Alaaeldin El-Nouby and Piotr Bojanowski and Armand Joulin and Gabriel Synnaeve and Hervé Jégou},
  year   = {2021},
  eprint = {2112.13692},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.13692}
}

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

Discussion