Machine Reading Comprehension (MRC) models have achieved remarkable success on benchmark datasets like SQuAD. However, these models often struggle with domain shift—the performance drop observed when a model trained on one domain (e.g., Wikipedia) is applied to another (e.g., medical journals or web logs). Collecting large-scale annotated data for every new domain is impractical. To address this, the AdaMRC framework introduces an adversarial approach to unsupervised domain adaptation.
The AdaMRC Framework
AdaMRC (Adversarial Domain Adaptation for MRC) bridges the gap between a high-resource source domain and an unlabeled target domain through a three-stage process:
- Pseudo-Question Generation: Potential answers in the target domain are identified via Named Entity Recognition (NER). A pre-trained Question Generation (QG) model then creates synthetic questions for these answers.
- Adversarial Training: The core of the system is a shared encoder that processes both source and target data. A domain discriminator attempts to identify the origin of the feature vectors, while the encoder is trained to "fool" this discriminator.
- Domain-Invariant Learning: By optimizing the encoder to minimize answer prediction loss on the source domain while maximizing the domain classifier's loss, the model learns features that are invariant across domains.
A critical design choice in AdaMRC is the handling of noisy synthetic data. The authors found that updating the answer decoder with synthetic questions can degrade performance. Consequently, the Answer Decoder is updated only using high-quality source data, while the Encoder benefits from both source and synthetic target data to learn broader linguistic patterns.
Experimental Evaluation
The researchers evaluated AdaMRC across several diverse target datasets, including NewsQA (CNN articles), MS MARCO (web search logs), and DuoRC (movie descriptions). Using SQuAD as the source domain, AdaMRC consistently outperformed baseline models and previous augmentation-based methods like SynNet.
For instance, in the SQuAD to NewsQA transition, AdaMRC achieved an F1 score of 54.20, significantly higher than the SynNet approach (49.61). When integrated with BERT-base, the framework reached an EM/F1 of 42.59/59.25 on NewsQA, proving that adversarial adaptation complements powerful pre-trained transformers.
Visualizing Domain Alignment
The effectiveness of adversarial learning is best captured through feature visualization. Standard data augmentation methods (like SynNet) often fail to bridge the distribution gap, leaving source and target features in distinct clusters. In contrast, AdaMRC successfully aligns these distributions.
As shown in the t-SNE plots above, AdaMRC (b) creates a single, indistinguishable distribution of features, whereas SynNet (a) maintains a clear separation between the source (blue) and target (red) domains. This visual evidence supports the claim that alignment is more effective than simple augmentation for domain adaptation.
Conclusion and Future Work
AdaMRC provides a robust, model-agnostic framework for adapting MRC systems to new domains without requiring target-domain labels. While the system shows significant gains, it remains dependent on NER for answer selection and can be sensitive to the quality of synthetic questions. Future research may focus on more advanced adaptation techniques, such as Maximum Classifier Discrepancy, and improving question generation for non-entity answer types.
Summary updated