Skip to main content
QUICK REVIEW

[Paper Review] DAS: A Deformable Attention to Capture Salient Information in CNNs

Farzad Salajegheh, Nader Asadi|arXiv (Cornell University)|Nov 20, 2023
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

DAS proposes a lightweight, fully convolutional attention mechanism that enhances CNNs by combining deformable convolutions for spatial focus and depthwise separable convolutions for efficiency, enabling O(n) computational complexity. It improves performance across image classification and object detection tasks by directing attention to salient features, achieving state-of-the-art results with minimal FLOP overhead and no backbone modification.

ABSTRACT

Convolutional Neural Networks (CNNs) excel in local spatial pattern recognition. For many vision tasks, such as object recognition and segmentation, salient information is also present outside CNN's kernel boundaries. However, CNNs struggle in capturing such relevant information due to their confined receptive fields. Self-attention can improve a model's access to global information but increases computational overhead. We present a fast and simple fully convolutional method called DAS that helps focus attention on relevant information. It uses deformable convolutions for the location of pertinent image regions and separable convolutions for efficiency. DAS plugs into existing CNNs and propagates relevant information using a gating mechanism. Compared to the O(n^2) computational complexity of transformer-style attention, DAS is O(n). Our claim is that DAS's ability to pay increased attention to relevant features results in performance improvements when added to popular CNNs for Image Classification and Object Detection. For example, DAS yields an improvement on Stanford Dogs (4.47%), ImageNet (1.91%), and COCO AP (3.3%) with base ResNet50 backbone. This outperforms other CNN attention mechanisms while using similar or less FLOPs. Our code will be publicly available.

Motivation & Objective

  • To address the limitation of CNNs in capturing salient information outside fixed kernel receptive fields.
  • To provide dense, holistic attention in CNNs without increasing computational complexity like Transformers.
  • To develop a plug-and-play attention module that enhances existing CNNs with minimal architectural changes.
  • To improve feature representation by focusing on task-relevant regions through deformable convolution and gating.
  • To evaluate the effectiveness of attention focusing using a novel salient feature detection (sfd) metric.

Proposed method

  • DAS integrates a gating mechanism that combines feature maps from the main network with deformable convolution outputs to emphasize salient regions.
  • It uses depthwise separable convolutions to efficiently model global context while maintaining low FLOP cost.
  • Deformable convolutions dynamically adjust sampling locations to focus on relevant image regions, improving spatial attention.
  • The method applies a single learnable hyperparameter α to control the strength of the attention gate, making it easy to tune.
  • The attention gate is inserted after each residual block, enabling early and continuous focus on salient features.
  • The architecture is fully convolutional and compatible with any existing CNN backbone without modifying the original network.

Experimental results

Research questions

  • RQ1Can a lightweight, convolution-based attention mechanism improve feature representation in CNNs without increasing computational complexity?
  • RQ2Does combining deformable convolutions and depthwise separable convolutions enable more effective and efficient attention to salient image regions?
  • RQ3How does DAS compare to existing CNN attention mechanisms in terms of performance and FLOP efficiency on standard vision benchmarks?
  • RQ4To what extent does DAS enhance attention focusing on task-relevant features, as measured by gradCAM and the sfd metric?
  • RQ5Can DAS be effectively applied to both image classification and object detection tasks with consistent performance gains?

Key findings

  • DAS improves top-1 accuracy on Stanford Dogs by 4.47% and on ImageNet by 1.91% when added to ResNet-50.
  • For COCO object detection, DAS achieves a 3.3% AP improvement over the base ResNet-50 backbone.
  • The salient feature detection (sfd) score increases from 0.59 for standard ResNet-50 to 0.72 for DAS, indicating stronger attention to relevant features.
  • On a random sample of 100 ImageNet images, DAS achieves an average sfd score of 0.68 compared to 0.47 for standard ResNet.
  • GradCAM visualizations show that DAS concentrates attention more effectively on relevant regions, especially in deeper blocks (e.g., block 4), compared to baseline ResNet.
  • DAS maintains O(n) complexity, significantly outperforming Transformer-style attention mechanisms with O(n²) complexity, while using similar or fewer FLOPs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.