HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Visual Attention Network

Meng-Hao Guo Cheng-Ze Lu Zheng-Ning Liu Ming-Ming Cheng Shi-Min Hu

Visual Attention Network

Abstract

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.

Benchmarks

BenchmarkMethodologyMetrics
image-classification-on-imagenetVAN-B6 (22K)
GFLOPs: 38.9
Number of params: 200M
Top 1 Accuracy: 86.9%
image-classification-on-imagenetVAN-B4 (22K, 384res)
GFLOPs: 35.9
Number of params: 60M
Top 1 Accuracy: 86.6%
image-classification-on-imagenetVAN-B5 (22K, 384res)
GFLOPs: 50.6
Top 1 Accuracy: 87%
image-classification-on-imagenetVAN-B2
GFLOPs: 5
Number of params: 26.6M
Top 1 Accuracy: 82.8%
image-classification-on-imagenetVAN-B5 (22K)
GFLOPs: 17.2
Number of params: 90M
Top 1 Accuracy: 86.3%
image-classification-on-imagenetVAN-B1
GFLOPs: 2.5
Number of params: 13.9M
Top 1 Accuracy: 81.1%
image-classification-on-imagenetVAN-B4 (22K)
GFLOPs: 12.2
Top 1 Accuracy: 85.7%
image-classification-on-imagenetVAN-B6 (22K, 384res)
GFLOPs: 114.3
Number of params: 200M
Top 1 Accuracy: 87.8%
image-classification-on-imagenetVAN-B0
GFLOPs: 0.9
Number of params: 4.1M
Top 1 Accuracy: 75.4%
panoptic-segmentation-on-coco-minivalVisual Attention Network (VAN-B6 + Mask2Former)
PQ: 58.2
PQst: 48.2
PQth: 64.8
panoptic-segmentation-on-coco-panopticVAN-B6*
PQ: 58.2
semantic-segmentation-on-ade20kVAN-Large
Params (M): 49
Validation mIoU: 48.1
semantic-segmentation-on-ade20kVAN-Tiny
Params (M): 8
Validation mIoU: 38.5
semantic-segmentation-on-ade20kVAN-Small
Params (M): 18
Validation mIoU: 42.9
semantic-segmentation-on-ade20kVAN-B6
Validation mIoU: 54.7
semantic-segmentation-on-ade20kVAN-Base (Semantic-FPN)
Validation mIoU: 46.7
semantic-segmentation-on-ade20kVAN-Large (HamNet)
Params (M): 55
Validation mIoU: 50.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Visual Attention Network | Papers | HyperAI