Lune

ACL Findings2021

Improving Gradient-based Adversarial Training for Text Classification by Contrastive Learning and Auto-Encoder

Yao Qiu, Jinchao Zhang, Jie Zhou

Abstract

Recent work has proposed several efficient approaches for generating gradient-based adversarial perturbations on embeddings and proved that the model's performance and robustness can be improved when they are trained with these contaminated embeddings. While they paid little attention to how to help the model to learn these adversarial samples more efficiently. In this work, we focus on enhancing the model's ability to defend gradient-based adversarial attack during the model's training process and propose two novel adversarial training approaches: (1) CARL narrows the original sample and its adversarial sample in the representation space while enlarging their distance from different labeled samples.

(2) RAR forces the model to reconstruct the original sample from its adversarial representation. Experiments show that the proposed two approaches outperform strong baselines on various text classification datasets. Analysis experiments find that when using our approaches, the semantic representation of the input sentence won't be significantly affected by adversarial perturbations, and the model's performance drops less under adversarial attack. That is to say, our approaches can effectively improve the robustness of the model. Besides, RAR can also be used to generate text-form adversarial samples.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 3 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers3

  1. JointCL: A Joint Contrastive Learning Framework for Zero-Shot Stance DetectionBin Liang, Qinglin Zhu, Xiang Li, Min Yang et al.ACL 2022 · 117 citations
  2. Zero-Shot Stance Detection via Contrastive LearningBin Liang, Zixiao Chen, Lin Gui, Yulan He et al.WWW 2022 · 89 citations
  3. HateProof: Are Hateful Meme Detection Systems really Robust?Piush Aggarwal, Pranit Chawla, Mithun Das, Punyajoy Saha et al.WWW 2023 · 15 citations

Builds on1

  1. FreeLB: Enhanced Adversarial Training for Natural Language UnderstandingChen Zhu, Yu Cheng, Zhe Gan, Siqi Sun et al.ICLR 2020 · 502 citations

Related papers

  1. Adversarial Training with Fast Gradient Projection Method against Synonym Substitution Based Text AttacksXiaosen Wang, Yichen Yang, Yihe Deng, Kun HeAAAI 2021 · 98 citations
  2. Impact of Adversarial Training on Robustness and Generalizability of Language ModelsEnes Altinisik, Hassan Sajjad, Husrev T. Sencar, Safa Messaoud et al.ACL Findings 2023 · 10 citations
  3. End-to-end Adversarial Sample Generation for Data AugmentationTianyuan Liu, Yuqing SunEMNLP Findings 2023 · 3 citations
  4. Towards Adversarially Robust Text Classifiers by Learning to Reweight Clean ExamplesJianhan Xu, Cenyuan Zhang, Xiaoqing Zheng, Linyang Li et al.ACL Findings 2022 · 4 citations
  5. KATG: Keyword-Bias-Aware Adversarial Text Generation for Text ClassificationLingfeng Shen, Shoushan Li, Ying ChenAAAI 2022 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines