Introduction
Large Language Models (LLMs) demonstrate remarkable versatility across general-purpose tasks but often struggle in highly specialized, high-stakes domains such as medicine or law. Achieving high performance in these fields typically requires two distinct types of knowledge: general task logic (e.g., understanding logical entailment) and domain-specific vocabulary (e.g., recognizing medical terminology). Traditionally, this gap is bridged via fine-tuning on labeled domain data, which is prohibitively expensive in expert fields.
This paper introduces DOT5 (Domain Compositional ZerO-shot T5), a framework designed to master specialized domains without requiring labeled examples from the target field. By leveraging a compositional approach that jointly learns task mechanics and domain language, DOT5 achieves state-of-the-art (SOTA) results in radiology inference.
Methodology: The DOT5 Framework
DOT5 is built upon the T5 (Text-to-Text Transfer Transformer) architecture. Its core innovation lies in "compositional" training, which fuses three distinct learning streams into a single multi-task phase:
- In-domain Masked Language Modeling (MLM): The model learns the linguistic nuances of the target domain (e.g., radiology reports from MIMIC-CXR) by predicting masked tokens in unlabelled text.
- Natural Language Generation and Understanding (NLGU): Unlike standard models that only perform classification (NLU), DOT5 is trained to generate data given a label (NLG). For instance, it might be tasked to "Generate an entailed sentence of: [Premise]." This dual training increases the model's sensitivity to label nuances.
- Self-Finetuning: Utilizing its NLG capabilities, the model generates a synthetic "pseudo-labeled" dataset within the target domain. It then fine-tunes itself on this synthetic data, bridging the gap between general task logic and specific domain content.
Crucially, DOT5 employs simultaneous multi-tasking rather than sequential training. This prevents the "catastrophic forgetting" often observed when a model is trained on a general task and then shifted to a specific domain.
Experimental Setup
The researchers evaluated DOT5 using a combination of general and specialized datasets:
- General Tasks: SNLI, MultiNLI, and AdversarialNLI for inference; Gigaword for summarization.
- Unlabelled Domain Data: 227k radiology reports (MIMIC-CXR) and 4.2M biomedical abstracts (PubMed).
- Benchmarks: RadNLI (Radiology NLI), MedNLI (Biomedical NLI), Open-I (Radiology Summarization), and MedSTS (Clinical Similarity).
Key Results and Insights
State-of-the-Art Performance
DOT5 achieved a significant breakthrough on the RadNLI benchmark, reaching 82.1% accuracy. This represents a substantial improvement over the previous SOTA of 65.2% (CXR-BERT) and outperforms sequential T5 baselines by nearly 4 percentage points.
Factuality in Summarization
In radiology report summarization (Open-I), DOT5 surpassed significantly larger models, including GPT-3, in domain-specific factuality metrics such as NEM and CheXbert. This suggests that domain-specific training is more critical for accuracy in specialized fields than raw parameter count.
The "Compositional" Advantage
The success of DOT5 stems from its ability to "compose" independent facts. It learns logical structures (e.g., "no" indicates contradiction) from general data and terminological relationships (e.g., "osseous" is synonymous with "bony") from unlabelled medical text. By combining these, it can solve complex medical inference problems without ever seeing a labeled medical example. Manual audits confirmed that DOT5 specifically excels in cases requiring medical knowledge, such as associating "cardiac silhouette" with "heart size."
Limitations and Future Work
While effective, the current NLGU framework is optimized for pairwise text tasks (e.g., premise/hypothesis). Extending this to single-sentence classification remains a challenge. Additionally, the balance between MLM and task loss was fixed at a proof-of-concept level; further optimization of this hyperparameter could yield additional gains. Future research will also investigate whether "medicalizing" a model leads to performance degradation in general-domain tasks, exploring how to maintain generalist capabilities while gaining specialist expertise.
Summary updated