Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysis

Linyi Yang, Jiazheng Li, Pádraig Cunningham, Yue Zhang, Barry Smyth +1 more
6/29/2021
cs.CLcs.AIcs.LO

Official code: lijiazheng99/Counterfactuals-for-Sentiment-Analysis (28 stars, Python, last commit 2023-12-29).

Abstract

While state-of-the-art NLP models have been achieving the excellent performance of a wide range of tasks in recent years, important questions are being raised about their robustness and their underlying sensitivity to systematic biases that may exist in their training and test data. Such issues come to be manifest in performance problems when faced with out-of-distribution data in the field.

Show full abstract

One recent solution has been to use counterfactually augmented datasets in order to reduce any reliance on spurious patterns that may exist in the original data. Producing high-quality augmented data can be costly and time-consuming as it usually needs to involve human feedback and crowdsourcing efforts. In this work, we propose an alternative by describing and evaluating an approach to automatically generating counterfactual data for data augmentation and explanation. A comprehensive evaluation on several different datasets and using a variety of state-of-the-art benchmarks demonstrate how our approach can achieve significant improvements in model performance when compared to models training on the original data and even when compared to models trained with the benefit of human-generated augmented data.

View on arXivView PDF

Code Implementations(1)

ACL-21 Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysis

284Python, ShellMay 31, 20212 years ago
huggingface-transformernatural-language-processingpython37sentiment-analysis

Similar Papers

Cite this paper

@article{yang2021exploring,
  title  = {Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysis},
  author = {Linyi Yang and Jiazheng Li and Pádraig Cunningham and Yue Zhang and Barry Smyth and Ruihai Dong},
  year   = {2021},
  eprint = {2106.15231},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.15231}
}

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/2106.15231.svg)](https://codeofpaper.com/paper/2106.15231)

Discussion