Source-Free Domain Adaptation for Question Answering with Masked Self-training

M. Yin, B. Wang, Y. Dong, C. Ling
12/19/2022
cs.CL

Official code: maxwellyin/MDAQA (0 stars, Python, last commit 2026-03-25).

Abstract

Most previous unsupervised domain adaptation (UDA) methods for question answering(QA) require access to source domain data while fine-tuning the model for the target domain. Source domain data may, however, contain sensitive information and may be restricted.

Show full abstract

In this study, we investigate a more challenging setting, source-free UDA, in which we have only the pretrained source model and target domain data, without access to source domain data. We propose a novel self-training approach to QA models that integrates a unique mask module for domain adaptation. The mask is auto-adjusted to extract key domain knowledge while trained on the source domain. To maintain previously learned domain knowledge, certain mask weights are frozen during adaptation, while other weights are adjusted to mitigate domain shifts with pseudo-labeled samples generated in the target domain. %As part of the self-training process, we generate pseudo-labeled samples in the target domain based on models trained in the source domain. Our empirical results on four benchmark datasets suggest that our approach significantly enhances the performance of pretrained QA models on the target domain, and even outperforms models that have access to the source data during adaptation.

View on arXivView PDF

Code Implementations(1)

maxwellyin/MDAQAOfficial100%
00PythonFeb 28, 20248 months ago

Similar Papers

Cite this paper

@article{yin2022sourcefree,
  title  = {Source-Free Domain Adaptation for Question Answering with Masked Self-training},
  author = {M. Yin and B. Wang and Y. Dong and C. Ling},
  year   = {2022},
  eprint = {2212.09563},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09563}
}

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

Discussion