Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Models

Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, Bo Li

Abstract

AdvGLUE is a comprehensive multi-task benchmark designed to evaluate the adversarial robustness of language models. By integrating 14 attack methods across five GLUE tasks and employing a rigorous human-in-the-loop curation process, AdvGLUE identifies significant vulnerabilities in state-of-the-art models. While these models achieve superhuman performance on standard benchmarks, their accuracy plummets under subtle, meaning-preserving perturbations, highlighting a critical gap between benign performance and true linguistic understanding.

Introduction

Large-scale pre-trained language models like BERT, RoBERTa, and ELECTRA have redefined the state-of-the-art in Natural Language Understanding (NLU), frequently surpassing human performance on the GLUE benchmark. However, these models are often "brittle," susceptible to small, adversarial changes in input text that do not confuse humans. Existing robustness evaluations are often fragmented and "noisy," containing ungrammatical or nonsensical examples that change the ground-truth label. AdvGLUE addresses this by providing a unified, high-quality, and challenging standard for robustness evaluation.

The AdvGLUE Framework

AdvGLUE was constructed by applying 14 textual adversarial attack methods across five core GLUE tasks: SST-2 (Sentiment), QQP (Paraphrase), and MNLI, RTE, and QNLI (Inference). These attacks are categorized into word-level perturbations (e.g., typos, synonyms), sentence-level perturbations (e.g., syntax manipulation, distractions), and human-crafted examples.

The AdvGLUE construction pipeline, featuring adversarial perturbation generation followed by a multi-stage curation process including automatic filtering and human validation.

The hallmark of AdvGLUE is its rigorous Curation Pipeline. To ensure high quality, the authors implemented:

  • Automatic Filtering: Examples were retained only if they successfully fooled multiple surrogate models (transferability) and maintained semantic fidelity.
  • Human Validation: Crowdsourced annotators validated that the adversarial examples remained clear and correctly labeled for humans. Examples that confused humans were discarded.

Key Insights: The Robustness Gap

The curation process revealed that approximately 90% of automatically generated adversarial examples are invalid or ambiguous, emphasizing the necessity of human-in-the-loop filtering. By selecting attacks that transfer across different architectures, the benchmark identifies fundamental vulnerabilities in current transformer models. Notably, typo-based and knowledge-guided perturbations were found to be particularly effective at inducing model failure.

Experimental Results

The evaluation of state-of-the-art models on AdvGLUE reveals a dramatic performance collapse. Models that appear nearly perfect on standard benchmarks fail significantly when faced with adversarial inputs.

Performance comparison of state-of-the-art models on AdvGLUE vs. standard GLUE. Note the massive drop in average accuracy (Avg Δ) across all models.

Key findings include:

  • Performance Collapse: ELECTRA-Large dropped from a GLUE score of 93.16 to just 41.69 on AdvGLUE.
  • Relative Resilience: DeBERTa-Large proved to be the most robust model tested, yet it still only achieved a 60.86 average score, far below its benign performance.
  • Defense Limitations: Robust training methods like SMART and FreeLB offer marginal improvements but fail to close the gap between benign and adversarial accuracy.
  • Human Superiority: In contrast to the models, human accuracy on AdvGLUE remains high (~90%), confirming that the perturbations preserve meaning for people while confusing machines.

Conclusion

AdvGLUE serves as a wake-up call for the NLP community, demonstrating that "superhuman" performance on standard benchmarks does not equate to robust linguistic understanding. The benchmark is publicly available as a living leaderboard to track progress toward truly resilient NLU systems. Future work will look to expand this evaluation to generative models and few-shot learning scenarios.

Summary updated

BibTeX
@inproceedings{wang2021adversarial,
  author = {Boxin Wang and Chejian Xu and Shuohang Wang and Zhe Gan and Yu Cheng and Jianfeng Gao and Ahmed Hassan Awadallah and Bo Li},
  title = {{Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=GF9cSKI3A_q},
}
Figure