Dilated Neighborhood Attention Transformer
By Ali Hassani, Humphrey Shi. 2022
120 citations recorded by the source corpus.
Transformers are quickly becoming one of the most heavily applied deep learning architectures across modalities, domains, and tasks. In vision, on top of ongoing efforts into plain transformers, hierarchical transformers have also gained significant attention, thanks to their performance and easy integration into existing frameworks. These models typically employ localized attention mechanisms, such as the sliding-window Neighborhood Attention (NA) or Swin Transformer's Shifted Window Self Attention. While effective at reducing self attention's quadratic complexity, local attention weakens two of the most desirable properties of self attention: long range inter-dependency modeling, and global receptive field. In this paper, we introduce Dilated Neighborhood Attention (DiNA), a natural, flexible and efficient extension to NA that can capture more global context and expand receptive fields exponentially at no additional cost. NA's local attention and DiNA's sparse global attention complement each other, and therefore we introduce Dilated Neighborhood Attention Transformer (DiNAT), a new hierarchical vision transformer built upon both. DiNAT variants enjoy significant improvements over strong baselines such as NAT, Swin, and ConvNeXt. Our large model is faster and ahead of its Swin counterpart by 1.6% box AP in COCO object detection, 1.4% mask AP in COCO instance segmentation, and 1.4% mIoU in ADE20K semantic segmentation. Paired with new frameworks, our large variant is the new state of the art panoptic segmentation model on COCO (58.5 PQ) and ADE20K (49.4 PQ), and instance segmentation model on Cityscapes (45.1 AP) and ADE20K (35.4 AP) (no extra data). It also matches the state of the art specialized semantic segmentation models on ADE20K (58.1 mIoU), and ranks second on Cityscapes (84.5 mIoU) (no extra data).
Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Neurology, Model Architectures
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Jiacheng Li
- Humphrey Shi
- Ali Hassani
- Kun-Li Channing Lin
- Nikita Orlov
- M. Chiu
- Yipeng Gao
- Yaowei Wang
In Computer Vision and Pattern Recognition
- Jiacheng Li
- Ali Hassani
- Humphrey Shi
- Nikita Orlov
- M. Chiu
- Jitesh Jain
- Kun-Li Channing Lin
- Yipeng Gao
In Neurology
In Model Architectures
- Jiacheng Li
- Humphrey Shi
- Ali Hassani
- Kun-Li Channing Lin
- Yipeng Gao
- Yaowei Wang
- Yuyao Tang
- Wei-Shi Zheng
Citations in the corpus
- OneFormer: One Transformer to Rule Universal Image Segmentation (2022, methodology): “OneFormer DiNAT-L† [21] 223M 450G 250 512×1024 90k 67.”
- DilateFormer: Multi-Scale Dilated Transformer for Visual Recognition (2023, methodology): “In addition, we also notice a concurrent work, DiNAT [31], which uses a single-scale and fixed dilation rate in each block of the same stage, lacking”