TL;DR
STRATCP is a new safety layer for medical foundation models that moves beyond "average accuracy" to provide rigorous, class-specific error guarantees. By separating predictions into an Action Arm (high-confidence, error-controlled calls) and a Deferral Arm (calibrated sets of possibilities for uncertain cases), it ensures that AI-driven clinical decisions stay within a user-defined error budget.
What Problem Does This Paper Address?
Foundation models (FMs) trained on Electronic Health Records (EHRs) are becoming powerful predictive engines for everything from diagnosing rare cancers to managing hospital bed capacity. However, "strong on average" isn't good enough for the clinic.
Standard metrics like AUROC or average accuracy can hide dangerous failures. A model might be 99% accurate on common cases but fail 50% of the time on rare, high-stakes conditions. Existing calibration techniques, like standard Conformal Prediction (CP), provide "marginal" guarantees—meaning they guarantee accuracy across the entire population. This is a problem because errors often concentrate in the most difficult or rarest classes. If a doctor only acts on the model's "confident" predictions, they need to know the error rate among those specific selections, not the population average.
Methods
The authors introduce STRATCP (Stratified Conformal Prediction), a post-hoc framework that wraps around any fixed EHR foundation model. It works via two main components:
- The Action Arm (Selection): Instead of using a simple probability threshold, STRATCP uses "conformal selection." It computes class-specific p-values for every prediction and passes them through the Benjamini–Hochberg procedure. This allows the user to set an explicit "error budget" (e.g., "I want no more than 5% false positives for this specific diagnosis").
- The Deferral Arm (Calibrated Uncertainty): If a patient isn't selected for immediate action, they aren't just rejected. STRATCP provides a prediction set—a list of possible labels (e.g., {Mild, Moderate})—with a guarantee that the true label is included in that set at a target rate (e.g., 95%).
- Utility Graphs: To make the Deferral Arm more useful, the authors incorporate "utility graphs." In tasks like disease severity, it’s more helpful to receive a set of adjacent labels (like "Mild and Moderate") than a disjointed set (like "Normal and Severe"). STRATCP uses these graphs to encourage "clinically coherent" sets without breaking the statistical guarantees.
Datasets
The framework was evaluated using the EHRSHOT benchmark, a suite designed for few-shot evaluation of EHR foundation models. They tested three distinct clinical scenarios:
- Length of Stay (LOS): Predicting if a hospital stay will exceed 7 days (Operational).
- Pancreatic Cancer: Predicting a new diagnosis within a year (Rare/High-stakes).
- Thrombocytopenia Severity: A multiclass task ranging from "Normal" to "Severe" platelet counts (Laboratory/Ordinal).
The underlying model used was CLMBR-T-base, a 141-million parameter autoregressive foundation model trained on longitudinal EHR data.
Key Insights and Ideas
- Stratification is Non-Negotiable: The "aha moment" here is that marginal guarantees are a false security in medicine. By stratifying by predicted class, STRATCP reveals that standard methods often fail catastrophically on rare classes (like pancreatic cancer) while appearing safe on average.
- Selection-Conditional Validity: Most conformal methods lose their guarantees once you start "cherry-picking" which patients to act on. STRATCP uses a "swap-based" calibration technique to ensure the math holds up even after the model has decided to defer some patients.
- Math Meets Medicine: The use of utility graphs shows that statistical rigor doesn't have to result in "unactionable" outputs. You can optimize for clinical logic (consecutive severity levels) while maintaining the same mathematical safety bounds.
Key Results
- Superior Error Control: In the pancreatic cancer task, at a 10% target error rate ($\alpha=0.10$), standard Conformal Prediction actually had a selected coverage of only ~10% for the positive class (meaning 90% of its "actions" were wrong). STRATCP maintained >99% coverage by correctly identifying which cases were too uncertain to act upon.
- Efficiency on Common Classes: While STRATCP is cautious on rare classes, it remains efficient on common ones. For "Short Length of Stay," it selected nearly 2.5x more patients for action than standard CP while still meeting the safety target.
- Coherent Deferrals: For thrombocytopenia, the utility-enhanced version produced "consecutive" prediction sets (e.g., {Mild, Moderate}) nearly 100% of the time for sets of size 2 and 3, whereas standard methods often returned non-adjacent, confusing sets.
Limitations and Future Work
- Data Requirements: As a stratified method, STRATCP requires a sufficient amount of labeled calibration data for each class. This can be a hurdle for ultra-rare "orphan" diseases.
- Post-hoc Limitation: STRATCP is a "wrapper." It can tell you when a model is unreliable, but it cannot improve the underlying model's predictive power. If the base model is poor, STRATCP will simply defer almost everyone.
- Exchangeability: Like all conformal methods, it assumes that the "calibration" patients are representative of future "test" patients. If the hospital's patient population shifts significantly (data drift), the guarantees may weaken.
Future work could involve extending this to "long-form" generative outputs or integrating it directly into the training process of foundation models.
Summary updated