WorksMathematics
Predictive-Context LOO: Bayesian Model Comparison with Pretrained Predictive Learners
Abstract
Leave-one-out (LOO) cross-validation, a standard tool for Bayesian model assessment, evaluates each observation using a LOO predictive distribution derived from the model itself. In this work, we introduce an alternative construction in which posterior predictive simulation connects the Bayesian model to an external pretrained predictive learner. Our method, Predictive-Context LOO (PC-LOO), fits a Bayesian model once, generates posterior-predictive synthetic data, and uses them as context for the learner to approximate each LOO predictive density. Under an oracle construction, averaging contexts generated from the LOO posterior recovers the exact LOO predictive density. Practical PC-LOO replaces the oracle predictor by the pretrained learner and the LOO posterior by the full posterior. We quantify these errors through learner compatibility and deletion influence , obtaining . The identity also holds for any fixed subset of context points, allowing as the learner's context budget, and scalability to large datasets. Experiments with TabICL support this decomposition, deletion influence decays approximately as , while learner compatibility can remain limiting at large . PC-LOO remains accurate with reduced context sizes, while model comparison accuracy is governed by differences in approximation error across models rather than their absolute errors. More broadly, PC-LOO establishes posterior predictive simulation as a principled interface for integrating pretrained predictive learners into Bayesian workflows.
Introduction
Leave-one-out (LOO) cross-validation is a standard tool for Bayesian model comparison [3, 14]. For observations , LOO evaluates each model through the predictive distributions , where denotes the data with observation removed. Traditionally, both exact LOO and its approximations [15] construct the LOO predictive distribution from the Bayesian model itself, by first correcting posterior deviations in the parameter space, due to leaving a datum out, and then propagating the uncertainty into the predictive space. In this work, we propose a new perspective to Bayesian model assessment by directly targeting the predictive space through synthetic data. We represent the Bayesian model’s predictive information through synthetic data and transfer it, as predictive context, to an external pretrained predictive learner to approximate LOO predictive distributions.
More broadly, this predictive space view only requires a synthetic predictive context and a corresponding prediction task, and its construction is readily extensible. As predictive learners evolve [11, 8] and become more diverse the same framework will accommodate structured, dependent, and joint prediction problems, including leave-group-out, block or cluster, causal prediction, without redesigning the underlying methodology for each setting; while importance sampling approaches may require problem-specific derivations.
Posterior predictive simulation provides a natural interface for this transfer by representing a fitted Bayesian model through synthetic data. Pretrained predictive learners, benefiting from in-context learning [2], can then use such labeled data as context to form predictive distributions without refitting. Examples include TabPFN and TabICL in tabular data, [4] (Qu et al. 2025), TimePFN for times series [12], SurvPFN for survival data [1], and CausalFM in causal inference settings (Ma et al., 2026), just to cite a few.
Related simulation based approaches amortize Bayesian model comparison by training neural networks to estimate model probabilities or Bayes factors directly [10, 5]. Here, instead of training a model-specific comparison network, we use posterior predictive data to communicate a fitted Bayesian model to an external pretrained predictive learner, motivating Predictive-Context LOO (PC-LOO).
More specifically, PC-LOO fits the Bayesian model once to the full dataset and generates posterior predictive replicates . For a target observation , is supplied as context to the predictive learner with as query point. Averaging the resulting predictive distributions over replicated contexts defines the PC-LOO approximation to . Importantly, observed responses are only used to evaluate the predictive distribution, never as learner context.
This raises two statistical questions. First, does averaging predictions over posterior predictive contexts recover the Bayesian predictive distribution exactly? Second, practical PC-LOO replaces the oracle conditional predictor by a pretrained learner and the LOO posterior by the full posterior . How do these substitutions affect the LOO approximation?
The first question has an exact answer: when synthetic contexts are generated from the LOO posterior and predictions use the corresponding Bayesian conditional predictor, averaging over contexts recovers the exact LOO predictive distribution. Thus, the predictive-context representation itself introduces no approximation error. For the second question, we characterize the two departures of practical PC-LOO from this construction by learner compatibility and deletion influence , and show that they jointly control the finite-sample approximation error.
The exact representation also holds for any fixed context subset of size , separating the Bayesian model’s data size from the learner’s context budget ; thus, introduces no oracle subsampling bias. In practical PC-LOO, its effect enters through the learner’s ability to recover predictive structure from a smaller context, and provides a complementary approach to existing subsampling LOO methods for large-data [7].
For model comparison, the relevant quantity is differential rather than absolute approximation error: the error in a PC-LOO score difference is the difference between the approximation errors of the competing models. Thus, PC-LOO may preserve model comparisons even when individual LOO predictions are approximate.
We organize our empirical study around the theory rather than providing a broad predictive benchmark. Controlled Gaussian experiments examine the exact representation, learner compatibility, deletion influence, context size, and model comparison; real tabular problems study context scaling, large- behavior, and accuracy relative to exact and approximate LOO.
Our contributions are:
We introduce a predictive-context representation of Bayesian prediction through posterior predictive simulation and prove its exactness under the corresponding oracle predictor.
We characterize practical PC-LOO through learner compatibility and deletion influence , derive a finite-sample error bound, show that under regular fixed-dimensional conditions, and establish consistency when the learner is predictively consistent as its context grows.
We show that PC-LOO model comparison depends on differential rather than absolute approximation error, and empirically evaluate the theory using controlled Gaussian experiments and TabICL on tabular problems.
Bayesian LOO and notation
Let denote observations from a Bayesian conditional model with prior . We write
for the full-data and leave-one-out posteriors, where . The LOO predictive distribution for observation is
with pointwise log predictive, and corresponding expected log predictive
For models and , define
Exact LOO requires the posteriors , but Pareto Smooth Importance Sampling (PSIS-LOO) [15] instead uses importance sampling from , with raw ratios
and Pareto-smooths their upper tail; the fitted shape parameter provides a diagnostic of importance-sampling reliability.
Predictive-context Leave-One-Out
In this section, we formalize the predictive-context mechanism underlying PC-LOO, illustrated in Figure 1. Here, the construction is defined for a generic parameter distribution and predictive learner, allowing us to separate the exact representation induced by synthetic contexts from the approximations introduced in practical PC-LOO.

Figure 1. PC-LOO workflow. The Bayesian model is fitted once to the full data. For target observation , draws from the full posterior generate synthetic response contexts on . A predictive learner predicts at from each context, and the resulting densities are averaged and evaluated at . The approximation to exact LOO arises from using the full rather than LOO posterior and from replacing the oracle conditional predictor by .
Bayesian predictives and synthetic contexts
Definition 1 (Predictive learner). Let and denote the covariate and response spaces, and the class of densities on with respect to a fixed dominating measure. A predictive learner is a mapping
For a query and finite context , denote the resulting predictive density by .
For any parameter density , define
In particular, gives the exact LOO predictive , while is available from the full-data fit.
Definition 2 (Synthetic predictive context). Fix a target , context indices
and parameter density . Generate
conditionally independently given . The resulting synthetic predictive context is
Thus, the learner receives only model-generated responses as context, never the observed responses in .
Predictive distributions induced by synthetic contexts
For fixed , , and , the construction above induces the joint density
where , with context marginal
The conditional predictive density induced by this synthetic-data experiment is
whenever . We refer to as the oracle predictive-context density.
The synthetic responses in the context provide information about the common parameter . The oracle predictor updates using this synthetic context and then forms the Bayesian predictive density at . The external learner is asked to solve the same predictive task from alone, without direct access to , , or the Bayesian model.
Exact predictive-context identity
Conditioning on a synthetic context generally changes the predictive distribution at , because the context carries information about the parameter draw used to generate it. However, averaging the oracle conditional predictive density over the distribution of synthetic contexts recovers the original predictive density induced by .
Theorem 1 (Predictive-context identity). Fix a target index , a context index set , and a parameter density . Then
The identity follows directly by marginalizing the joint synthetic-data density over the context responses. Thus, synthetic contexts does not alter the marginal predictive, i.e. introduce no approximation error under the oracle predictor.
When is the LOO posterior, Theorem 1 gives exact LOO prediction.
Corollary 1 (LOO predictive-context identity). Let . For any fixed ,
Practical PC-LOO
Remark 1 (Context budget). The identity holds for every fixed , so the oracle representation does not require all non-held-out observations. Thus, the context size can be chosen as a learner context budget, independently of the sample size used to construct . If is sampled independently of the synthetic responses, the identity also holds after averaging over the distribution of .
Practical PC-LOO makes two substitutions: it generates contexts from the available full posterior rather than , and replaces the oracle predictor by the external learner .
For a parameter density , synthetic context , and learner’s conditional density , define the corresponding population predictive-context density by
When the learner is fixed, we suppress it from the notation and write .
Definition 3 (Population PC-LOO predictive density). Using the full posterior density , we define the population PC-LOO predictive density as
To approximate (4), we generate independent synthetic contexts under , , and we define the PC-LOO estimator
The pointwise and aggregate PC-LOO scores are then defined as
Equation (5) introduces finite- Monte Carlo error. Even as , need not equal : the external learner may differ from the oracle predictor, and contexts are generated under rather than . The next section quantifies these two sources of population approximation error.
Approximation theory
We quantify the population discrepancy between and using squared Hellinger distance,
with . Intuitively, the error in the approximation is due to the predictive capability of the learner, and the use of the full rather than the LOO posterior. These two components suggest a triangle-inequality argument to control the overall error, therefore motivating the Hellinger distance. Also, since the squared Hellinger distance is upper-bounded by the total variation (TV) distance, the results are automatically valid for TV. Proofs are provided in the supplement.
Learner compatibility
The discrepancy between the oracle predictor and the external learner motivates the following definition.
Definition 4 (Learner compatibility). For a target index , context set , parameter density , and learner , define
Compatibility measures conditional learner error, whereas PC-LOO depends on the context-averaged densities, and . The following result shows that also controls their discrepancy.
Proposition 1 (Marginal compatibility bound). For any , , , and ,
Consequently,
The first bound follows from data-processing inequality for KL divergence together with the predictive-context identity; the second follows from .
For practical PC-LOO, contexts are generated under the full posterior, ; define , and Proposition 1 then gives
Thus, also controls learner error under the full posterior . The remaining discrepancy from exact LOO arises from using instead of , induced by including observation in the posterior. We quantify this posterior perturbation next.
Deletion influence
Let denote the likelihood contribution of observation , and let
Definition 5 (Deletion influence). We define the deletion influence of observation as
Unlike the PSIS Pareto-, which diagnoses the tail behavior of importance ratios, directly measures the posterior perturbation induced by observation . Indeed, can be seen as a discrepancy between the parameter posteriors, since
The following result propagates this posterior discrepancy to the predictive distributions.
Proposition 2 (Predictive deletion bound). For every target ,
The result follows from data-processing inequality for Hellinger distance, together with . Together, Propositions 1 and 2 yields the population PC-LOO error bound.
Practical PC-LOO error
The two links separating exact LOO from practical PC-LOO are
controlled respectively by deletion influence , and learner compatibility . Combining these two bounds gives the following.
Theorem 2 (PC-LOO error bound). For any target observation and fixed context set ,
The result follows from the triangle inequality for Hellinger distance, and the preceding compatibility and deletion bounds.
Importantly, Equation (13) controls predictive distributions, not the realized pointwise log-score error , which may be large where either predictive density is small.
Large-sample behavior of deletion influence
The practical PC-LOO error decomposition also clarifies which component should disappear as the dataset grows. In regular fixed-dimensional models, deleting one observation perturbs the posterior by an increasingly small amount as grows, suggesting that should vanish with .
Proposition 3 (Asymptotic deletion influence). Under standard Bernstein-von Mises regularity conditions for a fixed-dimensional Bayesian model, together with mild local regularity of the individual likelihood contribution,
The result follows from Bernstein-von Mises posterior concentration [13 Sec. 10.2], together with local smoothness of the individual likelihood contribution.
Hence, the error from replacing by vanishes with sample size, in regular problems. In contrast, nothing forces to decrease with , so learner compatibility may eventually dominate. If the learner is predictively consistent for the model, however, then both sources of error can vanish jointly, as formalized next.
Consistency with increasing context size
Consider a sequence of datasets and context sets , with . We say that is predictively consistent for the model along if
In other words, the learner’s predictive converges to the corresponding model’s predictive with increasingly larger context.
Corollary 2 (Consistency of PC-LOO). Suppose that the conditions ensuring hold, and is predictively consistent for the model along . Then
We stress that consistency does not require ; any context sequence for which is sufficient, and whether a predictive learner satisfies this property is learner- and model-dependent.
Model comparison
The previous results quantify how closely PC-LOO approximates exact LOO for a single model. For model comparison, however, differential rather than absolute approximation error is decisive. Consider two models and , and write
Define the PC-LOO approximation error for model as
The exact and PC-LOO model differences are
Since
approximation errors that are common to both models cancel in the model difference. Thus, PC-LOO can preserve the LOO model comparison even when neither model’s absolute LOO score is estimated with high accuracy.
Proposition 4 (Model-ranking preservation). If , then
Hence, large absolute errors can preserve the ranking when they are similar across models, while small errors can reverse it when is small.
Experiments
We organize the experiments around the theoretical decomposition above, rather than around an extensive benchmark suite. Code and scripts reproducing all experiments, figures, and tables are available in the following repository.
Experimental setup
The theory applies to a generic predictive learner , while practical PC-LOO is instantiated with TabICL. We use controlled Gaussian regression experiments where the oracle conditional predictor, exact LOO distribution, and quantities appearing in the theory are available.
Real-data experiments use Stack Loss (), South German Credit (), California Housing (), and YearPredictionMSD (). Stack Loss, and the Credit data provide a small and moderate problem where exact LOO can be evaluated exhaustively; California Housing is used to study context budget and practical pointwise accuracy; and YearPredictionMSD isolates large- behavior. For California Housing, computation is restricted to a subset of targets stratified by to include observations ranging from weakly to highly influential. Methods are evaluated on the same selected targets, with exact LOO as the reference, and PSIS-LOO as another practical baseline. In particular, the Credit data is used to illustrate PC-LOO on TabICL and a binary classification problem. Additional details are given in the supplementary material.
Testing the bound theory
We first test the PC-LOO bound theory in a controlled Gaussian regression setting, where the required quantities can be computed directly. Figure 2 evaluates the predictive-context identity, the compatibility and deletion bounds, and their combination. The oracle approximation converges to for all considered , while the observed predictive discrepancies remain below their corresponding theoretical bounds. These results support the proposed decomposition of PC-LOO error into learner compatibility and posterior deletion influence.
Figure 2. Validation of the population theory in controlled Gaussian regression. (a) The finite- oracle approximation converges to for , supporting the predictive-context identity. (b) The marginal predictive KL discrepancy is bounded by the estimated learner compatibility under . (c) The predictive shift remains below across response, leverage, and combined perturbations. (d) The total PC-LOO discrepancy is bounded by ; gray points indicate the trivial regime .
Context budget and large- behavior
The predictive-context identity holds for any fixed context set, but practical accuracy and cost depend on the learner’s context budget . Figure 3 shows on California Housing that increasing generally reduces pointwise PC-LOO error and learner compatibility, with diminishing gains as computation increases.
Figure 3. Context-budget behavior on California Housing. Increasing generally reduces pointwise PC-LOO error and the learner-compatibility, while computational cost rises substantially. Panel (c) uses LOO-posterior contexts.
In the sequence, we hold the context budget fixed and increase the sample size on YearPredictionMSD. Figure 4 shows that deletion influence decreases approximately at the predicted rate, whereas pointwise PC-LOO error does not decrease comparably. The compatibility diagnostic on a small fixed set of targets is consistent with this remaining error being learner-limited rather than deletion-limited.
Figure 4. Large- behavior on YearPredictionMSD with fixed context budget. (a) Deletion influence decreases approximately at the predicted rate. (b) Pointwise PC-LOO error does not decrease at the same rate. (c) Compatibility on a small fixed set of targets remains roughly stable across .
Model comparison
Here, we examine if PC-LOO preserves differences between competing models. In controlled Gaussian experiments with varying signal strength, Figure 5 compares exact with oracle and TabICL PC-LOO estimates, and reports ranking agreement across quartiles of standardized separation . The oracle closely tracks exact LOO, while TabICL introduces additional scatter; in both cases, ranking
Figure 5. Model comparison in controlled Gaussian regression. (a) Oracle predictive-context estimates of the model difference closely track exact . (b) TabICL PC-LOO introduces additional approximation error. (c) Agreement with the exact LOO ranking increases across quartiles of standardized separation .
agreement increases as model separation grows, consistent with Proposition 4.
Practical accuracy on real data
We next assess practical pointwise accuracy against exact LOO. Stack Loss and the South German credit data permit exhaustive evaluation over all observations, while California Housing uses the stratified target subset described above. Table 1 reports absolute pointwise log-predictive-density errors for PC-LOO and PSIS-LOO. PC-LOO errors remain moderate on these examples, although PSIS is more accurate in these regular regression settings.
| Data | Model | PC-LOO MAE | PC-LOO RMSE | PSIS-LOO MAE | PSIS-LOO RMSE |
| Stack | .301 | .649 | .004 | .005 | |
| .608 | 1.312 | .014 | .048 | ||
| .473 | .824 | .013 | .024 | ||
| Credit | .089 | .154 | .002 | .004 | |
| California | .064 | .090 |
Table 1. Pointwise approximation error from PC-LOO and PSIS-LOO relative to exact LOO. Reported are mean absolute error (MAE) and root mean squared error (RMSE).
Preliminary reliability diagnostics
The population bounds do not provide an observation-specific diagnostic for realized PC-LOO error. We therefore compare deletion influence with the PSIS Pareto shape estimate , and examine how pointwise approximation error varies with . Figure 6 shows that and are positively associated, while larger also tends to correspond to larger pointwise error. However, is not a complete diagnostic for PC-LOO, and no universal PC-LOO reliability threshold is established here. Additional experiments on the reliability are provided in the supplement.
Figure 6. Preliminary reliability analysis. (a) Deletion influence versus PSIS Pareto shape estimate . (b) Absolute pointwise LPD error versus for PSIS-LOO and oracle PC-LOO. Larger is associated with more difficult observations, but does not provide a calibrated PC-LOO reliability threshold.
Conclusion
PC-LOO provides a predictive-context interface from a fitted Bayesian model to an external predictive learner. The oracle identity shows that posterior-predictive contexts can represent the Bayesian predictive distribution exactly after averaging over contexts; population approximation enters when the oracle conditional predictor is replaced by a learned predictor and the LOO posterior by the full posterior. The resulting decomposition into learner compatibility and deletion influence makes these two sources of error explicit.
Deletion influence decreases approximately at the predicted rate in the regular large-sample experiment, while practical PC-LOO error need not decrease at the same rate when the learner context budget is fixed. For model comparison, the relevant quantity is differential instead of absolute approximation error.
The experiments also show that learner compatibility can remain the dominant source of error even when deletion influence becomes small. This suggests a strategy for improving PC-LOO, for example through learner selection, ensembles or mixtures of predictive learners, or lightweight adaptation to posterior-predictive contexts. A Reliability diagnostic that jointly reflects posterior deletion influence and learner mismatch, to complement and Pareto-, is needed and left for future work.
Finally, the framework is more general than the present TabICL experiments. First, since PC-LOO approximates the full LOO posterior distribution, it is also directly applicable to other scoring rules. In addition, as better and more diverse predictive learners become available, including learners for dependent, structured, or non-tabular data, the same predictive-context construction can be reused without changing the underlying theory. This also suggests extensions beyond pointwise LOO, such as joint leave-group prediction, where synthetic contexts could support more realistic prediction tasks involving blocks, clusters, or other dependent groups.
Supplementary Material
Proofs
Throughout, all distributions are assumed to admit densities with respect to a common dominating measure, and all divergences appearing below are assumed to be finite.
Proof of Theorem 1
Proof. By definition,
Therefore,
where the third equality follows by Tonelli’s theorem and the inner integral equals one.
Proof of Corollary 1
Proof. Apply Theorem 1 with .
Proof of Proposition 1
Proof. Define two joint densities on by
Because and have the same marginal distribution for ,
Marginalizing maps and respectively to and . Hence the data-processing inequality for KL divergence gives
Finally, using gives
Proof of Proposition 2
Proof. First, we prove that is a divergence.
Bayes’ rule gives
Therefore,
Let
denote the predictive Markov kernel. Applying to and gives respectively and . Since squared Hellinger distance is an -divergence, the data-processing inequality yields
Moreover,
Combining the two inequalities proves the result.
Proof of Theorem 2
Proof. By the triangle inequality for Hellinger distance,
where the second inequality follows from Propositions 2 and 1. Squaring gives
Finally, , so
Proof of Proposition 3
Proof. Suppose the parameter dimension is fixed and that the LOO posterior satisfies Bernstein–von Mises concentration around the true parameter , with posterior second moments satisfying
Such behavior holds under the usual regularity conditions, together with the corresponding moment convergence; see, e.g., van der Vaart [13]. Assume additionally that, in a neighborhood of , is locally Lipschitz with random Lipschitz constant , and that posterior contributions outside this neighborhood are negligible at the same order. Then
on this neighborhood. Hence
If, in addition, , then
The result is pointwise in ; it does not imply a uniform bound over increasingly extreme observations.
Proof of Proposition 4
Proof. Since . If and , then . Similarly, if , . Therefore
Proof of Corollary 2
Proof. By Theorem 2, applied to the sequence ,
Under the stated regularity conditions, , and therefore . By predictive consistency of for the model along , we have that . Hence,
and consequently
Additional Experimental Details
This section provides additional details for the experiments reported in the main text. The experiments have two complementary purposes. The controlled Gaussian experiments isolate the mechanisms appearing in the theory, for which the relevant predictive distributions and discrepancy measures can be evaluated directly. The real-data experiments instead evaluate practical PC-LOO with TabICL and study the effects of context size, sample size, and computational approximation.
General PC-LOO implementation
For each target observation , practical PC-LOO proceeds as follows:
Fit the Bayesian model once to the full dataset and obtain the posterior .
For , draw and generate a synthetic context
where and .
Supply as context to the predictive learner and as the query, obtaining .
Average the predictive densities across contexts,
and evaluate
The same is used for all observations within a synthetic context, preserving dependence induced by posterior uncertainty. Unless stated otherwise, synthetic contexts are generated from .
Computational structure and complexity
PC-LOO requires one Bayesian model fit, followed by predictive-learner evaluations for each target and synthetic context. Let denote the cost of evaluating the learner with a context of size . Evaluating all targets using synthetic contexts has nominal cost , in addition to the single Bayesian fit and posterior-predictive simulation. The corresponding learner-side memory requirement depends on the implementation of and its batching strategy.
The computation is highly parallel. Conditional on the fitted Bayesian model, different targets and synthetic contexts can be evaluated independently. When the context indices are fixed across replicates, the covariates are also unchanged: only the synthetic responses vary. This structure allows contexts to be batched across posterior-predictive replicates and potentially permits reuse of computations involving the fixed covariates. Thus, the nominal learner evaluations need not imply sequential evaluations.
The context budget provides an additional computational control. The predictive-context identity is exact for any fixed , so reducing introduces no oracle subsampling bias. In practical PC-LOO, the resulting statistical-computational trade-off instead arises through learner compatibility: smaller contexts reduce computation but may provide less information to the external learner.
Controlled Gaussian experiments
The controlled experiments use , , , with , , , and . The fitted Bayesian linear model uses an intercept and slope, with , , . Posterior inference is analytic under the conjugate Normal-Inverse-Gamma model, and Exact LOO quantities, with Student-, are obtained by analytic leave-one-out updating. Also, unless stated otherwise, the synthetic context contains all non-target observations, so .
Predictive-context identity
We numerically verify the predictive-context identity under , prior, full posterior and leave-data-out posterior respectively. For each , three targets are selected according to leverage (central, moderate, and highest), and synthetic contexts are generated using the full non-target observations. Prediction is performed with the exact Student- predictive density, so the only approximation is Monte Carlo averaging over contexts. We use and compare the resulting predictive with the exact Student- predictive density using squared Hellinger distance.
Learner compatibility
To control learner mismatch explicitly, we replace the oracle student- predictive density by , where is Gaussian with mean shifted by two oracle predictive standard deviations and standard deviation 1.5 times that of . We use , with synthetic contexts and independent Monte Carlo repetitions for each setting. Contexts are generated from with . For each setting, we compute the conditional compatibility and the KL divergence between the corresponding context-averaged predictive density and the exact LOO predictive density. Numerical integrals are evaluated on a common 4000-point grid.
Deletion influence
To vary deletion influence systematically, observation is modified under three regimes: (i) response contamination, , with ; (ii) leverage contamination, , with drawn from the true model; and (iii) combined contamination, with and . For each condition, is estimated using 20,000 draws from the exact LOO posterior . The predictive discrepancy is approximated using synthetic contexts under each of and , averaging the corresponding exact Student- predictive densities, and is compared with the theoretical bound .
Combined approximation bound
We jointly vary learner mismatch and deletion influence using , , where controls the predictive-density perturbation defined above and controls response contamination, , for . For each of the 25 settings, we use independent repetitions and synthetic contexts with . The PC-LOO predictive density is computed from contexts, while is estimated using contexts. We compare with , where is estimated using 20,000 draws from .
Finite-context Monte Carlo convergence
We study Monte Carlo error as the number of synthetic contexts varies over . For the central-leverage target, contexts are generated from with . We consider both the exact Student- conditional predictive density and the perturbed density with . Each setting is repeated 200 times, using context samples across values of . We report the RMSE of the estimated predictive density at . The reference is the exact in the Student- case and an Monte Carlo estimate in the perturbed case. Log-log regressions of RMSE on give slopes and , respectively, close to the Monte Carlo rate , shown in Figure 7.
Figure 7. Finite-context Monte Carlo convergence. RMSE of the estimated predictive density at as a function of the number of synthetic contexts . Results are shown for the exact Student- conditional predictive density and the perturbed density with . The fitted log-log slopes are and , respectively, close to the Monte Carlo rate.
California Housing experiments
We use the California Housing dataset with all observations and eight covariates. Covariates are standardized using their full-data means and standard deviations; the response is left untransformed. We fit the Gaussian linear model with an intercept and all eight covariates, using the same Normal-Inverse-Gamma prior as in the controlled experiments. Posterior inference and LOO prediction are analytic.
Context size
We evaluate PC-LOO at using the same 100 target observations at every . Targets are selected by stratifying all observations into quintiles of and sampling 20 from each quintile. For each target and , we use synthetic contexts generated from , with a new subset of non-target observations sampled without replacement for each context. Accuracy is measured by , where is computed analytically.
Runtime with increasing context size
Runtime is evaluated separately on eight target observations using and synthetic contexts per target. Contexts are generated from and resampled for each replicate. Runtime is the mean wall-clock time per target for TabICL prediction and scoring across all contexts; posterior fitting, exact LOO computation, and calculation of are excluded.
Compatibility with increasing context size
Compatibility is evaluated on 25 targets, with five sampled from each quintile, using and synthetic contexts per target and . Context subsets are resampled without replacement for each replicate and generated from the LOO posterior . We estimate , where the first density is the exact Student- predictive density and is TabICL.
Fixed versus resampled context subsets
We compare two context-selection schemes at using the same 100 targets as the context-size experiment and . In the fixed scheme, one subset is sampled for each target and and reused across all synthetic contexts. In the resampled scheme, a new subset is sampled for each context. Both schemes use . Table 2 reports pointwise PC-LOO error and mean runtime. The two schemes have similar predictive accuracy, while fixing the context subset reduces computation.
| Context | Median | Mean | RMSE | Time (s) | |
| 1000 | Fixed | .0415 | .0545 | .0825 | 6.19 |
| 1000 | Resampled | .0445 | .0535 | .0731 | 9.24 |
| 2000 | Fixed | .0371 | .0481 | .0638 | 94.41 |
| 2000 | Resampled | .0359 | .0468 | .0659 | 101.91 |
Table 2. Fixed versus resampled context subsets. PC-LOO absolute error and mean runtime per target.
YearPredictionMSD experiments
We use the canonical training split of YearPredictionMSD, containing observations and 90 covariates. Covariates and the response are standardized using statistics from the full training split. We fit a Gaussian linear model with an intercept and all 90 covariates, using the same Normal-Inverse-Gamma prior as above.
We consider nested sample sizes , obtained as prefixes of a single random permutation of the training data. Thirty targets, six from each quintile, are selected at and tracked across all sample sizes. A subset of five targets, one per quintile, is used for the compatibility experiment.
Deletion-influence scaling
For each sample size, is estimated for the same 30 targets using 20,000 draws from the corresponding exact LOO posterior. To estimate the scaling rate, we regress on separately for each target and average the resulting 30 slopes. The mean slope is , with 95% confidence interval . Figure 4 reports the median across targets at each , together with an reference line.
PC-LOO error with increasing sample size
We evaluate PC-LOO on the same 30 targets at each sample size, using and . Synthetic contexts are generated from the corresponding full posterior . For each target and , one subset of non-target observations is sampled and reused across the synthetic contexts. Accuracy is measured by , where is computed analytically. Figure 4 reports the distribution of this error across the 30 targets as increases.
Compatibility with increasing sample size
Compatibility is evaluated on five of the 30 targets, one from each quintile, using and . At each sample size, synthetic contexts are generated from the corresponding LOO posterior . We estimate , where is the exact Student- predictive density and is TabICL.
Practical real-data accuracy
We use the Stack Loss data with observations and three standardized covariates. We consider an intercept-only model , a model containing Air Flow, and a model containing all three covariates. All models use the same conjugate prior as above. PC-LOO is evaluated for all observations using the full context and synthetic contexts generated from . Exact LOO is computed analytically. For comparison, PSIS-LOO uses 4000 draws from .
The South German Credit data contains observations, 20 covariates and a binary response. We fit a Bayesian logistic regression with standardized covariates and weakly informative Gaussian priors. PC-LOO is evaluated for all observations using TabICL with context sizes , synthetic contexts generated from ; and PSIS-LOO uses 4000 draws from . The improved accuracy of PC-LOO for larger context is shown in Figure 8.
Figure 8. PC-LOO versus exact LOO predictive probabilities for the South German Credit data at context sizes . Agreement improves with context size: pointwise log-score correlation increases from 0.908 to 0.968, while RMSE decreases from 0.250 to 0.155 and MAE from 0.156 to 0.089. The dashed line denotes exact agreement.
For California Housing, we use the model and preprocessing described in Section B.4. We evaluate 100 targets, with 20 selected from each quintile. PC-LOO uses , , and one fixed context subset per target, with synthetic responses generated from . PSIS-LOO uses 2000 posterior draws. Exact analytic LOO is used as the reference for both methods.
For these datasets, pointwise accuracy is summarized by MAE , RMSE .
Posterior-influence diagnostics
We compare the deletion-influence measure with the standard PSIS Pareto diagnostic using the 22 conditions from the deletion-influence experiment. Diagnostics are computed for all 50 observations in each condition, giving 1100 pointwise evaluations, and for PSIS, we use 2000 draws from . The corresponding values are estimated using 20,000 draws from the exact LOO posterior. We additionally compare with the absolute pointwise error of PSIS-LOO and predictive-context LOO based on the exact Student- conditional predictive density. The latter uses synthetic contexts generated from .
Exploratory PC-LOO reliability diagnostic
A practical question is whether the two sources of PC-LOO approximation error can be reflected in a single observation-specific diagnostic. We explored a Pareto-tail construction for the PC-LOO method.
For posterior draws , define the usual LOO importance ratio
For a synthetic context generated from , let denote the exact conditional predictive density and the learner predictive density. Drawing , define
We then form
and estimate the corresponding Pareto shape parameter using the standard PSIS tail fit.
We evaluate this construction in the controlled Gaussian experiment with , , and . We use 30 independently generated datasets for each combination , , where controls learner mismatch and controls response contamination. This gives 750 target-level evaluations.
Across this experiment, is strongly associated with absolute pointwise PC-LOO error, see Figure 9. This result suggests that tail behavior of the combined ratio may contain useful information about difficult PC-LOO cases. This experiment should nevertheless be interpreted as exploratory rather than as establishing a calibrated diagnostic. In particular, small does not in general guarantee small PC-LOO error. While the construction provides a useful direction for PC-LOO reliability assessment, its calibration and interpretation remain open.
Figure 9. Exploratory PC-LOO tail diagnostic. Absolute pointwise PC-LOO error as a function of the estimated Pareto shape parameter for the combined ratio . The strong association is suggestive of diagnostic value, but should not be interpreted as a calibrated reliability diagnostic.
Computational details
TabICL predictive densities. TabICL returns predictive quantiles rather than an explicit density. We evaluate 199 quantiles with probability levels from .005 to .995 and construct a piecewise-constant predictive density between adjacent quantiles. The resulting density is numerically normalized before evaluation. For PC-LOO, predictive densities are averaged across synthetic contexts before taking the logarithm.
TabICL computation and parallelism. For TabICL version 2.1.1, learner evaluation becomes the dominant practical cost as the context size grows. Our implementation processes synthetic contexts separately and therefore does not fully exploit their shared structure. For a fixed target and context set, all replicates share the same covariates and differ only in the synthetic responses . Joint batching of these response replicates could therefore reuse computations involving the covariates and reduce the effective cost across . Most experiments were run on a NVIDIA GTX 1080 Ti GPU.
Numerical divergences. KL and squared Hellinger divergences are evaluated numerically on a common grid of 4000 points covering the relevant predictive distributions. Both densities are normalized on this grid before integration, which is performed using the trapezoidal rule.
Implementation. All Bayesian linear-regression experiments use analytic Normal-Inverse-Gamma posterior updating and analytic Student- predictive distributions. Runtime measurements include TabICL prediction and scoring across all synthetic contexts for a target, but exclude Bayesian posterior fitting, exact LOO calculations, and computation of .
PSIS-LOO. PSIS-LOO is computed using the implementation in ArviZ, applying arviz.psislw to the log importance ratios. We use independent draws from the exact conjugate posterior and set reff=1.0. The Pareto-smoothed weights are then used to compute the pointwise PSIS-LOO predictive densities. We use 4000 posterior draws for Stack Loss and 2000 for California Housing and for the controlled posterior-influence diagnostics.
References
- [1]Böhm, S., Purucker, L., Hutter, F., and Schlosser, P. (2026). Survpdfn: Towards foundation models for survival predictions. arXiv preprint arXiv:2606.04564.arxiv.org/abs/2606.04564
- [2]Dong, Q., Li, L., Dai, D., Zheng, C., Ma, J., Li, R., Xia, H., Xu, J., Wu, Z., Chang, B., et al. (2024). A survey on in-context learning. In Proceedings of the 2024 conference on empirical methods in natural language processing, pages 1107–1128.
- [3]Geisser, S. and Eddy, W. F. (1979). A predictive approach to model selection. Journal of the American Statistical Association, 74(365):153–160.DOI
- [4]Hollmann, N., Müller, S., Eggensperger, K., and Hutter, F. (2022). Tabpfn: A transformer that solves small tabular classification problems in a second. arXiv preprint arXiv:2207.01848.arxiv.org/abs/2207.01848
- [5]Jeffrey, N. and Wandelt, B. D. (2024). Evidence networks: simple losses for fast, amortized, neural bayesian model comparison. Machine Learning: Science and Technology, 5(1):015008.DOI
- [7]Magnusson, M., Vehtari, A., Jonasson, J., and Andersen, M. (2020). Leave-one-out cross-validation for Bayesian model comparison in large data. In International conference on artificial intelligence and statistics, pages 341–351. PMLR.arxiv.org/abs/2001.00980
- [8]Müller, S., Reuter, A., Hollmann, N., Rügamer, D., and Hutter, F. (2025). Position: The future of Bayesian prediction is prior-fitted. In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J., editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 81861–81875. PMLR.arxiv.org/abs/2505.23947
- [10]Radev, S. T., D’Alessandro, M., Mertens, U. K., Voss, A., Koethe, U., and Buerkner, P.-C. (2021). Amortized bayesian model comparison with evidential deep learning. IEEE Transactions on Neural Networks and Learning Systems, 34(8):4903–4917.DOI
- [11]Reuter, A., Rudner, T. G. J., Fortuin, V., and Rügamer, D. (2025). Can transformers learn full Bayesian inference in context? In Singh, A., Fazel, M., Hsu, D., Lacoste-Julien, S., Berkenkamp, F., Maharaj, T., Wagstaff, K., and Zhu, J., editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 51531–51582. PMLR.arxiv.org/abs/2501.16825
- [12]Taga, E. O., Ildiz, M. E., and Oymak, S. (2025). Timepfn: Effective multivariate time series forecasting with synthetic data. In Proceedings of the AAAI conference on artificial intelligence, volume 39, pages 20761–20769.arxiv.org/abs/2502.16294
- [13]van der Vaart, A. W. (1998). Asymptotic Statistics. Cambridge University Press, Cambridge.
- [14]Vehtari, A. and Ojanen, J. (2012). A survey of bayesian predictive methods for model assessment, selection and comparison. Statistics Surveys, 6:142–228.
- [15]Vehtari, A., Simpson, D., Gelman, A., Yao, Y., and Gabry, J. (2024). Pareto smoothed importance sampling. Journal of Machine Learning Research, 25(72):1–58.







