Clean-label (CL) attack is a form of data poisoning attack where an adversary modifies only the textual input of the training data, without requiring access to the labeling function. CL attacks are relatively unexplored in NLP, as compared to label flipping (LF) attacks, where the latter additionally requires access to the labeling function as well. While CL attacks are more resilient to data sanitization and manual relabeling methods than LF attacks, they often demand as high as ten times the poisoning budget than LF attacks. In this work, we first introduce an Adversarial Clean Label attack which can adversarially perturb in-class training examples for poisoning the training set. We then show that an adversary can significantly bring down the data requirements for a CL attack, using the aforementioned approach, to as low as 20% of the data otherwise required. We then systematically benchmark and analyze a number of defense methods, for both LF and CL attacks, some previously employed solely for LF attacks in the textual domain and others adapted from computer vision. We find that text-specific defenses greatly vary in their effectiveness depending on their properties.
Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks
Peking University(北京大学)
自然语言处理(Natural Language Processing,NLP)模型易受后门攻击的攻击,这是NLP模型面临的一个新的威胁。现有的NLP模型在线后门防御方法只关注输入或输出层面的异常,仍然存在易受自适应攻击和计算代价高的问题。在这项工作中,我们采取的第一步,在中间特征水平上研究文本中毒样本的去隐藏,并提出了一种基于特征的有效的在线防御方法。通过对现有攻击方法的大量实验,我们发现中毒样本在中毒NLP模型的中间特征空间中远离干净样本。出于这一观察,我们设计了一个基于距离的异常分数(DAN)区分中毒的样本从干净的样本在功能级别。在情感分析和攻击检测任务上的实验证明了DAN的优越性,因为它在防御性能方面大大超过现有的在线防御方法,并且具有较低的推理成本。此外,我们还证明了DAN也能抵抗基于特征级正则化的自适应攻击。我们的代码可在https://github.com/lancopku/DAN上获得。
ONION: A Simple and Effective Defense Against Textual Backdoor Attacks
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Huazhong University of Science and Technology(华中科技大学);Beihang University(北京航空航天大学)
Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models
Graduate School of Artificial Intelligence, POSTECH, Republic of Korea(POSTECH人工智能研究生院,韩国);Department of Computer Science and Engineering, POSTECH, Republic of Korea(POSTECH计算机科学与工程系,韩国)
Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations
University of Southern California(南加州大学);Harvard University(哈佛大学);University of California, Davis(加州大学戴维斯分校);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)