Skip to main content
QUICK REVIEW

[Paper Review] FreeLB: Enhanced Adversarial Training for Language Understanding

Chen Zhu, Yu Cheng|arXiv (Cornell University)|Sep 25, 2019
Topic ModelingComputer Science44 references4 citations
TL;DR

FreeLB is a novel adversarial training method that enhances robustness and invariance in BERT and RoBERTa models by applying adversarial perturbations directly to word embeddings during fine-tuning. It improves generalization, achieving state-of-the-art results on GLUE, CommonsenseQA, and ARC benchmarks, including a 1.1-point gain on BERT and a 0.3-point gain on RoBERTa-large.

ABSTRACT

Adversarial training, which minimizes the maximal risk for label-preserving input perturbations, has proved to be effective for improving the generalization of language models. In this work, we propose a novel adversarial training algorithm - FreeLB, that promotes higher robustness and invariance in the embedding space, by adding adversarial perturbations to word embeddings and minimizing the resultant adversarial risk inside different regions around input samples. To validate the effectiveness of the proposed approach, we apply it to Transformer-based models for natural language understanding and commonsense reasoning tasks. Experiments on the GLUE benchmark show that when applied only to the finetuning stage, it is able to improve the overall test scores of BERT-based model from 78.3 to 79.4, and RoBERTa-large model from 88.5 to 88.8. In addition, the proposed approach achieves state-of-the-art test accuracies of 85.39\% and 67.32\% on ARC-Easy and ARC-Challenge. Experiments on CommonsenseQA benchmark further demonstrate that FreeLB can be generalized and boost the performance of RoBERTa-large model on other tasks as well.

Motivation & Objective

  • To improve the robustness and invariance of pre-trained language models in the embedding space during fine-tuning.
  • To address the limitation of standard adversarial training that often focuses on hidden representations rather than input embeddings.
  • To develop a method that enhances generalization without requiring architectural changes or additional training data.
  • To validate the effectiveness of embedding-level adversarial training across diverse NLU and commonsense reasoning tasks.
  • To achieve state-of-the-art performance on standard benchmarks like GLUE and ARC without modifying model architecture.

Proposed method

  • FreeLB applies adversarial perturbations directly to word embeddings rather than to hidden states or attention layers.
  • It minimizes the adversarial risk within multiple regions around input samples, promoting robustness in the embedding space.
  • The method performs adversarial training during the fine-tuning phase only, without modifying the pre-training process.
  • It uses a projected gradient descent (PGD) approach to generate perturbations that maximize loss while preserving label consistency.
  • The adversarial perturbations are applied in a way that maintains semantic and syntactic invariance, improving model generalization.
  • The approach is compatible with Transformer-based models such as BERT and RoBERTa, and can be applied with minimal computational overhead.

Experimental results

Research questions

  • RQ1Can adversarial training applied at the input embedding level improve model robustness and generalization in natural language understanding?
  • RQ2Does FreeLB outperform standard adversarial training methods when applied during fine-tuning on downstream NLU tasks?
  • RQ3To what extent does FreeLB enhance performance on challenging benchmarks like ARC-Easy and ARC-Challenge?
  • RQ4Can FreeLB generalize across different architectures and tasks, such as CommonsenseQA, beyond standard GLUE benchmarks?
  • RQ5Does embedding-level adversarial training lead to measurable improvements in test accuracy without architectural modifications?

Key findings

  • FreeLB improves the overall GLUE score of BERT-based models from 78.3 to 79.4, a 1.1-point gain.
  • It boosts the RoBERTa-large model's GLUE score from 88.5 to 88.8, achieving a 0.3-point improvement.
  • On the ARC-Easy benchmark, FreeLB achieves a state-of-the-art test accuracy of 85.39%.
  • On the more challenging ARC-Challenge set, it attains a state-of-the-art accuracy of 67.32%.
  • The method improves performance on CommonsenseQA, demonstrating generalization beyond GLUE benchmarks.
  • The gains are achieved solely through fine-tuning with adversarial perturbations on word embeddings, without any model architecture changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.