TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Augmenting Convolutional networks with attention-based agg...

Augmenting Convolutional networks with attention-based aggregation

Hugo Touvron, Matthieu Cord, Alaaeldin El-Nouby, Piotr Bojanowski, Armand Joulin, Gabriel Synnaeve, Hervé Jégou

2021-12-27Image ClassificationSemantic SegmentationClassificationObject DetectionImage Segmentation
PaperPDFCodeCode(official)CodeCodeCode

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.

Results

TaskDatasetMetricValueModel
Semantic SegmentationADE20K valmIoU52.9PatchConvNet-L120 (UperNet)
Semantic SegmentationADE20K valmIoU52.8PatchConvNet-B120 (UperNet)
Semantic SegmentationADE20K valmIoU51.1PatchConvNet-B60 (UperNet)
Semantic SegmentationADE20K valmIoU49.3PatchConvNet-S60 (UperNet)
Semantic SegmentationADE20KValidation mIoU52.9PatchConvNet-L120 (UperNet)
Semantic SegmentationADE20KValidation mIoU52.8PatchConvNet-B120 (UperNet)
Semantic SegmentationADE20KValidation mIoU51.1PatchConvNet-B60 (UperNet)
Semantic SegmentationADE20KValidation mIoU49.3PatchConvNet-S60 (UperNet)
Object DetectionCOCO minivalbox AP47PatchConvNet-S120 (Mask R-CNN)
Object DetectionCOCO minivalbox AP46.4PatchConvNet-S60 (Mask R-CNN)
3DCOCO minivalbox AP47PatchConvNet-S120 (Mask R-CNN)
3DCOCO minivalbox AP46.4PatchConvNet-S60 (Mask R-CNN)
2D ClassificationCOCO minivalbox AP47PatchConvNet-S120 (Mask R-CNN)
2D ClassificationCOCO minivalbox AP46.4PatchConvNet-S60 (Mask R-CNN)
2D Object DetectionCOCO minivalbox AP47PatchConvNet-S120 (Mask R-CNN)
2D Object DetectionCOCO minivalbox AP46.4PatchConvNet-S60 (Mask R-CNN)
10-shot image generationADE20K valmIoU52.9PatchConvNet-L120 (UperNet)
10-shot image generationADE20K valmIoU52.8PatchConvNet-B120 (UperNet)
10-shot image generationADE20K valmIoU51.1PatchConvNet-B60 (UperNet)
10-shot image generationADE20K valmIoU49.3PatchConvNet-S60 (UperNet)
10-shot image generationADE20KValidation mIoU52.9PatchConvNet-L120 (UperNet)
10-shot image generationADE20KValidation mIoU52.8PatchConvNet-B120 (UperNet)
10-shot image generationADE20KValidation mIoU51.1PatchConvNet-B60 (UperNet)
10-shot image generationADE20KValidation mIoU49.3PatchConvNet-S60 (UperNet)
16kCOCO minivalbox AP47PatchConvNet-S120 (Mask R-CNN)
16kCOCO minivalbox AP46.4PatchConvNet-S60 (Mask R-CNN)

Related Papers

SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17DiffOSeg: Omni Medical Image Segmentation via Multi-Expert Collaboration Diffusion Model2025-07-17SCORE: Scene Context Matters in Open-Vocabulary Remote Sensing Instance Segmentation2025-07-17