[Paper Review] Unsupervised Domain Adaptation of Language Models for Reading Comprehension
This paper proposes a multi-task learning approach for unsupervised domain adaptation in reading comprehension (UDARC), where a BERT-based model is jointly fine-tuned on supervised reading comprehension data from a source domain and unlabeled passages from a target domain. The method improves question-answering performance in out-of-domain settings—achieving a 4.3/4.2 point gain in EM/F1 on a biomedical domain—without requiring any labeled target-domain data, by simultaneously preserving source-domain RC capability and acquiring target-domain language modeling knowledge.
This study tackles unsupervised domain adaptation of reading comprehension (UDARC). Reading comprehension (RC) is a task to learn the capability for question answering with textual sources. State-of-the-art models on RC still do not have general linguistic intelligence; i.e., their accuracy worsens for out-domain datasets that are not used in the training. We hypothesize that this discrepancy is caused by a lack of the language modeling (LM) capability for the out-domain. The UDARC task allows models to use supervised RC training data in the source domain and only unlabeled passages in the target domain. To solve the UDARC problem, we provide two domain adaptation models. The first one learns the out-domain LM and in-domain RC task sequentially. The second one is the proposed model that uses a multi-task learning approach of LM and RC. The models can retain both the RC capability acquired from the supervised data in the source domain and the LM capability from the unlabeled data in the target domain. We evaluated the models on UDARC with five datasets in different domains. The models outperformed the model without domain adaptation. In particular, the proposed model yielded an improvement of 4.3/4.2 points in EM/F1 in an unseen biomedical domain.
Motivation & Objective
- To address the poor generalization of state-of-the-art reading comprehension models to out-of-domain datasets due to lack of domain-specific language modeling capability.
- To enable domain adaptation in reading comprehension without requiring labeled question-answer pairs in the target domain.
- To investigate whether unsupervised pre-training on unlabeled target-domain passages can improve zero-shot performance on unseen domains.
- To develop a method that retains both source-domain reading comprehension knowledge and learns target-domain language modeling without catastrophic forgetting.
- To evaluate the effectiveness of unsupervised domain adaptation across diverse domains, especially low-resource or expert-knowledge domains.
Proposed method
- The proposed method uses multi-task learning to jointly optimize for reading comprehension (RC) on source-domain data and language modeling (LM) on unlabeled target-domain passages.
- A shared BERT backbone is fine-tuned on both tasks simultaneously, allowing knowledge transfer between RC and LM objectives.
- The model is trained with a balanced loss combining RC loss (e.g., span prediction) and masked language modeling loss on target-domain text.
- The approach avoids forgetting by jointly optimizing both tasks during fine-tuning, preserving source-domain RC performance while adapting to the target domain.
- The method is compared against a sequential adaptation baseline that first fine-tunes LM on target data, then fine-tunes RC on source data.
- The framework is evaluated across five datasets spanning different domains, including biomedical (BioASQ), news (NewsQA), and general Wikipedia (SQuAD).
Experimental results
Research questions
- RQ1Can unsupervised language modeling on unlabeled target-domain passages improve zero-shot reading comprehension performance in out-of-domain settings?
- RQ2Does multi-task learning of RC and LM prevent catastrophic forgetting of source-domain knowledge during adaptation?
- RQ3How does the performance of the proposed method vary with the number of unlabeled target-domain passages?
- RQ4What is the impact of source domain choice on adaptation performance?
- RQ5How much source-domain RC data is required to achieve strong performance in the target domain?
Key findings
- The proposed multi-task learning model achieved a 4.3/4.2 point improvement in EM/F1 when adapting from Wikipedia (SQuAD) to the biomedical domain (BioASQ), outperforming the no-adaptation baseline.
- Even with only 500 unlabeled passages in the target domain, the model achieved a 3.7/3.3 point gain in EM/F1, demonstrating effectiveness with minimal data.
- The model outperformed the sequential adaptation baseline, indicating that joint optimization prevents forgetting of source-domain knowledge.
- Performance improved with more source-domain RC data, with rapid gains up to 10,000 training instances, after which improvements slowed.
- The choice of source domain significantly affected performance: SQuAD outperformed NewsQA when adapting to BioASQ, but performance was comparable on DuoRC.
- The optimal ratio of language modeling to reading comprehension training steps (k) varied by domain, with k=10 and k=100 both showing strong results depending on the domain's distance from BERT's pre-training distribution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.