Uncovering Adversarial Risks of Test-Time Adaptation
Not on the map. Why?
Abstract (arXiv)
Recently, test-time adaptation (TTA) has been proposed as a promising solution for addressing distribution shifts. It allows a base model to adapt to an unforeseen distribution during inference by leveraging the information from the batch of (unlabeled) test data. However, we uncover a novel security vulnerability of TTA based on the insight that predictions on benign samples can be impacted by malicious samples in the same batch. To exploit this vulnerability, we propose Distribution Invading Attack (DIA), which injects a small fraction of malicious data into the test batch. DIA causes models using TTA to misclassify benign and unperturbed test data, providing an entirely new capability for adversaries that is infeasible in canonical machine learning pipelines. Through comprehensive evaluations, we demonstrate the high effectiveness of our attack on multiple benchmarks across six TTA methods. In response, we investigate two countermeasures to robustify the existing insecure TTA implementations, following the principle of "security by design". Together, we hope our findings can make the community aware of the utility-security tradeoffs in deploying TTA and provide valuable insights for developing robust TTA approaches.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 70 of its 114 references that are in the map. First posted on arXiv 29 Jan 2023.
Builds on
70 of 114 references.
References · 70
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2016Wide Residual Networkscited by 3,070
- 2015Domain-Adversarial Training of Neural Networkscited by 3,044
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
38 more
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 901
- 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 848
- 2020Fast is better than free: Revisiting adversarial trainingcited by 727
- 2017Evasion Attacks against Machine Learning at Test Timecited by 689
- 2017Maximum Classifier Discrepancy for Unsupervised Domain Adaptationcited by 683
- 2020RobustBench: a standardized adversarial robustness benchmarkcited by 661
- 2019Adversarial Training for Free!cited by 643
- 2018Improving Transferability of Adversarial Examples with Input Diversitycited by 599
- 2022Continual Test-Time Domain Adaptationcited by 525
- 2022Efficient Test-Time Model Adaptation without Forgettingcited by 469
- 2020Improving robustness against common corruptions by covariate shift adaptationcited by 431
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 377
- 2020Do Adversarially Robust ImageNet Models Transfer Better?cited by 316
- 2018Feature Denoising for Improving Adversarial Robustnesscited by 314
- 2016Revisiting Batch Normalization For Practical Domain Adaptationcited by 288
- 2019Adversarial Examples Improve Image Recognitioncited by 286
- 2018Adversarial Attacks and Defences: A Surveycited by 259
- 2020Evaluating Prediction-Time Batch Normalization for Robustness under Covariate Shiftcited by 236
- 2021Improving Robustness using Generated Datacited by 234
- 2020Universal Source-Free Domain Adaptationcited by 220
- 2018DeepJDOT: Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptationcited by 214
- 2022Test-Time Training with Masked Autoencoderscited by 212
- 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 204
- 2020Adaptive Risk Minimization: Learning to Adapt to Domain Shiftcited by 183
- 2020Witches' Brew: Industrial Scale Data Poisoning via Gradient Matchingcited by 163
- 2021Poisoning and Backdooring Contrastive Learningcited by 151
- 2022NOTE: Robust Continual Test-time Adaptation Against Temporal Correlationcited by 151
- 2021The Norm Must Go On: Dynamic Unsupervised Domain Adaptation by Normalizationcited by 131
- 2021Robust Learning Meets Generative Models: Can Proxy Distributions Improve Adversarial Robustness?cited by 113
- 2022Robustness and Accuracy Could Be Reconcilable by (Proper) Definitioncited by 111
- 2022Robust Mean Teacher for Continual and Gradual Test-Time Adaptationcited by 104
- 2022Truth Serum: Poisoning Machine Learning Models to Reveal Their Secretscited by 101
- 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
- 2022Visual Prompt Tuning for Test-time Domain Adaptationcited by 97
- 2022LAS-AT: Adversarial Training with Learnable Attack Strategycited by 95
- 2021MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaptioncited by 65
- 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64
50 most cited of 70 All 70 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 3.
12 papers.
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 359
- 2023SoTTA: Robust Test-Time Adaptation on Noisy Data Streamscited by 63
- 2023Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognitioncited by 18
- 2025Monitoring Risks in Test-Time Adaptationcited by 11
- 2024MedBN: Robust Test-Time Adaptation against Malicious Test Samplescited by 10
- 2024On the Adversarial Risk of Test Time Adaptation: An Investigation into Realistic Test-Time Data Poisoningcited by 4
- 2024Position: Towards Resilience Against Adversarial Examplescited by 1
- 2024R.I.P.: A Simple Black-box Attack on Continual Test-time Adaptationcited by 0
- 2025FedPoisonTTP: A Threat Model and Poisoning Attack for Federated Test-Time Personalizationcited by 0
- 2026Incentive Aware AI Regulations: A Credal Characterisationcited by 0
- 2026Test-Time Training Undermines Safety Guardrailscited by 0
- 2026Sample-wise Targeted Adversarial Attacks on Test-time Adaptationcited by 0
- 2026Sample-wise Targeted Adversarial Attacks on Test-time Adaptation22 May 2026
- 2026Test-Time Training Undermines Safety Guardrails21 May 2026
- 2026Incentive Aware AI Regulations: A Credal Characterisation5 Mar 2026
- 2025FedPoisonTTP: A Threat Model and Poisoning Attack for Federated Test-Time Personalization24 Nov 2025
- 2025Monitoring Risks in Test-Time Adaptation11 Jul 2025
- 2024R.I.P.: A Simple Black-box Attack on Continual Test-time Adaptation2 Dec 2024
- 2024On the Adversarial Risk of Test Time Adaptation: An Investigation into Realistic Test-Time Data Poisoning7 Oct 2024
- 2024Position: Towards Resilience Against Adversarial Examples2 May 2024
- 2024MedBN: Robust Test-Time Adaptation against Malicious Test Samples28 Mar 2024
- 2023Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition28 Oct 2023
- 2023SoTTA: Robust Test-Time Adaptation on Noisy Data Streams16 Oct 2023
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shifts27 Mar 2023