Abstract
Building effective Question Answering (QA) systems for specialized fields—such as medicine or cinema—is often hindered by a lack of labeled domain-specific question-answer pairs. This paper introduces T+DAPT (Task and Domain Adaptive Pretraining), a method designed to bridge the "task gap" and "domain gap" in zero-shot settings. By sequentially fine-tuning a model on domain-specific Named Entity Recognition (NER) and then on generic QA data, the authors demonstrate that the structural similarity between NER and extractive QA can be leveraged to improve performance in niche domains. T+DAPT outperforms standard domain adaptation techniques in three out of four tested domains.
Introduction
Large language models like RoBERTa are incredibly powerful but "data hungry," typically requiring thousands of labeled examples to perform well on specific tasks. In the real world, researchers often face a "cold start" problem: they may have generic QA data (e.g., SQuAD) and domain-specific data for other tasks (e.g., identifying names of chemicals), but no domain-specific QA labels. This study asks: Can we use "easy-to-find" labels like NER from a specific domain to help a model answer questions in that same domain, even if it has never seen a domain-specific question before?
Methodology
The researchers propose a sequential training pipeline called T+DAPT. They compare three primary approaches to evaluate the effectiveness of task transfer:
- RoBERTa Baseline: A model fine-tuned only on generic SQuAD data.
- Domain-Adaptive Pretraining (DAPT): A standard approach where the model is first trained on a massive amount of unlabeled text from the target domain using language modeling, then fine-tuned on SQuAD.
- T+DAPT (Proposed): The model is first fine-tuned on supervised NER data from the target domain, followed by fine-tuning on generic SQuAD data.
The intuition behind T+DAPT is that NER and QA share a "functional similarity." Both tasks require the model to identify and extract specific spans of text from a larger context. By learning to find domain-specific entities first, the model develops a "vocabulary" and "attention" for that domain before learning the logic of question answering.
Experimental Setup
The performance of T+DAPT was evaluated across four distinct domains using the following datasets:
- Movies: Evaluated on MoviesQA; adapted using the MIT Movie Corpus (NER).
- News: Evaluated on NewsQA; adapted using CoNLL 2003 (NER).
- Biomedical: Evaluated on BioQA; adapted using NCBI-Disease (NER).
- COVID-19: Evaluated on CovidQA; adapted using COVID-NER.
All models used SQuAD v1.1 for generic QA training.
Results and Discussion
The T+DAPT approach proved robust, outperforming the baseline in 3 out of 4 domains.
Key Findings
- NER as a "Warm-up" for QA: Supervised training on a simpler task (NER) was often more effective for domain adaptation than unsupervised training on a complex one (Language Modeling). In the MoviesQA domain, T+DAPT achieved an F1 score of 68.0, beating the baseline (67.1) and DAPT (60.7). In BioQA, T+DAPT reached 58.9 F1, surpassing both the baseline and DAPT.
- The News Domain Exception: The method did not provide gains in the News domain. The authors hypothesize that because RoBERTa was originally pretrained on Wikipedia and books, it already had high vocabulary overlap with news. Further adaptation likely led to catastrophic forgetting, where the model lost general knowledge while trying to learn redundant nuances.
- COVID-19 Performance: This was the only domain where unsupervised DAPT performed best (47.2 F1). The authors suggest this is because the DAPT language modeling corpus was nearly identical to the evaluation dataset. However, T+DAPT still outperformed the SQuAD-only baseline (42.7 vs 42.0).
- Task Sequence: The order of training matters. Results indicate that training on NER before QA is superior to the reverse, as the model needs to learn the "what" (domain entities) before the "how" (answering logic).
Conclusion and Future Work
While T+DAPT shows promise, sequential training remains a "leaky" process subject to catastrophic forgetting. Future work could explore using Natural Language Inference (NLI) or Sentiment Analysis as bridge tasks. The study concludes that for researchers in low-resource domains, looking for "adjacent" labeled data like NER is a highly effective strategy for boosting zero-shot performance.
Summary updated