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

从记忆化视角看以数据为中心的NLP后门防御

Data-centric NLP Backdoor Defense from the Lens of Memorization

Rutgers University(罗格斯大学);NJIT(新泽西理工学院);UMASS(马萨诸塞大学)

Zhenting Wang, Zhizhi Wang, Mingyu Jin, Mengnan Du, Juan Zhai, Shiqing Ma

AI总结:

本文将语言模型记忆化扩展至句子元素级,发现后门攻击依赖重复元素,并提出基于数据中心的防御方法,通过检测可记忆元素并验证后门行为,显著提升防御性能。

摘要:

后门攻击是对基于DNN的语言模型可信度的严重威胁。本文首先将语言模型的记忆化定义从样本级扩展到更细粒度的句子元素级(如词、短语、结构和风格),然后指出语言模型后门是一种元素级记忆化。通过进一步分析,我们发现此类记忆化的强度与训练数据集中重复元素的频率呈正相关。结论是,重复的句子元素是成功实施后门攻击的必要条件。基于此,我们提出一种以数据为中心的防御方法。我们首先通过寻找可记忆元素(即重复元素)来检测训练数据中的触发器候选者,然后通过测试候选者是否能激活后门行为(即恶意元素)来确认真正的触发器。结果表明,我们的方法在防御不同类型的NLP后门方面优于现有最先进的防御方法。

英文摘要:

Backdoor attack is a severe threat to the trustworthiness of DNN-based language models. In this paper, we first extend the definition of memorization of language models from sample-wise to more fine-grained sentence element-wise (e.g., word, phrase, structure, and style), and then point out that language model backdoors are a type of element-wise memorization. Through further analysis, we find that the strength of such memorization is positively correlated to the frequency of duplicated elements in the training dataset. In conclusion, duplicated sentence elements are necessary for successful backdoor attacks. Based on this, we propose a data-centric defense. We first detect trigger candidates in training data by finding memorizable elements, i.e., duplicated elements, and then confirm real triggers by testing if the candidates can activate backdoor behaviors (i.e., malicious elements). Results show that our method outperforms state-of-the-art defenses in defending against different types of NLP backdoors.

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

↑