On the Adversarial Risk of Test Time Adaptation: An Investigation into Realistic Test-Time Data Poisoning

Yongyi Su, Yushu Li, Nanqing Liu, Kui Jia, Xulei Yang +2 more
2/12/2026

No official code found. Best implementation: Gorilla-Lab-SCUT/RTTDP (13 stars, MIT, last commit 2025-02-25).

Abstract

Test-time adaptation (TTA) updates the model weights during the inference stage using testing data to enhance generalization. However, this practice exposes TTA to adversarial risks. Existing studies have shown that when TTA is updated with crafted adversarial test samples, also known as test-time poisoned data, the performance on benign samples can deteriorate. Nonetheless, the perceived adversarial risk may be overstated if the poisoned data is generated under overly strong assumptions. In this work, we first review realistic assumptions for test-time data poisoning, including white-box versus grey-box attacks, access to benign data, attack order, and more. We then propose an effective and realistic attack method that better produces poisoned samples without access to benign samples, and derive an effective in-distribution attack objective. We also design two TTA-aware attack objectives. Our benchmarks of existing attack methods reveal that the TTA methods are more robust than previously believed. In addition, we analyze effective defense strategies to help develop adversarially robust TTA methods. The source code is available at https://github.com/Gorilla-Lab-SCUT/RTTDP.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2025] On the Adversarial Risk of Test Time Adaptation: An Investigation into Realistic Test-Time Data Poisoning

131Jinja, ShellJan 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{su2026adversarial,
  title  = {On the Adversarial Risk of Test Time Adaptation: An Investigation into Realistic Test-Time Data Poisoning},
  author = {Yongyi Su and Yushu Li and Nanqing Liu and Kui Jia and Xulei Yang and C. Foo and Xun Xu},
  year   = {2026},
  eprint = {2410.04682},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.04682},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04682.svg)](https://codeofpaper.com/paper/2410.04682)

Discussion