Abstract
Despite the meteoric rise of massive general-purpose Large Language Models (LLMs), smaller specialized clinical models (345M–770M parameters) continue to significantly outperform their giant counterparts on tasks involving electronic health records (EHR). This paper investigates whether general-domain LLMs can effectively parse "messy" clinical data, concluding that pretraining on domain-specific clinical tokens is a critical requirement for achieving high performance and parameter efficiency in safety-critical medical environments.
Introduction: The Scaling Hypothesis vs. Clinical Reality
The AI community has recently been captivated by the "scaling hypothesis": the idea that bigger models trained on more general data can solve almost anything. LLMs like GPT-3 and ChatGPT have demonstrated surprising medical knowledge, even passing the US Medical Licensing Exam. This raises a provocative question for healthcare systems: Do we still need to invest the time and compute to build specialized clinical language models?
Clinical text is a unique beast. Unlike the polished prose of Wikipedia or PubMed, EHR notes are often ungrammatical, semi-structured, and riddled with highly specific abbreviations (e.g., "APGAR," "CTA"). This paper investigates whether general-domain LLMs can parse and reason over this data as effectively as smaller models specifically tailored for the clinical domain.
Methods and Adaptation Strategies
The authors conducted an empirical analysis of 12 language models, ranging from 220M to 175B parameters. They compared three primary strategies for adapting models to the clinical domain:
- Pretraining from Scratch: Training a model (like T5) entirely on clinical notes.
- Domain-Adaptive Pretraining (DAPT): Taking a general-purpose model and continuing its training on clinical text.
- In-Context Learning (ICL): Prompting a massive, frozen LLM (like GPT-3) with a few examples without updating any weights.
To ensure a fair comparison, the researchers trained their own Clinical-T5-Base and Clinical-T5-Large models from scratch on approximately 2 billion clinical tokens to measure "token efficiency" directly.
Datasets and Evaluation Tasks
The study utilized the MIMIC-III and MIMIC-IV databases, which contain de-identified clinical notes from millions of patient stays. Evaluation was performed on three distinct tasks:
- MedNLI: Natural language inference (determining if one clinical statement entails or contradicts another).
- RadQA: Extractive question answering based on radiology reports.
- CLIP: A multi-label classification task identifying follow-up instructions in discharge summaries.
Key Insights: Efficiency and Specialization
- Clinical Tokens are "Denser": The authors found that 1 clinical token is worth approximately 1.12 general-domain tokens. Specialized models use a clinical-specific vocabulary, reducing the need to break medical terms into many sub-word pieces.
- The "Breakeven" Point: While training a model from scratch has a high upfront cost, it pays off during inference. For a large hospital system, the authors estimate it would take about 2.5 years of running a single task to "break even" on the cost of training a specialized model versus the higher inference costs of a much larger general model.
- ICL is Not Enough: Even the 175B parameter GPT-3 struggled to match the performance of a 345M parameter specialized model. In-context learning often failed to capture the nuances of clinical reasoning, particularly in low-data settings where finetuning a small model proved far superior.
Key Results
The results demonstrate that specialization frequently trumps scale. Models like GatorTron and BioClinRoBERTa (both 345M parameters) achieved the highest performance across the board, despite being less than 0.2% the size of GPT-3.
As shown in the performance data, Clinical-T5-Large (770M) outperformed T5-XL (3B)—a model nearly four times its size—on all three clinical tasks. Specialized models reached up to 0.900 accuracy on MedNLI, while GPT-3 (ICL) trailed at 0.805. In RadQA, specialized models achieved significantly higher F1 scores than their general-purpose counterparts.
Limitations and Future Work
The study primarily focused on encoder-only or encoder-decoder models and did not extensively test newer instruction-tuned models like GPT-4. Additionally, the tasks were limited to parsing and reasoning over relatively short snippets of text; reasoning over long-form clinical narratives remains a significant challenge. Future research directions include developing instruction-tuned clinical models and evaluating performance on generative tasks like clinical note summarization.
Summary updated