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

针对预训练特征提取器的无差别数据投毒攻击

Indiscriminate Data Poisoning Attacks on Pre-trained Feature Extractors

University of Waterloo(滑铁卢大学)

Yiwei Lu, Matthew Y. R. Yang, Gautam Kamath, Yaoliang Yu

AI总结:

本文研究针对预训练特征提取器下游任务的无差别数据投毒攻击,提出输入空间攻击和特征定向攻击两类方法,并通过实验证明迁移学习更易受攻击、特征定向攻击在有防御时更具威胁。

摘要:

机器学习模型在端到端训练的监督学习任务中取得了巨大成功,但这种训练需要大量标注数据,而标注数据并非总是可得。近年来,许多从业者转向自监督学习方法,利用廉价的未标注数据通过预训练学习通用特征提取器,之后只需用有限的标注数据训练一个额外的线性层,即可将其应用于个性化的下游任务。然而,这一过程也可能引发对数据投毒攻击的担忧。例如,无差别数据投毒攻击通过向训练集中注入少量投毒数据来降低模型效用,对机器学习模型构成安全风险,但目前仅在端到端监督学习场景下被研究过。本文扩展了对应用预训练特征提取器的下游任务所面临的无差别攻击威胁的探索。具体而言,我们提出两类攻击:(1)输入空间攻击,我们修改现有攻击方法,直接在输入空间中构造投毒数据。然而,由于约束条件下优化的困难,我们进一步提出(2)特征定向攻击,通过三个阶段缓解该挑战:首先获取线性头的目标参数;其次将学习到的特征表示视为数据集,寻找投毒特征;第三将投毒特征反演回输入空间。我们的实验在两类流行的下游任务中检验了这些攻击,即在同一数据集上的微调和考虑领域自适应的迁移学习。实验结果表明,迁移学习更容易受到我们攻击的影响。此外,如果没有采取任何防御措施,输入空间攻击是一种强威胁,但在有防御时则弱于特征定向攻击。

英文摘要:

Machine learning models have achieved great success in supervised learning tasks for end-to-end training, which requires a large amount of labeled data that is not always feasible. Recently, many practitioners have shifted to self-supervised learning methods that utilize cheap unlabeled data to learn a general feature extractor via pre-training, which can be further applied to personalized downstream tasks by simply training an additional linear layer with limited labeled data. However, such a process may also raise concerns regarding data poisoning attacks. For instance, indiscriminate data poisoning attacks, which aim to decrease model utility by injecting a small number of poisoned data into the training set, pose a security risk to machine learning models, but have only been studied for end-to-end supervised learning. In this paper, we extend the exploration of the threat of indiscriminate attacks on downstream tasks that apply pre-trained feature extractors. Specifically, we propose two types of attacks: (1) the input space attacks, where we modify existing attacks to directly craft poisoned data in the input space. However, due to the difficulty of optimization under constraints, we further propose (2) the feature targeted attacks, where we mitigate the challenge with three stages, firstly acquiring target parameters for the linear head; secondly finding poisoned features by treating the learned feature representations as a dataset; and thirdly inverting the poisoned features back to the input space. Our experiments examine such attacks in popular downstream tasks of fine-tuning on the same dataset and transfer learning that considers domain adaptation. Empirical results reveal that transfer learning is more vulnerable to our attacks. Additionally, input space attacks are a strong threat if no countermeasures are posed, but are otherwise weaker than feature targeted attacks.

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

↑