arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.07512cs.LGcs.AI
收藏

极端多标签文本分类的对抗性示例

Adversarial Examples for Extreme Multilabel Text Classification

Aalto University(阿尔托大学)

Mohammadreza Qaraei, Rohit Babbar

摘要:

极端多标签文本分类(XMTC)是一个文本分类问题,其中(i)输出空间非常大,(ii)每个数据点可能有多个正标签,(iii)数据遵循强烈不平衡的分布。随着在推荐系统和网络文档自动标注中的应用,XMTC的研究集中在提高预测精度和处理不平衡数据上。然而,基于深度学习的XMTC模型对对抗性示例的鲁棒性在很大程度上尚未得到充分研究。在本文中,我们研究XMTC模型在对抗攻击下的行为。为此,首先,我们定义了多标签文本分类问题中的对抗攻击。我们将攻击多标签文本分类器分类为(a)正目标,其中目标正标签应该落在前k个预测标签之外,以及(b)负目标,其中目标负标签应该在前k个预测标签中。然后,通过在APLC-XLNet和AttentionXML上的实验,我们证明了XMTC模型对正目标攻击非常脆弱,但对负目标攻击更鲁棒。此外,我们的实验表明,积极的目标对抗攻击的成功率具有不平衡的分布。更确切地说,尾部类非常容易受到对抗攻击的攻击,攻击者可以生成与实际数据点具有高度相似性的对抗样本。为了克服这个问题,我们探索了XMTC中重新平衡的损失函数的效果,它们不仅提高了尾类的准确性,而且还提高了这些类对对抗攻击的鲁棒性。我们的实验代码可以在https://github.com/xmc-aalto/adv-xmtc上找到

英文摘要:

Extreme Multilabel Text Classification (XMTC) is a text classification problem in which, (i) the output space is extremely large, (ii) each data point may have multiple positive labels, and (iii) the data follows a strongly imbalanced distribution. With applications in recommendation systems and automatic tagging of web-scale documents, the research on XMTC has been focused on improving prediction accuracy and dealing with imbalanced data. However, the robustness of deep learning based XMTC models against adversarial examples has been largely underexplored. In this paper, we investigate the behaviour of XMTC models under adversarial attacks. To this end, first, we define adversarial attacks in multilabel text classification problems. We categorize attacking multilabel text classifiers as (a) positive-targeted, where the target positive label should fall out of top-k predicted labels, and (b) negative-targeted, where the target negative label should be among the top-k predicted labels. Then, by experiments on APLC-XLNet and AttentionXML, we show that XMTC models are highly vulnerable to positive-targeted attacks but more robust to negative-targeted ones. Furthermore, our experiments show that the success rate of positive-targeted adversarial attacks has an imbalanced distribution. More precisely, tail classes are highly vulnerable to adversarial attacks for which an attacker can generate adversarial samples with high similarity to the actual data-points. To overcome this problem, we explore the effect of rebalanced loss functions in XMTC where not only do they increase accuracy on tail classes, but they also improve the robustness of these classes against adversarial attacks. The code for our experiments is available at https://github.com/xmc-aalto/adv-xmtc

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

↑