Methods › General › Attention Modules › Deformable Attention Module
Deformable Attention Module
Introduced by Xizhou Zhu et al. in Deformable DETR: Deformable Transformers for End-to-End Object Detection
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
Deformable Attention Module is an attention module used in the Deformable DETR architecture, which seeks to overcome one issue base Transformer attention in that it looks over all possible spatial locations. Inspired by deformable convolution, the deformable attention module only attends to a small set of key sampling points around a reference point, regardless of the spatial size of the feature maps. By assigning only a small fixed number of keys for each query, the issues of convergence and feature spatial resolution can be mitigated.
Given an input feature map x ∈ℝ^(C ×H ×W), let q index a query element with content feature 𝐳_q and a 2-d reference point 𝐩_q, the deformable attention feature is calculated by:
DeformAttn(𝐳_q, 𝐩_q, 𝐱)=∑ₘ₌₁ᴹ 𝐖ₘ[∑ₖ₌₁ᴷ A_(m q k) ·𝐖ₘ^' 𝐱(𝐩_q+Δ𝐩_(m q k))]
where m indexes the attention head, k indexes the sampled keys, and K is the total sampled key number (K ≪H W) . Δp_(m q k) and A_(m q k) denote the sampling offset and attention weight of the kᵗʰ sampling point in the mᵗʰ attention head, respectively. The scalar attention weight A_(m q k) lies in the range [0,1], normalized by ∑ₖ₌₁ᴷ A_(m q k)=1 . Δ𝐩_(m q k) ∈ℝ² are of 2-d real numbers with unconstrained range. As p_q+Δp_(m q k) is fractional, bilinear interpolation is applied as in Dai et al. (2017) in computing 𝐱(𝐩_q+Δ𝐩_(m q k)). Both Δ𝐩_(m q k) and A_(m q k) are obtained via linear projection over the query feature z_q . In implementation, the query feature z_q is fed to a linear projection operator of 3 M K channels, where the first 2 M K channels encode the sampling offsets Δp_(m q k), and the remaining M K channels are fed to a softmax operator to obtain the attention weights A_(m q k).
Papers archive 2025-07-28
30 shown of 42, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
WalnutData: A UAV Remote Sensing Dataset of Green Walnuts and Model Evaluation 27 Feb 2025 · 1 repository · arXiv:2502.20092
-
Advancing SEM Based Nano-Scale Defect Analysis in Semiconductor Manufacturing for Advanced IC Nodes 6 Sep 2024 · 0 repositories · arXiv:2409.04310
-
U-DECN: End-to-End Underwater Object Detection ConvNet with Improved DeNoising Training 11 Aug 2024 · 1 repository · arXiv:2408.05780
-
Fisher-aware Quantization for DETR Detectors with Critical-category Objectives 3 Jul 2024 · 0 repositories · arXiv:2407.03442
-
Knowledge-driven Subspace Fusion and Gradient Coordination for Multi-modal Learning 20 Jun 2024 · 1 repository · arXiv:2406.13979
-
Understanding differences in applying DETR to natural and medical images 27 May 2024 · 0 repositories · arXiv:2405.17677
-
Infrared Adversarial Car Stickers 16 May 2024 · 0 repositories · arXiv:2405.09924
-
LDTR: Transformer-based Lane Detection with Anchor-chain Representation 21 Mar 2024 · 0 repositories · arXiv:2403.14354
-
Generative Region-Language Pretraining for Open-Ended Object Detection 15 Mar 2024 · 1 repository · arXiv:2403.10191Syntology ran 8 of 11 samples · 3 unverified
-
Hybrid Proposal Refiner: Revisiting DETR Series from the Faster R-CNN Perspective 1 Jan 2024 · 1 repository
-
KD-DETR: Knowledge Distillation for Detection Transformer with Consistent Distillation Points Sampling 1 Jan 2024 · 0 repositories
-
Mono3DVG: 3D Visual Grounding in Monocular Images 13 Dec 2023 · 1 repository · arXiv:2312.08022Syntology ran 5 of 7 samples · 2 unverified · 7 pointer-only (licence)
-
Towards Few-Annotation Learning for Object Detection: Are Transformer-based Models More Efficient ? 30 Oct 2023 · 1 repository · arXiv:2310.19936
-
DAC-DETR: Divide the Attention Layers and Conquer 21 Sep 2023 · 1 repository
-
A Spatial-Temporal Deformable Attention based Framework for Breast Lesion Detection in Videos 9 Sep 2023 · 1 repository · arXiv:2309.04702
-
Selecting Learnable Training Samples is All DETRs Need in Crowded Pedestrian Detection 18 May 2023 · 0 repositories · arXiv:2305.10801
-
Robust Traffic Light Detection Using Salience-Sensitive Loss: Computational Framework and Evaluations 8 May 2023 · 0 repositories · arXiv:2305.04516
-
Continual Detection Transformer for Incremental Object Detection 6 Apr 2023 · 0 repositories · arXiv:2304.03110
-
VDDT: Improving Vessel Detection with Deformable Transfomer 15 Mar 2023 · 0 repositories
-
ARS-DETR: Aspect Ratio-Sensitive Detection Transformer for Aerial Oriented Object Detection 9 Mar 2023 · 1 repository · arXiv:2303.04989
-
Towards Robust Video Instance Segmentation with Temporal-Aware Transformer 20 Jan 2023 · 0 repositories · arXiv:2301.09416
-
Salient Sign Detection In Safe Autonomous Driving: AI Which Reasons Over Full Visual Context 14 Jan 2023 · 0 repositories · arXiv:2301.05804
-
Cross-Modal Learning with 3D Deformable Attention for Action Recognition 12 Dec 2022 · 0 repositories · arXiv:2212.05638
-
Open World DETR: Transformer based Open World Object Detection 6 Dec 2022 · 0 repositories · arXiv:2212.02969
-
FQDet: Fast-converging Query-based Detector 5 Oct 2022 · 2 repositories · arXiv:2210.02318Syntology ran 1 of 6 samples · 5 unverified · 3 pointer-only (licence)
-
ComplETR: Reducing the cost of annotations for object detection in dense scenes with vision transformers 13 Sep 2022 · 0 repositories · arXiv:2209.05654
-
DPText-DETR: Towards Better Scene Text Detection with Dynamic Points in Transformer 10 Jul 2022 · 1 repository · arXiv:2207.04491
-
YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors 6 Jul 2022 · 21 repositories · arXiv:2207.02696Syntology ran 1 of 11 samples · 10 unverified
-
An Empirical Study Of Self-supervised Learning Approaches For Object Detection With Transformers 11 May 2022 · 2 repositories · arXiv:2205.05543
-
MTTrans: Cross-Domain Object Detection with Mean-Teacher Transformer 3 May 2022 · 1 repository · arXiv:2205.01643
Tasks archive 2025-07-28
20 shown of 66 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections