arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.04458cs.CL
收藏

文本分类中分布外样本和敌对样本的理解、检测和分离

Understanding, Detecting, and Separating Out-of-Distribution Samples and Adversarial Samples in Text Classification

National Taiwan University(国立台湾大学)

Cheng-Han Chiang, Hung-yi Lee

摘要:

在本文中,我们研究了统计分布外(OOD)样本和对抗性(Adv)样本之间的差异和共性,这两种样本都会损害文本分类模型的性能。我们进行分析,比较两种类型的异常(OOD和Adv样本)与分布(ID)的三个方面:输入功能,隐藏表示在模型的每一层,和输出的概率分布的分类。我们发现OOD样本从第一层开始就暴露出异常,而Adv样本的异常直到模型的更深层才出现。我们还说明了Adv样本的模型输出概率往往更不自信。根据我们的观察,我们提出了一种简单的方法,使用模型的隐藏表示和输出概率来分离ID,OOD和Adv样本。在ID,OOD数据集和Adv攻击的多种组合上,我们提出的方法在区分ID,OOD和Adv样本上显示出出色的结果。

英文摘要:

In this paper, we study the differences and commonalities between statistically out-of-distribution (OOD) samples and adversarial (Adv) samples, both of which hurting a text classification model's performance. We conduct analyses to compare the two types of anomalies (OOD and Adv samples) with the in-distribution (ID) ones from three aspects: the input features, the hidden representations in each layer of the model, and the output probability distributions of the classifier. We find that OOD samples expose their aberration starting from the first layer, while the abnormalities of Adv samples do not emerge until the deeper layers of the model. We also illustrate that the models' output probabilities for Adv samples tend to be more unconfident. Based on our observations, we propose a simple method to separate ID, OOD, and Adv samples using the hidden representations and output probabilities of the model. On multiple combinations of ID, OOD datasets, and Adv attacks, our proposed method shows exceptional results on distinguishing ID, OOD, and Adv samples.

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

↑