SSCAE——语义、句法和上下文感知的自然语言对抗样本生成器
SSCAE -- Semantic, Syntactic, and Context-aware natural language Adversarial Examples generator
AI总结:
本文提出SSCAE,一种黑盒对抗样本生成器,利用掩码语言模型和双语言模型评估,结合动态阈值与局部贪心搜索,在保持语义和句法一致性的同时高效生成高质量对抗样本,实验验证其优越性。
摘要:
机器学习模型容易受到恶意构造的对抗样本(AEs)的攻击。使用对抗样本训练机器学习模型可以提高其对抗攻击的鲁棒性和稳定性。开发能够生成高质量对抗样本的模型至关重要。在自然语言处理(NLP)领域,此类模型的开发速度远慢于计算机视觉等领域。本文介绍了一种实用且高效的对抗攻击模型,称为SSCAE,用于生成语义、句法和上下文感知的自然语言对抗样本生成器。SSCAE识别重要单词,并使用掩码语言模型生成一组早期的替换候选。接下来,利用两个著名的语言模型根据语义和句法特征评估初始候选集。我们引入了(1)动态阈值以捕获更有效的扰动,以及(2)局部贪心搜索以生成高质量的对抗样本。作为一种黑盒方法,SSCAE生成人类难以察觉且上下文感知的对抗样本,这些样本保持了语义一致性以及源语言的句法和语法要求。通过十五个对比实验和广泛的参数优化敏感性分析,展示了所提出的SSCAE模型的有效性和优越性。SSCAE在所有实验中均优于现有模型,同时以更低的查询次数和相当的扰动率保持了更高的语义一致性。
英文摘要:
Machine learning models are vulnerable to maliciously crafted Adversarial Examples (AEs). Training a machine learning model with AEs improves its robustness and stability against adversarial attacks. It is essential to develop models that produce high-quality AEs. Developing such models has been much slower in natural language processing (NLP) than in areas such as computer vision. This paper introduces a practical and efficient adversarial attack model called SSCAE for \textbf{S}emantic, \textbf{S}yntactic, and \textbf{C}ontext-aware natural language \textbf{AE}s generator. SSCAE identifies important words and uses a masked language model to generate an early set of substitutions. Next, two well-known language models are employed to evaluate the initial set in terms of semantic and syntactic characteristics. We introduce (1) a dynamic threshold to capture more efficient perturbations and (2) a local greedy search to generate high-quality AEs. As a black-box method, SSCAE generates humanly imperceptible and context-aware AEs that preserve semantic consistency and the source language's syntactical and grammatical requirements. The effectiveness and superiority of the proposed SSCAE model are illustrated with fifteen comparative experiments and extensive sensitivity analysis for parameter optimization. SSCAE outperforms the existing models in all experiments while maintaining a higher semantic consistency with a lower query number and a comparable perturbation rate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。