Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Better Robustness by More Coverage: Adversarial Training with Mixup Augmentation for Robust Fine-tuning (2012.15699v3)

Published 31 Dec 2020 in cs.CL

Abstract: Pretrained LLMs (PLMs) perform poorly under adversarial attacks. To improve the adversarial robustness, adversarial data augmentation (ADA) has been widely adopted to cover more search space of adversarial attacks by adding textual adversarial examples during training. However, the number of adversarial examples for text augmentation is still extremely insufficient due to the exponentially large attack search space. In this work, we propose a simple and effective method to cover a much larger proportion of the attack search space, called Adversarial and Mixup Data Augmentation (AMDA). Specifically, AMDA linearly interpolates the representations of pairs of training samples to form new virtual samples, which are more abundant and diverse than the discrete text adversarial examples in conventional ADA. Moreover, to fairly evaluate the robustness of different models, we adopt a challenging evaluation setup, which generates a new set of adversarial examples targeting each model. In text classification experiments of BERT and RoBERTa, AMDA achieves significant robustness gains under two strong adversarial attacks and alleviates the performance degradation of ADA on the clean data. Our code is available at: https://github.com/thunlp/MixADA .

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Chenglei Si (26 papers)
  2. Zhengyan Zhang (46 papers)
  3. Fanchao Qi (33 papers)
  4. Zhiyuan Liu (433 papers)
  5. Yasheng Wang (91 papers)
  6. Qun Liu (230 papers)
  7. Maosong Sun (337 papers)
Citations (64)
Github Logo Streamline Icon: https://streamlinehq.com

GitHub