arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2209.01882cs.CLcs.AIcs.CR
收藏

PromptAttack:基于梯度搜索的语言模型攻击

PromptAttack: Prompt-based Attack for Language Models via Gradient Search

Nanjing University of Aeronautics and Astronautics(南京航空航天大学)

Yundi Shi, Piji Li, Changchun Yin, Zhaoyang Han, Lu Zhou, Zhe Liu

摘要:

随着预训练的语言模型(PLM)不断增长,微调PLM的硬件和数据需求也在不断增长。因此,研究人员提出了一种更轻松的方法,称为\textit{Prompt Learning}。然而,在调查过程中,我们观察到提示学习方法是脆弱的,很容易被一些非法构造的提示攻击,导致分类错误,并为PLM带来严重的安全问题。目前的研究大多忽略了基于密码的方法的安全性问题。因此,在本文中,我们提出了一种恶意提示模板构造方法(\textbf{PromptAttack}),以探测PLM的安全性能。研究了几种不友好的模板构造方法,以引导模型对任务进行错误分类。在三个数据集和三个PLM上的实验证明了我们提出的方法的有效性。我们还进行了实验,以验证我们的方法是适用于Few-Shot的场景。

英文摘要:

As the pre-trained language models (PLMs) continue to grow, so do the hardware and data requirements for fine-tuning PLMs. Therefore, the researchers have come up with a lighter method called \textit{Prompt Learning}. However, during the investigations, we observe that the prompt learning methods are vulnerable and can easily be attacked by some illegally constructed prompts, resulting in classification errors, and serious security problems for PLMs. Most of the current research ignores the security issue of prompt-based methods. Therefore, in this paper, we propose a malicious prompt template construction method (\textbf{PromptAttack}) to probe the security performance of PLMs. Several unfriendly template construction approaches are investigated to guide the model to misclassify the task. Extensive experiments on three datasets and three PLMs prove the effectiveness of our proposed approach PromptAttack. We also conduct experiments to verify that our method is applicable in few-shot scenarios.

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

↑