Papers › MaxViT: Multi-Axis Vision Transformer
MaxViT: Multi-Axis Vision Transformer
Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, Yinxiao Li
Transformers have recently gained significant attention in the computer vision community. However, the lack of scalability of self-attention mechanisms with respect to image size has limited their wide adoption in state-of-the-art vision backbones. In this paper we introduce an efficient and scalable attention model we call multi-axis attention, which consists of two aspects: blocked local and dilated global attention. These design choices allow global-local spatial interactions on arbitrary input resolutions with only linear complexity. We also present a new architectural element by effectively blending our proposed attention model with convolutions, and accordingly propose a simple hierarchical vision backbone, dubbed MaxViT, by simply repeating the basic building block over multiple stages. Notably, MaxViT is able to ''see'' globally throughout the entire network, even in earlier, high-resolution stages. We demonstrate the effectiveness of our model on a broad spectrum of vision tasks. On image classification, MaxViT achieves state-of-the-art performance under various settings: without extra data, MaxViT attains 86.5% ImageNet-1K top-1 accuracy; with ImageNet-21K pre-training, our model achieves 88.7% top-1 accuracy. For downstream tasks, MaxViT as a backbone delivers favorable performance on object detection as well as visual aesthetic assessment. We also show that our proposed model expresses strong generative modeling capability on ImageNet, demonstrating the superior potential of MaxViT blocks as a universal vision module. The source code and trained models will be available at https://github.com/google-research/maxvit.
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2204.01697")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2204.01697", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2204.01697")
Code
Syntology 53 code samples harvested from 7 repositories linked to this paper: 37 ran (of which 15 constructed an object rather than computing a result; 23 with no instrument failure: 2 honoured, 0 violated, 21 with no contract checked; 14 where Syntology's instrument failed) · 16 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; 11 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: official repository: 11 samples from 1 repository, 4 ran (4 with no instrument failure; 0 where Syntology's instrument failed); community (archive-listed): 42 samples from 6 repositories, 33 ran (19 with no instrument failure; 14 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
No sample is linked to this paper from 3 of its repositories that Syntology harvested for other papers:
- lucidrains/imagen-pytorch, community (archive-listed): harvested for another paper, listed under the repository
- huggingface/pytorch-image-models, community (archive-listed): harvested for another paper, listed under the repository
- leondgarse/keras_cv_attention_models, community (archive-listed): harvested for another paper, listed under the repository
Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
15 repositories listed; official and paper-mentioned ones first.
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.
A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.
Code Syntology ran Syntology
53 samples harvested: 37 ran (of which 15 constructed an object rather than computing a result; 23 with no instrument failure: 2 honoured, 0 violated, 21 with no contract checked; 14 where Syntology's instrument failed) · 16 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 9 of the 53 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 7 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 6 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.
census: 13 implementations from 12 papers, 10 distinct outputs across 4 buckets, one shared input per bucket maxvit/models/maxvit.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) ·
2bc733f08e821139 · report
fixture: returned Attention · level recorded 2026-09-22 e2718d640d43e769 · report
fixture: signature inputs:EagerTensor/2/float, training:bool/0/bool · returned EagerTensor · level recorded 2026-09-24 839c67588aa822e2 · report
fixture: returned TrailDense · level recorded 2026-09-22 5ecfa57092a8cecc · report
fixture: signature x:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-22 f50211588bf5be8b · report
2d7a9595c2215efd · report
ee80113a460390fe · report
d237bfe09ec44cfd · report
20213f171bc1c7e9 · report
256b0e25fa8d8cee · report
bbc5501012bdee68 · report
fixture: signature input:Tensor/4/float, grid_size:tuple/1/int · returned Tensor · level recorded 2026-09-24 census: 13 implementations from 17 papers, 5 distinct outputs across 3 buckets, one shared input per bucket maxvit/maxvit.py ran MIT (permissive) ·
20f2f90659c203e1 · report
fixture: signature input:Tensor/4/float, window_size:tuple/1/int · returned Tensor · level recorded 2026-09-24 cd52f54038e59852 · report
fixture: signature windows:Tensor/4/float, original_size:tuple/1/int, window_size:tuple/1/int · returned Tensor · level recorded 2026-09-24 d8da107e27ecbe28 · report
fixture: returned BlockGatingUnit · level recorded 2026-09-22 325b31d5363dae7d · report
fixture: returned BlockGmlpLayer · level recorded 2026-09-22 86d6d05360b6903b · report
fixture: returned GridGatingUnit · level recorded 2026-09-22 8a67f23552a44d61 · report
fixture: signature x:Tensor/4/float, patch_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 627ea4c76565d927 · report
fixture: signature x:Tensor/4/float, grid_size:tuple/1/int, patch_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 e7fa9568a4a28913 · report
d227ba24d7d8d855 · report
fixture: returned Attention2d · level recorded 2026-09-22 8fa30deee34804c0 · report
fixture: returned LayerScale2d · level recorded 2026-09-22 08082022ac2c6e65 · report
fixture: returned MaxxVitTransformerCfg · level recorded 2026-09-22 9d7347fa5b820e84 · report
fixture: signature cfg:MaxxVitTransformerCfg/0/?, window_size:tuple/1/int · returned partial · level recorded 2026-09-22 f41c6472d974b50b · report
fixture: signature x:Tensor/4/float, grid_size:list/1/int · returned Tensor · level recorded 2026-09-22 80cee5fcd8a9952b · report
fixture: signature windows:Tensor/3/float, grid_size:list/1/int, img_size:list/1/int · returned Tensor · level recorded 2026-09-22 ae8a9a667b5d42f9 · report
fixture: signature x:Tensor/4/float, window_size:list/1/int · returned Tensor · level recorded 2026-09-22 c72f01470606b887 · report
fixture: signature windows:Tensor/4/float, window_size:list/1/int, img_size:list/1/int · returned Tensor · level recorded 2026-09-22 641d6f2b8dbc0745 · report
census: 13 implementations from 12 papers, 10 distinct outputs across 4 buckets, one shared input per bucket vit_pytorch/max_vit.py ran MIT (permissive) ·
0ff4fe4361d49089 · report
fixture: returned Attention · level recorded 2026-09-22 b3be1bfa6f51c051 · report
fixture: returned Dropsample · level recorded 2026-09-22 32bd4f3abdceaefe · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 6b918699878401db · report
fixture: signature dim_in:int/0/int, dim_out:int/0/int, downsample:bool/0/bool, expansion_rate:int/0/int, shrinkage_rate:float/0/float, dropout:float/0/float · returned Sequential · level recorded 2026-09-22 f4987984f431cfd0 · report
fixture: returned MBConvResidual · level recorded 2026-09-22 7e1c7833684c337a · report
fixture: returned MaxViT · level recorded 2026-09-22 636a208dabc2a711 · report
fixture: returned Residual · level recorded 2026-09-22 b15b0232b5e08a9c · report
fixture: returned SqueezeExcitation · level recorded 2026-09-22 5d26f1a66e6a15e4 · report
fixture: signature x:Tensor/4/float, window_size:tuple/1/int · returned Tensor · level recorded 2026-09-24 census: 27 implementations from 61 papers, 5 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 4, kind float, dtype float32 MaxVIT.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant MIT (permissive) ·
971ae8d2d8313e30 · report
fixture: signature x:Tensor/4/float, drop_prob:float/0/float, training:bool/0/bool, scale_by_keep:bool/0/bool · returned Tensor · level recorded 2026-09-22 c72be25671079b1b · report
fixture: returned RelativeSelfAttention · level recorded 2026-09-22 48de7cab87cd24fa · report
fixture: signature args:tuple/1/empty, kwargs:dict/0/? · returned GELU · level recorded 2026-09-22 2e62acbb2e8ec0a9 · report
fixture: signature win_h:int/0/int, win_w:int/0/int · returned Tensor · level recorded 2026-09-22 702e2dca4d951046 · report
fixture: signature data:Tensor/4/float, grid_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 3b95c931d4a4355d · report
fixture: signature grid:Tensor/4/float, original_size:tuple/1/int, grid_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 census: 13 implementations from 17 papers, 5 distinct outputs across 3 buckets, one shared input per bucket towhee/models/max_vit/max_vit.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) ·
ab7995b8493f8bd3 · report
fixture: signature data:Tensor/4/float, window_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 10fe1fb26b9e9e9d · report
fixture: signature windows:Tensor/4/float, original_size:tuple/1/int, window_size:tuple/1/int · returned Tensor · level recorded 2026-09-22 2df10618a97ad3c5 · report
f6a21a6318030b5d · report
04bab611e8e60c1e · report
1aad85bb6748a80a · report
da9db733c947bc49 · report
Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
5 assemblies on this paper: 5 harvested, 0 generated, listed in 2 groups (siblings lifted in one batch form one group).
harvested Assembly for multi-axis attention (graph method: multi-axis attention). 9 bricks; individually on a fixture: 8 ran (of which 3 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 5 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
- PartitionAttention2d entry · level 0 · unverified ·
641d6f2b8dbc0745 - Attention2d model · level 1 · ran ·
d227ba24d7d8d855 - LayerScale2d model · level 1 · ran ·
8fa30deee34804c0 - MaxxVitTransformerCfg helper · level 1 · ran ·
08082022ac2c6e65 - get_rel_pos_cls helper · level 1 · ran · our draft was wrong ·
9d7347fa5b820e84 - grid_partition_nchw helper · level 1 · ran; the contract check could not run (RAISES) ·
f41c6472d974b50b - grid_reverse_nchw helper · level 1 · ran; the contract check could not run (RAISES) ·
80cee5fcd8a9952b - window_partition_nchw helper · level 1 · ran; the contract check could not run (RAISES) ·
ae8a9a667b5d42f9 - window_reverse_nchw helper · level 1 · ran; the contract check could not run (RAISES) ·
c72f01470606b887
4 sibling assemblies for MaxViT (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.
harvested Assembly for MaxViT (graph method: MaxViT). 7 bricks; individually on a fixture: 5 ran (of which 3 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 2 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- ResidualSplitHeadMultiAxisGmlpLayer entry · level 0 · unverified ·
e7fa9568a4a28913 - BlockGmlpLayer helper · level 1 · ran ·
325b31d5363dae7d - GridGmlpLayer helper · level 0 · unverified ·
bcddd7996b51db67 - BlockGatingUnit helper · level 1 · ran ·
d8da107e27ecbe28 - block_images_einops helper · level 1 · ran; the contract check could not run (RAISES) ·
8a67f23552a44d61 - unblock_images_einops helper · level 1 · ran; the contract check could not run (RAISES) ·
627ea4c76565d927 - GridGatingUnit helper · level 1 · ran ·
86d6d05360b6903b
harvested Assembly for MaxViT (graph method: MaxViT). 11 bricks; individually on a fixture: 4 ran (of which 2 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 0 where Syntology's instrument failed) · 7 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- MaxViTBlock entry · level 0 · unverified ·
c99919623d98cd27 - Attention model · level 1 · ran ·
2bc733f08e821139 - FFN model · level 0 · unverified ·
f50211588bf5be8b - MBConvBlock model · level 0 · unverified ·
2d7a9595c2215efd - TrailDense helper · level 1 · ran ·
839c67588aa822e2 - create_config_from_dict helper · level 0 · unverified ·
256b0e25fa8d8cee - float32_softmax helper · level 1 · ran · honoured contract ·
5ecfa57092a8cecc - SE model · level 0 · unverified ·
ee80113a460390fe - config_batch_norm helper · level 0 · unverified ·
20213f171bc1c7e9 - BatchNormalization helper · level 1 · ran ·
e2718d640d43e769 - TpuBatchNormalization helper · level 0 · unverified ·
d237bfe09ec44cfd
harvested Assembly for MaxViT (graph method: MaxViT). 10 bricks; individually on a fixture: 10 ran (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 0 honoured, 2 violated, 7 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- MaxViT entry · level 1 · ran ·
7e1c7833684c337a - Attention model · level 1 · ran ·
0ff4fe4361d49089 - FeedForward model · level 1 · ran ·
32bd4f3abdceaefe - MBConv model · level 1 · ran · our draft was wrong ·
6b918699878401db - Residual helper · level 1 · ran ·
636a208dabc2a711 - default helper · level 1 · ran · violated contract ·
60fff7c3c400d7ff - MBConvResidual helper · level 1 · ran ·
f4987984f431cfd0 - SqueezeExcitation model · level 1 · ran ·
b15b0232b5e08a9c - exists helper · level 1 · ran · violated contract ·
aa5486a3650902d8 - Dropsample helper · level 1 · ran ·
b3be1bfa6f51c051
harvested Assembly for MaxViT (graph method: MaxViT). 16 bricks; individually on a fixture: 11 ran (of which 2 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 0 violated, 2 with no contract checked; 8 where Syntology's instrument failed) · 5 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- MaxViT entry · level 0 · unverified ·
f6a21a6318030b5d - MaxViTStage helper · level 0 · unverified ·
1aad85bb6748a80a - drop_path helper · level 1 · ran; the contract check could not run ·
39eace7e2822504f - MaxViTBlock model · level 0 · unverified ·
04bab611e8e60c1e - MBConv helper · level 0 · unverified ·
2df10618a97ad3c5 - MaxViTTransformerBlock model · level 0 · unverified ·
da9db733c947bc49 - grid_partition helper · level 1 · ran; the contract check could not run (RAISES) ·
702e2dca4d951046 - grid_reverse helper · level 1 · ran; the contract check could not run (RAISES) ·
3b95c931d4a4355d - window_partition helper · level 1 · ran; the contract check could not run (RAISES) ·
ab7995b8493f8bd3 - window_reverse helper · level 1 · ran; the contract check could not run (RAISES) ·
10fe1fb26b9e9e9d - DropPath helper · level 1 · ran ·
8f059bf3db11537b - gelu_ignore_parameters helper · level 1 · ran · our draft was wrong ·
48de7cab87cd24fa - RelativeSelfAttention helper · level 1 · ran ·
c72be25671079b1b - get_relative_position_index helper · level 1 · ran · honoured contract ·
2e62acbb2e8ec0a9 - trunc_normal_ helper · level 1 · ran; the contract check could not run ·
f3e47c6e3250d13b - _no_grad_trunc_normal_ helper · level 1 · ran; the contract check could not run ·
607038475fdc388b
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2204.01697") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
Results from the paper archive 2025-07-28
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