Papers › Vision GNN: An Image is Worth Graph of Nodes

Vision GNN: An Image is Worth Graph of Nodes

1 Jun 2022arXiv:2206.00272archive 2025-07-28

Kai Han, Yunhe Wang, Jianyuan Guo, Yehui Tang, Enhua Wu

Network architecture plays a key role in the deep learning-based computer vision system. The widely-used convolutional neural network and transformer treat the image as a grid or sequence structure, which is not flexible to capture irregular and complex objects. In this paper, we propose to represent the image as a graph structure and introduce a new Vision GNN (ViG) architecture to extract graph-level feature for visual tasks. We first split the image to a number of patches which are viewed as nodes, and construct a graph by connecting the nearest neighbors. Based on the graph representation of images, we build our ViG model to transform and exchange information among all the nodes. ViG consists of two basic modules: Grapher module with graph convolution for aggregating and updating graph information, and FFN module with two linear layers for node feature transformation. Both isotropic and pyramid architectures of ViG are built with different model sizes. Extensive experiments on image recognition and object detection tasks demonstrate the superiority of our ViG architecture. We hope this pioneering study of GNN on general visual tasks will provide useful inspiration and experience for future research. The PyTorch code is available at https://github.com/huawei-noah/Efficient-AI-Backbones and the MindSpore code is available at https://gitee.com/mindspore/models.

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="2206.00272")

Code

Syntology Ran 19 of 34 code samples harvested from 5 repositories linked to this paper; 15 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 7 ran · fixture could not drive it; 9 ran with no contract checked.

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

huawei-noah/CV-backbones officialmentioned in papermentioned on GitHubtf report
huawei-noah/efficient-ai-backbones officialmentioned in papermentioned on GitHubpytorch report
dvlab-research/rescom mentioned on GitHubpytorch report
gswycf/signgraph mentioned on GitHubpytorch report
lccol/vig-eo mentioned on GitHubpytorchApache-2.0 report
mirzaim/VisionGNN mentioned on GitHubpytorch report
robin-ex/ViG 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

34 samples harvested; 19 ran; 0 honoured the contract we drafted; 15 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.

3ran · our draft was wrong
7ran · fixture could not drive it
9ran
15unverified

Licence: 22 of the 34 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 5 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.

DeepGCN huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py official repository unverified no licence file found · pointer only · 28cfea9469d3520b · report
FFN huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py official repository unverified no licence file found · pointer only · 02f652b1a13d93ac · report
Stem huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py official repository unverified no licence file found · pointer only · 52ba09bd92b104eb · report
DenseDilated gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 119c797c7f57d6d4 · report
DenseDilatedKnnGraph gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · b65d27ba607bc693 · report
EdgeConv2d gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 246cabde6412ef6b · report
GraphConv2d gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · b560c318f9098a55 · report
GraphSAGE gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · dd631a63dafc592e · report
MRConv2d gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · a2aa2f7e285a4594 · report
SimplePatchifier mirzaim/VisionGNN/model.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 9dea5f82e4174cc6 · report
TwoLayerNN mirzaim/VisionGNN/model.py community (archive-listed) ran · metamorphic tier: invariant Apache-2.0 (permissive) · 83ee8781c7b699e2 · report
ViGBlock mirzaim/VisionGNN/model.py community (archive-listed) ran Apache-2.0 (permissive) · 0baa10d91e583fcc · report
act_layer gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 9cb7add8f210b472 · report
batched_index_select gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 996eec2334fe011e · report
dense_knn_matrix gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 524d82561975519a · report
norm_layer gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 09e6ddb17c0adf28 · report
pairwise_distance gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 82aeae314890e7ed · report
part_pairwise_distance gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 102d0e5b09e9b385 · report
xy_dense_knn_matrix gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 7fe31bf86f9187b8 · report
xy_pairwise_distance gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 160401504e7d0dbb · report
BasicConv gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) unverified no licence file found · pointer only · e95e0284f030b79b · report
DyGraphConv2d gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) unverified no licence file found · pointer only · 85beb50061cdf64c · report
GINConv2d gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) unverified no licence file found · pointer only · a0b00f43341b5121 · report
Grapher gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) unverified no licence file found · pointer only · 5ab123da9ff9a2d5 · report
VGNN mirzaim/VisionGNN/model.py community (archive-listed) unverified Apache-2.0 (permissive) · 1b638d9a262ff4f6 · report
compute_edge_index lccol/vig-eo/models/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · a5df825822ba8636 · report
compute_split_sizes lccol/vig-eo/run_training.py community (archive-listed) unverified Apache-2.0 (permissive) · ee2406844fe2831e · report
convert_neigh_list_to_edge_index lccol/vig-eo/models/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 72e6fd8e9496b74f · report
get_2d_relative_pos_embed gswycf/signgraph/modules/gcn_lib/torch_vertex.py community (archive-listed) unverified no licence file found · pointer only · 5ae9597352254138 · report
get_activation_layer lccol/vig-eo/models/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 32a549c7e940abbb · report
normalize_image lccol/vig-eo/run_training.py community (archive-listed) unverified Apache-2.0 (permissive) · 6f6471b9561767b8 · report
parse_train_string lccol/vig-eo/run_training.py community (archive-listed) unverified Apache-2.0 (permissive) · 680818c85f065e07 · report
reshape_for_broadcast hustvl/ViG/classification/models/vig.py community ran · fixture could not drive it fingerprinted MIT (permissive) · 20ff6d11dd593018 · report
resize_pos_embed hustvl/ViG/classification/models/vig.py community ran · fixture could not drive it MIT (permissive) · 212a5d16eef34d1d · report

Tasks

Image ClassificationObject Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet Pyramid ViG-B GFLOPs 16.8 #400 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-B Number of params 92.6M #400 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-B Top 1 Accuracy 83.7% #400 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-M GFLOPs 8.9 #470 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-M Number of params 51.7M #470 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-M Top 1 Accuracy 83.1% #470 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-S GFLOPs 4.6 #575 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-S Number of params 27.3M #575 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-S Top 1 Accuracy 82.1% #575 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-Ti GFLOPs 1.7 #846 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-Ti Number of params 10.7M #846 of 1060 Archive leaderboard report
Image Classification ImageNet Pyramid ViG-Ti Top 1 Accuracy 78.2% #846 of 1060 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.

Methods

Convolution

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