mlsanityData to 7 Oct 2026

Plug and Play Counterfactual Text Generation for Model Robustness

arXiv 2206.10429 ↗First posted 21 Jun 2022cs.CL cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Generating counterfactual test-cases is an important backbone for testing NLP models and making them as robust and reliable as traditional software. In generating the test-cases, a desired property is the ability to control the test-case generation in a flexible manner to test for a large variety of failure cases and to explain and repair them in a targeted manner. In this direction, significant progress has been made in the prior works by manually writing rules for generating controlled counterfactuals. However, this approach requires heavy manual supervision and lacks the flexibility to easily introduce new controls. Motivated by the impressive flexibility of the plug-and-play approach of PPLM, we propose bringing the framework of plug-and-play to counterfactual test case generation task. We introduce CASPer, a plug-and-play counterfactual generation framework to generate test cases that satisfy goal attributes on demand. Our plug-and-play model can steer the test case generation process given any attribute model without requiring attribute-specific training of the model. In experiments, we show that CASPer effectively generates counterfactual text that follow the steering provided by an attribute model while also being fluent, diverse and preserving the original content. We also show that the generated counterfactuals from CASPer can be used for augmenting the training data and thereby fixing and making the test model more robust.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 41 of its 56 references that are in the map. First posted on arXiv 21 Jun 2022.

Builds on

41 of 56 references.

References · 41

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  7. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  8. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  9. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  10. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  11. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  12. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
29 more
  1. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  2. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
  3. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
  4. 2017Toward Controlled Generation of Textcited by 271
  5. 2018Improving fairness in machine learning systems: What do industry practitioners need?cited by 262
  6. 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
  7. 2016Understanding Neural Networks through Representation Erasurecited by 223
  8. 2018Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfercited by 191
  9. 2017Generating Natural Adversarial Examplescited by 182
  10. 2019Good-Enough Compositional Data Augmentationcited by 158
  11. 2018Counterfactual Fairness in Text Classification through Robustnesscited by 150
  12. 2017Fairness Testing: Testing Software for Discriminationcited by 123
  13. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 105
  14. 2016Learning to Translate in Real-time with Neural Machine Translationcited by 97
  15. 2020Politeness Transfer: A Tag and Generate Approachcited by 78
  16. 2018Automated Directed Fairness Testingcited by 77
  17. 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
  18. 2021Tailor: Generating and Perturbing Text with Semantic Controlscited by 67
  19. 2020Learning What Makes a Difference from Counterfactual Examples and Gradient Supervisioncited by 66
  20. 2020Explaining The Efficacy of Counterfactually Augmented Datacited by 64
  21. 2019On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Modelscited by 56
  22. 2020Verifying Individual Fairness in Machine Learning Modelscited by 49
  23. 2020CAT-Gen: Improving Robustness in NLP Models via Controlled Adversarial Text Generationcited by 43
  24. 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfercited by 40
  25. 2020Linguistically-Informed Transformations (LIT): A Method for Automatically Generating Contrast Setscited by 31
  26. 2017Trainable Greedy Decoding for Neural Machine Translationcited by 23
  27. 2020Variational Template Machine for Data-to-Text Generationcited by 19
  28. 2019Can Unconditional Language Models Recover Arbitrary Sentences?cited by 15
  29. 2018A Stable and Effective Learning Strategy for Trainable Greedy Decodingcited by 12

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1.

2 papers.