arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04682cs.LGcs.CV
收藏

关于测试时自适应的对抗风险:对现实测试时数据投毒的研究

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

South China University of Technology(华南理工大学);Southwest Jiaotong University(西南交通大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Yongyi Su, Yushu Li, Nanqing Liu, Kui Jia, Xulei Yang, Chuan-Sheng Foo, Xun Xu

AI总结:

本文研究测试时自适应(TTA)在现实假设下的对抗风险,提出无需良性样本的投毒攻击方法,并发现TTA方法比预期更鲁棒,同时分析防御策略以增强其鲁棒性。

摘要:

测试时自适应(TTA)在推理阶段使用测试数据更新模型权重以增强泛化能力。然而,这种做法使TTA面临对抗风险。现有研究表明,当TTA使用精心构造的对抗测试样本(也称为测试时投毒数据)进行更新时,良性样本的性能会恶化。然而,如果投毒数据是在过强假设下生成的,所感知的对抗风险可能被夸大。在这项工作中,我们首先回顾了测试时数据投毒的现实假设,包括白盒与灰盒攻击、对良性数据的访问、攻击顺序等。然后,我们提出了一种有效且现实的攻击方法,该方法能在不访问良性样本的情况下更好地生成投毒样本,并推导出一个有效的分布内攻击目标。我们还设计了两个TTA感知的攻击目标。我们对现有攻击方法的基准测试表明,TTA方法比先前认为的更加鲁棒。此外,我们分析了有效的防御策略,以帮助开发对抗鲁棒的TTA方法。源代码可在https://github.com/Gorilla-Lab-SCUT/RTTDP获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑