TL;DR
Predicting diseases like Alzheimer’s years before diagnosis is like solving a mystery with mostly irrelevant clues: early medical records are sparse, noisy, and vague. This paper introduces On-Policy Hindsight Distillation (OPHD), a training framework that lets an LLM "peek" at intermediate follow-up patient visits during training to learn which subtle early symptoms actually mattered—without ever needing that future data when diagnosing new patients. It mimics how human doctors sharpen their intuition by watching how early patient hunches play out over time.
What Problem Does This Paper Address?
When predicting slow-moving chronic diseases far in advance from Electronic Health Records (EHRs), standard models map early clinical records directly to a final diagnosis years later. Because early signals are weak and buried under routine-care noise (like generic checkups or common comorbidities), models often latch onto stable but clinically unhelpful correlations.
Using Large Language Models (LLMs) to generate clinical rationales before predicting risk seems like a natural fix. However, the authors identify a reasoning-prediction gap: an LLM looking only at early records often writes a rationale that sounds medically plausible, yet completely misses the subtle, weak signals that actually predict future disease.
In retrospective medical datasets, we actually have intermediate "follow-up" records sitting between the early prediction cutoff and the final diagnosis. While you can't feed these future records into a model at test time (you don't have a crystal ball for new patients), ignoring them during training wastes valuable context. Yet, if you naively train an LLM to imitate explanations generated from follow-up records, you create a train-test mismatch—teaching the model to rely on future events it won't see in deployment.
Methods
OPHD bridges this gap by using intermediate follow-up EHRs strictly as training-time privileged hindsight, keeping the model's reasoning grounded in what is actually observable early on.
Here is how the three-part pipeline works (implemented with Qwen3-4B as the generator and Qwen3-0.6B as the scorer):
- On-Policy Rationale Generation: First, the trainable LLM reads only the patient's early, prediction-time EHR and generates a clinical rationale. Keeping this step "on-policy" ensures the reasoning trajectory only contains thoughts the model could realistically have at test time.
- Robust Hindsight Re-Scoring: Instead of writing a brand-new rationale using future data, a frozen copy of the LLM re-evaluates the exact same early rationale token-by-token, this time conditioned on the follow-up EHR. By measuring how much the follow-up data shifts the LLM's probability for each word, OPHD spots which early thoughts were validated by later visits. Because follow-up EHRs are also noisy, OPHD creates $K$ perturbed "views" (via random event dropout) and only trusts token shifts that have a high mean and low variance across views.
- Task-Grounded Feedback & Distillation: A separate, lightweight scorer predicts the final disease outcome using the early EHR and the generated rationale. By comparing its confidence with the rationale versus without it, OPHD calculates how much that rationale actually helped discriminate risk. This task-level weight is multiplied with the token-level hindsight weights to guide a Jensen-Shannon divergence distillation loss, nudging the generator toward early clinical insights that are both confirmed by follow-up visits and useful for prediction.
At inference time, all the hindsight machinery disappears: the LLM reads early EHRs, writes a sharper rationale, and hands it to the scorer.
Datasets
The authors construct retrospective case-control cohorts across three real-world neurodegenerative prediction tasks (using early EHRs prior to a predefined prediction cutoff, reserving intermediate records before onset exclusively for training):
- Alzheimer’s Disease (AD) and Parkinson’s Disease (PD): Built from the nationwide U.S. All of Us Research Program (OMOP common data model).
- Alzheimer’s Disease and Related Dementias (ADRD): Built from a local clinical repository standardized under the PCORnet common data model.
Key Insights and Ideas
- Don't imitate the future; let the future critique the past: When the authors tested a "Direct Imitation" baseline—where a teacher LLM writes rationales using follow-up EHRs and the student tries to copy them—performance dropped across all cohorts. Re-scoring the student's own early thoughts prevents the model from hallucinating or relying on future-only events.
- Plausibility $\neq$ Predictive Utility: Removing task-grounded scorer feedback degrades performance, and selectively dropping updates from high-scoring rationales hurts much more than dropping low-scoring ones. Hindsight shifts alone aren't enough; reasoning must be anchored to whether it actually separates cases from controls.
- A little perturbation goes a long way: Evaluating hindsight across $K=2$ perturbed follow-up views consistently hits the sweet spot—filtering out routine-care EHR noise without overly diluting the clinical signal.
Key Results
OPHD outperforms conventional EHR models (GRAPE, MUSE, foundation model MOTOR) and LLM reasoning baselines (Zero/Few-shot, Multi-sample, Best-of-K, ReConcile, DearLLM) across every cohort and metric ($p < 0.05$).
- Overall Discrimination (AUROC): OPHD achieves 0.681 on AD (vs. 0.648 for the strongest baseline, Multi-sample), 0.664 on PD (vs. 0.633 for MUSE), and 0.636 on ADRD (vs. 0.593 for Multi-sample).
- Rare-Outcome Precision & Clinical Operating Points: Because neurodegenerative diseases have low prevalence, AUPRC and sensitivity at 90% specificity (controlling false positives) are critical. At 90% specificity, OPHD boosts sensitivity to 27.4% on AD (up from 20.9%), 29.2% on PD (up from 24.7%), and 23.4% on ADRD (up from 20.7%).
- Ablations: Stripping away follow-up EHRs drops AUROC by 3.4 to 6.0 percentage points across tasks, and uniform distillation (ignoring token and scorer weights) performs even worse than using no follow-up data at all.
Limitations and Future Work
The authors note two primary limitations. First, empirical evaluation is currently restricted to neurodegenerative diseases; testing whether OPHD generalizes to faster-moving or structurally different chronic conditions remains open. Second, the LLM-generated rationales should be treated strictly as intermediate model representations rather than causal medical evidence or definitive clinical explanations—meaning any real-world clinical deployment would require rigorous validation and human oversight.
Summary updated