English

Augmenting Convolutional networks with attention-based aggregation

Computer Vision and Pattern Recognition 2021-12-28 v1

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.

Keywords

Cite

@article{arxiv.2112.13692,
  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},
  journal= {arXiv preprint arXiv:2112.13692},
  year   = {2021}
}
R2 v1 2026-06-24T08:32:36.353Z