QA Domain Adaptation using Hidden Space Augmentation and Self-Supervised Contrastive Adaptation

Zhenrui Yue, Huimin Zeng, Bernhard Kratzwald, Stefan Feuerriegel, Dong Wang
10/19/2022
cs.CLcs.AI
contrastive-ssl

Official code: Yueeeeeeee/Self-Supervised-QA (8 stars, Python, last commit 2023-07-04).

Abstract

Question answering (QA) has recently shown impressive results for answering questions from customized domains. Yet, a common challenge is to adapt QA models to an unseen target domain.

Show full abstract

In this paper, we propose a novel self-supervised framework called QADA for QA domain adaptation. QADA introduces a novel data augmentation pipeline used to augment training QA samples. Different from existing methods, we enrich the samples via hidden space augmentation. For questions, we introduce multi-hop synonyms and sample augmented token embeddings with Dirichlet distributions. For contexts, we develop an augmentation method which learns to drop context spans via a custom attentive sampling strategy. Additionally, contrastive learning is integrated in the proposed self-supervised adaptation framework QADA. Unlike existing approaches, we generate pseudo labels and propose to train the model via a novel attention-based contrastive adaptation method. The attention weights are used to build informative features for discrepancy estimation that helps the QA model separate answers and generalize across source and target domains. To the best of our knowledge, our work is the first to leverage hidden space augmentation and attention-based contrastive adaptation for self-supervised domain adaptation in QA. Our evaluation shows that QADA achieves considerable improvements on multiple target datasets over state-of-the-art baselines in QA domain adaptation.

View on arXivView PDF

Code Implementations(1)

[COLING & EMNLP 2022] PyTorch Implementation of (1) Domain Adaptation for Question Answering via Question Classification; (2) QA Domain Adaptation using Hidden Space Augmentation and Self-Supervised Contrastive Adaptation

81PythonAug 25, 20223 years ago

Similar Papers

Cite this paper

@article{yue2022domain,
  title  = {QA Domain Adaptation using Hidden Space Augmentation and Self-Supervised Contrastive Adaptation},
  author = {Zhenrui Yue and Huimin Zeng and Bernhard Kratzwald and Stefan Feuerriegel and Dong Wang},
  year   = {2022},
  eprint = {2210.10861},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10861}
}

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

Discussion