How Does Counterfactually Augmented Data Impact Models for Social Computing Constructs?

Indira Sen, Mattia Samory, Fabian Floeck, Claudia Wagner, Isabelle Augenstein
9/14/2021
cs.CY

Official code: gesiscss/socialCAD (3 stars, Jupyter Notebook, GPL-3.0, last commit 2023-05-04).

Abstract

As NLP models are increasingly deployed in socially situated settings such as online abusive content detection, it is crucial to ensure that these models are robust. One way of improving model robustness is to generate counterfactually augmented data (CAD) for training models that can better learn to distinguish between core features and data artifacts.

Show full abstract

While models trained on this type of data have shown promising out-of-domain generalizability, it is still unclear what the sources of such improvements are. We investigate the benefits of CAD for social NLP models by focusing on three social computing constructs -- sentiment, sexism, and hate speech. Assessing the performance of models trained with and without CAD across different types of datasets, we find that while models trained on CAD show lower in-domain performance, they generalize better out-of-domain. We unpack this apparent discrepancy using machine explanations and find that CAD reduces model reliance on spurious features. Leveraging a novel typology of CAD to analyze their relationship with model performance, we find that CAD which acts on the construct directly or a diverse set of CAD leads to higher performance.

View on arXivView PDF

Code Implementations(1)

gesiscss/socialCADOfficial100%
GPL-3.0
31Jupyter Notebook, PythonSep 9, 20213 years agoGPL-3.0

Similar Papers

Cite this paper

@article{sen2021does,
  title  = {How Does Counterfactually Augmented Data Impact Models for Social Computing Constructs?},
  author = {Indira Sen and Mattia Samory and Fabian Floeck and Claudia Wagner and Isabelle Augenstein},
  year   = {2021},
  eprint = {2109.07022},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07022}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.07022.svg)](https://codeofpaper.com/paper/2109.07022)

Discussion