Contrastive Domain Adaptation for Question Answering using Limited Text Corpora

Zhenrui Yue, Bernhard Kratzwald, Stefan Feuerriegel
8/31/2021
cs.CLcs.AI

Official code: Yueeeeeeee/CAQA (14 stars, Python, last commit 2023-07-04).

Abstract

Question generation has recently shown impressive results in customizing question answering (QA) systems to new domains. These approaches circumvent the need for manually annotated training data from the new domain and, instead, generate synthetic question-answer pairs that are used for training.

Show full abstract

However, existing methods for question generation rely on large amounts of synthetically generated datasets and costly computational resources, which render these techniques widely inaccessible when the text corpora is of limited size. This is problematic as many niche domains rely on small text corpora, which naturally restricts the amount of synthetic data that can be generated. In this paper, we propose a novel framework for domain adaptation called contrastive domain adaptation for QA (CAQA). Specifically, CAQA combines techniques from question generation and domain-invariant learning to answer out-of-domain questions in settings with limited text corpora. Here, we train a QA system on both source data and generated data from the target domain with a contrastive adaptation loss that is incorporated in the training objective. By combining techniques from question generation and domain-invariant learning, our model achieved considerable improvements compared to state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

Yueeeeeeee/CAQAOfficial100%

[EMNLP 2021] PyTorch Implementation of Contrastive Domain Adaptation for Question Answering using Limited Text Corpora

143Python, ShellAug 28, 20213 years ago

Similar Papers

Cite this paper

@article{yue2021contrastive,
  title  = {Contrastive Domain Adaptation for Question Answering using Limited Text Corpora},
  author = {Zhenrui Yue and Bernhard Kratzwald and Stefan Feuerriegel},
  year   = {2021},
  eprint = {2108.13854},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.13854}
}

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

Discussion