Iron Sharpens Iron: 基于对抗训练防御机器生成文本检测中的攻击
Iron Sharpens Iron: Defending Against Attacks in Machine-Generated Text Detection with Adversarial Training
AI总结:
本文提出对抗训练框架GREATER,通过同步更新对手GREATER-A与检测器GREATER-D,增强机器生成文本检测器对扰动和对抗攻击的鲁棒性,显著降低攻击成功率。
摘要:
机器生成文本(MGT)检测对于规范和归属在线文本至关重要。尽管现有的MGT检测器取得了强大的性能,但它们仍然容易受到简单扰动和对抗攻击的影响。为了构建针对恶意扰动的有效防御,我们从威胁建模的角度看待MGT检测,即从对手的角度分析模型的漏洞并探索有效的缓解措施。为此,我们引入了一个对抗框架来训练一个鲁棒的MGT检测器,名为GREedy Adversary PromoTed DefendER(GREATER)。GREATER由两个关键组件组成:对手GREATER-A和检测器GREATER-D。GREATER-D学习防御来自GREATER-A的对抗攻击,并将防御泛化到其他攻击。GREATER-A在嵌入空间中识别并扰动关键标记,结合贪婪搜索和剪枝来生成隐蔽且具有破坏性的对抗样本。此外,我们同步更新GREATER-A和GREATER-D,鼓励GREATER-D将其防御泛化到不同的攻击和变化的攻击强度。我们在10种文本扰动策略和6种对抗攻击上的实验结果表明,与SOTA防御方法相比,我们的GREATER-D将攻击成功率(ASR)降低了0.67%,同时我们的GREATER-A被证明比SOTA攻击方法更有效、更高效。代码和数据集可在https://github.com/Liyuuuu111/GREATER获取。
英文摘要:
Machine-generated Text (MGT) detection is crucial for regulating and attributing online texts. While the existing MGT detectors achieve strong performance, they remain vulnerable to simple perturbations and adversarial attacks. To build an effective defense against malicious perturbations, we view MGT detection from a threat modeling perspective, that is, analyzing the model's vulnerability from an adversary's point of view and exploring effective mitigations. To this end, we introduce an adversarial framework for training a robust MGT detector, named GREedy Adversary PromoTed DefendER (GREATER). The GREATER consists of two key components: an adversary GREATER-A and a detector GREATER-D. The GREATER-D learns to defend against the adversarial attack from GREATER-A and generalizes the defense to other attacks. GREATER-A identifies and perturbs the critical tokens in embedding space, along with greedy search and pruning to generate stealthy and disruptive adversarial examples. Besides, we update the GREATER-A and GREATER-D synchronously, encouraging the GREATER-D to generalize its defense to different attacks and varying attack intensities. Our experimental results across 10 text perturbation strategies and 6 adversarial attacks show that our GREATER-D reduces the Attack Success Rate (ASR) by 0.67% compared with SOTA defense methods while our GREATER-A is demonstrated to be more effective and efficient than SOTA attack approaches. Codes and dataset are available in https://github.com/Liyuuuu111/GREATER.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。