Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Text
Preprint
Abstract
Machine Learning has seen tremendous growth recently, which has led to larger adoption of ML systems for educational assessments, credit risk, healthcare, employment, criminal justice, to name a few. The trustworthiness of ML and NLP systems is a crucial aspect and requires a guarantee that the decisions they make are fair and robust. Aligned with this, we propose a framework GYC, to generate a set of counterfactual text samples, which are crucial for testing these ML systems. Our main contributions include a) We introduce GYC, a framework to generate counterfactual samples such that the generation is plausible, diverse, goal-oriented, and effective, b) We generate counterfactual samples, that can direct the generation towards a corresponding condition such as named-entity tag, semantic role label, or sentiment. Our experimental results on various domains show that GYC generates counterfactual text samples exhibiting the above four properties. GYC generates counterfactuals that can act as test cases to evaluate a model and any text debiasing algorithm.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- Reducing Sentiment Bias in Language Models via Counterfactual Evaluation2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Models2019
- Anchors: High-Precision Model-Agnostic ExplanationsProceedings of the AAAI Conference on Artificial Intelligence, 2018
- HotFlip: White-Box Adversarial Examples for Text Classification2018
- Universal Language Model Fine-tuning for Text Classification2018
- AllenNLP: A Deep Semantic Natural Language Processing Platform2018
- Adversarial Examples for Evaluating Reading Comprehension Systems2017
- DBpedia – A large-scale, multilingual knowledge base extracted from WikipediaSemantic Web: – Interoperability, Usability, Applicability, 2015