Adversarial examples for extreme multilabel text classification

被引:3
作者
Qaraei, Mohammadreza [1 ]
Babbar, Rohit [1 ]
机构
[1] Aalto Univ, CS Dept, Helsinki, Finland
关键词
Extreme classification; Adversarial attacks; Multilabel problems; Text classification; Data imbalance;
D O I
10.1007/s10994-022-06263-z
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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-to-negative, where the target positive label should fall out of top-k predicted labels, and (b) negative-to-positive, 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-to-negative attacks but more robust to negative-to-positive ones. Furthermore, our experiments show that the success rate of positive-to-negative 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.
引用
收藏
页码:4539 / 4563
页数:25
相关论文
共 41 条
[1]  
Agrawal R., 2013, P 22 INT C WORLD WID, P13, DOI DOI 10.1145/2488388.2488391
[2]  
Babbar R., 2014, SIGKDD EXPLOR, V16, P47, DOI [10.1145/2674026.2674033, DOI 10.1145/2674026.2674033]
[3]   Data scarcity, robustness and extreme multi-label classification [J].
Babbar, Rohit ;
Schoelkopf, Bernhard .
MACHINE LEARNING, 2019, 108 (8-9) :1329-1351
[4]   DiSMEC - Distributed Sparse Machines for Extreme Multi-label Classification [J].
Babbar, Rohit ;
Schoelkopf, Bernhard .
WSDM'17: PROCEEDINGS OF THE TENTH ACM INTERNATIONAL CONFERENCE ON WEB SEARCH AND DATA MINING, 2017, :721-729
[5]  
Bhatia K, 2016, The extreme classification repository: Multi-label datasets and code
[6]  
Bhatia Kush, 2015, Advances in Neural Information Processing Systems, V28
[7]  
Brama H., 2022, ARXIV
[8]  
Cer D., 2018, ARXIV
[9]   Class-Balanced Loss Based on Effective Number of Samples [J].
Cui, Yin ;
Jia, Menglin ;
Lin, Tsung-Yi ;
Song, Yang ;
Belongie, Serge .
2019 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2019), 2019, :9260-9269
[10]  
Devlin J., 2018, P C N AM CHAPT ASS C, P1