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

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

19 Oct 2022arXiv:2210.10861archive 2025-07-28

Zhenrui Yue, Huimin Zeng, Bernhard Kratzwald, Stefan Feuerriegel, Dong Wang

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.10861")

Code

Syntology Ran 12 of 16 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 5 ran · honoured contract; 1 ran · violated contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran; 5 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yueeeeeeee/self-supervised-qa officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 12 ran; 5 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · honoured contract
1ran · violated contract
3ran · our draft was wrong
1ran · fixture could not drive it
2ran
4unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Yueeeeeeee/Self-Supervised-QA. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BERTRandomSampler Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran no licence file found · pointer only · 39391d9b3635435c · report
BertAdam Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran no licence file found · pointer only · 6fb95e09ee551a2f · report
compare_performance Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran · honoured contract no licence file found · pointer only · cd812ef970436cb7 · report
evaluate_acc_and_f1 Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran · honoured contract no licence file found · pointer only · 6e78b0bb4297c189 · report
get_bert_model_parameters Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran · our draft was wrong no licence file found · pointer only · e5f44823bc5e7f55 · report
keep_high_prob_samples Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran · fixture could not drive it no licence file found · pointer only · 71946db113d7b29a · report
warmup_constant Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · e7d542062316094a · report
comb_adversarial_training_stage Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository unverified no licence file found · pointer only · e57c4b1183dcd6cb · report
evaluation_stage Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository unverified no licence file found · pointer only · b0b6c98806c9fd6d · report
generate_self_training_samples Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository unverified no licence file found · pointer only · 4bdc939ce31c7cf4 · report
warmup_cosine Yueeeeeeee/Self-Supervised-QA/src/run_qada.py official repository unverified no licence file found · pointer only · 35f7cddf90dd05d4 · report
exact_match_score identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · f6c275d6a18330a9 · report
f1_score identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 2112c433b9c6d343 · report
metric_max_over_ground_truths identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 6829ceb72569fa12 · report
normalize_answer identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · c6a80c065d2e4851 · report
warmup_linear identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · c58d57224530d17e · report

Tasks

Contrastive LearningData AugmentationDomain AdaptationQuestion Answering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections