arXiv:2610.39558stat.MLOct 2026

Manuscript Offprint

arXiv:2610.39558

TabCUQ: Context-Uncertainty Quantification for Tabular Foundation Models

Yuebei Shi, Molei Liu, Zijian Guo

Abstract

Tabular foundation models use in-context learning to estimate conditional expected outcomes and average treatment effects for specific groups of individuals. Using these estimates to guide scientific decisions requires reliable uncertainty quantification. The challenge is to account simultaneously for two sources of uncertainty: limited-context bias and context variation arising from the small labeled sample supplied at inference. Predictive spread does not directly quantify both sources of uncertainty, and we observe that the ordinary bootstrap may substantially overestimate context variation, whereas subsampling may underestimate it. We introduce TabCUQ, a perturbation-based framework that injects noise into observed outcomes and applies the foundation model to the perturbed contexts. TabCUQ estimates context variation using wild-bootstrap dispersion and accounts for limited-context bias using the maximum deviation between perturbed and original estimates. For a kernel-regression analogue whose estimation error admits an exact decomposition into these two components, we show that our framework provides asymptotically valid pointwise coverage. In simulations, TabCUQ substantially improves coverage, with average interval widths typically about twice those of an oracle bias-aware benchmark. Across seven real-world tasks, it also improves coverage of reference functions learned from much larger samples.

1 Introduction

Scientific decisions often depend on estimates drawn from small tabular datasets. Tabular foundation models offer a promising approach to prediction in these settings. Conventional methods, such as generalised additive models, random forests and neural networks trained from scratch, are typically fitted separately to each dataset [Hastie et al., 2009]. The foundation models studied here are neural networks trained in advance on many synthetic and real datasets. This training allows the same model to be reused for prediction tasks on new datasets. For a new task, the user supplies a small labeled dataset containing examples of features and their observed outcomes. The model takes these examples as part of its input and uses them to predict the outcome of a new observation from its features, without updating its pretrained parameters. This process is known as in-context learning. Built on this idea, tabular foundation models, including TabPFN [Hollmann et al., 2025], TabICL [Qu et al., 2025] and TabFM [Kong and Das, 2026], have demonstrated strong predictive

*Correspondence to: Molei Liu (moleiliu@bjmu.edu.cn) and Zijian Guo (zijguo@zju.edu.cn).

performance on small-data benchmarks. Their predictive success raises a question: how reliably can estimates obtained from a small labeled dataset support a scientific conclusion?

We focus on two quantities that inform scientific decisions: the conditional mean and the conditional average treatment effect. A chemist may need to determine whether the mean reaction yield under specified experimental conditions exceeds a threshold for further development. Time and material costs limit the number of experiments available to estimate this quantity [Shields et al., 2021, Hickman et al., 2022]. The average outcome across repeated experiments under those conditions is a conditional mean. A clinical researcher may instead ask whether a treatment shortens average recovery time for patients with a particular clinical profile. Their average recovery time under treatment minus their average recovery time without treatment is the conditional average treatment effect (CATE); a negative value indicates faster recovery.

We use conditional-mean estimation to explain how a foundation model produces an estimate. As illustrated in Figure 1, the foundation model takes two inputs: context and query. The context is the labeled dataset containing observed features and outcomes, and the query specifies the feature values at which the mean is to be estimated. In the chemistry example, the context contains completed experiments and their measured yields, while the query specifies the reaction conditions of interest. The model processes the context and query without updating its pretrained weights, a procedure called in-context learning. We use its point prediction as an estimator of the conditional mean. Although the prediction rule is fixed, the estimate depends on the labeled observations supplied as context.

Many synthetic datasets

Figure

Figure 1: In-context prediction with a tabular foundation model (TFM) pretrained on many synthetic datasets. The context contains observed feature–outcome pairs, while the query supplies feature values with its outcome Y left unknown. With its pretrained weights fixed, the model processes both inputs to produce a predictive distribution for Y.

We distinguish two components of context uncertainty: context variation and limited-context bias. A fresh context of the same size sampled from the target population can produce a different estimate. Each context consists of newly sampled observations, so both features and outcomes vary. We refer to this sampling variation as context variation. To understand the second component, imagine repeatedly drawing contexts of the same size and averaging the resulting estimates at a fixed query. Even after the sampling fluctuations are averaged out, the average estimate may still lie above or below the true conditional mean at that query. We refer to this systematic gap as limited-context bias. In our experiments, TabPFN frequently exhibits such bias with small contexts, analogous to the regularization bias commonly encountered in classic machine learning methods. In statistical terminology, these are the sampling variability and bias of the estimator induced by the pretrained prediction rule. The same distinction applies to a CATE estimator at a fixed clinical profile. Panel A of figure 2 illustrates both components. Both components matter when scientific decisions depend on an estimated mean or treatment effect. Sampling fluctuations or bias can make an estimate appear favorable even when the true mean yield is inadequate or the treatment benefit is negligible. A point estimate alone therefore does not establish whether the data support the scientific conclusion. We seek confidence intervals for the conditional mean or CATE. A valid confidence-interval procedure covers the fixed target with probability at least the stated confidence level over repeated contexts of the same size. Such intervals help assess whether the data support a mean yield above the development threshold or a treatment effect below zero, taking estimation uncertainty into account.

Constructing such confidence intervals requires estimating context variation and accounting for limited-context bias. Bootstrap and subsampling provide standard tools for approximating sampling distributions under appropriate conditions and are natural candidates for estimating context variation. Applying classical resampling methods to pretrained tabular foundation models raises the question of whether they accurately capture variation across the labeled contexts supplied at inference, while the pretrained network parameters remain fixed. Nevertheless, accurately estimating context variation is only part of the inferential task. In nonparametric regression, estimation bias that is non-negligible relative to the estimator's standard deviation can impair confidence-interval coverage, even when that standard deviation is accurately estimated [Wasserman, 2006, Section 5.7]. Pretraining does not itself guarantee negligible bias at the available context size. Through extensive simulation and real-world studies, we observe that the Tabular foundation models tend to suffer from an estimation bias with the limited amount of context. We therefore develop TabCUQ, a perturbation-based confidence-interval construction that accounts for both context variation and limited-context bias.

References (31)