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

TaeBench:提升毒性对抗样本的质量

TaeBench: Improving Quality of Toxic Adversarial Examples

AWS Bedrock Science(AWS Bedrock科学)

Xuan Zhu, Dmitriy Bespalov, Liwen You, Ninad Kulkarni, Yanjun Qi

AI总结:

本文提出一种标注流水线用于生成高质量毒性对抗样本(TAE),并据此构建了TaeBench数据集,实验证明其能有效攻击SOTA毒性审核模型并通过对抗训练显著提升检测器鲁棒性。

摘要:

毒性文本检测器容易受到对抗样本的攻击——对输入文本进行微小扰动即可欺骗系统做出错误检测。现有的攻击算法耗时且常产生无效或歧义的对抗样本,降低了其在评估或改进现实世界毒性内容审核系统时的实用性。本文提出了一种用于控制生成的毒性对抗样本(TAE)质量的标注流水线。我们设计了基于模型的自动标注和基于人工的质量验证,以评估TAE的质量要求。成功的TAE应欺骗目标毒性模型做出良性预测,具备语法合理性,看起来像人类生成的文本一样自然,并表现出语义毒性。在将这些要求应用于20多种最先进的(SOTA)TAE攻击配方时,我们从总计94万的原始TAE攻击生成中发现了许多无效样本。随后,我们利用提出的流水线过滤并整理了一个高质量的TAE数据集,称为TaeBench(规模为26.4万)。实验表明,TaeBench能有效迁移攻击SOTA毒性内容审核模型和服务。实验还显示,结合对抗训练的TaeBench使两个毒性检测器的鲁棒性获得了显著提升。

英文摘要:

Toxicity text detectors can be vulnerable to adversarial examples - small perturbations to input text that fool the systems into wrong detection. Existing attack algorithms are time-consuming and often produce invalid or ambiguous adversarial examples, making them less useful for evaluating or improving real-world toxicity content moderators. This paper proposes an annotation pipeline for quality control of generated toxic adversarial examples (TAE). We design model-based automated annotation and human-based quality verification to assess the quality requirements of TAE. Successful TAE should fool a target toxicity model into making benign predictions, be grammatically reasonable, appear natural like human-generated text, and exhibit semantic toxicity. When applying these requirements to more than 20 state-of-the-art (SOTA) TAE attack recipes, we find many invalid samples from a total of 940k raw TAE attack generations. We then utilize the proposed pipeline to filter and curate a high-quality TAE dataset we call TaeBench (of size 264k). Empirically, we demonstrate that TaeBench can effectively transfer-attack SOTA toxicity content moderation models and services. Our experiments also show that TaeBench with adversarial training achieve significant improvements of the robustness of two toxicity detectors.

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

↑