Manuscript Offprint

arXiv:2610.39065

Tabular foundation models are not a shortcut to calibrated clinical risk prediction: a pre-registered simulation against the true risk

Ebrahim Khaled Ebrahim

Abstract

Tabular foundation models are pretrained networks that predict risk from a table without fitting a model. Whether their risks are correct (calibrated) has been judged on real data, where true risk is unknown. In a pre-registered simulation with known true risks, we compared TabPFN-3.5, TabICLv2 and Mitra-v2 with Firth logistic regression with intercept correction (FLIC) in 58 scenarios and 1,000 random designs, then on four clinical data sets. Foundation models were not a shortcut to calibration. Their calibration slope matched FLIC's within the pre-registered margin in 36 or 37 of 48 core scenarios and was better only at n=200n = 200 with a 3% event rate. Even 3,000 patients were often not enough: with FLIC, TabPFN-3.5 or Mitra-v2, 63%-83% of samples gave risks close to the truth in average, intercept and slope at event rates of 10% and 30%, and 35%-50% at 3%. TabICLv2 did worse (8%-39% and 1%-3%). Across the random designs, foundation models had a lower true calibration error than FLIC beyond the margin in 25%-38% and a higher one in none, though small losses were predicted at n=3000n = 3000. On real data, no model resisted a change in event rate between populations; recalibration on 500 local patients largely repaired it.

Keywords: calibration, tabular foundation models, clinical prediction models, sample size, goodness-of-fit tests, pre-registration

1 Introduction

A clinical prediction model turns a patient's characteristics into a probability of an outcome, such as death within 28 days, on which treatment decisions may rest. The probability itself must then be right, not only the ranking of patients. A model is well calibrated when its predicted risks agree with the actual risks: among patients given a risk of 20%, about 20% have the event[1]. A poorly calibrated model can mislead even when it ranks patients well, because it overstates or understates the risk on which a decision rests[1]. Reporting guidance therefore asks every clinical prediction model to report its calibration[2, 3].

Tabular foundation models (TFMs) offer a new way to build such a model. A TFM is a large neural network (a transformer) pretrained on millions of simulated data tables. It reads the development data as a prompt and returns a risk for each new patient in one pass, without fitting parameters to those data. TabPFN was the first widely used TFM[4, 5]. Its newest version, TabPFN-3.5[6], and two other current models rank at or near the top of public benchmarks of prediction on tables[7, 8]: TabICLv2, an open model designed to scale to large tables[9, 10], and Mitra-v2, pretrained on a mixture of synthetic data generators[11, 12]. They need no tuning and do well on small samples, which suits clinical prediction. A systematic review found that earlier machine-learning methods gave no performance benefit over logistic regression for clinical prediction[13], but early clinical studies of TabPFN have reported discrimination equal to or better than that of logistic regression and gradient boosting[14–16].

Whether TFM risks are calibrated is harder to answer. On real data the true risk of a patient is unknown; only the outcome, 0 or 1, is observed. Calibration must then be estimated by grouping or smoothing the outcomes against the predictions, and these estimates are noisy. The expected calibration error (ECE), common in machine learning, averages the gap between predicted and observed risk over bins of predictions and is biased in finite samples[17]. The integrated calibration index (ICI), common in medical statistics, is the mean absolute gap between each prediction and a smoothed curve of the outcomes[18]; it needs a large validation sample to be precise[19]. Calibration also depends on the development sample: a model developed on few patients tends to give risks that are too extreme[20, 21].

The evaluations of TFM calibration we found all used real data. Clinical studies reported the Brier score or calibration plots; they found TabPFN well calibrated in some settings[14, 15] and less so when the outcome was rare[22]. Machine-learning benchmarks reported the ECE, the log-loss or the coverage of prediction sets. They found that the TFMs with the best discrimination were not always the most reliable[23, 24], that TabPFN ranked well on the ECE when applied to embeddings of images, text and audio[25], and that recalibration after fitting can improve the probabilities of many classifiers, TFMs included[26]. To our knowledge, none of these studies compared predictions with the true risk, none registered its analysis in advance, and none asked how large a development sample a TFM needs to be calibrated, the question that sample-size rules answer for regression models[20].

We evaluate the calibration of TabPFN-3.5, TabICLv2 and Mitra-v2 in a pre-registered simulation study in which the true risk of every patient is known, so each prediction is compared with the true risk rather than with a noisy outcome. We compare the TFMs with five established methods. Maximum-likelihood logistic regression is the standard model. Firth logistic regression with intercept correction (FLIC), the reference, is a penalized logistic regression that stays stable with few events and makes the mean predicted risk equal the observed event rate[27]. Ridge logistic regression shrinks the coefficients towards zero[28]. A generalized additive model gives each continuous predictor a smooth non-linear effect[29]. LightGBM is an ensemble of boosted decision trees[30], whose scores we recalibrate by Platt scaling, a logistic regression of the outcome on the scores. The protocol, including every rule that turns an estimate into a verdict, was registered before the main run[31]. Beyond a grid of 58 scenarios, 1,000 randomly drawn designs test whether the conclusions depend on the scenarios chosen, and four real clinical data sets, with a plasmode tier that places a known true risk on real patients' characteristics, give an exploratory check in real data.

We ask six questions: (Q1) how far from 1 each TFM's calibration slope lies at small development sizes, and in which direction (too extreme or too modest risks); (Q2) what development size each TFM needs to be calibrated, compared with FLIC; (Q3) how far the overall level of predicted risk is from the true level (calibration-in-the-large) when events are rare; (Q4) whether goodness-of-fit tests keep their nominal false-positive rate on TFM predictions, and how often they detect miscalibration; (Q5) how well recalibration on a small local sample repairs each TFM, and whether a test-guided rule picks the right cases; and (Q6) whether the findings from the fixed scenarios carry over to randomly drawn designs.

References (73)