mlsanityData to 14 Oct 2026

Uncovering Adversarial Risks of Test-Time Adaptation

arXiv 2301.12576 ↗First posted 29 Jan 2023cs.LG cs.CRcited by 12

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  6. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
  7. 2016Wide Residual Networkscited by 3,070
  8. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  9. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  10. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  11. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  12. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
38 more
  1. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  2. 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 901
  3. 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 848
  4. 2020Fast is better than free: Revisiting adversarial trainingcited by 727
  5. 2017Evasion Attacks against Machine Learning at Test Timecited by 689
  6. 2017Maximum Classifier Discrepancy for Unsupervised Domain Adaptationcited by 683
  7. 2020RobustBench: a standardized adversarial robustness benchmarkcited by 661
  8. 2019Adversarial Training for Free!cited by 643
  9. 2018Improving Transferability of Adversarial Examples with Input Diversitycited by 599
  10. 2022Continual Test-Time Domain Adaptationcited by 525
  11. 2022Efficient Test-Time Model Adaptation without Forgettingcited by 469
  12. 2020Improving robustness against common corruptions by covariate shift adaptationcited by 431
  13. 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 377
  14. 2020Do Adversarially Robust ImageNet Models Transfer Better?cited by 316
  15. 2018Feature Denoising for Improving Adversarial Robustnesscited by 314
  16. 2016Revisiting Batch Normalization For Practical Domain Adaptationcited by 288
  17. 2019Adversarial Examples Improve Image Recognitioncited by 286
  18. 2018Adversarial Attacks and Defences: A Surveycited by 259
  19. 2020Evaluating Prediction-Time Batch Normalization for Robustness under Covariate Shiftcited by 236
  20. 2021Improving Robustness using Generated Datacited by 234
  21. 2020Universal Source-Free Domain Adaptationcited by 220
  22. 2018DeepJDOT: Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptationcited by 214
  23. 2022Test-Time Training with Masked Autoencoderscited by 212
  24. 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 204
  25. 2020Adaptive Risk Minimization: Learning to Adapt to Domain Shiftcited by 183
  26. 2020Witches' Brew: Industrial Scale Data Poisoning via Gradient Matchingcited by 163
  27. 2021Poisoning and Backdooring Contrastive Learningcited by 151
  28. 2022NOTE: Robust Continual Test-time Adaptation Against Temporal Correlationcited by 151
  29. 2021The Norm Must Go On: Dynamic Unsupervised Domain Adaptation by Normalizationcited by 131
  30. 2021Robust Learning Meets Generative Models: Can Proxy Distributions Improve Adversarial Robustness?cited by 113
  31. 2022Robustness and Accuracy Could Be Reconcilable by (Proper) Definitioncited by 111
  32. 2022Robust Mean Teacher for Continual and Gradual Test-Time Adaptationcited by 104
  33. 2022Truth Serum: Poisoning Machine Learning Models to Reveal Their Secretscited by 101
  34. 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
  35. 2022Visual Prompt Tuning for Test-time Domain Adaptationcited by 97
  36. 2022LAS-AT: Adversarial Training with Learnable Attack Strategycited by 95
  37. 2021MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaptioncited by 65
  38. 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64

50 most cited of 70 All 70 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 4; 2025: 2; 2026: 3.

12 papers.