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

用于对抗性检测的特定输入注意力子网络

Input-specific Attention Subnetworks for Adversarial Detection

Indian Institute of Technology Madras(印度理工学院马德拉斯分校)

Emil Biju, Anirudh Sriram, Pratyush Kumar, Mitesh M Khapra

摘要:

自注意头是Transformer模型的特征,并且已经针对可解释性和修剪进行了很好的研究。在这项工作中,我们展示了一个完全不同的注意力头的效用,即对抗检测。具体来说,我们提出了一种方法来构建特定于输入的注意力子网络(IAS),我们从中提取三个特征来区分真实和敌对的输入。由此产生的检测器显着提高(超过7.5%)的最先进的对抗检测精度的BERT编码器上的10个NLU数据集与11个不同的对抗攻击类型。我们还证明了我们的方法(a)对于可能具有更多虚假相关性的较大模型更准确,因此容易受到对抗攻击,并且(b)即使使用适度的对抗示例训练集也表现良好。

英文摘要:

Self-attention heads are characteristic of Transformer models and have been well studied for interpretability and pruning. In this work, we demonstrate an altogether different utility of attention heads, namely for adversarial detection. Specifically, we propose a method to construct input-specific attention subnetworks (IAS) from which we extract three features to discriminate between authentic and adversarial inputs. The resultant detector significantly improves (by over 7.5%) the state-of-the-art adversarial detection accuracy for the BERT encoder on 10 NLU datasets with 11 different adversarial attack types. We also demonstrate that our method (a) is more accurate for larger models which are likely to have more spurious correlations and thus vulnerable to adversarial attack, and (b) performs well even with modest training sets of adversarial examples.

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

↑