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

面向鲁棒对抗防御的防御性双重掩码

Defensive Dual Masking for Robust Adversarial Defense

School of Computing and Information Technology, University of Wollongong(伍伦贡大学计算与信息技术学院);School of Computer, Data and Mathematical Sciences, Western Sydney University(西悉尼大学计算机、数据与数学学院);NVIDIA(英伟达公司)

Wangli Yang, Jie Yang, Yi Guo, Johan Barthelemy

AI总结:

本文提出防御性双重掩码(DDM)算法,通过训练时插入[MASK]与推理时动态掩码潜在对抗标记,提升NLP模型及LLM的对抗鲁棒性。

摘要:

近年来,由于自然语言处理(NLP)模型越来越容易受到对抗攻击,而这类攻击利用输入文本中的细微扰动来欺骗模型,文本对抗防御领域受到了广泛关注。本文提出了防御性双重掩码(Defensive Dual Masking,DDM)算法,这是一种旨在增强模型对此类攻击鲁棒性的新颖方法。DDM采用独特的对抗训练策略,在训练样本中有策略地插入[MASK]标记,使模型做好更有效处理对抗扰动的准备。在推理阶段,潜在的对抗性标记会被动态替换为[MASK]标记,以中和潜在威胁,同时保留输入的核心语义。本文探讨了该方法的理论基础,展示了选择性掩码机制如何增强模型识别并缓解对抗操纵的能力。我们在多种基准数据集和攻击机制上的实证评估一致表明,DDM优于最先进的防御技术,提升了模型准确率和鲁棒性。此外,当应用于大型语言模型(LLM)时,DDM也增强了其抵御对抗攻击的韧性,为大规模NLP应用提供了一种可扩展的防御机制。

英文摘要:

The field of textual adversarial defenses has gained considerable attention in recent years due to the increasing vulnerability of natural language processing (NLP) models to adversarial attacks, which exploit subtle perturbations in input text to deceive models. This paper introduces the Defensive Dual Masking (DDM) algorithm, a novel approach designed to enhance model robustness against such attacks. DDM utilizes a unique adversarial training strategy where [MASK] tokens are strategically inserted into training samples to prepare the model to handle adversarial perturbations more effectively. During inference, potentially adversarial tokens are dynamically replaced with [MASK] tokens to neutralize potential threats while preserving the core semantics of the input. The theoretical foundation of our approach is explored, demonstrating how the selective masking mechanism strengthens the model's ability to identify and mitigate adversarial manipulations. Our empirical evaluation across a diverse set of benchmark datasets and attack mechanisms consistently shows that DDM outperforms state-of-the-art defense techniques, improving model accuracy and robustness. Moreover, when applied to Large Language Models (LLMs), DDM also enhances their resilience to adversarial attacks, providing a scalable defense mechanism for large-scale NLP applications.

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

↑