Toward Adversarial Training on Contextualized Language Representation
Not on the map. Why?
Abstract (arXiv)
Beyond the success story of adversarial training (AT) in the recent text domain on top of pre-trained language models (PLMs), our empirical study showcases the inconsistent gains from AT on some tasks, e.g. commonsense reasoning, named entity recognition. This paper investigates AT from the perspective of the contextualized language representation outputted by PLM encoders. We find the current AT attacks lean to generate sub-optimal adversarial examples that can fool the decoder part but have a minor effect on the encoder. However, we find it necessary to effectively deviate the latter one to allow AT to gain. Based on the observation, we propose simple yet effective textitContextualized representation-Adversarial Training (CreAT), in which the attack is explicitly optimized to deviate the contextualized representation of the encoder. It allows a global optimization of adversarial examples that can fool the entire model. We also find CreAT gives rise to a better direction to optimize the adversarial examples, to let them less sensitive to hyperparameters. Compared to AT, CreAT produces consistent performance gains on a wider range of tasks and is proven to be more effective for language pre-training where only the encoder part is kept for downstream tasks. We achieve the new state-of-the-art performances on a series of challenging benchmarks, e.g. AdvGLUE (59.1 rightarrow 61.1), HellaSWAG (93.0 rightarrow 94.9), ANLI (68.1 rightarrow 69.3).
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 58 of its 65 references that are in the map. First posted on arXiv 8 May 2023.
Builds on
58 of 65 references.
References · 58
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
38 more
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2016Temporal Ensembling for Semi-Supervised Learningcited by 1,054
- 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 798
- 2020Fast is better than free: Revisiting adversarial trainingcited by 723
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2019Adversarial Training for Free!cited by 638
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 511
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2019Unlabeled Data Improves Adversarial Robustnesscited by 415
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2018Learning Adversarially Fair and Transferable Representationscited by 353
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Feature Denoising for Improving Adversarial Robustnesscited by 312
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2019Abductive Commonsense Reasoningcited by 300
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
- 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 227
- 2019You Only Propagate Once: Accelerating Adversarial Training via Maximal Principlecited by 181
- 2019DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehensioncited by 156
- 2020Better Fine-Tuning by Reducing Representational Collapsecited by 156
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2018Flipout: Efficient Pseudo-Independent Weight Perturbations on Mini-Batchescited by 133
- 2018Fast and Scalable Bayesian Deep Learning by Weight-Perturbation in Adamcited by 131
- 2018Invariant Representations without Adversarial Trainingcited by 111
- 2020Adversarial Training for Large Neural Language Modelscited by 109
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 6; 2025: 1.
10 papers.
- 2023Rethinking Masked Language Modeling for Chinese Spelling Correctioncited by 19
- 2023Empower Nested Boolean Logic via Self-Supervised Curriculum Learningcited by 7
- 2023Break it, Imitate it, Fix it: Robustness by Generating Human-Like Attackscited by 5
- 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Modelscited by 5
- 2024Utilizing Local Hierarchy with Adversarial Training for Hierarchical Text Classificationcited by 3
- 2024Instruction-Driven Game Engines on Large Language Modelscited by 3
- 2024PID Control-Based Self-Healing to Improve the Robustness of Large Language Modelscited by 3
- 2024Instruction-Driven Game Engine: A Poker Case Studycited by 3
- 2024Learning from Mistakes: Self-correct Adversarial Training for Chinese Unnatural Text Correctioncited by 2
- 2024Unveiling Vulnerability of Self-Attentioncited by 0
- 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Models16 Jan 2025
- 2024Learning from Mistakes: Self-correct Adversarial Training for Chinese Unnatural Text Correction23 Dec 2024
- 2024Instruction-Driven Game Engine: A Poker Case Study17 Oct 2024
- 2024PID Control-Based Self-Healing to Improve the Robustness of Large Language Models31 Mar 2024
- 2024Instruction-Driven Game Engines on Large Language Models30 Mar 2024
- 2024Utilizing Local Hierarchy with Adversarial Training for Hierarchical Text Classification29 Feb 2024
- 2024Unveiling Vulnerability of Self-Attention26 Feb 2024
- 2023Break it, Imitate it, Fix it: Robustness by Generating Human-Like Attacks25 Oct 2023
- 2023Empower Nested Boolean Logic via Self-Supervised Curriculum Learning9 Oct 2023
- 2023Rethinking Masked Language Modeling for Chinese Spelling Correction28 May 2023
Similar, not cited
Close in wording, no citation either way
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks
- 2024Tokenization Matters! Degrading Large Language Models through Challenging Their Tokenization
- 2022Rethinking Textual Adversarial Defense for Pre-trained Language Models
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models
- 2026Learning What to Fail On: Failure-Mode Contextual Bandits for Adversarial Data Curation
- 2023Misusing Tools in Large Language Models With Visual Adversarial Examples
- 2025Semantic Representation Attack against Aligned Large Language Models
- 2024Efficient Adversarial Training in LLMs with Continuous Attacks