arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.08505cs.CR
收藏

针对测试时适应模型的测试时投毒攻击

Test-Time Poisoning Attacks Against Test-Time Adaptation Models

Tianshuo Cong, Xinlei He, Yun Shen, Yang Zhang

AI总结:

本文研究TTA模型在测试阶段的安全风险,提出基于代理模型生成投毒样本的攻击方法,并在TTT、DUA、TENT和RPL上验证其可显著降低模型性能。

摘要:

在真实环境中部署机器学习(ML)模型颇具挑战,因为模型会受到分布偏移的影响:在原始域上训练的模型无法很好地泛化到不可预见的多样化迁移域。为应对这一挑战,已有若干测试时适应(TTA)方法被提出,用以提升目标预训练模型在测试数据下的泛化能力,从而适应已偏移的分布。TTA的成功可归因于在测试期间根据测试样本提供的分布提示,对目标模型进行持续微调。尽管这种能力强大,但它也开启了一个新的攻击面,即测试时投毒攻击;这与以往发生在ML模型训练期间的投毒攻击有本质不同,因为在测试时攻击中,对手无法干预训练过程。本文首次针对四种主流TTA方法实施测试时投毒攻击,包括TTT、DUA、TENT和RPL。具体而言,我们基于代理模型生成投毒样本,并将其输入目标TTA模型。实验结果表明,TTA方法普遍容易受到测试时投毒攻击。例如,对手只需输入少至10个投毒样本,即可使目标模型的性能从76.20%下降到41.83%。我们的结果证明,缺乏严格安全评估的TTA算法不适合部署到现实场景中。因此,我们倡导在TTA方法的设计中集成针对测试时投毒攻击的防御机制。

英文摘要:

Deploying machine learning (ML) models in the wild is challenging as it suffers from distribution shifts, where the model trained on an original domain cannot generalize well to unforeseen diverse transfer domains. To address this challenge, several test-time adaptation (TTA) methods have been proposed to improve the generalization ability of the target pre-trained models under test data to cope with the shifted distribution. The success of TTA can be credited to the continuous fine-tuning of the target model according to the distributional hint from the test samples during test time. Despite being powerful, it also opens a new attack surface, i.e., test-time poisoning attacks, which are substantially different from previous poisoning attacks that occur during the training time of ML models (i.e., adversaries cannot intervene in the training process). In this paper, we perform the first test-time poisoning attack against four mainstream TTA methods, including TTT, DUA, TENT, and RPL. Concretely, we generate poisoned samples based on the surrogate models and feed them to the target TTA models. Experimental results show that the TTA methods are generally vulnerable to test-time poisoning attacks. For instance, the adversary can feed as few as 10 poisoned samples to degrade the performance of the target model from 76.20% to 41.83%. Our results demonstrate that TTA algorithms lacking a rigorous security assessment are unsuitable for deployment in real-life scenarios. As such, we advocate for the integration of defenses against test-time poisoning attacks into the design of TTA methods.

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

↑