Alert-ME:一种面向Transformer文本分类中对抗样本的可解释性驱动的防御方法
Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classification
AI总结:
针对Transformer文本分类器的对抗攻击,提出可解释性驱动的EDIT框架,集成注意力图与集成梯度检测扰动,并通过最优转换净化输入,在多个数据集上显著提升防御性能与效率。
摘要:
基于Transformer的文本分类器,如BERT、RoBERTa、T5和GPT,在自然语言处理任务中表现出强大的性能,但仍然容易受到对抗样本的攻击。这些漏洞引发了重大的安全担忧,因为微小的输入扰动可能导致严重的错误分类。现有的鲁棒性方法通常需要大量计算或缺乏可解释性。本文提出了一个名为“可解释性驱动的检测、识别与转换(EDIT)”的统一框架,以加强推理时的防御。EDIT整合了可解释性工具,包括注意力图和集成梯度,以及基于频率的特征,以自动检测和识别对抗性扰动,同时提供对模型行为的洞察。在检测之后,EDIT利用预训练嵌入和模型反馈,通过一个最优转换过程来精炼对抗性输入,以替换被破坏的标记。为了增强安全保障,EDIT引入了自动警报机制,在必要时涉及人类分析师。\n 除了静态防御,EDIT还通过强制内部特征相似性和转换输入来提供自适应弹性,从而破坏攻击者的优化过程并限制自适应对抗攻击的有效性。在IMDB、YELP、AGNEWS和SST2数据集上使用BERT和RoBERTa针对七种词替换攻击的实验表明,EDIT实现了平均F分数89.69%和平衡准确率89.70%。与四种最先进的防御方法相比,EDIT将平衡准确率提高了1.22倍,F1分数提高了1.33倍,同时特征提取速度快了83倍。该框架为文本分类模型中的标准、零日攻击和自适应对抗威胁提供了鲁棒、可解释且高效的防护。
英文摘要:
Transformer-based text classifiers such as BERT, RoBERTa, T5, and GPT have shown strong performance in natural language processing tasks but remain vulnerable to adversarial examples. These vulnerabilities raise significant security concerns, as small input perturbations can cause severe misclassifications. Existing robustness methods often require heavy computation or lack interpretability. This paper presents a unified framework called Explainability-driven Detection, Identification, and Transformation (EDIT) to strengthen inference-time defenses. EDIT integrates explainability tools, including attention maps and integrated gradients, with frequency-based features to automatically detect and identify adversarial perturbations while offering insight into model behavior. After detection, EDIT refines adversarial inputs using an optimal transformation process that leverages pre-trained embeddings and model feedback to replace corrupted tokens. To enhance security assurance, EDIT incorporates automated alerting mechanisms that involve human analysts when necessary. Beyond static defenses, EDIT also provides adaptive resilience by enforcing internal feature similarity and transforming inputs, thereby disrupting the attackers optimization process and limiting the effectiveness of adaptive adversarial attacks. Experiments using BERT and RoBERTa on IMDB, YELP, AGNEWS, and SST2 datasets against seven word substitution attacks demonstrate that EDIT achieves an average Fscore of 89.69 percent and balanced accuracy of 89.70 percent. Compared to four state-of-the-art defenses, EDIT improves balanced accuracy by 1.22 times and F1-score by 1.33 times while being 83 times faster in feature extraction. The framework provides robust, interpretable, and efficient protection against both standard, zero-day, and adaptive adversarial threats in text classification models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。