SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks
Not on the map. Why?
Abstract (arXiv)
Language models (LMs) are indispensable tools for natural language processing tasks, but their vulnerability to adversarial attacks remains a concern. While current research has explored adversarial training techniques, their improvements to defend against word-level attacks have been limited. In this work, we propose a novel approach called Semantic Robust Defence (SemRoDe), a Macro Adversarial Training strategy to enhance the robustness of LMs. Drawing inspiration from recent studies in the image domain, we investigate and later confirm that in a discrete data setting such as language, adversarial samples generated via word substitutions do indeed belong to an adversarial domain exhibiting a high Wasserstein distance from the base domain. Our method learns a robust representation that bridges these two domains. We hypothesize that if samples were not projected into an adversarial domain, but instead to a domain with minimal shift, it would improve attack robustness. We align the domains by incorporating a new distance-based objective. With this, our model is able to learn more generalized representations by aligning the model's high-level output features and therefore better handling unseen adversarial samples. This method can be generalized across word embeddings, even when they share minimal overlap at both vocabulary and word-substitution levels. To evaluate the effectiveness of our approach, we conduct experiments on BERT and RoBERTa models on three datasets. The results demonstrate promising state-of-the-art robustness.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 44 of its 65 references that are in the map. First posted on arXiv 27 Mar 2024.
Builds on
44 of 65 references.
References · 44
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,517
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2020On Adaptive Attacks to Adversarial Example Defensescited by 555
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2018Universal Sentence Encodercited by 489
- 2018Generating Natural Language Adversarial Examplescited by 424
32 more
- 2015Return of Frustratingly Easy Domain Adaptationcited by 391
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 264
- 2018Adversarial Attacks and Defences: A Surveycited by 259
- 2018Adversarial Logit Pairingcited by 224
- 2023On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspectivecited by 211
- 2018MMA Training: Direct Input Space Margin Maximization through Adversarial Trainingcited by 172
- 2019Certified Robustness to Adversarial Word Substitutionscited by 168
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 101
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 73
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
- 2018Interpretable Adversarial Perturbation in Input Embedding Space for Textcited by 67
- 2020It's Morphin' Time! Combating Linguistic Discrimination with Inflectional Perturbationscited by 64
- 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
- 2020Generating Natural Language Attacks in a Hard Label Black Box Settingcited by 50
- 2018Improving the Generalization of Adversarial Training with Domain Adaptationcited by 48
- 2021Improving Mini-batch Optimal Transport via Partial Transportationcited by 41
- 2019Natural Language Adversarial Defense through Synonym Encodingcited by 40
- 2020From Hero to Z'eroe: A Benchmark of Low-Level Adversarial Attackscited by 36
- 2021Defending Pre-trained Language Models from Adversarial Word Substitutions Without Performance Sacrificecited by 30
- 2022"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attackscited by 24
- 2022Certified Robustness Against Natural Language Attacks by Causal Interventioncited by 24
- 2022Textual Manifold-based Defense Against Natural Language Adversarial Examplescited by 19
- 2021Alignment Attention by Matching Key and Query Distributionscited by 14
- 2023DSRM: Boost Textual Adversarial Training with Distribution Shift Risk Minimizationcited by 7
- 2019Interpretable Adversarial Training for Textcited by 6
- 2021Optimal Transport as a Defense Against Adversarial Attackscited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 2.
3 papers.