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/Vision Transformer with Deformable Attention

Vision Transformer with Deformable Attention

Zhuofan Xia, Xuran Pan, Shiji Song, Li Erran Li, Gao Huang

2022-01-03CVPR 2022 1Image ClassificationSemantic SegmentationObject Detection
PaperPDFCodeCode(official)

Abstract

Transformers have recently shown superior performances on various vision tasks. The large, sometimes even global, receptive field endows Transformer models with higher representation power over their CNN counterparts. Nevertheless, simply enlarging receptive field also gives rise to several concerns. On the one hand, using dense attention e.g., in ViT, leads to excessive memory and computational cost, and features can be influenced by irrelevant parts which are beyond the region of interests. On the other hand, the sparse attention adopted in PVT or Swin Transformer is data agnostic and may limit the ability to model long range relations. To mitigate these issues, we propose a novel deformable self-attention module, where the positions of key and value pairs in self-attention are selected in a data-dependent way. This flexible scheme enables the self-attention module to focus on relevant regions and capture more informative features. On this basis, we present Deformable Attention Transformer, a general backbone model with deformable attention for both image classification and dense prediction tasks. Extensive experiments show that our models achieve consistently improved results on comprehensive benchmarks. Code is available at https://github.com/LeapLabTHU/DAT.

Results

TaskDatasetMetricValueModel
Semantic SegmentationADE20KParams (M)121DAT-B (UperNet)
Semantic SegmentationADE20KValidation mIoU49.38DAT-B (UperNet)
Semantic SegmentationADE20KParams (M)81DAT-S (UperNet)
Semantic SegmentationADE20KValidation mIoU48.31DAT-S (UperNet)
Semantic SegmentationADE20KParams (M)60DAT-T (UperNet)
Semantic SegmentationADE20KValidation mIoU45.54DAT-T (UperNet)
Object DetectionCOCO test-devAP5069.6DAT-S (RetinaNet)
Object DetectionCOCO test-devAP7551.2DAT-S (RetinaNet)
Object DetectionCOCO test-devAPL63.4DAT-S (RetinaNet)
Object DetectionCOCO test-devAPM51.8DAT-S (RetinaNet)
Object DetectionCOCO test-devAPS32.3DAT-S (RetinaNet)
Object DetectionCOCO test-devbox mAP47.9DAT-S (RetinaNet)
Image ClassificationImageNetGFLOPs49.8DAT-B (384 res, IN-1K only)
Image ClassificationImageNetGFLOPs9DAT-S
Image ClassificationImageNetGFLOPs4.6DAT-T
3DCOCO test-devAP5069.6DAT-S (RetinaNet)
3DCOCO test-devAP7551.2DAT-S (RetinaNet)
3DCOCO test-devAPL63.4DAT-S (RetinaNet)
3DCOCO test-devAPM51.8DAT-S (RetinaNet)
3DCOCO test-devAPS32.3DAT-S (RetinaNet)
3DCOCO test-devbox mAP47.9DAT-S (RetinaNet)
2D ClassificationCOCO test-devAP5069.6DAT-S (RetinaNet)
2D ClassificationCOCO test-devAP7551.2DAT-S (RetinaNet)
2D ClassificationCOCO test-devAPL63.4DAT-S (RetinaNet)
2D ClassificationCOCO test-devAPM51.8DAT-S (RetinaNet)
2D ClassificationCOCO test-devAPS32.3DAT-S (RetinaNet)
2D ClassificationCOCO test-devbox mAP47.9DAT-S (RetinaNet)
2D Object DetectionCOCO test-devAP5069.6DAT-S (RetinaNet)
2D Object DetectionCOCO test-devAP7551.2DAT-S (RetinaNet)
2D Object DetectionCOCO test-devAPL63.4DAT-S (RetinaNet)
2D Object DetectionCOCO test-devAPM51.8DAT-S (RetinaNet)
2D Object DetectionCOCO test-devAPS32.3DAT-S (RetinaNet)
2D Object DetectionCOCO test-devbox mAP47.9DAT-S (RetinaNet)
10-shot image generationADE20KParams (M)121DAT-B (UperNet)
10-shot image generationADE20KValidation mIoU49.38DAT-B (UperNet)
10-shot image generationADE20KParams (M)81DAT-S (UperNet)
10-shot image generationADE20KValidation mIoU48.31DAT-S (UperNet)
10-shot image generationADE20KParams (M)60DAT-T (UperNet)
10-shot image generationADE20KValidation mIoU45.54DAT-T (UperNet)
16kCOCO test-devAP5069.6DAT-S (RetinaNet)
16kCOCO test-devAP7551.2DAT-S (RetinaNet)
16kCOCO test-devAPL63.4DAT-S (RetinaNet)
16kCOCO test-devAPM51.8DAT-S (RetinaNet)
16kCOCO test-devAPS32.3DAT-S (RetinaNet)
16kCOCO test-devbox mAP47.9DAT-S (RetinaNet)

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