Papers › TransNeXt: Robust Foveal Visual Perception for Vision Transformers

TransNeXt: Robust Foveal Visual Perception for Vision Transformers

28 Nov 2023CVPR 2024 1arXiv:2311.17132archive 2025-07-28

Dai Shi

Due to the depth degradation effect in residual connections, many efficient Vision Transformers models that rely on stacking layers for information exchange often fail to form sufficient information mixing, leading to unnatural visual perception. To address this issue, in this paper, we propose Aggregated Attention, a biomimetic design-based token mixer that simulates biological foveal vision and continuous eye movement while enabling each token on the feature map to have a global perception. Furthermore, we incorporate learnable tokens that interact with conventional queries and keys, which further diversifies the generation of affinity matrices beyond merely relying on the similarity between queries and keys. Our approach does not rely on stacking for information exchange, thus effectively avoiding depth degradation and achieving natural visual perception. Additionally, we propose Convolutional GLU, a channel mixer that bridges the gap between GLU and SE mechanism, which empowers each token to have channel attention based on its nearest neighbor image features, enhancing local modeling capability and model robustness. We combine aggregated attention and convolutional GLU to create a new visual backbone called TransNeXt. Extensive experiments demonstrate that our TransNeXt achieves state-of-the-art performance across multiple model sizes. At a resolution of 224², TransNeXt-Tiny attains an ImageNet accuracy of 84.0%, surpassing ConvNeXt-B with 69% fewer parameters. Our TransNeXt-Base achieves an ImageNet accuracy of 86.2% and an ImageNet-A accuracy of 61.6% at a resolution of 384², a COCO object detection mAP of 57.1, and an ADE20K semantic segmentation mIoU of 54.7.

PaperPDFConference PDFCodeCode 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="2311.17132")

Code

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

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

daishiresearch/transnext officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
Westlake-AI/openmixup mentioned on GitHubpytorch report
chenller/mmseg-extension mentioned on GitHubpytorch 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

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

2ran · our draft was wrong
1ran · fixture could not drive it
2ran

Licence: 0 of the 5 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 2 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.

get_relative_position_cpb daishiresearch/transnext/classification/transnext.py official repository ran Apache-2.0 (permissive) · f67dfbdd557f5e3f · report
is_installed daishiresearch/transnext/classification/transnext.py official repository ran Apache-2.0 (permissive) · df3275abf9c53939 · report
get_relative_position_cpb chenller/mmseg-extension/mmsegext/models/backbones/transnext_cuda.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · af9e1bafd1dd18f3 · report
get_seqlen_and_mask chenller/mmseg-extension/mmsegext/models/backbones/transnext_native.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · e076f3ca82515c34 · report
get_seqlen_scale chenller/mmseg-extension/mmsegext/models/backbones/transnext_cuda.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 973ff8b81a13f50b · report

Tasks

ClassificationDomain GeneralizationImage ClassificationObject DetectionSemantic Segmentationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Domain Generalization ImageNet-A TransNeXt-Base (IN-1K supervised, 384) Number of params 89.7M #15 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Base (IN-1K supervised, 384) Top-1 accuracy % 61.6 #15 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Small (IN-1K supervised, 384) Number of params 49.7M #16 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Small (IN-1K supervised, 384) Top-1 accuracy % 58.3 #16 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Base (IN-1K supervised, 224) Number of params 89.7M #19 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Base (IN-1K supervised, 224) Top-1 accuracy % 50.6 #19 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Small (IN-1K supervised, 224) Number of params 49.7M #21 of 39 Archive leaderboard report
Domain Generalization ImageNet-A TransNeXt-Small (IN-1K supervised, 224) Top-1 accuracy % 47.1 #21 of 39 Archive leaderboard report
Image Classification ImageNet TransNeXt-Base (IN-1K supervised, 384) GFLOPs 56.3 #169 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Base (IN-1K supervised, 384) Number of params 89.7M #169 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Base (IN-1K supervised, 384) Top 1 Accuracy 86.2% #169 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 384) GFLOPs 32.1 #179 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 384) Number of params 49.7M #179 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 384) Top 1 Accuracy 86.0% #179 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 224) GFLOPs 10.3 #295 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 224) Number of params 49.7M #295 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Small (IN-1K supervised, 224) Top 1 Accuracy 84.7% #295 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Tiny (IN-1K supervised, 224) GFLOPs 5.7 #365 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Tiny (IN-1K supervised, 224) Number of params 28.2M #365 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Tiny (IN-1K supervised, 224) Top 1 Accuracy 84.0% #365 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Micro (IN-1K supervised, 224) GFLOPs 2.7 #528 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Micro (IN-1K supervised, 224) Number of params 12.8M #528 of 1060 Archive leaderboard report
Image Classification ImageNet TransNeXt-Micro (IN-1K supervised, 224) Top 1 Accuracy 82.5% #528 of 1060 Archive leaderboard report
Object Detection COCO minival TransNeXt-Base (IN-1K pretrain, DINO 1x) box AP 57.1 #42 of 220 Archive leaderboard report
Object Detection COCO minival TransNeXt-Small (IN-1K pretrain, DINO 1x) box AP 56.6 #44 of 220 Archive leaderboard report
Object Detection COCO minival TransNeXt-Tiny (IN-1K pretrain, DINO 1x) box AP 55.7 #48 of 220 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Base (IN-1K pretrain, Mask2Former, 512) Params (M) 109 #55 of 235 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Base (IN-1K pretrain, Mask2Former, 512) Validation mIoU 54.7 #55 of 235 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Small (IN-1K pretrain, Mask2Former, 512) Params (M) 69 #68 of 235 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Small (IN-1K pretrain, Mask2Former, 512) Validation mIoU 54.1 #68 of 235 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Tiny (IN-1K pretrain, Mask2Former, 512) Params (M) 47.5 #82 of 235 Archive leaderboard report
Semantic Segmentation ADE20K TransNeXt-Tiny (IN-1K pretrain, Mask2Former, 512) Validation mIoU 53.4 #82 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