[Paper Review] Rethinking the Design Principles of Robust Vision Transformer
This paper proposes Robust Vision Transformer (RVT), a new Vision Transformer architecture designed for improved robustness and generalization by rethinking architectural components through a robustness lens. By integrating robust design elements and introducing plug-and-play techniques like position-aware attention rescaling and patch-wise augmentation, RVT achieves state-of-the-art performance on ImageNet and multiple robustness benchmarks, including top-1 accuracy on ImageNet-C and ImageNet-Sketch leaderboards.
Recent advances on Vision Transformers (ViT) have shown that self-attention-based networks, which take advantage of long-range dependencies modeling ability, surpassed traditional convolution neural networks (CNNs) in most vision tasks. To further expand the applicability for computer vision, many improved variants are proposed to re-design the Transformer architecture by considering the superiority of CNNs, i.e., locality, translation invariance, for better performance. However, these methods only consider the standard accuracy or computation cost of the model. In this paper, we rethink the design principles of ViTs based on the robustness. We found some design components greatly harm the robustness and generalization ability of ViTs while some others are beneficial. By combining the robust design components, we propose Robust Vision Transformer (RVT). RVT is a new vision transformer, which has superior performance and strong robustness. We further propose two new plug-and-play techniques called position-aware attention rescaling and patch-wise augmentation to train our RVT. The experimental results on ImageNet and six robustness benchmarks show the advanced robustness and generalization ability of RVT compared with previous Transformers and state-of-the-art CNNs. Our RVT-S* also achieves Top-1 rank on multiple robustness leaderboards including ImageNet-C and ImageNet-Sketch. The code will be available at https://github.com/vtddggg/Robust-Vision-Transformer.
Motivation & Objective
- To investigate how existing Vision Transformer components affect model robustness and generalization beyond standard accuracy and computation cost.
- To identify architectural components that harm or improve robustness in Vision Transformers.
- To design a new Vision Transformer architecture, RVT, that optimizes for robustness while maintaining high performance.
- To develop plug-and-play training techniques that enhance robustness without architectural changes.
- To validate RVT's superiority on standard and robustness benchmarks, including ImageNet-C and ImageNet-Sketch.
Proposed method
- Rethink ViT design principles by evaluating the impact of each component on robustness, identifying those that degrade or improve performance under distribution shift.
- Propose Robust Vision Transformer (RVT) by combining only robust architectural components to enhance generalization and robustness.
- Introduce position-aware attention rescaling, a plug-and-play technique that adapts attention map scaling based on spatial position to improve stability.
- Develop patch-wise augmentation, a data augmentation strategy that applies random augmentations per patch to improve robustness during training.
- Train RVT using standard ImageNet and robustness benchmarks, leveraging the proposed techniques to enhance generalization under distribution shift.
- Use ablation studies to validate the contribution of each component and technique on robustness and accuracy.
Experimental results
Research questions
- RQ1Which Vision Transformer components degrade or enhance robustness under distribution shift?
- RQ2Can a Vision Transformer be re-designed from the ground up to prioritize robustness without sacrificing performance?
- RQ3How do position-aware attention rescaling and patch-wise augmentation improve model robustness during training?
- RQ4To what extent does RVT outperform existing ViTs and state-of-the-art CNNs on robustness benchmarks?
- RQ5Can RVT achieve top-tier performance on robustness leaderboards such as ImageNet-C and ImageNet-Sketch?
Key findings
- RVT achieves top-1 accuracy on multiple robustness leaderboards, including ImageNet-C and ImageNet-Sketch, demonstrating state-of-the-art robustness.
- The proposed position-aware attention rescaling and patch-wise augmentation techniques significantly improve robustness without architectural modifications.
- Certain ViT components previously considered beneficial were found to harm robustness, highlighting the need for re-evaluation of design principles.
- RVT outperforms both standard Vision Transformers and state-of-the-art CNNs on six robustness benchmarks, confirming its superior generalization ability.
- The ablation study confirms that combining only robust components leads to a significant performance gain on distribution shift, validating the design philosophy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.