Robustifying Vision Transformer without Retraining from Scratch by Test-Time Class-Conditional Feature Alignment
Not on the map. Why?
Abstract (arXiv)
Vision Transformer (ViT) is becoming more popular in image processing. Specifically, we investigate the effectiveness of test-time adaptation (TTA) on ViT, a technique that has emerged to correct its prediction during test-time by itself. First, we benchmark various test-time adaptation approaches on ViT-B16 and ViT-L16. It is shown that the TTA is effective on ViT and the prior-convention (sensibly selecting modulation parameters) is not necessary when using proper loss function. Based on the observation, we propose a new test-time adaptation method called class-conditional feature alignment (CFA), which minimizes both the class-conditional distribution differences and the whole distribution differences of the hidden representation between the source and target in an online manner. Experiments of image classification tasks on common corruption (CIFAR-10-C, CIFAR-100-C, and ImageNet-C) and domain adaptation (digits datasets and ImageNet-Sketch) show that CFA stably outperforms the existing baselines on various datasets. We also verify that CFA is model agnostic by experimenting on ResNet, MLP-Mixer, and several ViT variants (ViT-AugReg, DeiT, and BeiT). Using BeiT backbone, CFA achieves 19.8% top-1 error rate on ImageNet-C, outperforming the existing test-time adaptation baseline 44.0%. This is a state-of-the-art result among TTA methods that do not need to alter training phase.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 31 of its 63 references that are in the map. First posted on arXiv 28 Jun 2022.
Builds on
31 of 63 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Layer Normalizationcited by 5,579
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
19 more
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 897
- 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 844
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2020Improving robustness against common corruptions by covariate shift adaptationcited by 427
- 2019Why gradient clipping accelerates training: A theoretical justification for adaptivitycited by 335
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2020Evaluating Prediction-Time Batch Normalization for Robustness under Covariate Shiftcited by 235
- 2018End-to-End Dense Video Captioning with Masked Transformercited by 214
- 2021Vision Transformers are Robust Learnerscited by 208
- 2017Central Moment Discrepancy (CMD) for Domain-Invariant Representation Learningcited by 192
- 2020Learning Joint Spatial-Temporal Transformations for Video Inpaintingcited by 162
- 2019Cluster Alignment with a Teacher for Unsupervised Domain Adaptationcited by 88
- 2022Does Robustness on ImageNet Transfer to Downstream Tasks?cited by 20
- 2021Exploring Corruption Robustness: Inductive Biases in Vision Transformers and MLP-Mixerscited by 13
Built on by
Citing papers per year: 2022: 4; 2023: 8; 2024: 6; 2025: 3; 2026: 5.
26 papers.
Sort:
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 353
- 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
- 2022Visual Prompt Tuning for Test-time Domain Adaptationcited by 97
- 2023In Search of Lost Online Test-time Adaptation: A Surveycited by 43
- 2023Feature Alignment and Uniformity for Test Time Adaptationcited by 42
- 2022ActMAD: Activation Matching to Align Distributions for Test-Time-Trainingcited by 38
- 2022Video Test-Time Adaptation for Action Recognitioncited by 35
- 2023Evaluation of Test-Time Adaptation Under Computational Time Constraintscited by 13
- 2023Uncovering Adversarial Risks of Test-Time Adaptationcited by 12
- 2023Test Time Adaptation for Blind Image Quality Assessmentcited by 11
- 2023VPA: Fully Test-Time Visual Prompt Adaptationcited by 11
- 2024Test-time Adaptation for Regression by Subspace Alignmentcited by 9
14 more
- 2024Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptationcited by 4
- 2023ASR: Attention-alike Structural Re-parameterizationcited by 2
- 2024Test-time Adaptation Meets Image Enhancement: Improving Accuracy via Uncertainty-aware Logit Switchingcited by 2
- 2024Test-Time Adaptation for Combating Missing Modalities in Egocentric Videoscited by 2
- 2024Domain-Conditioned Transformer for Fully Test-time Adaptationcited by 2
- 2025Structural Alignment Improves Graph Test-Time Adaptationcited by 2
- 2024Enhanced Online Test-time Adaptation with Feature-Weight Cosine Alignmentcited by 1
- 2025ADVMEM: Adversarial Memory Initialization for Realistic Test-Time Adaptation via Tracklet-Based Benchmarkingcited by 1
- 2025HyperTTA: Test-Time Adaptation for Hyperspectral Image Classification under Distribution Shiftscited by 1
- 2026Stabilizing Test-Time Adaptation of High-Dimensional Simulation Surrogates via D-Optimal Statisticscited by 0
- 2026IMSE: Intrinsic Mixture of Spectral Experts Fine-tuning for Test-Time Adaptationcited by 0
- 2026Test Time Adaptation Methods for Point Cloud Registration in Laparoscopic Surgerycited by 0
- 2026Reliable Neural Collapse Approximation for Open-World Test-Time Adaptationcited by 0
- 2026Test-time adaptation for speech enhancement with an autoregressive speech priorcited by 0
- 2026Test-time adaptation for speech enhancement with an autoregressive speech prior3 Sep 2026
- 2026Reliable Neural Collapse Approximation for Open-World Test-Time Adaptation20 Aug 2026
- 2026Test Time Adaptation Methods for Point Cloud Registration in Laparoscopic Surgery3 Aug 2026
- 2026IMSE: Intrinsic Mixture of Spectral Experts Fine-tuning for Test-Time Adaptation9 Mar 2026
- 2026Stabilizing Test-Time Adaptation of High-Dimensional Simulation Surrogates via D-Optimal Statistics17 Feb 2026
- 2025HyperTTA: Test-Time Adaptation for Hyperspectral Image Classification under Distribution Shifts10 Sep 2025
- 2025ADVMEM: Adversarial Memory Initialization for Realistic Test-Time Adaptation via Tracklet-Based Benchmarking2 Sep 2025
- 2025Structural Alignment Improves Graph Test-Time Adaptation25 Feb 2025
- 2024Domain-Conditioned Transformer for Fully Test-time Adaptation14 Oct 2024
- 2024Test-time Adaptation for Regression by Subspace Alignment4 Oct 2024
- 2024Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation26 Aug 2024
- 2024Enhanced Online Test-time Adaptation with Feature-Weight Cosine Alignment12 May 2024
14 more
- 2024Test-Time Adaptation for Combating Missing Modalities in Egocentric Videos23 Apr 2024
- 2024Test-time Adaptation Meets Image Enhancement: Improving Accuracy via Uncertainty-aware Logit Switching26 Mar 2024
- 2023In Search of Lost Online Test-time Adaptation: A Survey31 Oct 2023
- 2023VPA: Fully Test-Time Visual Prompt Adaptation26 Sep 2023
- 2023Test Time Adaptation for Blind Image Quality Assessment27 Jul 2023
- 2023ASR: Attention-alike Structural Re-parameterization13 Apr 2023
- 2023Evaluation of Test-Time Adaptation Under Computational Time Constraints10 Apr 2023
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shifts27 Mar 2023
- 2023Feature Alignment and Uniformity for Test Time Adaptation20 Mar 2023
- 2023Uncovering Adversarial Risks of Test-Time Adaptation29 Jan 2023
- 2022Video Test-Time Adaptation for Action Recognition24 Nov 2022
- 2022ActMAD: Activation Matching to Align Distributions for Test-Time-Training23 Nov 2022
- 2022Visual Prompt Tuning for Test-time Domain Adaptation10 Oct 2022
- 2022Test-Time Adaptation via Conjugate Pseudo-labels20 Jul 2022
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 353
- 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
- 2022Visual Prompt Tuning for Test-time Domain Adaptationcited by 97
- 2023In Search of Lost Online Test-time Adaptation: A Surveycited by 43
- 2023Feature Alignment and Uniformity for Test Time Adaptationcited by 42
- 2022ActMAD: Activation Matching to Align Distributions for Test-Time-Trainingcited by 38
- 2022Video Test-Time Adaptation for Action Recognitioncited by 35
- 2023Evaluation of Test-Time Adaptation Under Computational Time Constraintscited by 13
- 2023Uncovering Adversarial Risks of Test-Time Adaptationcited by 12
- 2023Test Time Adaptation for Blind Image Quality Assessmentcited by 11
- 2023VPA: Fully Test-Time Visual Prompt Adaptationcited by 11
- 2024Test-time Adaptation for Regression by Subspace Alignmentcited by 9
12 most cited of 26 All 26 (JSON)
- 2026Test-time adaptation for speech enhancement with an autoregressive speech prior3 Sep 2026
- 2026Reliable Neural Collapse Approximation for Open-World Test-Time Adaptation20 Aug 2026
- 2026Test Time Adaptation Methods for Point Cloud Registration in Laparoscopic Surgery3 Aug 2026
- 2026IMSE: Intrinsic Mixture of Spectral Experts Fine-tuning for Test-Time Adaptation9 Mar 2026
- 2026Stabilizing Test-Time Adaptation of High-Dimensional Simulation Surrogates via D-Optimal Statistics17 Feb 2026
- 2025HyperTTA: Test-Time Adaptation for Hyperspectral Image Classification under Distribution Shifts10 Sep 2025
- 2025ADVMEM: Adversarial Memory Initialization for Realistic Test-Time Adaptation via Tracklet-Based Benchmarking2 Sep 2025
- 2025Structural Alignment Improves Graph Test-Time Adaptation25 Feb 2025
- 2024Domain-Conditioned Transformer for Fully Test-time Adaptation14 Oct 2024
- 2024Test-time Adaptation for Regression by Subspace Alignment4 Oct 2024
- 2024Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation26 Aug 2024
- 2024Enhanced Online Test-time Adaptation with Feature-Weight Cosine Alignment12 May 2024
12 newest of 26 All 26 (JSON)