TL;DR
CATCH-FM is a large-scale healthcare foundation model (up to 2.4B parameters) pretrained directly on longitudinal medical code sequences to predict cancer risk before symptoms arise. Operating solely on routine electronic health records (EHRs), it catches 50–60% of first-time cancer cases at an ultra-conservative 99% specificity threshold—significantly outperforming both standard gradient-boosted trees and natural language models.
What Problem Does This Paper Address?
Early cancer detection drastically improves survival rates, but conventional screening (e.g., low-dose CT or MRI) is expensive, invasive, and rarely offered to asymptomatic populations. For silent and aggressive malignancies like pancreatic cancer, patients are often diagnosed too late, leading to median survival rates under one year.
While routine electronic health records (EHRs) contain rich historical clues, building predictive machine learning models across full patient timelines has proven difficult. Traditional models (like XGBoost) discard temporal sequence dynamics, while prior EHR foundation models were constrained in size (~100M parameters) and often failed to outperform tree-based baselines on cancer risk tasks. CATCH-FM addresses how to scale healthcare foundation models to perform effective, low-cost cancer pre-screening that identifies who should be prioritized for specialized diagnostic testing.
Methods
- Structured Code Representation: Rather than translating records into ambiguous natural language sentences, CATCH-FM treats medical codes (ICD-9 diagnoses, surgeries, medications, treatments) directly as atomic tokens from a 185,138-token vocabulary. Demographics (age, sex) and discretized elapsed-time tokens between visits preserve temporal order.
- Decoder-Only Transformer Architecture: Built upon a Pythia-style causal transformer with FlashAttention. It uses Rotary Positional Embeddings (RoPE) where all codes occurring during the same visit share identical absolute positions.
- Compute-Optimal Scaling: Using IsoFLOP profiling, the authors establish the first scaling law for EHR code foundation models ($N_{opt} \propto C^{0.34}, D_{opt} \propto C^{0.69}$), optimizing parameter count and token volume for models up to 2.4 billion parameters.
- Supervised Fine-Tuning (SFT): The pretrained base model is fine-tuned to classify whether a patient will develop a specific cancer exactly one year after their index visit (using a 5-year lookback window).
- Interpretability via Sparse Autoencoders (SAEs): A TopK SAE is trained on the final
[EOS]token representation and paired with Neuron-to-Graph (N2G) to extract clinically interpretable features.
Datasets
- NHIRD (Pretraining & In-Domain): Taiwan’s National Health Insurance Research Database, a population-scale longitudinal dataset covering >99% of Taiwan. The authors sampled ~4 million patients (1996–2013) spanning ~8 billion medical codes; 3.19 million patients were dedicated to pretraining.
- NHIRD-Cancer (New Benchmark): Clinically curated cohorts evaluating first target cancer (no prior history) and subsequent target cancer (prior history of other cancers) for pancreatic, liver, and lung cancers. Controls are matched on age, sex, index date, and lifetime record duration.
- NHIRD-Forward: An out-of-distribution temporal validation set collected from an adjacent timeline (2016–2021) to assess zero-shot robustness.
- EHRSHOT (External Benchmark): Stanford Medicine’s few-shot benchmark (6,739 patients). This provides a cross-country, cross-system transfer benchmark containing OMOP-CDM data with SNOMED, CPT, and RxNorm codes.
Key Insights and Ideas
- Medical IDs Beat Free Text: Converting codes to natural language text causes language models to severely overfit. They memorize descriptions after seeing early tokens (driving training loss to zero on the rest of the phrase) rather than learning cross-visit disease trajectories. Direct ID-token pretraining avoids this trap.
- EHR Scaling Laws Mirror LLMs: Structured clinical sequences exhibit power-law scaling similar to Chinchilla. Scaling capacity from 160M to 2.4B parameters unlocked massive performance gains, particularly on the harder task of identifying first primary cancer.
- Cross-System Generalization Despite Severe Code Loss: When evaluated on EHRSHOT's pancreatic cancer task, CATCH-FM achieved state-of-the-art few-shot performance—outperforming Stanford’s own on-site pretrained model (CLMBR)—even though cross-ontology mapping (SNOMED-to-ICD) caused over 50% of Stanford's feature data to be discarded.
- Emergent Medical Discoveries: Latent feature analysis revealed that CATCH-FM relies not only on standard markers (Type 2 diabetes, hypertension) but also captures subtle, recently recognized risk associations (e.g., hypothyroidism and the antihypertensive drug Norvasc/amlodipine in pancreatic cancer).
Key Results
- NHIRD-Cancer First-Cancer Cohort (at 99% Specificity):
- Pancreatic: 60.6% sensitivity and 61.3% AUPRC (vs. XGBoost's 31.0% sensitivity, 26.3% AUPRC).
- Liver: 53.6% sensitivity and 52.8% AUPRC (vs. XGBoost's 36.3% sensitivity, 36.2% AUPRC).
- Lung: 53.1% sensitivity and 49.6% AUPRC (vs. XGBoost's 32.3% sensitivity, 27.6% AUPRC).
- Subsequent Cancer Cohort: Sensitivity exceeded 70–80% with AUPRC reaching 79–85%.
- Top 0.1% Surveillance Triage: Simulating a real-world referral strategy where only the highest-risk 0.1% are sent for advanced screening, CATCH-FM yielded Relative Risk multipliers of 63.1× (pancreatic), 52.0× (liver), and 61.9× (lung) compared to baseline population incidence.
Limitations and Future Work
- Ontology Alignment & Information Loss: Mapping disparate vocabularies (e.g., SNOMED/RxNorm to ICD-9) loses over half of non-diagnostic clinical events. Better automated cross-ontology entity alignment remains an open challenge.
- Context Length Truncation: Patient sequences exceeding 2,048 tokens were truncated during fine-tuning.
- Clinical Integration: The study is retrospective; prospective trials and clinical workflow integration will be required to measure real-world diagnostic yield and prevent overdiagnosis.
Summary updated