Rule-based adversarial sample generation for text classification

被引:0
|
作者
Nai Zhou
Nianmin Yao
Jian Zhao
Yanan Zhang
机构
[1] Dalian University of Technology,School of Computer Science
[2] Dalian University of Technology,School of Automotive Engineering
[3] Automotive Data of China Co. Ltd,undefined
[4] Ningbo Institute of Dalian University of Technology,undefined
来源
关键词
Adversarial examples; Text classification; Rule-based generator; Sentence matrix representation;
D O I
暂无
中图分类号
学科分类号
摘要
In Text Classification, modern neural networks have achieved great performance, but simultaneously, it is sensitive to adversarial examples. Existing studies usually use synonym replacement or token insertion strategies to generate adversarial examples. These strategies focus on obtaining semantically similar adversarial examples, but they ignore the richness of generating adversarial examples. To expand the richness of adversarial samples. Here, we propose a simple Rule-based Adversarial sample Generator (RAG) to generate adversarial samples by controlling the size of the perturbation added to the sentence matrix representation. Concretely, we introduce two methods to control the size of the added perturbation, i) Control the number of word replacements in sentences (RAG(R)); ii) Control the size of the offset value added to the sentence matrix representation (RAG(A)). Based on RAG, we will obtain numerous adversarial samples to make the model more robust to adversarial noise, and thereby improving the model’s generalization ability. Compared with the BERT and BiLSTM model baseline, experiments show that our method reduces the error rate by an average of 18% on four standard training datasets. Especially in low-training data scenarios, the overall average accuracy is increased by 12%. Extensive experimental results demonstrate that our method not only achieves excellent classification performance on the standard training datasets, but it still gets prominent performance on few-shot text classification.
引用
收藏
页码:10575 / 10586
页数:11
相关论文
共 50 条
  • [31] Effect of rule weights in fuzzy rule-based classification systems
    Ishibuchi, H
    Nakashima, T
    IEEE TRANSACTIONS ON FUZZY SYSTEMS, 2001, 9 (04) : 506 - 515
  • [32] Rule weight specification in fuzzy rule-based classification systems
    Ishibuchi, H
    Yamamoto, T
    IEEE TRANSACTIONS ON FUZZY SYSTEMS, 2005, 13 (04) : 428 - 435
  • [33] Bootstrapping polarity classifiers with rule-based classification
    Michael Wiegand
    Manfred Klenner
    Dietrich Klakow
    Language Resources and Evaluation, 2013, 47 : 1049 - 1088
  • [34] A comparison of classification strategies in rule-based classifiers
    Wojciechowski, Szymon
    LOGIC JOURNAL OF THE IGPL, 2018, 26 (01) : 29 - 46
  • [35] Clinical Text Classification with Rule-based Features and Knowledge-guided Convolutional Neural Networks
    Yao, Liang
    Mao, Chengsheng
    Luo, Yuan
    2018 IEEE INTERNATIONAL CONFERENCE ON HEALTHCARE INFORMATICS WORKSHOPS (ICHI-W), 2018, : 70 - 71
  • [36] Synergistic Text Annotation Based on Rule-Based Expressions and DistilBERT
    Sbei, Arafet
    ElBedoui, Khaoula
    Barhoumi, Walid
    INTELLIGENT INFORMATION AND DATABASE SYSTEMS, PT II, ACIIDS 2024, 2024, 14796 : 408 - 422
  • [37] A new association rule-based text classifier algorithm
    Buddeewong, S
    Kreesuradej, W
    ICTAI 2005: 17TH IEEE INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2005, : 684 - 685
  • [38] Rule-based Text Extraction for Multimodal Knowledge Graph
    Norabid, Idza Aisara
    Fauzi, Fariza
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2022, 13 (05) : 295 - 304
  • [39] Effectiveness of Rule-based Classifiers in Sinhala Text Categorization
    Lakmali, K. B. N.
    Haddela, Prasanna S.
    2017 NATIONAL INFORMATION TECHNOLOGY CONFERENCE (NITC), 2017, : 153 - 157
  • [40] TEXT COMPRESSION AS RULE-BASED PATTERN-RECOGNITION
    KHAN, HU
    AHMAD, J
    MAHMOOD, A
    FATMI, HA
    ELECTRONICS LETTERS, 1993, 29 (20) : 1752 - 1753