[Paper Review] Visual Attention Network
This paper proposes Large Kernel Attention (LKA), a linear self-attention mechanism that preserves 2D image structure, reduces computational complexity, and enables channel-wise adaptability. Built on LKA, the Visual Attention Network (VAN) achieves state-of-the-art performance on image classification, object detection, and segmentation tasks, outperforming similar-sized vision transformers and CNNs across benchmarks like ImageNet, COCO, and ADE20K.
While originally designed for natural language processing tasks, the self-attention mechanism has recently taken various computer vision areas by storm. However, the 2D nature of images brings three challenges for applying self-attention in computer vision. (1) Treating images as 1D sequences neglects their 2D structures. (2) The quadratic complexity is too expensive for high-resolution images. (3) It only captures spatial adaptability but ignores channel adaptability. In this paper, we propose a novel linear attention named large kernel attention (LKA) to enable self-adaptive and long-range correlations in self-attention while avoiding its shortcomings. Furthermore, we present a neural network based on LKA, namely Visual Attention Network (VAN). While extremely simple, VAN surpasses similar size vision transformers(ViTs) and convolutional neural networks(CNNs) in various tasks, including image classification, object detection, semantic segmentation, panoptic segmentation, pose estimation, etc. For example, VAN-B6 achieves 87.8% accuracy on ImageNet benchmark and set new state-of-the-art performance (58.2 PQ) for panoptic segmentation. Besides, VAN-B2 surpasses Swin-T 4% mIoU (50.1 vs. 46.1) for semantic segmentation on ADE20K benchmark, 2.6% AP (48.8 vs. 46.2) for object detection on COCO dataset. It provides a novel method and a simple yet strong baseline for the community. Code is available at https://github.com/Visual-Attention-Network.
Motivation & Objective
- To address the limitations of self-attention in computer vision, including 1D sequence treatment of 2D images, quadratic complexity, and lack of channel adaptability.
- To design a more efficient and effective attention mechanism tailored for visual tasks by combining benefits of convolution and self-attention.
- To propose a simple yet powerful vision backbone, Visual Attention Network (VAN), that achieves state-of-the-art performance across multiple vision tasks.
- To challenge the assumption that self-attention is irreplaceable in vision models by demonstrating a superior alternative.
Proposed method
- Propose Large Kernel Attention (LKA), a linear attention mechanism that models long-range dependencies using large convolutional kernels while maintaining linear complexity.
- LKA explicitly models spatial and channel-wise adaptability by learning attention weights that dynamically adjust based on input features.
- Integrate LKA into a simple, feed-forward neural network architecture to form the Visual Attention Network (VAN), avoiding the need for multi-head attention or positional embeddings.
- Design VAN with depthwise separable convolutions and channel-wise scaling to maintain efficiency and parameter efficiency.
- Train VAN end-to-end on standard vision benchmarks using standard optimization protocols without architectural modifications for specific tasks.
- Leverage the 2D inductive bias of convolutions and the global modeling capability of attention through a learnable, kernel-based attention mechanism.
Experimental results
Research questions
- RQ1Can a linear attention mechanism preserve 2D spatial structure while achieving long-range modeling in vision tasks?
- RQ2Does a self-attention mechanism that incorporates channel-wise adaptability outperform standard self-attention in vision benchmarks?
- RQ3Can a simple network based on a novel attention module surpass state-of-the-art vision transformers and CNNs without architectural complexity?
- RQ4Is the proposed LKA mechanism more efficient and effective than standard self-attention for high-resolution images?
- RQ5Can a non-transformer backbone achieve state-of-the-art performance across diverse vision tasks?
Key findings
- VAN-B6 achieves 87.8% top-1 accuracy on ImageNet-1K, setting a new state-of-the-art for vision backbones.
- VAN-B2 surpasses Swin-T by 4 percentage points in mIoU (50.1 vs. 46.1) on the ADE20K semantic segmentation benchmark.
- On the COCO object detection benchmark, VAN-B2 achieves 48.8% AP, outperforming Swin-T by 2.6 percentage points (46.2% AP).
- For panoptic segmentation, VAN-B6 achieves 58.2 PQ, establishing a new state-of-the-art on the COCO dataset.
- On the fine-grained CUB-200 dataset, VAN-B4 attains 91.3% Top-1 accuracy without task-specific design, exceeding DeiT and ViT-B.
- In saliency detection, VAN-B2 achieves 0.919 F_max on DUTS-TE, outperforming ResNet and PVT backbones with lower MAE (0.028).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.