Adversarial Training for Large Neural Language Models

By Xiaodong Liu, Hao Cheng, Pengcheng He, Weizhu Chen, Yu Wang, Hoifung Poon, Jianfeng Gao. 2020

206 citations recorded by the source corpus.

Generalization and robustness are both key desiderata for designing machine learning methods. Adversarial training can enhance robustness, but past work often finds it hurts generalization. In natural language processing (NLP), pre-training large neural language models such as BERT have demonstrated impressive gain in generalization for a variety of tasks, with further improvement from adversarial fine-tuning. However, these models are still vulnerable to adversarial attacks. In this paper, we show that adversarial pre-training can improve both generalization and robustness. We propose a general algorithm ALUM (Adversarial training for large neural LangUage Models), which regularizes the training objective by applying perturbations in the embedding space that maximizes the adversarial loss. We present the first comprehensive study of adversarial training in all stages, including pre-training from scratch, continual pre-training on a well-trained model, and task-specific fine-tuning. ALUM obtains substantial gains over BERT on a wide range of NLP tasks, in both regular and adversarial scenarios. Even for models that have been well trained on extremely large text corpora, such as RoBERTa, ALUM can still produce significant gains from continual pre-training, whereas conventional non-adversarial methods can not. ALUM can be further combined with task-specific fine-tuning to attain additional gains. The ALUM code is publicly available at this https URL.

Subfields: Artificial Intelligence, Large Language Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Zhe Gan
  3. Jingjing Liu
  4. Mohit Bansal
  5. Weizhu Chen
  6. Yu Cheng
  7. Linjie Li
  8. Percy Liang

In Large Language Models

  1. Jianfeng Gao
  2. Zhe Gan
  3. Yu Cheng
  4. Weizhu Chen
  5. Yen-Chun Chen
  6. Linjie Li
  7. Pengcheng He
  8. Jingjing Liu

In Safety, Robustness & Interpretability

  1. Xiaodong Liu
  2. Weizhu Chen
  3. Jianfeng Gao
  4. Pengcheng He
  5. Zhe Gan
  6. Yu Cheng
  7. Chen Zhu
  8. Bo Li

Citations in the corpus