Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

TransNeXt: Robust Foveal Visual Perception for Vision Transformers

About

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^2$, 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^2$, a COCO object detection mAP of 57.1, and an ADE20K semantic segmentation mIoU of 54.7.

Dai Shi• 2023

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU54.7
2888
Object DetectionCOCO 2017 (val)--
2643
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy86.2
1952
Image ClassificationImageNet A
Top-1 Acc61.6
654
Image ClassificationImageNet V2
Top-1 Acc77
611
Image ClassificationImageNet-R
Top-1 Acc57.7
529
Image ClassificationImageNet-Sketch
Top-1 Accuracy44.7
407
Object DetectionCOCO 2017
AP (Box)51.7
321
Object DetectionCOCO
AP50 (Box)73.2
237
Instance SegmentationCOCO 2017
APm45.9
226
Showing 10 of 13 rows

Other info

Code

Follow for update