Lune

EMNLP2023Top-tier venue

People Make Better Edits: Measuring the Efficacy of LLM-Generated Counterfactually Augmented Data for Harmful Language Detection

Indira Sen, Dennis Assenmacher, Mattia Samory, Isabelle Augenstein, Wil M. P. van der Aalst, Claudia Wagner

Abstract

NLP models are used in a variety of critical social computing tasks, such as detecting sexist, racist, or otherwise hateful content. Therefore, it is imperative that these models are robust to spurious features. Past work has attempted to tackle such spurious features using training data augmentation, including Counterfactually Augmented Data (CADs). CADs introduce minimal changes to existing training data points and flip their labels; training on them may reduce model dependency on spurious features. However, manually generating CADs can be time-consuming and expensive. Hence in this work, we assess if this task can be automated using generative NLP models. We automatically generate CADs using Polyjuice, Chat-GPT, and Flan-T5, and evaluate their usefulness in improving model robustness compared to manually-generated CADs. By testing both model performance on multiple out-of-domain test sets and individual data point efficacy, our results show that while manual CADs are still the most effective, CADs generated by Chat-GPT come a close second. One key reason for the lower performance of automated methods is that the changes they introduce are often insufficient to flip the original label. 1 Warning: This paper has instances of hateful and sexist language to serve as examples.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • What Does the Bot Say? Opportunities and Risks of Large Language Models in Social Media Bot Detection cites Training language models to follow instructions with human feedback
  • A Rigorous Evaluation of LLM Data Generation Strategies for Low-Resource Languages cites A Survey of Data Augmentation Approaches for NLP
  • Finetuned Language Models are Zero-Shot Learners cites Training language models to follow instructions with human feedback
  • Training language models to follow instructions with human feedback cites Finetuned Language Models are Zero-Shot Learners
  • Interpreting Language Reward Models via Contrastive Explanations cites Training language models to follow instructions with human feedback
  • Training language models to follow instructions with human feedback cites Cross-Task Generalization via Natural Language Crowdsourcing Instructions
  • Cross-Task Generalization via Natural Language Crowdsourcing Instructions cites Finetuned Language Models are Zero-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. What Does the Bot Say? Opportunities and Risks of Large Language Models in Social Media Bot DetectionShangbin Feng, Herun Wan, Ningnan Wang, Zhaoxuan Tan et al.ACL 2024 · 19 citations
  2. A Survey on Efficient Large Language Model Training: From Data-centric PerspectivesJunyu Luo, Bohan Wu, Xiao Luo, Zhiping Xiao et al.ACL 2025 · 12 citations
  3. A Rigorous Evaluation of LLM Data Generation Strategies for Low-Resource LanguagesTatiana Anikina, Ján Cegin, Jakub Simko, Simon OstermannEMNLP 2025
  4. Interpreting Language Reward Models via Contrastive ExplanationsJunqi Jiang, Tom Bewley, Saumitra Mishra, Freddy Lécué et al.ICLR 2025

Builds on27

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu et al.ICLR 2022 · 4,966 citations
  3. Cross-Task Generalization via Natural Language Crowdsourcing InstructionsSwaroop Mishra, Daniel Khashabi, Chitta Baral, Hannaneh HajishirziACL 2022 · 887 citations
  4. A Survey of Data Augmentation Approaches for NLPSteven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar et al.ACL Findings 2021 · 708 citations
  5. Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 citations

Related papers

  1. How Does Counterfactually Augmented Data Impact Models for Social Computing Constructs?Indira Sen, Mattia Samory, Fabian Flöck, Claudia Wagner et al.EMNLP 2021 · 20 citations
  2. Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving ModelsTongshuang Wu, Marco Túlio Ribeiro, Jeffrey Heer, Daniel S. WeldACL 2021
  3. LLMs for Generating and Evaluating Counterfactuals: A Comprehensive StudyVan Bach Nguyen, Paul Youssef, Christin Seifert, Jörg SchlöttererEMNLP Findings 2024 · 11 citations
  4. Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment AnalysisLinyi Yang, Jiazheng Li, Padraig Cunningham, Yue Zhang et al.ACL 2021
  5. AutoCAD: Automatically Generate Counterfactuals for Mitigating Shortcut LearningJiaxin Wen, Yeshuang Zhu, Jinchao Zhang, Jie Zhou et al.EMNLP Findings 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines