Notes on AI, bioinformatics, and drug discovery — from someone who runs the pipelines.

How Deep is the Signal? Time-Context up to 30 Years for Colorectal Cancer Prediction in a Primary-Care EHR Model

2026-11-05Dohoon (Roy) Kim

Given 1.4 billion coded events and up to 30 years of patient history, a primary-care EHR foundation model lifts colorectal cancer discrimination from an AUROC of 0.551 to 0.590 — and an XGBoost baseline converges to 0.589. The paper frames calendar lookback as a design axis for foundation models; its own numbers read more like a ceiling on what coded primary-care events can carry, whatever reads them. The abstract reports no confidence intervals, so it cannot tell the two apart.

What it changes at the bench

A working bioinformatician building EHR prediction models gets an empirical argument for choosing lookback windows (gains are mostly captured by about 10 years, plateau near 18) and a specific RoPE base-frequency concern for long time spans. Nothing changes for drug discovery or medicinal chemistry. The model's discrimination (AUROC about 0.59) is too weak for clinical deployment, so no clinical workflow changes yet.

Where this sits

Limitations

Stated: single model size (34.6M), single health system (North West London), 12-month pre-diagnostic buffer. Not addressed or not visible in the abstract: (1) the absolute effect is small (0.551 to 0.590) and no confidence intervals or DeLong tests are reported, so the 18-year plateau may be within noise; (2) the XGBoost baseline matches the transformer (0.589 vs 0.590), which suggests the signal lies in the data, not in the architecture, and undercuts the framing of a foundation-model capability; (3) the cohort requires 30 years of continuous registration, which selects for stable patients and may bias both cases and controls; (4) longer lookbacks may mainly encode age, symptoms (e.g., iron-deficiency anaemia, rectal bleeding), screening invitations and healthcare-use intensity, not an early biological signal; the paper does not separate these; (5) 'earliest predictive signal' is asked but not measured, since AUROC gain is not the same as the timing of signal onset; (6) the claim that time-context is distinct from token-context is not tested with a token-matched ablation; (7) the RoPE aliasing result is from a simulation only, and the retuned theta is not shown to improve the model; (8) no external validation, calibration, or decision-curve analysis; (9) 1,008 cases is a small event count for a 30-year lookback sweep; (10) no leakage audit on codes recorded close to diagnosis beyond the 12-month buffer.

My take

The architecture is not where this result lives.

Discrimination rises from 0.551 at two years to 0.590 at eighteen, and the XGBoost baseline peaks at 0.589. A one-thousandth gap, after 1.4 billion events and a 34.6M-parameter transformer, says the signal is in the coded data rather than in whatever reads it. That is a useful negative result and the paper deserves credit for reporting the baseline at all.

What it does not report is an error bar. The cohort is 1,008 cases against 9,582 matched controls, and the abstract gives no confidence intervals and no test for the difference between nested windows. The two headline claims — that discrimination plateaus at eighteen years, and that about 80% of the gain arrives within ten — are both statements about the shape of a curve, and on 1,008 cases a curve like that can wobble by more than the 0.039 total spread being described. The plateau is the finding. It is also the part with no uncertainty attached.

The absent comparison is specific, and it is not obscure. Kinar et al. (JAMIA 2016) reported AUC 0.82 in Israeli validation and 0.81 on UK THIN data, from complete blood counts drawn three to six months before diagnosis. QCancer (Colorectal), externally validated by Collins and Altman (BJC 2012), reached 0.92 in women and 0.91 in men. Both clear 0.590 by a wide margin, on far less data.

The difference is modality, not scale. Those models read numeric lab trends and symptoms. Whether 1.4 billion "coded events" carry lab values at all is the question a lookback sweep cannot answer — and if they do not, the binding constraint is the tokenizer, not the window.

Worth keeping: the matched-control design fixes prevalence at 9.5%, against a UK crude incidence of 66.3 per 100,000 per year, so nothing here speaks to positive predictive value at a referral threshold — which is the decision this model would have to beat, against FIT at 10 µg Hb/g. And the RoPE finding stands on its own: if rotary embeddings over elapsed time alias past about twenty years at the default base frequency, that is a concrete bug to check in any long-horizon EHR model, independent of whether the extra years buy anything.

Sources

clinicalehrfoundation-modelspreprint