Discrete Representations Strengthen Vision Transformer Robustness
Not on the map. Why?
Abstract (arXiv)
Vision Transformer (ViT) is emerging as the state-of-the-art architecture for image recognition. While recent studies suggest that ViTs are more robust than their convolutional counterparts, our experiments find that ViTs trained on ImageNet are overly reliant on local textures and fail to make adequate use of shape information. ViTs thus have difficulties generalizing to out-of-distribution, real-world data. To address this deficiency, we present a simple and effective architecture modification to ViT's input layer by adding discrete tokens produced by a vector-quantized encoder. Different from the standard continuous pixel tokens, discrete tokens are invariant under small perturbations and contain less information individually, which promote ViTs to learn global information that is invariant. Experimental results demonstrate that adding discrete representation on four architecture variants strengthens ViT robustness by up to 12% across seven ImageNet robustness benchmarks while maintaining the performance on ImageNet.
Key facts. Cited by 35 papers in the map (data through 14 Oct 2026). Builds on 44 of its 51 references that are in the map. First posted on arXiv 20 Nov 2021.
Builds on
44 of 51 references.
References · 44
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2017Neural Discrete Representation Learningcited by 4,712
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2021Zero-Shot Text-to-Image Generationcited by 4,288
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
32 more
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,694
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,628
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
- 2019Natural Adversarial Examplescited by 1,408
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2018AutoAugment: Learning Augmentation Policies from Datacited by 730
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 569
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2020Self-Challenging Improves Cross-Domain Generalizationcited by 426
- 2019Confident Learning: Estimating Uncertainty in Dataset Labelscited by 413
- 2020Are we done with ImageNet?cited by 333
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
- 2018Composing Text and Image for Image Retrieval - An Empirical Odysseycited by 236
- 2021Vision Transformers are Robust Learnerscited by 207
- 2020Robust and Generalizable Visual Representation Learning via Random Convolutionscited by 142
- 2021Towards Robust Vision Transformercited by 137
- 2020Robust Learning Through Cross-Task Consistencycited by 105
- 2020Generative Interventions for Causal Learningcited by 45
- 2018DVAE#: Discrete Variational Autoencoders with Relaxed Boltzmann Priorscited by 20
- 2020Learning Visual Representations for Transfer Learning by Suppressing Texturecited by 11
Built on by
Citing papers per year: 2021: 1; 2022: 6; 2023: 13; 2024: 8; 2025: 4; 2026: 3.
35 papers.
Sort:
By area:
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 640
- 2023LightGaussian: Unbounded 3D Gaussian Compression with 15x Reduction and 200+ FPScited by 436
- 2022Test-Time Training with Masked Autoencoderscited by 212
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 120
- 2023Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector Quantizationcited by 60
- 2023Online Clustered Codebookcited by 55
- 2021Pyramid Adversarial Training Improves ViT Performancecited by 39
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2022A simple, efficient and scalable contrastive masked autoencoder for learning visual representationscited by 25
- 2022Causal Transportability for Visual Recognitioncited by 23
- 2022Enhance the Visual Representation via Discrete Adversarial Trainingcited by 23
- 2024ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Objectcited by 22
23 more
- 2023Convolutional Visual Prompt for Robust Visual Perceptioncited by 17
- 2024GDA: Generalized Diffusion for Robust Test-time Adaptationcited by 14
- 2024Analyzing The Language of Visual Tokenscited by 12
- 2023Reinforcement Learning for Generative AI: A Surveycited by 11
- 2023Interpreting and Controlling Vision Foundation Models via Text Explanationscited by 11
- 2024[MASK] is All You Needcited by 11
- 2023Prototype-based Dataset Comparisoncited by 9
- 2023Distilling Out-of-Distribution Robustness from Vision-Language Foundation Modelscited by 9
- 2025MGVQ: Could VQ-VAE Beat VAE? A Generalizable Tokenizer with Multi-group Quantizationcited by 9
- 2023Unaligned 2D to 3D Translation with Conditional Vector-Quantized Code Diffusion using Transformerscited by 7
- 2024Learning to Play Atari in a World of Tokenscited by 6
- 2022Deeper Insights into the Robustness of ViTs towards Common Corruptionscited by 5
- 2023BELT:Bootstrapping Electroencephalography-to-Language Decoding and Zero-Shot Sentiment Classification by Natural Language Supervisioncited by 5
- 2024Vision Transformers with Natural Language Semanticscited by 5
- 2022Understanding Adversarial Robustness of Vision Transformers via Cauchy Problemcited by 4
- 2025Moment Quantization for Video Temporal Groundingcited by 4
- 2023RBFormer: Improve Adversarial Robustness of Transformer by Robust Biascited by 3
- 2025ViT-EnsembleAttack: Augmenting Ensemble Models for Stronger Adversarial Transferability in Vision Transformerscited by 1
- 2026CONSTANT: Towards High-Quality One-Shot Handwriting Generation with Patch Contrastive Enhancement and Style-Aware Quantizationcited by 1
- 2024Towards Multi-Task Multi-Modal Models: A Video Generative Perspectivecited by 0
- 2025EasyRobust: A Comprehensive and Easy-to-use Toolkit for Robust and Generalized Visioncited by 0
- 2026ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margincited by 0
- 2026EEGDancer: Dynamic Emotion Latent Space Masked Modeling with Reinforcement Learning for EEG Continuous Emotion Predictioncited by 0
- 2026EEGDancer: Dynamic Emotion Latent Space Masked Modeling with Reinforcement Learning for EEG Continuous Emotion Prediction4 Jun 2026
- 2026ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margin13 May 2026
- 2026CONSTANT: Towards High-Quality One-Shot Handwriting Generation with Patch Contrastive Enhancement and Style-Aware Quantization8 Mar 2026
- 2025ViT-EnsembleAttack: Augmenting Ensemble Models for Stronger Adversarial Transferability in Vision Transformers17 Aug 2025
- 2025MGVQ: Could VQ-VAE Beat VAE? A Generalizable Tokenizer with Multi-group Quantization10 Jul 2025
- 2025Moment Quantization for Video Temporal Grounding3 Apr 2025
- 2025EasyRobust: A Comprehensive and Easy-to-use Toolkit for Robust and Generalized Vision21 Mar 2025
- 2024[MASK] is All You Need9 Dec 2024
- 2024Analyzing The Language of Visual Tokens7 Nov 2024
- 2024Learning to Play Atari in a World of Tokens3 Jun 2024
- 2024Towards Multi-Task Multi-Modal Models: A Video Generative Perspective26 May 2024
- 2024GDA: Generalized Diffusion for Robust Test-time Adaptation29 Mar 2024
23 more
- 2024ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Object27 Mar 2024
- 2024Vision Transformers with Natural Language Semantics27 Feb 2024
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers8 Feb 2024
- 2023LightGaussian: Unbounded 3D Gaussian Compression with 15x Reduction and 200+ FPS28 Nov 2023
- 2023Distilling Out-of-Distribution Robustness from Vision-Language Foundation Models2 Nov 2023
- 2023Interpreting and Controlling Vision Foundation Models via Text Explanations16 Oct 2023
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generation9 Oct 2023
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantization28 Sep 2023
- 2023RBFormer: Improve Adversarial Robustness of Transformer by Robust Bias23 Sep 2023
- 2023BELT:Bootstrapping Electroencephalography-to-Language Decoding and Zero-Shot Sentiment Classification by Natural Language Supervision21 Sep 2023
- 2023Prototype-based Dataset Comparison5 Sep 2023
- 2023Reinforcement Learning for Generative AI: A Survey28 Aug 2023
- 2023Unaligned 2D to 3D Translation with Conditional Vector-Quantized Code Diffusion using Transformers27 Aug 2023
- 2023Online Clustered Codebook27 Jul 2023
- 2023Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector Quantization19 May 2023
- 2023Convolutional Visual Prompt for Robust Visual Perception1 Mar 2023
- 2022A simple, efficient and scalable contrastive masked autoencoder for learning visual representations30 Oct 2022
- 2022Enhance the Visual Representation via Discrete Adversarial Training16 Sep 2022
- 2022Test-Time Training with Masked Autoencoders15 Sep 2022
- 2022Understanding Adversarial Robustness of Vision Transformers via Cauchy Problem1 Aug 2022
- 2022Causal Transportability for Visual Recognition26 Apr 2022
- 2022Deeper Insights into the Robustness of ViTs towards Common Corruptions26 Apr 2022
- 2021Pyramid Adversarial Training Improves ViT Performance30 Nov 2021
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 640
- 2024ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Objectcited by 22
- 2024[MASK] is All You Needcited by 11
- 2026CONSTANT: Towards High-Quality One-Shot Handwriting Generation with Patch Contrastive Enhancement and Style-Aware Quantizationcited by 1
- 2026CONSTANT: Towards High-Quality One-Shot Handwriting Generation with Patch Contrastive Enhancement and Style-Aware Quantization8 Mar 2026
- 2024[MASK] is All You Need9 Dec 2024
- 2024ImageNet-D: Benchmarking Neural Network Robustness on Diffusion Synthetic Object27 Mar 2024
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generation9 Oct 2023
- 2024Learning to Play Atari in a World of Tokenscited by 6
- 2024Learning to Play Atari in a World of Tokens3 Jun 2024
- 2023LightGaussian: Unbounded 3D Gaussian Compression with 15x Reduction and 200+ FPScited by 436
- 2022Test-Time Training with Masked Autoencoderscited by 212
- 2023Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector Quantizationcited by 60
- 2023Online Clustered Codebookcited by 55
- 2021Pyramid Adversarial Training Improves ViT Performancecited by 39
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2022A simple, efficient and scalable contrastive masked autoencoder for learning visual representationscited by 25
- 2022Causal Transportability for Visual Recognitioncited by 23
- 2022Enhance the Visual Representation via Discrete Adversarial Trainingcited by 23
- 2023Convolutional Visual Prompt for Robust Visual Perceptioncited by 17
- 2024GDA: Generalized Diffusion for Robust Test-time Adaptationcited by 14
- 2024Analyzing The Language of Visual Tokenscited by 12
12 most cited of 28 All 28 (JSON)
- 2026EEGDancer: Dynamic Emotion Latent Space Masked Modeling with Reinforcement Learning for EEG Continuous Emotion Prediction4 Jun 2026
- 2026ArcVQ-VAE: A Spherical Vector Quantization Framework with ArcCosine Additive Margin13 May 2026
- 2025ViT-EnsembleAttack: Augmenting Ensemble Models for Stronger Adversarial Transferability in Vision Transformers17 Aug 2025
- 2025MGVQ: Could VQ-VAE Beat VAE? A Generalizable Tokenizer with Multi-group Quantization10 Jul 2025
- 2025Moment Quantization for Video Temporal Grounding3 Apr 2025
- 2025EasyRobust: A Comprehensive and Easy-to-use Toolkit for Robust and Generalized Vision21 Mar 2025
- 2024Analyzing The Language of Visual Tokens7 Nov 2024
- 2024Towards Multi-Task Multi-Modal Models: A Video Generative Perspective26 May 2024
- 2024GDA: Generalized Diffusion for Robust Test-time Adaptation29 Mar 2024
- 2024Vision Transformers with Natural Language Semantics27 Feb 2024
- 2023LightGaussian: Unbounded 3D Gaussian Compression with 15x Reduction and 200+ FPS28 Nov 2023
- 2023Interpreting and Controlling Vision Foundation Models via Text Explanations16 Oct 2023
12 newest of 28 All 28 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024ViT-1.58b: Mobile Vision Transformers in the 1-bit Era
- 2026ViT-5: Vision Transformers for The Mid-2020s
- 2022Q-ViT: Fully Differentiable Quantization for Vision Transformer
- 2024TPC-ViT: Token Propagation Controller for Efficient Vision Transformer
- 2026Colinearity Decay: Training Quantization-Friendly ViTs with Outlier Decay
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformer
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarking
- 2023Bi-ViT: Pushing the Limit of Vision Transformer Quantization