Papers › Visual Attention Network

Visual Attention Network

20 Feb 2022arXiv:2202.09741archive 2025-07-28

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

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2202.09741")

Code

Syntology Ran 0 of 6 code samples harvested from 3 repositories linked to this paper; 6 have no recorded run.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 5 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

21 repositories listed; official and paper-mentioned ones first.

Visual-Attention-Network/VAN-Classification officialmentioned on GitHubpytorchApache-2.0 report
open-mmlab/mmclassification mentioned in paperpytorchApache-2.0 report
DarshanDeshpande/jax-models mentioned on GitHubjax report
Jittor-Image-Models/Jittor-Image-Models mentioned on GitHubpytorch report
Visual-Attention-Network/VAN-Segmentation mentioned on GitHubpytorchApache-2.0 report
Westlake-AI/openmixup mentioned on GitHubpytorch report
chengtan9907/simvpv2 mentioned on GitHubpytorchApache-2.0 report
facebookresearch/xformers mentioned on GitHubpytorch report
huggingface/transformers mentioned on GitHubpytorch report
lucasjinreal/yolov7_d2 mentioned on GitHubpytorchGPL-3.0 report
sithu31296/semantic-segmentation mentioned on GitHubpytorch report
PaddlePaddle/PaddleClas paddleApache-2.0 report
flytocc/PaddleClas paddleApache-2.0 report
pwc-1/Paper-9 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

6 samples harvested; 0 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6unverified

Licence: 0 of the 6 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_model_weights Visual-Attention-Network/VAN-Classification/models/van.py official repository unverified Apache-2.0 (permissive) · 07d3401919c8d206 · report
convert_name shkarupa-alex/tfvan/convert_weights.py community (archive-listed) unverified MIT (permissive) · 365afdb1239780d8 · report
convert_weight shkarupa-alex/tfvan/convert_weights.py community (archive-listed) unverified MIT (permissive) · 250a0be2cff73866 · report
norm_cdf EMalagoli92/VAN-Classification-TensorFlow/van_classification_tensorflow/models/layers/utils.py community (archive-listed) unverified MIT (permissive) · 1e7a21b70e475e05 · report
preprocess_input shkarupa-alex/tfvan/tfvan/prep.py community (archive-listed) unverified MIT (permissive) · 5e6f2f4822f14d6f · report
trunc_normal_ EMalagoli92/VAN-Classification-TensorFlow/van_classification_tensorflow/models/layers/utils.py community (archive-listed) unverified MIT (permissive) · 6fc63671bfbb6c99 · report

Tasks

Image ClassificationInstance SegmentationObject DetectionPanoptic SegmentationPose EstimationSegmentationSemantic Segmentationimage-classificationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet VAN-B6 (22K, 384res) GFLOPs 114.3 #70 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B6 (22K, 384res) Number of params 200M #70 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B6 (22K, 384res) Top 1 Accuracy 87.8% #70 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B5 (22K, 384res) GFLOPs 50.6 #111 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B5 (22K, 384res) Top 1 Accuracy 87% #111 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B6 (22K) GFLOPs 38.9 #120 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B6 (22K) Number of params 200M #120 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B6 (22K) Top 1 Accuracy 86.9% #120 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B4 (22K, 384res) GFLOPs 35.9 #133 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B4 (22K, 384res) Number of params 60M #133 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B4 (22K, 384res) Top 1 Accuracy 86.6% #133 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B5 (22K) GFLOPs 17.2 #159 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B5 (22K) Number of params 90M #159 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B5 (22K) Top 1 Accuracy 86.3% #159 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B4 (22K) GFLOPs 12.2 #204 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B4 (22K) Top 1 Accuracy 85.7% #204 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B2 GFLOPs 5 #497 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B2 Number of params 26.6M #497 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B2 Top 1 Accuracy 82.8% #497 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B1 GFLOPs 2.5 #664 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B1 Number of params 13.9M #664 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B1 Top 1 Accuracy 81.1% #664 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B0 GFLOPs 0.9 #949 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B0 Number of params 4.1M #949 of 1060 Archive leaderboard report
Image Classification ImageNet VAN-B0 Top 1 Accuracy 75.4% #949 of 1060 Archive leaderboard report
Panoptic Segmentation COCO minival Visual Attention Network (VAN-B6 + Mask2Former) PQ 58.2 #10 of 31 Archive leaderboard report
Panoptic Segmentation COCO minival Visual Attention Network (VAN-B6 + Mask2Former) PQst 48.2 #10 of 31 Archive leaderboard report
Panoptic Segmentation COCO minival Visual Attention Network (VAN-B6 + Mask2Former) PQth 64.8 #10 of 31 Archive leaderboard report
Panoptic Segmentation COCO panoptic VAN-B6* PQ 58.2 #1 of 2 Archive leaderboard report
Semantic Segmentation ADE20K VAN-B6 Validation mIoU 54.7 #58 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Large (HamNet) Params (M) 55 #117 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Large (HamNet) Validation mIoU 50.2 #117 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Large Params (M) 49 #151 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Large Validation mIoU 48.1 #151 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Base (Semantic-FPN) Validation mIoU 46.7 #173 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Small Params (M) 18 #213 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Small Validation mIoU 42.9 #213 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Tiny Params (M) 8 #221 of 235 Archive leaderboard report
Semantic Segmentation ADE20K VAN-Tiny Validation mIoU 38.5 #221 of 235 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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