arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08598cs.CL
收藏

$DA^3$:针对语言模型的分布感知对抗攻击

$DA^3$: A Distribution-Aware Adversarial Attack against Language Models

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Texas A&M University(德克萨斯农工大学)

Yibo Wang, Xiangjue Dong, James Caverlee, Philip S. Yu

AI总结:

针对现有对抗样本因数据分布偏移易被检测的问题,提出分布感知对抗攻击方法$DA^3$及新评估指标NASR,在四个数据集上验证了对多种模型的有效性与可迁移性。

摘要:

语言模型可以通过对抗攻击被操纵,这些攻击会对输入数据引入微小的扰动。尽管近期的攻击方法能够实现相对较高的攻击成功率(ASR),但我们观察到,生成的对抗样本与原始样本具有不同的数据分布。具体而言,这些对抗样本表现出置信度降低,并且与训练数据分布的偏离更大。因此,它们很容易通过简单的检测方法被检测出来,从而降低了此类攻击的有效性。为了解决这个问题,我们提出了一种分布感知对抗攻击($DA^3$)方法。$DA^3$ 考虑了对抗样本的分布偏移,以提高在检测方法下攻击的有效性。我们进一步设计了一种新颖的评估指标,即不可检测攻击成功率(NASR),该指标将 ASR 和可检测性结合用于攻击任务。我们在四个广泛使用的数据集上进行了实验,以验证 $DA^3$ 生成的对抗样本在白盒 BERT-base 和 RoBERTa-base 模型以及黑盒 LLaMA2-7b 模型上的攻击有效性和可迁移性。

英文摘要:

Language models can be manipulated by adversarial attacks, which introduce subtle perturbations to input data. While recent attack methods can achieve a relatively high attack success rate (ASR), we've observed that the generated adversarial examples have a different data distribution compared with the original examples. Specifically, these adversarial examples exhibit reduced confidence levels and greater divergence from the training data distribution. Consequently, they are easy to detect using straightforward detection methods, diminishing the efficacy of such attacks. To address this issue, we propose a Distribution-Aware Adversarial Attack ($DA^3$) method. $DA^3$ considers the distribution shifts of adversarial examples to improve attacks' effectiveness under detection methods. We further design a novel evaluation metric, the Non-detectable Attack Success Rate (NASR), which integrates both ASR and detectability for the attack task. We conduct experiments on four widely used datasets to validate the attack effectiveness and transferability of adversarial examples generated by $DA^3$ against both the white-box BERT-base and RoBERTa-base models and the black-box LLaMA2-7b model.

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

↑