AutoCAD: Automatically Generating Counterfactuals for Mitigating Shortcut Learning

Jiaxin Wen, Yeshuang Zhu, Jinchao Zhang, Jie Zhou, Minlie Huang
11/29/2022
cs.AIcs.CL

Official code: thu-coai/AutoCAD (11 stars, Python, last commit 2023-07-10).

Abstract

Recent studies have shown the impressive efficacy of counterfactually augmented data (CAD) for reducing NLU models' reliance on spurious features and improving their generalizability. However, current methods still heavily rely on human efforts or task-specific designs to generate counterfactuals, thereby impeding CAD's applicability to a broad range of NLU tasks.

Show full abstract

In this paper, we present AutoCAD, a fully automatic and task-agnostic CAD generation framework. AutoCAD first leverages a classifier to unsupervisedly identify rationales as spans to be intervened, which disentangles spurious and causal features. Then, AutoCAD performs controllable generation enhanced by unlikelihood training to produce diverse counterfactuals. Extensive evaluations on multiple out-of-domain and challenge benchmarks demonstrate that AutoCAD consistently and significantly boosts the out-of-distribution performance of powerful pre-trained models across different NLU tasks, which is comparable or even better than previous state-of-the-art human-in-the-loop or task-specific CAD methods. The code is publicly available at https://github.com/thu-coai/AutoCAD.

View on arXivView PDF

Code Implementations(1)

thu-coai/AutoCADOfficial100%

Official Code for EMNLP 2022 findings paper: "AutoCAD: Automatically Generating Counterfactuals for Mitigating Shortcut Learning"

110Python, ShellOct 18, 20223 years ago

Similar Papers

Cite this paper

@article{wen2022autocad,
  title  = {AutoCAD: Automatically Generating Counterfactuals for Mitigating Shortcut Learning},
  author = {Jiaxin Wen and Yeshuang Zhu and Jinchao Zhang and Jie Zhou and Minlie Huang},
  year   = {2022},
  eprint = {2211.16202},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.16202}
}

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

Discussion