DoCoGen: Domain Counterfactual Generation for Low Resource Domain Adaptation

Nitay Calderon, Eyal Ben-David, Amir Feder, Roi Reichart
2/24/2022
cs.CLcs.AI

Official code: nitaytech/DoCoGen (20 stars, Python, last commit 2022-07-09).

Abstract

Natural language processing (NLP) algorithms have become very successful, but they still struggle when applied to out-of-distribution examples. In this paper we propose a controllable generation approach in order to deal with this domain adaptation (DA) challenge.

Show full abstract

Given an input text example, our DoCoGen algorithm generates a domain-counterfactual textual example (D-con) - that is similar to the original in all aspects, including the task label, but its domain is changed to a desired one. Importantly, DoCoGen is trained using only unlabeled examples from multiple domains - no NLP task labels or parallel pairs of textual examples and their domain-counterfactuals are required. We show that DoCoGen can generate coherent counterfactuals consisting of multiple sentences. We use the D-cons generated by DoCoGen to augment a sentiment classifier and a multi-label intent classifier in 20 and 78 DA setups, respectively, where source-domain labeled data is scarce. Our model outperforms strong baselines and improves the accuracy of a state-of-the-art unsupervised DA algorithm.

View on arXivView PDF

Code Implementations(1)

nitaytech/DoCoGenOfficial100%
202PythonFeb 24, 20224 years ago

Similar Papers

Cite this paper

@article{calderon2022docogen,
  title  = {DoCoGen: Domain Counterfactual Generation for Low Resource Domain Adaptation},
  author = {Nitay Calderon and Eyal Ben-David and Amir Feder and Roi Reichart},
  year   = {2022},
  eprint = {2202.12350},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.12350}
}

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

Discussion