arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.06655cs.CRcs.AIcs.CLcs.LG
收藏

对抗文本净化:一种基于大语言模型的防御方法

Adversarial Text Purification: A Large Language Model Approach for Defense

Arizona State University(亚利桑那州立大学)

Raha Moraffah, Shubh Khandelwal, Amrita Bhattacharjee, Huan Liu

AI总结:

本文提出一种利用大语言模型和提示工程净化对抗文本的防御方法,无需显式表征离散噪声,在多种分类器上平均将受攻击准确率提升超65%。

摘要:

对抗净化是一种保护分类器免受对抗攻击的防御机制,无需了解攻击类型或重新训练分类器。这些技术对受攻击输入中的对抗扰动进行表征和消除,旨在恢复与初始受攻击样本保持相似性且能被分类器正确分类的净化样本。由于对离散输入进行噪声表征存在固有挑战,对抗文本净化相对较少被探索。本文研究了对抗净化方法在防御文本分类器方面的有效性。我们提出了一种新颖的对抗文本净化方法,利用大语言模型(LLMs)的生成能力来净化对抗文本,无需显式表征离散噪声扰动。我们利用提示工程驱动 LLMs 为给定的对抗样本恢复净化样本,使其在语义上相似且能被正确分类。我们提出的方法在多种分类器上表现出卓越性能,平均将受攻击条件下的准确率提升了 65% 以上。

英文摘要:

Adversarial purification is a defense mechanism for safeguarding classifiers against adversarial attacks without knowing the type of attacks or training of the classifier. These techniques characterize and eliminate adversarial perturbations from the attacked inputs, aiming to restore purified samples that retain similarity to the initially attacked ones and are correctly classified by the classifier. Due to the inherent challenges associated with characterizing noise perturbations for discrete inputs, adversarial text purification has been relatively unexplored. In this paper, we investigate the effectiveness of adversarial purification methods in defending text classifiers. We propose a novel adversarial text purification that harnesses the generative capabilities of Large Language Models (LLMs) to purify adversarial text without the need to explicitly characterize the discrete noise perturbations. We utilize prompt engineering to exploit LLMs for recovering the purified examples for given adversarial examples such that they are semantically similar and correctly classified. Our proposed method demonstrates remarkable performance over various classifiers, improving their accuracy under the attack by over 65% on average.

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

↑