Skip to main content
QUICK REVIEW

[Paper Review] TransNeXt: Robust Foveal Visual Perception for Vision Transformers

Shi Dai|arXiv (Cornell University)|Nov 28, 2023
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology19 citations
TL;DR

TransNeXt introduces Aggregated Attention and Convolutional GLU to vision transformers, creating a biomimetic foveal perception that avoids depth degradation and delivers state-of-the-art accuracy and robustness across ImageNet, detection, and segmentation.

ABSTRACT

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.

Motivation & Objective

  • Motivate addressing depth degradation in efficient Vision Transformers caused by layer stacking.
  • Develop a biomimetic token mixer that enables per-token global perception without deep stacking.
  • Introduce a channel mixer that enhances local modeling and robustness.
  • Propose a cohesive backbone (TransNeXt) that excels in classification, detection, and segmentation tasks.

Proposed method

  • Introduce Pixel-focused Attention (PFA) that combines fine-grained local attention with coarse global pooling paths.
  • Aggregate multiple attention variants into Aggregated Attention (AA), including QKV, LKV, and QLV mechanisms with learnable tokens and positional cues.
  • Employ length-scaled cosine attention to improve extrapolation for multi-scale inputs.
  • Propose Convolutional GLU as a gated channel attention mechanism based on nearest-neighbor features to enhance robustness.
  • Build TransNeXt as a four-stage hierarchical backbone incorporating AA and Convolutional GLU, with design aligned to PVTv2.

Experimental results

Research questions

  • RQ1Can aggregated, biomimetic attention overcome depth degradation and improve information mixing in ViTs without deep stacking?
  • RQ2Does integrating learnable query tokens and diverse position biases improve affinity matrix generation beyond QKV similarity?
  • RQ3Will a convolution-based channel mixer (Convolutional GLU) enhance local feature modeling and model robustness in ViTs?
  • RQ4How does TransNeXt perform on standard and robustness-focused vision tasks (ImageNet, ImageNet-A, COCO, ADE20K) across model sizes?

Key findings

  • TransNeXt-Tiny achieves 84.0% top-1 accuracy on ImageNet-1K at 224^2 with 28.2M params and 5.7G FLOPs, surpassing ConvNeXt-B with 69% fewer parameters.
  • TransNeXt-Base achieves 86.2% ImageNet-1K top-1 accuracy, 61.6% ImageNet-A top-1 accuracy, 57.1 mAP on COCO object detection, and 54.7 mIoU on ADE20K semantic segmentation.
  • TransNeXt-Small achieves 84.7% ImageNet-1K top-1 accuracy and 58.3% ImageNet-A at 384^2; TransNeXt-Small/Base reach 61.6% and 57.7% on IN-A and IN-R respectively, illustrating robustness gains.
  • On ImageNet-A at 224^2, TransNeXt-Base outperforms MaxViT-Base by 6.4% top-1.
  • TransNeXt-Tiny/Small/Base show robustness advantages over ConvNeXt-L and comparable or superior performance to larger ViT-based backbones across multiple tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.