Hospitals routinely want to predict a new clinical outcome for which they have only a few hundred labeled patients. The usual remedy is to use a text model pretrained on medical writing, such as a "domain-specific" language model trained on clinical or biomedical text instead of general web text, fuse it with vital signs, and fine-tune. The same hospital, however, already holds millions of free labels for other outcomes: billing diagnosis codes, length of stay, discharge timing, acuity. This note proposes using those free labels to adapt the note-reading part of the model. We would jointly train a small set of trainable weights inside a general-purpose text encoder, together with a vitals encoder, on many such auxiliary outcomes. We then ask whether this cheap supervised adaptation recovers what medical-text pretraining provides when the target task has very few labels.
The question matters because the evidence currently points in opposite directions. Work on domain pretraining argues that general corpora dilute specialized vocabulary. Yet the largest public multimodal benchmark found a general web-scale text embedding matching a radiology-specific one once notes are fused with vitals and images. That benchmark used the full data, and every multimodal pretraining system in this space freezes its text encoder. Nobody has tested whether multi-task supervision from the hospital's own records is the missing ingredient that closes or opens the gap in the regime where it actually matters: 1–10% labeled data.
Core Claim
When the target task is scarce, most of the advantage of a domain-pretrained text encoder in a fused notes-plus-vitals model can be matched by a general encoder. That general encoder would carry a small trainable adapter, a low-rank set of extra weights inserted into a frozen network. The adapter is trained on leave-target-out multi-task supervision derived from the same health record, with gradients flowing jointly through the text and vitals branches. Whatever gap remains should concentrate in notes written in terse bedside charting style, which BioBART identified as distinct from published biomedical prose.
If the claim is false, domain pretraining keeps a clear lead at every data level even after multi-task adaptation. That outcome is equally useful, because it would say that vocabulary learned from unlabeled clinical text cannot be bought with supervision.
Positioning
Three lines of work motivate the proposal.
A Comprehensive Evaluation of Multi-task Learning and Multi-task Pre-training on EHR Time-series Data shows two things on MIMIC-III vitals and labs. Joint multi-task training suffers negative transfer, meaning tasks hurt each other. In contrast, pretraining on source tasks and then fine-tuning on a held-out target gains up to roughly 25% AUROC at 1% data. Its inputs are structured only, with no notes and no language model. We take its leave-target-out protocol directly and extend it to the text branch.
Hierarchical Pretraining on Multimodal Electronic Health Records (MEDHMP) pretrains notes, codes, and vitals with self-supervised objectives and matches full-data baselines using 10% of labels. It keeps its ClinicalT5 text encoder frozen for compute reasons and uses no supervised multi-task signal. We unfreeze the text path cheaply and replace or augment self-supervision with auxiliary labels.
Benchmarking Foundation Models with Multimodal Public Electronic Health Records finds that general and domain text encoders perform comparably under concatenation plus a linear classifier on MIMIC-IV. It does not study scarcity or multi-task training. That paper supplies our strongest baseline and our cohort.
Two lines of work constrain the design. Domain-pretraining evidence such as BioBART, BERTHop, and the "drowning effect" study of Durrani et al. predicts that domain encoders should win. BioBART specifically reports a drop when moving from PubMed to clinical dialogue, which motivates our charting-style analysis. Männistö reports that in code generation, domain pretraining predicts downstream performance better than the choice of parameter-efficient fine-tuning. That is a direct prior against our claim, and we treat it as the hypothesis to beat rather than ignore.
Situ et al. supplies the mechanistic argument that co-adapting auxiliary encoders outperform frozen ones. RotoGrad supplies an optional tool for gradient conflict. RotoGrad reweights task gradients toward slower-learning tasks and rotates the shared features per task to reduce directional conflict. We use it only as an ablation, because McDermott et al. already showed that pretrain-then-fine-tune sidesteps most negative transfer.
Research Program
The model has three parts:
- a text encoder over radiology and nursing notes from the first 24 hours of the stay;
- a recurrent encoder over hourly vitals and demographics;
- a cross-attention fusion layer that lets each modality attend to the other.
The text encoder is either general or domain-pretrained. Its weights stay frozen apart from a low-rank adapter.
Pretraining uses $K$ source tasks derived from every stay in the cohort except the target task's held-out patients. The source tasks are ICD chapter phenotypes, imminent discharge, length-of-stay bins, procedure sequences, and final acuity, following the task design of McDermott et al. The objective is
$$ \mathcal{L} = \sum_{k=1}^{K} w_k \, \ell_k\big(h_k(f_\theta(x_{\text{notes}}, x_{\text{vitals}})), y_k\big), $$
where $f_\theta$ is the fused encoder, including the text adapter. Here $h_k$ is a small head for task $k$, $\ell_k$ is its loss, $y_k$ its label, and $w_k$ a task weight. The weights are fixed to uniform by default and set by RotoGrad's magnitude rule in the ablation.
The target task is never among the source tasks. After pretraining, we fine-tune the full model on 1%, 5%, 10%, or 100% of the target labels.
The analysis has two parts. First, we decompose the gain by data level and by note style. To score note style, we compute subword fragmentation and the abbreviation rate of each note under each tokenizer, then bucket test patients by that score. Second, we test whether the adapter moves the text representations of charting abbreviations toward their expanded clinical meanings. We do this with nearest-neighbor probes before and after adaptation.
Baselines
The naive reference is a vitals-plus-demographics recurrent model trained only on the scarce target labels. It tells us how much any use of notes is worth at each data level.
The strongest existing method is the modular late-fusion recipe of Benchmarking Foundation Models: frozen text-embedding-3-large note embeddings concatenated with a recurrent vitals encoder and fed to a logistic classifier. On the full MIMIC-IV cohort it reports AUROC 0.8532 for length of stay over three days (with the vitals encoder) and AUROC 0.8918 for in-hospital mortality (with a Swin image encoder). We rerun it on our exact splits and subsamples, tuning the regularization strength with the same budget as our model. Beating it means a statistically significant AUROC and AUPR gain at 1% and 5% data, with confidence intervals from patient-level bootstrap over at least five subsample seeds. At 100% we expect parity.
The second strong competitor is a MEDHMP-style model: self-supervised multimodal pretraining with a frozen ClinicalT5 encoder, then single-task fine-tuning. The file reports only relative gains for MEDHMP: 10% data matching full-data baselines, and +7% AUROC on readmission. There is no reported absolute result on Lacuna for MEDHMP on the MIMIC-IV mortality or length-of-stay cohort, so we reimplement it with matched pretraining compute.
The third is McDermott-style multi-task pretraining applied to the vitals branch only, with a frozen text encoder. For that paper the file gives only the relative figure of up to approximately 25% AUROC at 1% data; no absolute number is reported on Lacuna for a notes-inclusive setting.
The domain arm pairs the same pipeline with RadBERT, and separately with ClinicalT5, each with and without multi-task adapter training. All arms share pretraining tokens, GPU-hours, and a fixed hyperparameter search budget.
Several ablations isolate the key ingredient, which is supervised gradient flow into the text path:
- multi-task pretraining with the adapter frozen;
- adapter trained on a single source task;
- adapter trained with self-supervised contrastive alignment between notes and codes instead of labels;
- uniform task weights versus RotoGrad weighting.
Why not just…?
Why not just use frozen general embeddings with a linear classifier? This is the real threat. The benchmark shows it is strong at full data, and with a linear head it may overfit little even at 1%. Our main comparison settles the question directly at each data level. If frozen embeddings tie our model at 1% and 5%, we will report that supervised adaptation adds nothing. That would itself resolve the scale-versus-domain question in the scarce regime, because the RadBERT arm runs in the same grid.
Why not just continue pretraining a clinical language model on MIMIC notes? That is the classic domain-pretraining answer, and Männistö's results favor it. We include it as the domain arm, using RadBERT and ClinicalT5. The question becomes whether multi-task adaptation of a general encoder reaches it, and whether adding multi-task adaptation on top of the domain encoder adds further gains. If domain encoders win specifically on high-fragmentation charting notes, that confirms BioBART's clinical-gap account and bounds our claim.
Why not just fix negative transfer with joint multi-task training plus gradient homogenization? McDermott et al. already found that pretrain-then-fine-tune removes most negative transfer without new machinery, and RotoGrad was validated only on vision benchmarks. We therefore keep RotoGrad as an ablation of the task weighting. If it matters only in joint training and not in pretraining, we will say so.
Why not just train a small model on the target labels alone? The sepsis triage study of Horng et al. shows how strong a bag-of-words linear model on notes can be: triage AUC rose from 0.67 with vitals alone to 0.86 with notes. We include a bag-of-words logistic model as an extra reference at every data level.
Proposed Experiments
The primary cohort is the MIMIC-IV v2.2 benchmark cohort of 73,181 ICU stays, using first-24-hour vitals, demographics, and radiology reports. Chest images are excluded from the main grid to keep the comparison about text, and added only in a secondary run. Target tasks are in-hospital mortality and length of stay over three days, both matching the benchmark, plus 30-day readmission following MEDHMP. We also add a deliberately rare held-out ICD phenotype to stress scarcity.
A replication on MIMIC-III adds nursing notes and McDermott's task suite, including Future Treatment Sequence and Final Acuity as source tasks.
Metrics are AUROC and AUPR, plus equalized-odds gaps across sex and race. McDermott et al. found that multi-task pretraining did not reduce sex disparities, so we test whether adding notes changes that.
Three checks are decisive.
The first decides the core claim. We look for a significant gain of general-encoder-plus-multi-task-adapter over frozen general embeddings at 1% and 5% data. We also look for that gain closing at least half of any gap to the domain encoder.
The second asks whether the adapter-frozen ablation loses most of the gain. If it does, the benefit comes from co-adapting the text branch rather than from better vitals representations.
The third asks whether the residual domain advantage concentrates in the high-fragmentation note bucket. If it does, we learn where supervision cannot substitute for clinical-text pretraining.
A negative result on the first check, with the third holding, would still give a clean recommendation for low-label clinical prediction: pay for domain pretraining only when notes are written in terse charting style.
References
- A Comprehensive Evaluation of Multi-task Learning and Multi-task Pre-training on EHR Time-series Data
- Hierarchical Pretraining on Multimodal Electronic Health Records
- Benchmarking Foundation Models with Multimodal Public Electronic Health Records
- BioBART: Pretraining and Evaluation of A Biomedical Generative Language Model
- BERTHop: An Effective Vision-and-Language Model for Chest X-ray Disease Diagnosis
- A Deep Fusion Model for Domain Adaptation in Phrase-based MT
- A Comparative Study of PEFT Methods for Python Code Generation
- Assisting Main Task Learning by Heterogeneous Auxiliary Tasks with Applications to Skin Cancer Screening
- RotoGrad: Gradient Homogenization in Multi-Task Learning
- Creating an automated trigger for sepsis clinical decision support at emergency department triage using machine learning