SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.10861 · EMNLP · 2022

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

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

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2210.10861.json · badge: /api/ran/2210.10861.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Yueeeeeeee/Self-Supervised-QA community
Papers with Code archive
7 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
5 ran · 0 no recorded run
FunctionStatusWhere it lives
BERTRandomSampler Ran
ran on a synthesized input · constructed an object; no result was computed
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("39391d9b3635435c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertAdam Ran
ran on a synthesized input · constructed an object; no result was computed
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("6fb95e09ee551a2f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compare_performance Ran
ran, honoured the contract we drafted
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("cd812ef970436cb7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_acc_and_f1 Ran
ran, honoured the contract we drafted
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("6e78b0bb4297c189")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exact_match_score Ran
ran, violated the contract we drafted
this paper's copy was not recorded; identical code first harvested from mrqa/MRQA-Shared-Task-2019
pointer only · get_code("f6c275d6a18330a9")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

f1_score Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from allenai/bi-att-flow
pointer only · get_code("2112c433b9c6d343")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_bert_model_parameters Ran
ran; our contract draft was wrong, not the code
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("e5f44823bc5e7f55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

keep_high_prob_samples Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("71946db113d7b29a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

metric_max_over_ground_truths Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from allenai/natural-instructions-v1
pointer only · get_code("6829ceb72569fa12")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_answer Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from mrqa/MRQA-Shared-Task-2019
pointer only · get_code("c6a80c065d2e4851")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

warmup_constant Ran
ran, honoured the contract we drafted
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("e7d542062316094a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

warmup_linear Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from gcunhase/StackedDeBERT
pointer only · get_code("c58d57224530d17e")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

comb_adversarial_training_stage Not yet run
unverified (harvested, no recorded run)
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("e57c4b1183dcd6cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluation_stage Not yet run
unverified (harvested, no recorded run)
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("b0b6c98806c9fd6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_self_training_samples Not yet run
unverified (harvested, no recorded run)
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("4bdc939ce31c7cf4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

warmup_cosine Not yet run
unverified (harvested, no recorded run)
Yueeeeeeee/Self-Supervised-QA/src/run_qada.py
pointer only (licence: NONE) · get_code("35f7cddf90dd05d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yueeeeeeee/Self-Supervised-QA when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 7 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize_answer
brick of this paper's assembly: helper
133 other papers
37 dated earlier, 1 the same month, 94 later, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
exact_match_score
brick of this paper's assembly: helper
56 other papers
32 dated earlier, 24 later
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 53 more not named here
f1_score
brick of this paper's assembly: helper
41 other papers
28 dated earlier, 13 later
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 38 more not named here
warmup_constant
brick of this paper's assembly: helper
28 other papers
18 dated earlier, 9 later, 1 same year, order not determinable
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 25 more not named here
warmup_linear
brick of this paper's assembly: helper
19 other papers
17 dated earlier, 1 later, 1 same year, order not determinable
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1803.03376 (2018-03)
Learning Approximate Inference Networks for Structured Prediction
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 16 more not named here
warmup_cosine
brick of this paper's assembly: helper
17 other papers
14 dated earlier, 2 later, 1 same year, order not determinable
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 14 more not named here
metric_max_over_ground_truths
brick of this paper's assembly: helper
6 other papers
1 dated earlier, 5 later
2104.08773 (2021-04)
Cross-Task Generalization via Natural Language Crowdsourcing Instructions
2310.11511 (2023-10)
Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
2402.03216 (2024-02)
M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. In this paper, we propose a novel selfsupervised 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2210.10861")
get_code_for_paper("2210.10861")
have("2210.10861")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2210.10861.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2210.10861.svg)](https://syntology.ai/paper/2210.10861)

Connect an agent — have() is free.