mlsanityData to 14 Oct 2026

SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks

arXiv 2403.18423 ↗First posted 27 Mar 2024cs.CL cs.LGcited by 3

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  6. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
  7. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,517
  8. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  9. 2020On Adaptive Attacks to Adversarial Example Defensescited by 555
  10. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  11. 2018Universal Sentence Encodercited by 489
  12. 2018Generating Natural Language Adversarial Examplescited by 424
32 more
  1. 2015Return of Frustratingly Easy Domain Adaptationcited by 391
  2. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
  3. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
  4. 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
  5. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 264
  6. 2018Adversarial Attacks and Defences: A Surveycited by 259
  7. 2018Adversarial Logit Pairingcited by 224
  8. 2023On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspectivecited by 211
  9. 2018MMA Training: Direct Input Space Margin Maximization through Adversarial Trainingcited by 172
  10. 2019Certified Robustness to Adversarial Word Substitutionscited by 168
  11. 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
  12. 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 101
  13. 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
  14. 2021Towards Improving Adversarial Training of NLP Modelscited by 79
  15. 2020SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutionscited by 73
  16. 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
  17. 2018Interpretable Adversarial Perturbation in Input Embedding Space for Textcited by 67
  18. 2020It's Morphin' Time! Combating Linguistic Discrimination with Inflectional Perturbationscited by 64
  19. 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
  20. 2020Generating Natural Language Attacks in a Hard Label Black Box Settingcited by 50
  21. 2018Improving the Generalization of Adversarial Training with Domain Adaptationcited by 48
  22. 2021Improving Mini-batch Optimal Transport via Partial Transportationcited by 41
  23. 2019Natural Language Adversarial Defense through Synonym Encodingcited by 40
  24. 2020From Hero to Z'eroe: A Benchmark of Low-Level Adversarial Attackscited by 36
  25. 2021Defending Pre-trained Language Models from Adversarial Word Substitutions Without Performance Sacrificecited by 30
  26. 2022"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attackscited by 24
  27. 2022Certified Robustness Against Natural Language Attacks by Causal Interventioncited by 24
  28. 2022Textual Manifold-based Defense Against Natural Language Adversarial Examplescited by 19
  29. 2021Alignment Attention by Matching Key and Query Distributionscited by 14
  30. 2023DSRM: Boost Textual Adversarial Training with Distribution Shift Risk Minimizationcited by 7
  31. 2019Interpretable Adversarial Training for Textcited by 6
  32. 2021Optimal Transport as a Defense Against Adversarial Attackscited by 6

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.