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 条
  • [1] Rule-based adversarial sample generation for text classification
    Zhou, Nai
    Yao, Nianmin
    Zhao, Jian
    Zhang, Yanan
    NEURAL COMPUTING & APPLICATIONS, 2022, 34 (13): : 10575 - 10586
  • [2] Rule-Based Text Classification of Dental Diagnosis
    Wang, Mei
    Agrawal, Anushka
    Rogers, Nicole
    John, Vanchit
    Thyvalikakath, Thankam
    MEDINFO 2023 - THE FUTURE IS ACCESSIBLE, 2024, 310 : 624 - 628
  • [3] A Methodological Framework for Dictionary and Rule-based Text Classification
    Abel, Jennifer
    Lantow, Birger
    KDIR: PROCEEDINGS OF THE 11TH INTERNATIONAL JOINT CONFERENCE ON KNOWLEDGE DISCOVERY, KNOWLEDGE ENGINEERING AND KNOWLEDGE MANAGEMENT - VOL 1: KDIR, 2019, : 330 - 337
  • [4] Counterfactual rule generation for fuzzy rule-based classification systems
    Zhang, Te
    Wagner, Christian
    Garibaldi, Jonathan. M.
    2022 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE), 2022,
  • [5] Integrating associative rule-based classification with Naive Bayes for text classification
    Hadi, Wa'el
    Al-Radaideh, Qasem A.
    Alhawari, Samer
    APPLIED SOFT COMPUTING, 2018, 69 : 344 - 356
  • [6] A Rule-Based Approach to Embedding Techniques for Text Document Classification
    Aubaid, Asmaa M.
    Mishra, Alok
    APPLIED SCIENCES-BASEL, 2020, 10 (11):
  • [7] Heuristic and rule-based knowledge acquisition: Classification of numeral strings in text
    Min, Kyongho
    MacDonell, Stephen
    Moon, Yoojin
    ADVANCES IN KNOWLEDGE ACQUISITION AND MANAGEMENT, 2006, 4303 : 40 - +
  • [8] Rule-based Similarity for Classification
    Janusz, Andrzej
    2009 IEEE/WIC/ACM INTERNATIONAL JOINT CONFERENCES ON WEB INTELLIGENCE (WI) AND INTELLIGENT AGENT TECHNOLOGIES (IAT), VOL 3, 2009, : 449 - 452
  • [9] TEXT COMPRESSION AS RULE-BASED PATTERN-RECOGNITION - TEXT COMPRESSION USING RULE-BASED ENCODER - COMMENT
    NGUYEN, K
    ELECTRONICS LETTERS, 1995, 31 (09) : 701 - 702
  • [10] Text Classification Using Word Embedding in Rule-Based Methodologies: A Systematic Mapping
    Aubaid, Asmaa M.
    Mishra, Alok
    TEM JOURNAL-TECHNOLOGY EDUCATION MANAGEMENT INFORMATICS, 2018, 7 (04): : 902 - 914