Skip to content

Menu

WorksMathematics

Unit-level aggregation breaks coverage in causal foundation models

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_x9x72jx7. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Causal foundation models (CFMs) show promising results for treatment-effect estimation, with unit-level estimates that are competitive on standard benchmarks. Many causal analyses, however, inform decisions through effects averaged over groups of units, such as the full sample, the treated units, or a subgroup, and for such decisions a CFM is useful only if its credible intervals are calibrated. We examine these intervals and find that their coverage degrades, both in simple synthetic settings and on standard benchmarks. On ACIC 2016, for example, temperature-calibrated 95% intervals from CausalPFN fall below nominal coverage beyond groups of 30 out of 4802 units, and intervals for the full-sample average contain the true value in only 20% of datasets. We trace this problem to how these models are trained and how their intervals are formed. They output a predictive distribution for one unit at a time and, at inference time, combine the unit-level variances as if the errors on different units were independent. We show formally that posterior uncertainty over the data-generating process makes these errors correlated. As a result, the combined variance is too small by a factor that grows with the size of the group. Empirically, this factor predicts where coverage fails and by how much. We then show that two neural process models, which make joint predictions for a group of units, account for this correlation and substantially improve coverage on synthetic tasks and, as heads on a frozen CausalPFN, on all six benchmarks.

Introduction

Causal Foundation Models (CFMs) are pre-trained on simulated causal datasets and estimate treatment effects for a new dataset in a single forward pass. Recent examples, including CausalPFN [4], Do-PFN [41], and CausalFM [29], perform competitively on synthetic and semi-synthetic benchmarks without fitting a new estimator to each dataset. CFMs typically estimate effects at the unit level, through Conditional Average Treatment Effects (CATEs) that describe the average treatment effect as a function of the observed covariates.

Many causal questions, however, concern effects averaged over a group of units, such as the population average treatment effect (PATE), the average treatment effect on the treated (ATT), and subgroup effects. For instance, clinical trials often focus on subgroup estimands [25, 15], drugs have been approved for specific subpopulations after subgroup findings motivated dedicated trials [45], and large policy evaluations report prespecified subgroup analyses alongside intervals too wide to rule out clinically meaningful effects [3]. We call any average of the CATE over a set of units a subset-CATE (see, e.g., [14]) and define it formally in § 3. In principle, a CFM can estimate any subset-CATE by averaging its unit-level estimates. One trained model can then target any subgroup without refitting, including the full sample and the treated units, which give analogues of the PATE and ATT.

In applied settings such as medicine, decisions often depend on how uncertain the estimate is, so a CFM is useful for these questions only if its intervals for group averages are calibrated. We show that the intervals current CFMs report for group averages, including the full sample, have no coverage guarantee and fall below nominal on every benchmark we test, and we propose two models that address this problem. Some CFMs output a predictive distribution for each unit ([4, 29]), and the unit-level credible intervals CausalPFN forms from it are conservative on our benchmarks. CausalPFN also returns a full-sample average, which it reports as the ATE, with a 95% credible interval formed by averaging independent draws from the unit-level predictive distributions after an optional temperature calibration. On ACIC 2016 ([13]), however, this interval contains the true full-sample average in only 8 of the 40 datasets we use when calibrated and in 18 of 40 when not. Mourão et al. [33] report similarly poor ATE coverage on simulated clinical data. Intervals from the same procedure fall below nominal coverage for subsets larger than 11% of the sample on IHDP ([22, 43]) and 0.6% on ACIC 2016 (Figure 1).

Figure 1. Coverage of nominal 95% subset-CATE intervals from temperature-calibrated CausalPFN on standard benchmarks, with unit-level aggregation. Subsets are drawn uniformly at random. The horizontal axis is the fraction of the sample aggregated, and its right edge is the full sample. Thin dotted lines are the prediction of Equation (1), with mSm_S and ρS\rho_S measured once per benchmark and held fixed across kk, and the horizontal dashed line marks nominal coverage.

Current CFMs form the aggregate interval by summarizing each unit’s uncertainty separately and combining the summaries as if the units’ errors were independent; we call this unit-level aggregation. Because Do-PFN ([41]), CausalFM ([29]), and CCPFN ([44]) provide no aggregate estimator, any interval for a subset-CATE has to be built from their unit-level outputs. When there is uncertainty about the data-generating process, however, a model that overestimates one unit’s effect tends to overestimate the others’ too. Averaging over units then shrinks only the part of the error that is not shared. For a subset of kk units, let ρS\rho_S be the correlation between the model’s errors on two distinct units of the subset, taken over tasks (draws of the SCM, the dataset, and the subset; § 4.1), and let mSm_S be the ratio of the variance the model reports for a unit to its mean squared error (mS=1m_S = 1 for calibrated unit-level intervals). Under mean-zero Gaussian errors and a fixed reported variance, a nominal 95% interval formed by unit-level aggregation has coverage

C(k)=2Φ(1.96mS1+(k−1)ρS)−1.(1)\mathcal{C}(k) = 2\Phi\left(1.96\sqrt{\frac{m_S}{1+(k-1)\rho_S}}\right)-1. \tag*{(1)}

The denominator is the design effect of survey sampling ([27]), applied here to estimation errors. Because it grows linearly in kk, coverage tends to zero for any fixed ρS>0\rho_S > 0. With over-wide unit-level intervals (mS>1m_S > 1), coverage still falls, but at larger kk. On ACIC 2016, for example, CausalPFN has mS=1.63m_S = 1.63 and ρS=0.02\rho_S = 0.02. For these values, Equation (1) predicts that coverage falls below nominal at 32 units and reaches 20% on the full sample; we observe 30 units and 20%.

Once the data are observed, the remaining uncertainty in a unit’s effect comes from the structural causal model (SCM) that generated them. The effects of all units depend on that same SCM. Unless the data determine the SCM, the unit effects are dependent a posteriori, and an estimator’s errors on different units are in general correlated. The exact posterior represents this dependence. Unit-level aggregation ignores it, even though the model’s unit-level intervals reflect the same uncertainty. Accounting for this correlation requires sampling the unit effects jointly. Let τi\tau_i be the CATE of unit ii, SS the set of units in the subset, ζ\zeta the parameters of the SCM, and π(ζ∣D)\pi(\zeta\mid\mathcal{D}) their posterior given the dataset D\mathcal{D}. Joint and unit-level sampling both average draws of (τi)i∈S(\tau_i)_{i\in S} and differ only in where the integral over ζ\zeta is placed. They draw from

unit-level:∏i∈S∫p(τi∣ζ) dπ(ζ∣D),(2)\text{unit-level:}\quad\prod_{i\in S} \int p(\tau_i \mid\zeta)\,\mathrm{d}\pi(\zeta\mid\mathcal{D}), \tag*{(2)}
SCM-marginalized:∫∏i∈Sp(τi∣ζ) dπ(ζ∣D).(3)\text{SCM-marginalized:}\quad\int\prod_{i\in S} p(\tau_i \mid\zeta)\,\mathrm{d}\pi(\zeta\mid\mathcal{D}). \tag*{(3)}

Placing the integral inside the product, as unit-level aggregation does, treats the unit effects as independent once the SCM is integrated out. They share the SCM, however, and this induces the error correlation ρS\rho_S in Equation (1). SCM-marginalized aggregation places the integral outside the product and so accounts for the dependence between units. We approximate it with a latent neural process (NP) [19], which replaces the SCM with a learned latent variable, and with a direct-decode conditional neural process (CNP) [18], which learns the distribution of the subset-CATE directly.

Our contributions are as follows:

  • Diagnosis. We show that unit-level aggregation understates the variance of any subset-CATE, whether over the full sample, the treated units, or a subgroup, by the design effect. Under Gaussian errors with a fixed reported variance, its coverage is given by Equation (1) (Proposition 1).

  • Source. We show that, for the posterior mean, the error covariance is the covariance of unit effects under the posterior over the SCM (Proposition 2). It is generally nonzero unless the posterior determines the queried unit effects, and it cannot be computed from unit-level marginals alone.

  • Method. We propose two SCM-marginalized models, a latent NP and a direct-decode CNP, that integrate over the SCM jointly for all units of the subset (§ 4.3), and train them both on a synthetic family and as heads on a frozen CausalPFN.

  • Evidence. CausalPFN’s intervals lose nominal coverage on all six standard benchmarks, including for the full sample. With the weights held fixed, unit-level coverage at the largest subset is at most 0.47 across 60 cells, while SCM-marginalized coverage has a median of 0.89. On the six benchmarks, the two models as heads on a frozen CausalPFN cover the full-sample average in 90% and 89% of 240 datasets, against 25% and 52% for unit-level aggregation from the same weights and 53% for CausalPFN. Proposition 1 predicts coverage on the synthetic family to within a median absolute error of 0.05 (§ 5).

Related work

Inference for aggregate estimands. Uncertainty quantification for group effects, the problem we describe for CFMs in § 1, has been studied for non-amortized estimators. These can target group effects while retaining the dependence among units, e.g., by averaging within each posterior draw [22], as our latent NP does, or by building the aggregate from orthogonal scores [9, 42, 10]. Conformal methods give distribution-free coverage for individual treatment effects [28, 2, 32], but target a unit’s outcome, not a group average.

Design effects and clustered data. Correlation within groups inflates the variance of an average by the design effect, which Kish Kish [27] introduced for complex surveys and which also applies to cluster sampling [11] and cluster-randomized trials [20]. We apply it to a model’s estimation errors, whose correlation comes from the posterior over the SCM, not from the sampling design.

Uncertainty quantification for amortized inference. In the amortized prediction setting, prior-data fitted networks (PFNs) are trained on synthetic learning problems drawn from a prior, so that a single forward pass approximates posterior inference [34], and they are state of the art on tabular data [23, 24]. Nagler Nagler [35] studies the statistical properties of PFNs as pre-tuned predictors, analyzing their bias and variance. Later work extends PFNs to full posteriors [40] and to credible sets for a global functional [37]. Notably, Nagler & Rügamer (2025) note that their pointwise procedure does not provide joint inference across query points, which a subset-CATE interval requires, and leave it to future work. Equations (2) and (3) correspond to the marginal and joint predictive distributions of Wen et al. (2021) and Osband et al. [39]. Gaussian and autoregressive CNPs model the dependence between target points that standard CNPs omit ([30, 6]), and quantile CNPs have been applied to amortized estimation of unit-level and population-level causal estimands ([8]).

Causal foundation models. PFNs and other amortized methods have been applied to causal effect estimation ([38, 7, 4, 41, 29, 44] (Zhang et al. 2024)), where they perform competitively on standard benchmarks. Those that report uncertainty typically do so for single units or, like CausalPFN, aggregate independent unit-level draws, and two recent papers examine their uncertainty for aggregate effects. Mourão et al. [33] evaluate CausalPFN on simulated clinical scenarios and report poor coverage of its 95% credible interval for the ATE, attributing it to estimation bias and inadequate uncertainty quantification. Melnychuk et al. [31] show that a PFN’s posterior for an aggregate effect can have a prior-induced bias that does not vanish asymptotically, which precludes frequentist consistency. They also note that a PFN’s pointwise predictive distributions do not determine a unique joint posterior and that sampling them independently ignores the dependence between points. They obtain joint draws with martingale posteriors. We quantify the coverage lost by independent aggregation for arbitrary subsets and show that CausalPFN forms its full-sample interval this way. Our latent NP models this dependence through a shared latent variable, and our CNP predicts the subset average directly.

Setup

We consider effect estimation under a binary treatment. Each unit ii has covariates Xi∈XX_i \in\mathcal{X}, a treatment Ti∈{0,1}T_i \in\{0,1\}, and potential outcomes Yi(0),Yi(1)Y_i(0), Y_i(1), one of which is observed as Yi=Yi(Ti)Y_i = Y_i(T_i). We write the CATE as τ(x)=E[Y(1)−Y(0)∣X=x]\tau(x) = \mathbb{E}[Y(1) - Y(0) \mid X = x] and τi:=τ(Xi)\tau_i := \tau(X_i) for its value at unit ii.

Subset-CATE. Our target averages these unit-level effects over a queried subset of units. Let S⊆{1,…,n}S \subseteq\{1,\ldots,n\} be the indices of the subset and k=∣S∣k = |S| its size. We define

θS:=1k∑i∈Sτi,(4)\theta_S := \frac{1}{k}\sum_{i\in S}\tau_i, \tag*{(4)}

and refer to θS\theta_S as the subset-CATE.

Because θS\theta_S averages τ(Xi)\tau(X_i) at the realized covariates of the units in SS, it is a finite-sample estimand—the estimand of Abadie & Imbens [1] restricted to the units in SS. It differs from the sample average treatment effect k−1∑i∈S(Yi(1)−Yi(0))k^{-1}\sum_{i\in S}(Y_i(1)-Y_i(0)), which includes unit-level noise, and from the PATE E[Y(1)−Y(0)]\mathbb{E}[Y(1)-Y(0)].

At k=1k=1, θS\theta_S is the CATE of a single unit. At S={1,…,n}S=\{1,\ldots,n\} it is a sample analogue of the PATE, and the quantity existing CFMs report as the ATE; at S={i:Ti=1}S=\{i:T_i=1\} it is the analogous quantity for the ATT.

Meta-learning. CFMs are amortized causal estimators, with recent methods building on the meta-learning tradition of prior-data fitted networks ([34, 23]). Such models are trained on tasks T1,…,TJT_1,\ldots,T_J drawn i.i.d. from a task distribution. Each task Tj=(ζj,Dj,Sj)T_j=(\zeta_j,\mathcal{D}_j,S_j) consists of a structural causal model (SCM) ζj∼π0\zeta_j \sim\pi_0, a dataset Dj={Xi,Ti,Yi}i=1nj\mathcal{D}_j=\{X_i,T_i,Y_i\}_{i=1}^{n_j} drawn from the SCM, and a subset SjS_j of one or more units, drawn given Dj\mathcal{D}_j, whose subset-CATE is queried. We write τ(x;ζ)\tau(x;\zeta) for the CATE under SCM ζ\zeta when the dependence matters. Current CFMs typically set ∣Sj∣=1|S_j|=1, so the training target is the CATE. The model then returns a predictive distribution for a single unit’s treatment effect, whose mean and variance we write as τ^i\hat{\tau}_i and σ^i2\hat{\sigma}_i^2. Estimating θS\theta_S for ∣S∣>1|S|>1 with a credible interval requires combining τ^i\hat{\tau}_i and σ^i2\hat{\sigma}_i^2 across units in SS.

Uncertainty quantification and coverage. CFMs that provide uncertainty quantification typically report a credible interval, since they are designed to approximate a posterior distribution under a known prior. We denote the interval for θS\theta_S as [ℓ^S,u^S][\hat{\ell}_S,\hat{u}_S]. When it is symmetric about θ^S\hat{\theta}_S we write [ℓ^S,u^S]=θ^S±z1−α/2σ^S[\hat{\ell}_S,\hat{u}_S]=\hat{\theta}_S\pm z_{1-\alpha/2}\hat{\sigma}_S, with σ^S\hat{\sigma}_S the standard deviation the model reports for θS\theta_S and z1−α/2z_{1-\alpha/2} the standard normal quantile (z0.975≈1.96z_{0.975}\approx1.96 at our α=0.05\alpha=0.05).

We evaluate credible intervals by their coverage, the fraction of queries where the interval contains the true subset-CATE. Coverage at subset size kk is

C(k):=Pr⁡(θS∈[l^S,u^S]),(5)C(k) := \Pr\left(\theta_S \in[\hat{l}_S, \hat{u}_S]\right), \tag*{(5)}

where the probability is over the SCM ζ∼π\zeta\sim\pi, the dataset D∣ζ\mathcal{D} \mid\zeta, and the subset SS of size kk, drawn uniformly or by a selection rule. Here π\pi is the distribution of evaluation tasks, which can differ from a model’s training prior π0\pi_0; for a benchmark, the probability is over its datasets. Appendix § 9 gives the estimator we use for C(k)C(k) and the task counts behind each reported value.

Identification. Our analysis assumes that all confounders are observed and that positivity holds, so that the subset-CATE is identified. Our synthetic family satisfies both by construction (Appendix § 8). The benchmarks have no unobserved confounding, but IHDP and some ACIC 2016 settings have limited overlap, so part of their error can come from extrapolation.

Why unit-level aggregation breaks coverage

The design effect

Let ei:=τ^i−τie_i := \hat{\tau}_i - \tau_i denote the estimator’s error at unit ii. Since θS\theta_S is an average of unit-level effects, the subset-CATE error is the average of unit-level errors, eˉS=θ^S−θS=k−1∑i∈Sei\bar{e}_S = \hat{\theta}_S - \theta_S = k^{-1}\sum_{i\in S} e_i. We define two moments of the errors and their ratio, with expectations over tasks (ζ,D,S)(\zeta, \mathcal{D}, S) as in Equation (5),

σS2=E[1k∑i∈Sei2],cS=E[1k(k−1)∑i,j∈Si≠jeiej],ρS=cSσS2.(6)\sigma_S^2 = \mathbb{E}\left[\frac{1}{k}\sum_{i\in S}e_i^2\right], \qquad c_S = \mathbb{E}\left[\frac{1}{k(k-1)}\sum_{\substack{i,j\in S\\i\ne j}}e_i e_j\right], \qquad\rho_S = \frac{c_S}{\sigma_S^2}. \tag*{(6)}

We use raw second moments because coverage depends on the total error, including any bias in unit-level estimates. We define the moments over the queried subset because a query that selects units on a covariate (e.g., patients aged 40–60) may have more strongly correlated errors than the dataset as a whole. When SS is drawn uniformly, σS2\sigma_S^2, cSc_S, and mSm_S equal their values for the full sample and so do not depend on kk. Appendix § 11 shows how ρS\rho_S and mSm_S change for selected subgroups.

Existing CFMs combine the unit-level variances as if the errors were independent, which gives the reported variance

σ^S2=1k2∑i∈Sσ^i2.(7)\hat{\sigma}_S^2 = \frac{1}{k^2}\sum_{i\in S}\hat{\sigma}_i^2. \tag*{(7)}

CausalPFN’s aggregate estimator averages independent draws from the units’ predictive distributions, which makes it a Monte Carlo version of Equation (7) (Appendix § 12).2

Proposition 1 (Design effect; cf. Kish [27]). Let θ^S=k−1∑i∈Sτ^i\hat{\theta}_S = k^{-1}\sum_{i\in S}\hat{\tau}_i, with expectations over ζ\zeta, D\mathcal{D}, and SS as in Equation (5). The mean squared error of θ^S\hat{\theta}_S is

E[eˉS2]=1k2E[∑i∈Sei2+∑i,j∈Si≠jeiej]=σS2k[1+(k−1)ρS].(8)\mathbb{E}[\bar{e}_S^2] = \frac{1}{k^2}\mathbb{E}\left[\sum_{i\in S}e_i^2 + \sum_{\substack{i,j\in S\\i\ne j}}e_i e_j\right] = \frac{\sigma_S^2}{k}\left[1+(k-1)\rho_S\right]. \tag*{(8)}

If the interval is θ^S±z1−α/2σ^S\hat{\theta}_S \pm z_{1-\alpha/2}\hat{\sigma}_S with σ^S2\hat{\sigma}_S^2 from Equation (7), then the ratio of reported to actual squared error and (when σ^S\hat{\sigma}_S does not vary across queries) the coverage are

R:=E[σ^S2]E[eˉS2]=mS1+(k−1)ρS,(9)R := \frac{\mathbb{E}[\hat{\sigma}_S^2]}{\mathbb{E}[\bar{e}_S^2]} = \frac{m_S}{1+(k-1)\rho_S}, \tag*{(9)}
C(k)=Pr⁡(∣eˉS∣E[eˉS2]≤z1−α/2R),(10)C(k) = \Pr\left(\frac{|\bar{e}_S|}{\sqrt{\mathbb{E}[\bar{e}_S^2]}} \le z_{1-\alpha/2}\sqrt{R}\right), \tag*{(10)}

where mS:=E[σ^S2]/σS2m_S := \mathbb{E}[\hat{\sigma}_S^2]/\sigma_S^2 and σ^S2=k−1∑i∈Sσ^i2\hat{\sigma}_S^2 = k^{-1}\sum_{i\in S}\hat{\sigma}_i^2 is the average variance the model reports for a unit in SS. If, in addition, eˉS\bar{e}_S is mean-zero Gaussian, then C(k)=2Φ(z1−α/2R)−1C(k) = 2\Phi(z_{1-\alpha/2}\sqrt{R}) - 1.

Proof sketch (Appendix G). Expanding eˉS2\bar{e}_S^2 gives kk diagonal terms, which contribute σS2\sigma_S^2 on average, and k(k−1)k(k-1) cross terms, which contribute cSc_S; the rest follows by dividing Equation (7) by Equation (8) and standardizing the error.

The standardized error in Equation (10) has second moment one regardless of kk, ρS\rho_S, and mSm_S. As a result, once the shape of its distribution is fixed, these quantities affect coverage only through RR. Under Gaussian errors, the interval attains nominal coverage at R=1R=1, and for R<1R<1 coverage is below nominal and increasing in RR. For ρS>0\rho_S>0, setting R=1R=1 gives the largest subset for which the reported interval is wide enough,

k∗=1+mS−1ρS.(11)k^* = 1 + \frac{m_S-1}{\rho_S}. \tag*{(11)}

Calibrated unit-level intervals (mS=1m_S=1) give k∗=1k^*=1, so nominal coverage holds for single units only. Narrower ones (mS<1m_S<1) attain nominal coverage at no subset size under Gaussian errors. Wider ones attain it up to k∗k^*, with k∗−1k^*-1 inversely proportional to ρS\rho_S.

Equations (8) and (9) hold for any error distribution. When the reported variance varies across queries, Equation (1) is an approximation, since RR is a ratio of expectations (Appendix G); we test it in § 5.2.

The source of the error correlation

For the posterior mean, the correlation ρS\rho_S in Proposition 1 comes entirely from posterior uncertainty over the SCM. Write Zi=(Xi,Ti,Yi)Z_i=(X_i,T_i,Y_i) for the observed record of unit ii. Given the SCM, the units of a task are i.i.d. The SCM itself is random, however, so the joint distribution of the units is a mixture over SCMs,

p(Z1,…,Zn)=∫∏i=1np(Zi∣ζ) dπ(ζ).(12)p(Z_1,\ldots,Z_n)=\int\prod_{i=1}^{n}p(Z_i\mid\zeta)\,\mathrm{d}\pi(\zeta). \tag*{(12)}

which does not factorize across units. Because observing one unit is informative about ζ\zeta, and hence about the others, the units are exchangeable but not independent. De Finetti’s theorem (de Finetti, [12]), in the general form of Hewitt & Savage [21], shows that any infinitely exchangeable sequence admits such a representation for some random measure. For CFMs, that measure is the observational distribution of the SCM, and under the assumptions of § 3 each τ(Xi;ζ)\tau(X_i;\zeta) is a functional of it. A CFM that is permutation invariant in its context treats its data as exchangeable.

Proposition 2 (Source of the correlation). For any estimator whose outputs are functions of D\mathcal{D},

Cov⁡(ei,ej∣D)=Cov⁡ζ∼π(ζ∣D)(τ(Xi;ζ),τ(Xj;ζ)).(13)\operatorname{Cov}(e_i,e_j\mid\mathcal{D})=\operatorname{Cov}_{\zeta\sim\pi(\zeta\mid\mathcal{D})}\left(\tau(X_i;\zeta),\tau(X_j;\zeta)\right). \tag*{(13)}

If SS is conditionally independent of the unit effects given D\mathcal{D}, then cSc_S is the average, over D\mathcal{D}, SS, and pairs of distinct units in SS, of this covariance plus bibjb_i b_j, where bi:=E[ei∣D]b_i:=\mathbb{E}[e_i\mid\mathcal{D}]. For the posterior mean under π\pi, bi=0b_i=0.

Proof sketch (Appendix G). Given D\mathcal{D}, the outputs τ^i\hat{\tau}_i are fixed; given ζ\zeta as well, each τi\tau_i is fixed. Hence Cov⁡(ei,ej∣ζ,D)=0\operatorname{Cov}(e_i,e_j\mid\zeta,\mathcal{D})=0, and the law of total covariance leaves only the covariance of τi\tau_i and τj\tau_j across posterior draws of ζ\zeta. Averaging E[eiej∣D]=Cov⁡(ei,ej∣D)+bibj\mathbb{E}[e_i e_j\mid\mathcal{D}]=\operatorname{Cov}(e_i,e_j\mid\mathcal{D})+b_i b_j over D\mathcal{D}, SS, and pairs gives cSc_S. The term bibjb_i b_j is positive when the estimator errs in the same direction at units ii and jj.

Equation (3) includes this covariance, and Equation (2) sets it to zero. The unit-level marginals p(τi∣D)p(\tau_i\mid\mathcal{D}) do not determine it (Appendix G), so recovering it requires a joint model of the unit effects or, as in martingale posteriors (Ng et al., [37]; Melnychuk et al., [31]), repeated forward passes.

SCM-marginalized aggregation

The posterior variance of θS\theta_S averages the covariance of Proposition 2 over all k2k^2 pairs of units,

Var⁡(θS∣D)=1k2∑i∈S∑j∈SCov⁡ζ∼π(ζ∣D)(τ(Xi;ζ),τ(Xj;ζ)).(14)\operatorname{Var}(\theta_S\mid\mathcal{D})=\frac{1}{k^2}\sum_{i\in S}\sum_{j\in S}\operatorname{Cov}_{\zeta\sim\pi(\zeta\mid\mathcal{D})}\left(\tau(X_i;\zeta),\tau(X_j;\zeta)\right). \tag*{(14)}

In practice, both distributions in Equations (2) and (3) are approximated by Monte Carlo sampling. The two schemes differ in whether the unit effects in one draw are sampled independently or computed under one shared draw of the SCM. Let θ~S=k−1∑i∈Sτ~i\tilde{\theta}_S = k^{-1}\sum_{i\in S}\tilde{\tau}_i be one draw of the subset-CATE and ζ~∼π(ζ∣D)\tilde{\zeta}\sim\pi(\zeta\mid D) one draw of the SCM. Conditional on DD, the variance of one draw is

unit-level:τ~i∼ind.p(τi∣D),Var⁡(θ~S∣D)=1k2∑i∈SVar⁡(τi∣D),SCM-marginalized:τ~i=τ(Xi;ζ~),Var⁡(θ~S∣D)=Var⁡(θS∣D).(15)\begin{aligned} \text{unit-level:}\quad&\tilde{\tau}_i \mathrel{\overset{\mathrm{ind.}}{\sim}} p(\tau_i\mid D), \qquad\operatorname{Var}(\tilde{\theta}_S\mid D)=\frac{1}{k^2}\sum_{i\in S}\operatorname{Var}(\tau_i\mid D), \\ \text{SCM-marginalized:}\quad&\tilde{\tau}_i=\tau(X_i;\tilde{\zeta}), \qquad\operatorname{Var}(\tilde{\theta}_S\mid D)=\operatorname{Var}(\theta_S\mid D). \tag*{(15)} \end{aligned}

The first is what CausalPFN’s aggregate estimator computes, and it omits the cross terms of Equation (14). The second includes them, because the units in a draw share one SCM. For the exact posterior under π\pi, the first gives R=1/(1+(k−1)ρS)R=1/(1+(k-1)\rho_S) in Proposition 1, and the second gives R=1R=1 and exact coverage at every kk (Corollary 1). Since no CFM outputs draws of ζ\zeta, the models below approximate SCM-marginalized aggregation without them.

Latent NP. A latent NP (Garnelo et al. [19]) replaces the SCM with a learned latent variable zz. An encoder maps the context to a distribution qψ(z∣D)q_\psi(z\mid D), and a decoder maps zz, the context, and a unit’s covariates to a distribution over that unit’s effect. The model’s joint distribution over the unit effects is then

pϕ((τi)i∈S∣D)=∫∏i∈Spϕ(τi∣z,Xi,D) qψ(z∣D) dz,(16)p_\phi((\tau_i)_{i\in S}\mid D)=\int\prod_{i\in S}p_\phi(\tau_i\mid z,X_i,D)\,q_\psi(z\mid D)\,dz, \tag*{(16)}

which has the SCM-marginalized form of Equation (3) with zz in place of ζ\zeta. The model is trained on two likelihood terms estimated with draws of zz from qψ(z∣D)q_\psi(z\mid D), with no KL term (cf. Foong et al. [16]): one for each unit’s effect and one for θS\theta_S on a random subset SS, averaging the decoded unit effects within each draw (Appendix § 9). Because the decoder treats units as independent given zz, any dependence between units that the model learns must be captured by zz. The subset-level term trains this dependence directly, since for large subsets the variance the model assigns to θS\theta_S comes mainly from how the within-draw averages vary across draws. At inference, we sample one per Monte Carlo draw, decode every unit of SS from it, and average, which implements Equation (16) with zz in place of ζ\zeta. Uncertainty in the per-unit decoder given zz is still combined as in unit-level aggregation.

Direct-decode CNP. The CNP (Garnelo et al. [18]) takes SS as a mask in the forward pass and outputs a Gaussian qϕ(θS∣D,S)q_\phi(\theta_S\mid D,S). When it is trained to minimize E[−log⁡qϕ(θS∣D,S)]\mathbb{E}[-\log q_\phi(\theta_S\mid D,S)] over uniformly drawn subsets of all sizes, the best Gaussian output has the mean and variance of the posterior ∫p(θS∣ζ) dπ0(ζ∣D)\int p(\theta_S\mid\zeta)\,d\pi_0(\zeta\mid D) under its training prior π0\pi_0 (Proposition 3). It thus reports the variance of Equation (14), cross terms included, without sampling. Because SS is an input, the model need not be retrained for new subsets.

Experiments

Setup

Datasets. We train and evaluate our own models on a synthetic family of SCMs (Appendix § 8). Each task draws a new SCM with three covariates and n=500n=500 units, and θS\theta_S has a closed form for every subset. A sharpness parameter ss controls how far propensity scores are pushed toward 0 and 1; we use s=1s = 1 and s=4s = 4 for our models and s∈{1,2,4,6}s \in\{1, 2, 4, 6\} for CausalPFN. CausalPFN is evaluated on the same family and on six standard benchmarks (Table 1), and our heads on CausalPFN on the six benchmarks. Because all of them have simulated response surfaces, we score intervals against each unit’s known conditional effect (Appendix § 8).

datasetcovariatessourcenndd
Synthetic familysimulated N(0,I)\mathcal{N}(0, I)Appendix § 85003
Hill-Asimulated N(0,I)\mathcal{N}(0, I)Hill [22], setting A100025
Friedmansimulated U(0,1)U(0, 1)Friedman [17], confounded100010
IHDPreal, IHDP studyHill [22]; splits of Shalit et al. [43]74725
Hill-Bsimulated N(0,I)\mathcal{N}(0, I)Hill [22], setting B100025
Kang–Schafersimulated, nonlinear in 4 latentsKang & Schafer [26]10004
ACIC 2016real, competition covariate tableDorie et al. [13]480258

Table 1. Datasets used in our experiments. Our models are trained and evaluated on the synthetic family, our heads on CausalPFN are evaluated on the six benchmarks, and CausalPFN is evaluated on all seven. Hill-A, Hill-B, Friedman, and Kang–Schafer are our reimplementations (Appendix § 8). dd is the number of covariates supplied to the estimator.

Models. CausalPFN is used as released, without retraining, with intervals formed by its own aggregate estimator. On the benchmarks we enable its built-in per-dataset temperature calibration; on the synthetic family we use its default, which leaves calibration off. Our CNP and latent NP are trained at s=1s = 1, with three seeds each (Appendix § 9). To evaluate SCM-marginalized aggregation on the benchmarks, we also train both models as heads on the frozen CausalPFN, on a broader prior with nn between 100 and 5000 and up to 60 covariates, with three seeds each. Each head reads CausalPFN’s last hidden states and its unit-level effect mean and standard deviation (Appendix § 9). No benchmark is used for training or checkpoint selection.

Experiments. The benchmark experiment applies CausalPFN to each benchmark, querying uniformly drawn subsets of increasing size on 40 datasets per benchmark. The fixed-weight experiment holds a trained CNP or latent NP fixed and, for the same subset, forms one interval by unit-level aggregation, as in Equation (2), and one by SCM-marginalized aggregation, as in Equation (3). Because weights, context, subsets, and targets are shared, the comparison isolates the aggregation step (for the CNP, the point estimate also differs). It tests the mechanism and is not a comparison with CausalPFN. It covers six subset selection rules for the CNP and three for the latent NP, plus s=4s = 4 for the CNP with uniformly drawn subsets. We call each of the 60 combinations of trained model, rule, subgroup size, and ss a cell (Appendix § 9). The head experiment repeats the fixed-weight comparison with the heads on the six benchmarks, on the datasets and uniformly drawn subsets of the benchmark experiment. The variance-ratio experiment compares coverage with Proposition 1 for every model, rule, and subset size.

Metrics. We report coverage of nominal 95% intervals, estimated over tasks and subsets as in Appendix § 9, and k^\hat{k}, the subset size at which observed coverage first falls below nominal. Because mSm_S and ρS\rho_S require the true effects, we use them only to explain the results.

Results

Benchmarks. Table 4 in Appendix § 13 gives the full results behind Figure 1. Coverage starts at or above nominal on every benchmark in the figure and falls below it as subsets grow, fastest on ACIC 2016 and slowest on Hill-A, where it falls below nominal only beyond half the sample. Equation (1) approximates the observed curves but overstates coverage on Hill-B and Kang–Schafer (Appendix § 13). The error correlation alone does not predict where coverage fails. Hill-A has the largest correlation in the suite (ρS=0.077\rho_S = 0.077) but is the last to fall below nominal, while Hill-B, with a correlation twenty times smaller, loses coverage at 5.8% of its sample. Equation (11) accounts for the ordering, since Hill-A’s unit-level intervals are far too wide (mS=35m_S = 35) and Hill-B’s only slightly (mS=1.42m_S = 1.42). Accurate unit-level estimates do not ensure aggregate coverage either. Although Kang–Schafer has the second-lowest normalized RMSE in the suite (0.09), it loses coverage at 2.1% of its sample.

benchmarknnρS\rho_SmSm_SnRMSEcov at k=nk=nsek^∗\hat{k}^{*} (k^∗/n\hat{k}^{*}/n)
Hill-A10000.077135.130.070.820.06502 (50%)
Friedman10000.033411.750.100.700.07383 (38%)
IHDP7470.04205.430.110.600.0885 (11%)
Hill-B heavy-tailed10000.00772.030.300.530.0862 (6.2%)
Hill-B10000.00381.420.280.530.0858 (5.8%)
Kang–Schafer10000.01851.430.090.300.0721 (2.1%)
ACIC 201648020.02021.630.270.200.0630 (0.6%)

Table 4. The benchmarks of Figure 1 and the heavy-tailed variant of Hill-B, which the figure omits: CausalPFN with its temperature calibration, unit-level aggregation, subsets drawn uniformly at random, 40 datasets per benchmark. k^∗\hat{k}^{*} is the subset size at which observed coverage first falls below nominal, interpolated in log kk, with k^∗/n\hat{k}^{*}/n as a percentage of the sample. nRMSE is the root-mean-square error of the per-unit effect estimates divided by the standard deviation of the observed outcome, within each dataset and averaged over datasets. Rows are ordered by k^∗/n\hat{k}^{*}/n.

Fixed weights. In Figure 2, the unit-level interval shrinks at close to the k−1/2k^{-1/2} rate that independence implies, and at the largest subsets it is 7.7 times narrower than the SCM-marginalized interval for the CNP and 5.5 times for the latent NP. Unit-level coverage falls with kk, while SCM-marginalized coverage stays between 0.90 and 0.98. Across all 60 cells, SCM-marginalized coverage at the largest subset has a median of 0.89 (range 0.70 to 0.99), and its lowest value exceeds the highest unit-level value (0.47). Coverage is lowest for the CNP with s=4s = 4, outside its training distribution, and for subsets selected on the true effect, which Corollary 1 excludes because SS depends on the SCM. The latent NP, whose decoder treats units as independent given zz, has a median of 0.83. In a separate comparison without fixed weights, with three models trained at n=2000n = 2000, unit-level coverage is 0.17 at k=nk = n, and the two SCM-marginalized models reach 0.97 and 0.98 (Table 5).

Figure 2. Unit-level and SCM-marginalized aggregation from one CNP and one latent NP, with uniformly drawn subsets at s=1s=1, showing interval width and coverage against subset size.

modelaggregationk=5k=5k=50k=50k=500k=500k=2000k=2000
CNPunit-level0.930.610.290.17
latent NPSCM-marginalized1.000.980.970.97
CNPSCM-marginalized0.950.980.980.98

Table 5. Coverage of nominal 95% subset-CATE intervals at n=2000n = 2000 over 96 tasks with 24 subsets each. The two CNP rows are separately trained models. Each model was trained once, with optimization settings that differ from Appendix § 9 and from each other, so the comparison is not controlled for optimization.

Heads on CausalPFN. Figure 3 and Table 7 in Appendix § 13 repeat the fixed-weight comparison with the added heads on the six benchmarks. At k=nk = n, unit-level aggregation from the same weights covers between 0.10 and 0.72, and SCM-marginalized aggregation between 0.71 and 1.00. Over the six benchmarks, the full-sample interval contains the true value in 90% of the 240 datasets for the CNP head and 89% for the latent NP head, against 25% and 52% under unit-level aggregation and 53% for CausalPFN. It is furthest below nominal on ACIC 2016 (0.71 and 0.78) and Hill-B (0.83 and 0.85). The heads do not improve unit-level accuracy. Their normalized RMSE is lower than CausalPFN’s on Hill-A, Friedman, and Kang–Schafer and higher on Hill-B (0.52 against 0.28), IHDP (0.20 and 0.21 against 0.11), and ACIC 2016 (0.30 against 0.27), and at k=nk=n their intervals are wider than CausalPFN’s on every benchmark (Table 8).

Figure 3. Coverage of nominal 95% subset-CATE intervals on the six benchmarks, with subsets drawn uniformly at random. Left: CausalPFN with unit-level aggregation, as in Figure 1. Middle and right: SCM-marginalized aggregation from the CNP and latent NP heads on the frozen CausalPFN, with lines showing the mean over three seeds and bands their range. The heads condition on the whole sample, while the CausalPFN curves come from its public interface, which on ACIC 2016 conditions groups of units on their nearest neighbours (Appendix § 13). The figure compares aggregation rules on the same benchmarks, not the accuracy of the models.

benchmarkCausalPFNCNP headlatent NP head
unit-levelunit-levelSCM-marg.unit-levelSCM-marg.
Hill-A0.820.18 [.12, .20]0.94 [.88, .97]0.62 [.57, .70]0.92 [.85, .97]
Hill-B0.530.30 [.23, .35]0.83 [.78, .95]0.42 [.25, .57]0.85 [.68, .97]
Friedman0.700.23 [.20, .25]0.97 [.90, 1.00]0.68 [.68, .70]0.90 [.82, .97]
Kang–Schafer0.300.38 [.35, .42]1.00 [1.00, 1.00]0.72 [.68, .78]0.98 [.97, 1.00]
IHDP0.600.30 [.20, .42]0.94 [.90, 1.00]0.48 [.47, .50]0.89 [.80, .95]
ACIC 20160.200.10 [.07, .15]0.71 [.68, .72]0.18 [.17, .20]0.78 [.70, .88]
covered, of 24012659 [54, 68]216 [211, 222]125 [117, 131]213 [207, 217]

Table 7. Coverage of nominal 95% intervals for the full-sample average (k=nk = n) on the six benchmarks, 40 datasets each. CausalPFN’s column is the full-sample column of Table 4. The heads’ columns give the mean over three seeds, with the range of the per-seed values in brackets. Standard errors clustered by dataset are at most 0.06 for the heads. The last row counts datasets whose full-sample interval contains the true value.

benchmarkmodelmSm_SρS\rho_SnRMSEwidth, ownwidth, unit-level
Hill-ACausalPFN35.130.07710.07—0.055
CNP head2.830.23670.060.0920.012
latent NP head24.190.16130.060.1030.038
Hill-BCausalPFN1.420.00380.28—0.047
CNP head0.840.01830.520.1840.050
latent NP head0.970.01220.520.1980.068
FriedmanCausalPFN11.750.03340.10—0.041
CNP head1.280.06180.070.0760.010
latent NP head13.190.07080.070.0670.033
Kang–SchaferCausalPFN1.430.01850.09—0.013
CNP head2.850.03930.050.0690.010
latent NP head13.650.03820.050.0500.026
IHDPCausalPFN5.430.04200.11—0.055
CNP head3.900.05540.200.1920.040
latent NP head8.840.09420.210.2210.084
ACIC 2016CausalPFN1.630.02020.27—0.019
CNP head0.960.02610.300.0930.016
latent NP head2.460.01810.300.1110.029

Table 8. Unit-level calibration, error correlation, accuracy, and interval width on the six benchmarks. mSm_S and ρS\rho_S use the estimator of Appendix § 9, from each model’s unit-level means and standard deviations (for the CNP head, the head queried with each unit alone), and nRMSE is defined as in Table 4. CausalPFN’s mSm_S, ρS\rho_S, and nRMSE are those of Table 4. Widths are mean widths of the full-sample interval in units of sd(yy): own is the head’s SCM-marginalized interval, and unit-level is unit-level aggregation from the same model. CausalPFN’s width is computed with the whole sample as context, at the temperatures fitted for Table 4. Heads: mean over three seeds.

Variance ratio. Figure 4 plots observed coverage against RR. We compare it with the prediction for R<1R<1, since for R≥1R\ge1 the predicted coverage is at least nominal. Unit-level coverage closely follows Equation (1), with a median absolute error of 0.043 for our models and 0.021 for CausalPFN on the synthetic family. Because Equations (8) and (9) are exact given mSm_S and ρS\rho_S, the figure mainly tests the Gaussian and fixed-variance assumptions. SCM-marginalized points lie well above the curve (median absolute error 0.315), since their intervals include the cross terms. On the benchmarks, the prediction for unit-level aggregation from the heads has a median absolute error of 0.029 for the CNP head and 0.042 for the latent NP head over the points with R<1R < 1, with its largest error on IHDP for both heads (0.23 and 0.15; Appendix § 13).

Figure 4. Measured coverage against the variance ratio RR of Proposition 1, pooled across models, values of ss, subset selection rules, and subset sizes. The curve is Equation (1), with mSm_S and ρS\rho_S measured from unit-level errors. SCM-marginalized points are plotted at the RR of unit-level aggregation.

Discussion and limitations

Our CNP and latent NP are small models trained on a synthetic family; we do not claim they match CausalPFN’s accuracy or generality. As heads on a frozen CausalPFN, they recover most of the coverage lost on the benchmarks but not all of it, and their unit-level estimates are less accurate than CausalPFN’s on three of the six, most of all on Hill-B and IHDP. Because our family has few parameters, a small latent can capture most of the posterior dependence, but richer priors may require a larger one. On benchmarks, part or all of ρS\rho_S can come from the shared bias term bibjb_i b_j of Proposition 2, which no aggregation rule removes.

For existing models, rescaling unit-level intervals to be calibrated did not help in our experiments, and it made coverage worse when they were too wide (Appendix § 10). Multiplying the aggregate variance by the design effect brings coverage close to nominal, but it requires ρS\rho_S and mSm_S. They could be estimated on simulated tasks, but they vary across our benchmarks by more than an order of magnitude (Table 4) and depend on the model as well as the subgroup.

Conclusion

Causal foundation models commonly form intervals for effects averaged over the full sample, the treated units, or a subgroup by combining unit-level intervals as if the errors were independent. Because posterior uncertainty over the SCM makes these errors correlated, the combined variance is too small by the design effect, and coverage falls as the group grows. We observe this on all six standard benchmarks, trace it to the aggregation step with the weights held fixed, and predict its size from mSm_S and ρS\rho_S. Integrating over the SCM jointly for all units recovers the missing covariance. Both models we test that do so give much higher coverage than unit-level aggregation, on the synthetic family and as heads on a frozen CausalPFN on the six benchmarks, though not always at the nominal level.

Use of AI Tools

We used large language models to aid and polish writing, for retrieval and discovery of related work, and to draft sections of this paper. All drafted text was reviewed and revised by the authors, all cited work was verified against primary sources, and all theoretical claims and experimental results are the authors’ own.

Reproducibility Statement

Appendix A specifies the synthetic family in full, including the coefficient priors and the propensity mechanism, and gives the covariate source, sample size, and generating design for each of the six benchmarks. Appendix B gives the architectures, the training setup and checkpoint selection for each model, and the task and subset counts behind every coverage estimate we report. Appendix E identifies the CausalPFN code paths our characterization relies on, at a pinned commit. CausalPFN is used as released, without retraining, with the calibration settings of § 5.1. Code to reproduce every figure and table, with the recorded configuration and training command for each of our trained models, is available at https://github.com/gabeschulman-nyu/subset-cate-coverage.

Data-generating processes

We use a synthetic family so that the true subset-CATE can be computed exactly for any subset and the conditions under which coverage fails can be varied.

Synthetic family

Each task draws a fresh set of coefficients, then nn units from the resulting SCM. Covariates are Xℓ∼N(0,1)X_\ell\sim\mathcal{N}(0,1) independently for ℓ=1,…,d\ell= 1,\ldots,d with d=3d = 3, and each unit is summarized by the feature vector

h(X)=[X1,…,Xd,X12,…,Xd2]∈R6,(17)h(X) = [X_1,\ldots,X_d,X_1^2,\ldots,X_d^2] \in\mathbb{R}^6, \tag*{(17)}

which includes squared terms so that both treatment assignment and outcome may depend nonlinearly on the covariates.

Treatment is assigned according to a propensity score p(X)=Pr⁡(T=1∣X)p(X) = \Pr(T = 1 \mid X), and the outcome is generated as

T∣X∼Bernoulli⁡(p(X)),p(X)=0.05+0.90exp⁡(sh(X)⊤wp),(18)T \mid X \sim\operatorname{Bernoulli}(p(X)), \qquad p(X) = 0.05 + 0.90\exp\left(s h(X)^\top w_p\right), \tag*{(18)}
Y=h(X)⊤wb+Tτ(X)+u,u∼N(0,0.252).(19)Y = h(X)^\top w_b + T\tau(X) + u, \qquad u \sim\mathcal{N}(0,0.25^2). \tag*{(19)}

The sharpness ss controls how far propensity scores are pushed toward 0 and 1. For any ss, p(X)p(X) stays in [0.05,0.95][0.05, 0.95], so positivity holds. Our models are trained only at s=1s = 1, and the CNP is also evaluated at s=4s = 4, outside its training distribution. We evaluate CausalPFN at s∈{1,2,4,6}s \in\{1,2,4,6\}, and the settings above s=1s = 1 account for 25 of its 29 points with R<1R < 1 in Figure 4.

The CATE is

τ(X)=0.25+h(X)⊤we.(20)\tau(X) = 0.25 + h(X)^\top w_e. \tag*{(20)}

The covariates enter both the propensity score and the outcome, so they are confounders. Since they are fully observed, τ\tau is identified.

Since τ(X)\tau(X) is available in closed form, θS\theta_S is computed exactly for every task and subset, and targets add no Monte Carlo error to the coverage estimates.

The per-task coefficients are drawn as

wb∼N(0,0.52I6),we∼N(0,0.352I6),wp∼N(0,0.352I6),(21)w_b \sim\mathcal{N}(0,0.5^2 I_6), \qquad w_e \sim\mathcal{N}(0,0.35^2 I_6), \qquad w_p \sim\mathcal{N}(0,0.35^2 I_6), \tag*{(21)}

independently across tasks.

Given the coefficients, units are drawn independently, so they are i.i.d. given the SCM ζ\zeta and exchangeable but not independent marginally, as in § 4.2.

Benchmarks

We evaluate CausalPFN on the six standard benchmarks of Table 1 and on a heavy-tailed variant of Hill-B. In each, the response surfaces are simulated, so each unit’s conditional effect μ1(Xi)−μ0(Xi)\mu_1(X_i)-\mu_0(X_i) is known. We score intervals against it, not against the difference of the two noisy potential outcomes, and there is no unobserved confounding by construction. IHDP and ACIC 2016 pair the simulated surfaces with covariates from real studies; IHDP uses the ihdp_npci1-100 splits and ACIC 2016 the official aciccomp2016 generator. The other designs simulate the covariates as well, with n=1000n = 1000 and independent N(0,1)\mathcal{N}(0,1) noise on each potential outcome.

  • Hill-A. Twenty-five N(0,1)\mathcal{N}(0,1) covariates, a logistic propensity in the first five, μ0=Xβ\mu_0 = X\beta, and μ1=Xβ+4\mu_1 = X\beta+ 4 with β∼N(0,0.52I)\beta\sim\mathcal{N}(0,0.5^2 I), so the effect is constant at 4, as in surface A of Hill [22].

  • Hill-B. The same covariates and propensity, μ0=exp⁡((X+0.5)βB)\mu_0 = \exp((X + 0.5)\beta_B) with the entries of βB\beta_B drawn from {0,0.1,0.2,0.3,0.4}\{0,0.1,0.2,0.3,0.4\} with probabilities (0.6,0.1,0.1,0.1,0.1)(0.6,0.1,0.1,0.1,0.1), and μ1=Xγ+c\mu_1 = X\gamma+ c with γ∼N(0,0.32I)\gamma\sim\mathcal{N}(0,0.3^2 I) and cc set so that the average effect on the treated is 4. Unlike Hill [22], γ\gamma is drawn separately from βB\beta_B. The heavy-tailed variant replaces the Gaussian noise with t3t_3 noise.

  • Friedman. Ten U(0,1)U(0,1) covariates, a logistic propensity in 2(X1−0.5)+1.5(X3−0.5)2(X_1 - 0.5) + 1.5(X_3 - 0.5), μ0=10sin⁡(πX1X2)+20(X3−0.5)2+10X4+5X5\mu_0 = 10\sin(\pi X_1X_2) + 20(X_3 - 0.5)^2 + 10X_4 + 5X_5 as in Friedman [17], and effect 2+X1−X22 + X_1 - X_2.

  • Kang–Schafer. Four latent variables Z∼N(0,I)Z \sim\mathcal{N}(0,I), of which the estimator sees only the transformed covariates of Kang & Schafer [26], a logistic propensity in ZZ, and μ0=μ1=210+27.4Z1+13.7(Z2+Z3+Z4)\mu_0 = \mu_1 = 210 + 27.4Z_1 + 13.7(Z_2 + Z_3 + Z_4), so the effect is zero for every unit.

We use splits 1–40 of 100 for IHDP, settings 1–40 of 77 for ACIC 2016 (one replication each), and seeds 1–40 for the simulated designs, for 40 datasets per benchmark. In Hill-A, Friedman, and Kang–Schafer the effect is the same function of the covariates in every dataset, so under the benchmark’s own distribution the posterior covariance in Proposition 2 is zero and all of ρS\rho_S comes from the shared bias term bibjb_i b_j.

Training and evaluation protocol

Architectures. Both models encode each unit’s covariates, treatment, and outcome, and mean-pool the encodings into a summary of the sample. The CNP also pools the encodings of the queried subset and decodes a Gaussian for θS\theta_S from the two summaries in a single pass. The latent NP adds a 16-dimensional Gaussian latent zz whose mean and scale are computed from the sample summary, decodes each unit’s effect given zz as a 64-bin histogram on [−4,4][-4,4] in standardized units, and forms θS\theta_S within each draw of zz. Every network is a two-layer ReLU MLP of width 128, and neither model uses attention.

Training. Both models are trained on the synthetic family of Appendix § 8 at s=1s = 1 and n=500n = 500. The CNP is trained on subsets drawn uniformly at random, with size sampled log-uniformly between 1 and nn, by Gaussian negative log-likelihood. The latent NP’s loss uses 16 draws of zz and has two terms. The first is the cross-entropy of each unit’s histogram against a Gaussian-smoothed target at its true effect, averaged over draws. The second, with weight 2, is the negative log of the average over draws of a Gaussian likelihood for θS\theta_S, with SS drawn as for the CNP and, within each draw, the Gaussian matching the mean and variance of the average of the decoded unit effects. There is no KL term, and zz is drawn from the same distribution at inference, so this is a Monte Carlo likelihood objective similar to that of Foong et al. [16]. The latent NP standardizes each task’s outcome and covariates, and the CNP works on the raw scale, in both training and evaluation. We use Adam with learning rate 3×10−43 \times10^{-4} and cosine decay to 3×10−63 \times10^{-6}, batches of 64 tasks, and 30,000 steps. We train three seeds of each model. One seed takes about one GPU-hour for the CNP and under two for the latent NP.

Subset selection rules. The fixed-weight experiment uses six rules, each applied to a sample of n=500n = 500: uniformly drawn subsets of the whole sample; the top 25% of units by X1X_1; the bottom fraction by true propensity score; a random anchor unit and its nearest neighbours in covariate space; the top fraction by the model’s own predicted effect; and the top fraction by the true effect, an oracle rule. For the last four rules, the fraction is 0.10, 0.25, or 0.50. The CNP uses all six rules at s=1s = 1 and uniformly drawn subsets at s=4s = 4, for 15 settings; the latent NP uses the first three rules at s=1s = 1, for 5 settings. With three seeds each, this gives 45 CNP cells and 15 latent NP cells. Uniformly drawn subsets vary kk at a fixed error correlation, and the other rules select subgroups, as an analyst would. For the latent NP, the two intervals share the unit-level marginals and differ only in the aggregation step; for the CNP, they also differ in the point estimate, since the SCM-marginalized interval is decoded directly.

Checkpoint selection. We evaluate the checkpoint with the best score over the full run on 256 held-out validation tasks, using negative log-likelihood for the CNP and per-unit RMSE for the latent NP.

Heads on CausalPFN. For the benchmarks, we train both models as heads on the released CausalPFN (version 0.1.4), whose 18.8M parameters are frozen. Each dataset takes one forward pass with all nn units as context, and each unit is queried under t=0t = 0 and t=1t = 1. A unit’s input to the head is CausalPFN’s last hidden state under both treatments, which its own output layer reads, together with its unit-level effect mean and standard deviation in units of sd⁡(y)\operatorname{sd}(y). The CNP head (461k parameters) applies a small network to each unit, averages the outputs over the sample and over SS, and decodes a Gaussian for θS/sd⁡(y)\theta_S/\operatorname{sd}(y) from the two averages, log⁡k\log k, and k/nk/n. The latent NP head (621k parameters) draws a 16-dimensional zz from a Gaussian computed from the sample average and decodes each unit’s effect given zz as a 64-bin histogram on [−4,4][-4,4] in units of sd⁡(y)\operatorname{sd}(y); effects outside this range, 0.9% of units on Hill-B and 0.3% on ACIC 2016, fall in the end bins. Both are trained with the losses and optimizer above, with gradients clipped at norm 1.0. Training tasks are generated online and never reused, about 5M per run at about 20 tasks per step over 250,000 steps, with nn log-uniform between 100 and 5000 and between 1 and 60 covariates. Half of the tasks draw covariates from 330 real OpenML tables, excluding the source tables of the benchmarks, and half simulate them. Outcome surfaces are MLPs, trees, or additive functions with heterogeneous effects, propensities lie in [0.02,0.98][0.02, 0.98], and noise is Gaussian, tt, or skewed. Each task contributes 32 subsets of log-uniform size, instead of one. Each run keeps the checkpoint with the lowest validation loss on 256 held-out prior tasks, checked every 5000 steps, using the negative log-likelihood of θS\theta_S for the CNP head and the training objective for the latent NP head, where the latent NP above is selected on per-unit RMSE. We train three seeds of each head, and the same seed gives both heads the same task stream. For the CNP head, unit-level aggregation queries the head with each unit alone as the subset and combines the resulting Gaussians as in Equation (7). For the latent NP head, each unit receives its own independent draw of zz.

Estimating coverage. We estimate C(k)C(k) of Equation (5) over MM tasks with LL subsets sampled per task,

C^(k)=1ML∑j=1M∑l=1L1{θSjl∈[l^Sjl,u^Sjl]}.(22)\widehat{C}(k) = \frac{1}{ML}\sum_{j=1}^{M}\sum_{l=1}^{L}\mathbf{1}\{\theta_{S_{jl}} \in[\widehat{l}_{S_{jl}},\widehat{u}_{S_{jl}}]\}. \tag*{(22)}

Standard errors on C^(k)\widehat{C}(k) are clustered by task, since subsets from one task share its error component. The fixed-weight experiment uses 64 tasks with 24 subsets each, the n=2000n = 2000 comparison 96 tasks with 24 subsets each, and the benchmarks 40 datasets with 48 subsets each.

Measuring ρS\rho_S and mSm_S. We compute σS2\sigma_S^2 and cSc_S as the empirical second moments of Equation (6), from unit-level errors against the analytic targets of Appendix § 8, and mSm_S as the model’s average reported unit-level variance divided by σS2\sigma_S^2. Both ρS\rho_S and mSm_S require the true effects, so neither can be computed in practice, and we use them only as diagnostics. On the benchmarks, we pool errors in outcome units over the 40 datasets, compute the moments at each subset size from one subset per dataset, and report the median over sizes. Where error scales differ widely across datasets, the estimate depends on this choice. For the CNP head on Hill-B, for example, mSm_S is 0.84 with this estimator and 0.44 when all 48 subsets per dataset and size are used, and Equation (1) is correspondingly less reliable there (Appendix § 14).

Correcting for the design effect

Correcting mSm_S and then ρS\rho_S separates the contribution of unit-level calibration from that of the aggregation step.

Table 2 compares three intervals built from the same unit-level outputs. The reported interval is the model’s own. The rescaled interval divides the unit-level variances by mSm_S, the standard correction for miscalibrated unit-level intervals, and then aggregates at the unit level as before. The + design effect interval additionally multiplies the aggregate variance by 1+(k−1)ρS1 + (k - 1)\rho_S. The CNP row averages its three seeds, each corrected with its own ρS\rho_S and mSm_S.

modeldatamSm_Skmax⁡k_{\max}intervalcov, smallest kkcov, kmax⁡k_{\max}
CausalPFNs=1s = 1, all units21.90500reported1.000.94
rescaled0.910.41
+ design effect0.910.93
CausalPFNs=4s = 4, bottom 10%3.6344reported0.990.79
rescaled0.960.58
+ design effect0.960.93
CausalPFNIHDP5.43747reported1.000.60
rescaled0.980.25
+ design effect0.980.93
CNP (ours)s=1s = 10.93500unit-level0.890.23
rescaled0.910.24
+ design effect0.920.93

Table 2. Coverage of the three intervals of Appendix C at the smallest and largest subset in each setting. kmax⁡k_{\max} is the largest evaluated subset size within the pool. The + design effect interval uses ρS\rho_S and mSm_S measured against the true effects and is not available in practice.

In the three CausalPFN rows mS>1m_S > 1, and rescaling lowers coverage at both the smallest subset and kmax⁡k_{\max}. Under unit-level aggregation, only over-wide unit-level intervals offset the design effect, and rescaling removes them without correcting the aggregation. The CNP’s unit-level intervals are close to calibrated (mS=0.93m_S = 0.93), so rescaling changes little and coverage at kmax⁡k_{\max} stays near 0.24.

CausalPFN’s own temperature calibration acts like rescaling. Its full-sample interval on ACIC 2016 covers the true value in 18 of 40 datasets without it and in 8 with it.

The design-effect interval removes the dependence on kk, as Equation (9) implies, but it requires ρS\rho_S and mSm_S measured against the true effects and so cannot be used in practice.

Subgroup selection

In Table 3, subsets are selected on the propensity score or on covariates, as an analyst querying a subgroup would select them, instead of uniformly at random.

subsetρS\rho_SmSm_Skmax⁡k_{\max}1+(kmax⁡−1)ρS1+(k_{\max}-1)\rho_Sk^∗\hat{k}^{*}
s=1s=1, propensity stratum
all units (baseline)0.03421.9050017.9398
bottom 50%0.06923.2325018.3216
bottom 25%0.12014.1012515.983
bottom 10%0.2248.074410.634
s=1s=1, nested covariate cell
X1>0X_1>00.04322.891778.7—
∧X2>0\land X_2>00.07623.83897.7—
∧X3>0\land X_3>00.12226.46314.7—
s=1s=1, covariate neighbourhood
nearest 50%0.07545.4625019.6—
nearest 25%0.14346.0812518.7—
nearest 10%0.23136.094410.9—
s=4s=4, propensity stratum
all units (baseline)0.0599.2050030.493
bottom 50%0.0769.7225020.089
bottom 25%0.1426.1212518.631
bottom 10%0.2573.634412.18
s=4s=4, nested covariate cell
X1>0X_1>00.0699.4117713.186
∧X2>0\land X_2>00.0959.58899.458
∧X3>0\land X_3>00.1768.44316.3—

Table 3. Subset selection rules on CausalPFN at n=500n=500, with intervals formed by unit-level aggregation, over 64 tasks with 48 subsets per task. kmax⁡k_{\max} is the largest evaluated subset size within the pool and 1+(kmax⁡−1)ρS1+(k_{\max}-1)\rho_S the design effect at that size; “—” means coverage never falls below nominal within the pool. k^∗\hat{k}^{*} is defined in § 5.1.

Narrowing a pool raises ρS\rho_S but shrinks kmax⁡k_{\max}, so the largest reachable design effect changes much less than either and falls for the narrowest pools.

Narrow propensity strata also lower mSm_S, whereas nested covariate cells leave it roughly unchanged and covariate neighbourhoods raise it. A rule that raises ρS\rho_S without lowering mSm_S need not reduce coverage below nominal.

At s=1s = 1, nested covariate cells reach ρS\rho_S comparable to the bottom 25% propensity stratum and still never fall below nominal, because mSm_S stays high. At s=4s = 4, where mSm_S starts lower, the first two covariate cells do.

How existing models construct subset-CATE intervals

CausalPFN. Each unit’s predictive distribution is a histogram over 1024 bins ([4]). The subset-CATE point estimate is the average of the relevant unit-level point estimates. For the credible interval, its code draws one sample from each unit’s predictive distribution, averages those samples across the units in SS, repeats this many times, and takes percentiles of the resulting distribution of averages. For every subset, including the full sample, we apply this procedure to per-unit draws from CausalPFN’s sampler.

Let τ^i(b)\hat{\tau}_i^{(b)} denote the bb-th draw from unit ii’s predictive distribution, and let θ^(b)=k−1∑i∈Sτ^i(b)\hat{\theta}^{(b)} = k^{-1}\sum_{i\in S}\hat{\tau}_i^{(b)} be the corresponding draw of the subset-CATE. Given D\mathcal{D}, draws for different units are generated independently and share no randomness, so the covariance terms vanish and the variance of each aggregate draw is exactly

Var⁡(θ^(b))=1k2∑i∈SVar⁡(τ^i(b))+1k2∑i,j∈Si≠jCov⁡(τ^i(b),τ^j(b))=1k2∑i∈Sσ^i2=σ^S2,(23)\operatorname{Var}\left(\hat{\theta}^{(b)}\right) = \frac{1}{k^2}\sum_{i\in S}\operatorname{Var}\left(\hat{\tau}_i^{(b)}\right) + \frac{1}{k^2}\sum_{\substack{i,j\in S\\i\ne j}}\operatorname{Cov}\left(\hat{\tau}_i^{(b)},\hat{\tau}_j^{(b)}\right) = \frac{1}{k^2}\sum_{i\in S}\hat{\sigma}_i^2 = \hat{\sigma}_S^2, \tag*{(23)}

where σ^i2\hat{\sigma}_i^2 is the variance of unit ii’s predictive distribution. This is Equation (7), and the percentiles the code returns are Monte Carlo estimates of the quantiles of this distribution.

The interval the code returns is a percentile interval of the sampled aggregate distribution instead of the symmetric interval θ^S±z1−α/2σ^S\hat{\theta}_S \pm z_{1-\alpha/2}\hat{\sigma}_S. The two coincide when the sampled distribution is symmetric, and the average of kk independent draws approaches a Gaussian as kk grows, so the discrepancy is largest at small kk and negligible at the subset sizes where coverage fails. Whether σ^i2\hat{\sigma}_i^2 matches unit ii’s actual squared error is a separate question, which mSm_S measures.

Do-PFN and CausalFM. Neither provides an aggregate estimator. The only uncertainty quantification in Do-PFN’s repository, which is not part of its estimation interface, builds an interval from the standard error across units and so also assumes independence. CausalFM returns a Gaussian mixture for each unit, and the interval construction in its documentation samples each unit’s mixture independently and forms a separate interval for each unit. The only aggregate quantity in its documentation is an average of unit-level point estimates, with no associated credible interval.

Additional results

Sample size. Whether ρS\rho_S falls with nn depends on the prior. When a few shared parameters drive the effect, as in our synthetic family, errors on different units stay correlated as the posterior concentrates, so ρS\rho_S need not fall at all. If it fell as n−1n^{-1}, the design effect at a fixed fraction of the sample would stay constant in nn. Table 6 gives results for CausalPFN on the synthetic family of Appendix § 8 at five sample sizes.

nnρS\rho_SmSm_Sk^∗\hat{k}^{*}1+(n−1)ρS1 + (n - 1)\rho_Scov at k=nk=n
1250.03857.03—60.95±0.020.95 \pm0.02
2500.042214.25—120.96±0.020.96 \pm0.02
5000.033921.90398180.94±0.030.94 \pm0.03
10000.023032.67980240.95±0.020.95 \pm0.02
20000.023040.081376470.93±0.030.93 \pm0.03

Table 6. CausalPFN on the synthetic family of Appendix § 8 at five sample sizes, with subsets drawn uniformly at random, 64 tasks and 48 subsets per task; coverage at k=nk = n is given ±\pm one standard error clustered by task. The same CausalPFN model is used throughout, so no training choice varies down the table. 1+(n−1)ρS1 + (n - 1)\rho_S is the design effect at the full sample; “—” means coverage never falls below nominal. k^∗\hat{k}^{*} is defined in § 5.1.

The decay is far slower than n−1n^{-1}. A power law fitted to the five points has exponent −0.24-0.24, and over the sixteenth-fold range of nn in the table ρS\rho_S falls by a factor of 1.7. The largest subset grows with nn while the correlation barely falls, so the design effect at the full sample, 1+(n−1)ρS1+(n-1)\rho_S, grows from 6 at n=125n=125 to 47 at n=2000n=2000.

Coverage at k=nk=n nonetheless stays close to nominal across the table, because mSm_S grows as well. CausalPFN’s per-unit errors shrink faster than the intervals it reports for them, so mSm_S rises from 7 to 40, with a fitted exponent of 0.62, and the numerator of Equation (9) grows about as fast as the denominator. On the benchmarks of § 5.2, mSm_S lies between 1.42 and 35.1, and coverage falls below nominal on every one of them.

Accuracy of the predictions. The measured k^∗\hat{k}^{*} is within 15% of Equation (11) on Hill-A, Kang–Schafer, and ACIC 2016, 19% larger on Friedman, and 20% smaller on IHDP. On Hill-B and its heavy-tailed variant, it is about half the prediction, and Equation (1) overstates full-sample coverage there (0.72 and 0.66, against 0.53) and on Kang–Schafer (0.41, against 0.30). One possible reason is that the predictions use moments pooled over the 40 datasets. Coverage is concave in RR, so variation in RR across datasets can lower pooled coverage below the prediction (Appendix § 14). On the synthetic family (Table 6), coverage stays within sampling error of nominal, so k^∗\hat{k}^{*} is noisy there.

The heavy-tailed variant. Hill-B heavy-tailed is omitted from Figure 1 for legibility and appears in Table 4. Replacing Hill-B’s Gaussian noise with t3t_3 noise changes little. Coverage falls below nominal at 6.2% of the sample, against 5.8% for Hill-B, and both reach 0.53 at the full sample.

Heads on the benchmarks. Tables 7 and 8 and Figures 5 and 6 give the results behind Section 5.2. The per-seed range of SCM-marginalized coverage at k=nk = n is widest for the latent NP head on Hill-B (0.68 to 0.97) and ACIC 2016 (0.70 to 0.88). Equation (1) follows unit-level coverage closely on Hill-A, Friedman, and Kang–Schafer, with a largest error of at most 0.09 for either head. Its largest errors are on IHDP (0.23 for the CNP head and 0.15 for the latent NP head) and, for the CNP head, on Hill-B (0.12), the two benchmarks on which mSm_S depends most on the estimator (Appendix § 9).

Context on ACIC 2016. Figure 1 and Table 4 use CausalPFN’s public interface, which on ACIC 2016 conditions each window of units on its nearest neighbours instead of the whole sample. Rescored with the whole sample as context, as for the heads, and at the temperatures fitted for Figure 1, CausalPFN’s full-sample coverage on ACIC 2016 is 0.25 instead of 0.20. On the other benchmarks the two agree to within 0.03.

Proofs

Throughout, E\mathbb{E}, Var⁡\operatorname{Var}, Cov⁡\operatorname{Cov}, and Pr⁡\operatorname{Pr} are over ζ∼π\zeta\sim\pi, D∣ζD \mid\zeta, and SS, as in Equation (5). All errors have finite second moments, and bi:=E[ei∣D]b_i := \mathbb{E}[e_i \mid D]. We say that SS is selected on the data if SS is conditionally independent of (τ(Xi;ζ))i=1n(\tau(X_i;\zeta))_{i=1}^{n} given DD. Uniformly drawn subsets and subsets chosen by covariates or by the model’s own estimates are selected on the data. In our synthetic family, subsets chosen by the true propensity score are as well, because wpw_p is independent of (wb,we)(w_b,w_e) under the prior and enters a separate factor of the likelihood, so the two remain independent given DD. Subsets chosen by the true effect are not.

Proof of Proposition 1. Since eˉS=k−1∑i∈Sei\bar e_S = k^{-1}\sum_{i\in S}e_i,

k2eˉS2=∑i∈Sei2+∑i,j∈Si≠jeiejk^2\bar e_S^2 = \sum_{i\in S}e_i^2+\sum_{\substack{i,j\in S\\i\ne j}}e_i e_j

Taking expectations and using Equation (6) gives k2E[eˉS2]=kσS2+k(k−1)cSk^2\mathbb{E}[\bar e_S^2] = k\sigma_S^2+k(k-1)c_S, which is Equation (8). By Equation (7), E[σ^S2]=k−1E[σ^S2]=k−1mSσS2\mathbb{E}[\hat\sigma_S^2] = k^{-1}\mathbb{E}[\hat\sigma_S^2] = k^{-1}m_S\sigma_S^2, and dividing by Equation (8) gives Equation (9). If σ^S2\hat\sigma_S^2 takes the same value vkv_k for every query of size kk, then vk=E[σ^S2]=R E[eˉS2]v_k = \mathbb{E}[\hat\sigma_S^2] = R\,\mathbb{E}[\bar e_S^2], and θS∈θ^S±z1−α/2vk\theta_S\in\hat\theta_S\pm z_{1-\alpha/2}\sqrt{v_k} if and only if ∣eˉS∣≤z1−α/2R E[eˉS2]|\bar e_S|\le z_{1-\alpha/2}\sqrt{R\,\mathbb{E}[\bar e_S^2]}, which is Equation (10). If in addition eˉS\bar e_S is mean-zero Gaussian, the standardized error is standard normal and C(k)=2Φ(z1−α/2R)−1C(k)=2\Phi(z_{1-\alpha/2}\sqrt{R})-1.

The same expansion, with E[(∑i∈Sei)2]≥0\mathbb{E}[(\sum_{i\in S}e_i)^2]\ge0 and (∑i∈Sei)2≤k∑i∈Sei2(\sum_{i\in S}e_i)^2\le k\sum_{i\in S}e_i^2, gives −1/(k−1)≤ρS≤1-1/(k-1)\le\rho_S\le1 for k≥2k\ge2.

Figure 6. As Figure 5, for the latent NP head.

Figure 5. Fixed-weight comparison for the CNP head on the six benchmarks, with subsets drawn uniformly at random: SCM-marginalized aggregation and unit-level aggregation from the same weights. Lines show the mean over three seeds and bands their range. Dotted lines average the three seeds’ predictions from Equation (1) for unit-level aggregation, each with mSm_S and ρS\rho_S measured once per benchmark.

Coverage when the reported variance varies. Suppose that, given (D,S)(\mathcal{D}, S), eˉS\bar{e}_S is Gaussian with mean zero and variance vD,Sv_{\mathcal{D},S}, as for the posterior mean when SS is selected on the data and the posterior of θS\theta_S is Gaussian. Then Pr⁡(θS∈[l^S,u^S]∣D,S)=f(RD,S)\Pr(\theta_S \in[\hat{l}_S,\hat{u}_S] \mid\mathcal{D}, S) = f(R_{\mathcal{D},S}) with f(r)=2Φ(z1−α/2r)−1f(r) = 2\Phi(z_{1-\alpha/2}\sqrt{r}) - 1 and RD,S=σ^S2/vD,SR_{\mathcal{D},S} = \hat{\sigma}_S^2/v_{\mathcal{D},S}, so C(k)=E[f(RD,S)]C(k) = \mathbb{E}[f(R_{\mathcal{D},S})]. The ratio RR of Equation (9) is the average of RD,SR_{\mathcal{D},S} weighted by vD,S/E[vD,S]v_{\mathcal{D},S}/\mathbb{E}[v_{\mathcal{D},S}]. Since ff is concave, C(k)≤f(R)C(k) \le f(R) when RD,SR_{\mathcal{D},S} is independent of vD,Sv_{\mathcal{D},S}, and Equation (1) then overstates coverage. Without this independence the direction can reverse. If σ^S\hat{\sigma}_S is fixed and only vD,Sv_{\mathcal{D},S} varies, coverage is convex in vD,Sv_{\mathcal{D},S} wherever it is below 2Φ(3)−1≈0.922\Phi(\sqrt{3}) - 1 \approx0.92, and pooling then raises it above f(R)f(R).

Proof of Proposition 2. Given D\mathcal{D}, each τ^i\hat{\tau}_i and each XiX_i is fixed, and τi=τ(Xi;ζ)\tau_i = \tau(X_i; \zeta) with ζ∼π(ζ∣D)\zeta\sim\pi(\zeta\mid\mathcal{D}). Since eie_i differs from −τi-\tau_i by a quantity that is fixed given D\mathcal{D}, Cov⁡(ei,ej∣D)=Cov⁡(τi,τj∣D)\operatorname{Cov}(e_i,e_j \mid\mathcal{D}) = \operatorname{Cov}(\tau_i,\tau_j \mid\mathcal{D}), which is Equation (13). If SS is selected on the data, the law of the unit effects given (D,S)(\mathcal{D}, S) equals their law given D\mathcal{D}, so for i,j∈Si,j \in S,

E[eiej∣D,S]=Cov⁡ζ∼π(ζ∣D)(τ(Xi;ζ),τ(Xj;ζ))+bibj.\mathbb{E}[e_i e_j \mid\mathcal{D}, S] = \operatorname{Cov}_{\zeta\sim\pi(\zeta\mid\mathcal{D})}\left(\tau(X_i;\zeta),\tau(X_j;\zeta)\right) + b_i b_j.

Averaging over pairs of distinct units in SS and then over (D,S)(\mathcal{D}, S) gives cSc_S. The posterior mean under π\pi has bi=0b_i = 0. □\square

Aggregation for a general model. For a model with joint predictive distribution QS(⋅∣D)Q_S(\cdot\mid\mathcal{D}) for (τi)i∈S(\tau_i)_{i\in S} and marginals Qi(⋅∣D)Q_i(\cdot\mid\mathcal{D}), unit-level aggregation reports the law of k−1∑i∈Sτ~ik^{-1}\sum_{i\in S}\tilde{\tau}_i under (τ~i)i∈S∼⨂i∈SQi(\tilde{\tau}_i)_{i\in S} \sim\bigotimes_{i\in S} Q_i, and SCM-marginalized aggregation reports its law under (τ~i)i∈S∼QS(\tilde{\tau}_i)_{i\in S} \sim Q_S. For the exact posterior, QSQ_S is the law of (τ(Xi;ζ))i∈S(\tau(X_i;\zeta))_{i\in S} under ζ∼π(ζ∣D)\zeta\sim\pi(\zeta\mid\mathcal{D}), and the two are Equations (2) and (3) with p(τi∣ζ)p(\tau_i \mid\zeta) the point mass at τ(Xi;ζ)\tau(X_i;\zeta). For the latent NP, QSQ_S is the distribution in Equation (16). The CNP outputs a Gaussian for θS\theta_S directly (Proposition 3), and a model that returns only marginals, such as CausalPFN, supports only unit-level aggregation.

Corollary 1 (Exact posterior). Let τ^i=E[τi∣D]\hat{\tau}_i = \mathbb{E}[\tau_i \mid D] and σ^i2=Var⁡(τi∣D)\hat{\sigma}_i^2 = \operatorname{Var}(\tau_i \mid D) under π\pi, and let SS be selected on the data. Then (i) unit-level aggregation has mS=1m_S = 1 and R=1/(1+(k−1)ρS)R = 1/(1 + (k - 1)\rho_S); (ii) SCM-marginalized aggregation, which reports Var⁡(θS∣D)\operatorname{Var}(\theta_S \mid D), has R=1R = 1 with this variance in place of σ^S2\hat{\sigma}_S^2; and (iii) if the posterior of θS\theta_S has a continuous distribution function, its equal-tailed 1−α1 - \alpha credible interval has C(k)=1−αC(k) = 1 - \alpha for every kk.

Proof. (i) For i∈Si \in S, E[ei2∣D,S]=Var⁡(τi∣D)=σ^i2\mathbb{E}[e_i^2 \mid D, S] = \operatorname{Var}(\tau_i \mid D) = \hat{\sigma}_i^2, so E[σ^S2]=σS2\mathbb{E}[\hat{\sigma}_S^2] = \sigma_S^2 and mS=1m_S = 1, and Proposition 1 gives RR. (ii) The point estimate is E[θS∣D]\mathbb{E}[\theta_S \mid D] and the reported variance is Var⁡(θS∣D)\operatorname{Var}(\theta_S \mid D), so E[eˉS2]=E[Var⁡(θS∣D)]\mathbb{E}[\bar{e}_S^2] = \mathbb{E}[\operatorname{Var}(\theta_S \mid D)], which equals the expected reported variance. (iii) Given (D,S)(D, S), θS\theta_S follows its posterior, so the interval contains it with conditional probability 1−α1 - \alpha. Averaging over (D,S)(D, S) gives the claim.

Part (iii) concerns coverage averaged over π\pi, as in Equation (5), and does not imply coverage at a fixed SCM. In our synthetic family the outcome is linear in Gaussian coefficients with known noise variance, and wpw_p enters a separate factor of the likelihood, so the posterior of (τi)i∈S(\tau_i)_{i \in S} is Gaussian and the interval in (iii) is θ^S±z1−α/2Var⁡(θS∣D)1/2\hat{\theta}_S \pm z_{1-\alpha/2}\operatorname{Var}(\theta_S \mid D)^{1/2}. Because ss enters only the propensity factor, this posterior is the same function of DD at every ss, so the corollary applies at s=4s = 4 as well, and the population minimizer of Proposition 3 at s=1s = 1 is also the exact posterior at s=4s = 4.

Marginals do not determine the joint. Let the unit effects have marginals N(μi,ω2)\mathcal{N}(\mu_i, \omega^2), i∈Si \in S. For every ρ∈[0,1]\rho\in[0, 1], the Gaussian with these marginals and all pairwise correlations ρ\rho gives Var⁡(k−1∑i∈Sτi)=ω2{1+(k−1)ρ}/k\operatorname{Var}(k^{-1}\sum_{i \in S}\tau_i) = \omega^2\{1 + (k - 1)\rho\}/k. This ranges from ω2/k\omega^2/k under independence to ω2\omega^2 at ρ=1\rho= 1, the largest value any joint distribution with these marginals allows, since the standard deviation of a sum is at most the sum of the standard deviations. The marginals are thus consistent with every design effect between 11 and kk, and no function of them alone equals Var⁡(θS∣D)\operatorname{Var}(\theta_S \mid D) for every joint posterior. A rule that also uses the model’s prior can sometimes do better. In a linear-Gaussian model with known features, for instance, the marginal variances at enough units determine the posterior covariance of the coefficients. The statement in § 4.2 concerns rules that use the marginals alone.

Proposition 3 (Bayes-optimal Gaussian output). Let training tasks draw ζ∼π0\zeta\sim\pi_0, D∣ζD \mid\zeta, and a subset SS selected on the data, with Eπ0[θS2]<∞\mathbb{E}_{\pi_0}[\theta_S^2] < \infty and Eπ0∣log⁡Var⁡π0(θS∣D)∣<∞\mathbb{E}_{\pi_0}|\log\operatorname{Var}_{\pi_0}(\theta_S \mid D)| < \infty. Among all measurable maps (D,S)↦(μ,v)(D, S) \mapsto(\mu, v), the expected loss Eπ0[−log⁡N(θS;μ(D,S),v(D,S))]\mathbb{E}_{\pi_0}[-\log\mathcal{N}(\theta_S; \mu(D, S), v(D, S))] is minimized by μ=Eπ0[θS∣D]\mu= \mathbb{E}_{\pi_0}[\theta_S \mid D] and v=Var⁡π0(θS∣D)v = \operatorname{Var}_{\pi_0}(\theta_S \mid D), uniquely up to sets of probability zero under the training distribution of (D,S)(D, S).

Proof. Given (D,S)(D, S), the conditional expected loss equals 12log⁡v+{Var⁡(θS∣D,S)+(E[θS∣D,S]−μ)2}/(2v)\frac{1}{2}\log v + \{\operatorname{Var}(\theta_S \mid D, S) + (\mathbb{E}[\theta_S \mid D, S] - \mu)^2\}/(2v) plus a constant, which is uniquely minimized at μ=E[θS∣D,S]\mu= \mathbb{E}[\theta_S \mid D, S] and v=Var⁡(θS∣D,S)v = \operatorname{Var}(\theta_S \mid D, S). Because SS is selected on the data, these equal the posterior mean and variance given DD. Minimizing the conditional loss for each (D,S)(D, S) minimizes its expectation.

As in Müller et al. [34] (Insight 1), the training loss is an expected cross-entropy to the posterior, and restricted to Gaussian outputs its minimizer matches the posterior’s first two moments. The result describes the population minimizer. A trained network approximates it well only for tasks like those seen in training, which for our CNP include subsets of every size but not datasets at s=4s = 4.

References

  1. [1]Alberto Abadie and Guido W. Imbens. Large sample properties of matching estimators for average treatment effects. Econometrica, 74(1):235–267, 2006.DOI
  2. [2]Ahmed M. Alaa, Zaid Ahmad, and Mark van der Laan. Conformal meta-learners for predictive inference of individual treatment effects. In Advances in Neural Information Processing Systems, volume 36, pp. 47682–47703, 2023. Oral. arXiv:2308.14895.arxiv.org/abs/2308.14895
  3. [3]Katherine Baicker, Sarah L. Taubman, Heidi L. Allen, Mira Bernstein, Jonathan H. Gruber, Joseph P. Newhouse, Eric C. Schneider, Bill J. Wright, Alan M. Zaslavsky, and Amy N. Finkelstein. The Oregon experiment: Effects of Medicaid on clinical outcomes. New England Journal of Medicine, 368(18):1713–1722, 2013.DOI
  4. [4]Vahid Balazadeh, Hamidreza Kamkari, Valentin Thomas, Benson Li, Junwei Ma, Jesse C. Cresswell, and Rahul G. Krishnan. CausalPFN: Amortized causal effect estimation via in-context learning. In Advances in Neural Information Processing Systems, volume 38, pp. 154945–154984, 2025. Spotlight. arXiv:2506.07918.arxiv.org/abs/2506.07918
  5. [5]Vahid Balazadeh, Hamidreza Kamkari, Valentin Thomas, Benson Li, Junwei Ma, Jesse C. Cresswell, and Rahul G. Krishnan. CausalPFN, 2026. Software repository, commit 7da4afa. https://github.com/vdblm/CausalPFN.arxiv.org/abs/2506.07918
  6. [6]Wessel P. Bruinsma, Stratis Markou, James Requeima, Andrew Y. K. Foong, Tom R. Andersson, Anna Vaughan, Anthony Buonanno, J. Scott Hosking, and Richard E. Turner. Autoregressive conditional neural processes. In International Conference on Learning Representations, 2023. arXiv:2303.14468.arxiv.org/abs/2303.14468
  7. [7]Lucius E. J. Bynum, Aahlad Manas Puli, Diego Herrero-Quevedo, Nhi Nguyen, Carlos Fernandez-Granda, Kyunghyun Cho, and Rajesh Ranganath. Black box causal inference: Effect estimation via meta prediction. arXiv preprint arXiv:2503.05985, 2025.arxiv.org/abs/2503.05985
  8. [8]Lucius E. J. Bynum, Rajesh Ranganath, and Kyunghyun Cho. Computational identifiability. arXiv preprint arXiv:2606.19361, 2026.arxiv.org/abs/2606.19361
  9. [9]Victor Chernozhukov, Denis Chetverikov, Mert Demirer, Esther Duflo, Christian Hansen, Whitney Newey, and James Robins. Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21(1):C1–C68, 2018.
  10. [10]Victor Chernozhukov, Mert Demirer, Esther Duflo, and Iván Fernández-Val. Fisher–Schultz lecture: Generic machine learning inference on heterogeneous treatment effects in randomized experiments, with an application to immunization in India. Econometrica, 93(4):1121–1164, 2025.DOI
  11. [11]William G. Cochran. Sampling Techniques. John Wiley & Sons, New York, 3rd edition, 1977.
  12. [12]Bruno de Finetti. La prévision: ses lois logiques, ses sources subjectives. Annales de l’Institut Henri Poincaré, 7(1):1–68, 1937.
  13. [13]Vincent Dorie, Jennifer Hill, Uri Shalit, Marc Scott, and Dan Cervone. Automated versus do-it-yourself methods for causal inference: Lessons learned from a data analysis competition. Statistical Science, 34(1):43–68, 2019.
  14. [14]Vincent Dorie, George Perrett, Jennifer L. Hill, and Benjamin Goodrich. Stan and bart for causal inference: Estimating heterogeneous treatment effects using the power of stan and the flexibility of machine learning. Entropy, 24(12), 2022. ISSN 1099-4300. doi: 10.3390/e24121782. URL https://www.mdpi.com/1099-4300/24/12/1782.DOI
  15. [15]EMA. Guideline on the investigation of subgroups in confirmatory clinical trials. Technical Report EMA/CHMP/539146/2013, European Medicines Agency, 2019.
  16. [16]Andrew Y. K. Foong, Wessel P. Bruinsma, Jonathan Gordon, Yann Dubois, James Requeima, and Richard E. Turner. Meta-learning stationary stochastic process prediction with convolutional neural processes. In Advances in Neural Information Processing Systems, volume 33, pp. 8284–8295, 2020. arXiv:2007.01332.arxiv.org/abs/2007.01332
  17. [17]Jerome H. Friedman. Multivariate adaptive regression splines. The Annals of Statistics, 19(1):1–67, 1991.DOI
  18. [18]Marta Garnelo, Dan Rosenbaum, Christopher L. Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo J. Rezende, and S. M. Ali Eslami. Conditional neural processes. In International Conference on Machine Learning, volume 80 of PMLR, pp. 1704–1713, 2018a. arXiv:1807.01613.arxiv.org/abs/1807.01613
  19. [19]Marta Garnelo, Jonathan Schwarz, Dan Rosenbaum, Fabio Viola, Danilo J. Rezende, S. M. Ali Eslami, and Yee Whye Teh. Neural processes. arXiv preprint arXiv:1807.01622, 2018b. ICML Workshop on Theoretical Foundations and Applications of Deep Generative Models.arxiv.org/abs/1807.01622
  20. [20]Larry V. Hedges. Effect sizes in cluster-randomized designs. Journal of Educational and Behavioral Statistics, 32(4):341–370, 2007.DOI
  21. [21]Edwin Hewitt and Leonard J. Savage. Symmetric measures on Cartesian products. Transactions of the American Mathematical Society, 80(2):470–501, 1955.DOI
  22. [22]Jennifer L. Hill. Bayesian nonparametric modeling for causal inference. Journal of Computational and Graphical Statistics, 20(1):217–240, 2011.DOI
  23. [23]Noah Hollmann, Samuel Müller, Katharina Eggensperger, and Frank Hutter. TabPFN: A transformer that solves small tabular classification problems in a second. In International Conference on Learning Representations, 2023. arXiv:2207.01848.arxiv.org/abs/2207.01848
  24. [24]Noah Hollmann, Samuel Müller, Lennart Purucker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirrmeister, and Frank Hutter. Accurate predictions on small data with a tabular foundation model. Nature, 637(8045):319–326, 2025.DOI
  25. [25]ICH. ICH E9(R1) addendum on estimands and sensitivity analysis in clinical trials. Technical report, International Council for Harmonisation of Technical Requirements for Pharmaceuticals for Human Use, 2019. Step 4 final version, adopted 20 November 2019.
  26. [26]Joseph D. Y. Kang and Joseph L. Schafer. Demystifying double robustness: A comparison of alternative strategies for estimating a population mean from incomplete data. Statistical Science, 22(4):523–539, 2007.
  27. [27]Leslie Kish. Survey Sampling. John Wiley & Sons, New York, 1965.
  28. [28]Lihua Lei and Emmanuel J. Candès. Conformal inference of counterfactuals and individual treatment effects. Journal of the Royal Statistical Society: Series B, 83(5):911–938, 2021. arXiv:2006.06138.arxiv.org/abs/2006.06138
  29. [29]Yuchen Ma, Dennis Frauen, Emil Javurek, and Stefan Feuerriegel. Foundation models for causal inference via prior-data fitted networks. In International Conference on Learning Representations, 2026. arXiv:2506.10914.arxiv.org/abs/2506.10914
  30. [30]Stratis Markou, James Requeima, Wessel P. Bruinsma, Anna Vaughan, and Richard E. Turner. Practical conditional neural processes via tractable dependent predictions. In International Conference on Learning Representations, 2022. arXiv:2203.08775.
  31. [31]Valentyn Melnychuk, Vahid Balazadeh, Stefan Feuerriegel, and Rahul G. Krishnan. Frequentist consistency of prior-data fitted networks for causal inference. In International Conference on Machine Learning, volume 306 of PMLR, pp. 87581–87611, 2026. arXiv:2603.12037.
  32. [32]Pascal Memmesheimer, Vincent Heuveline, and Jürgen Hesser. A systematic review of conformal inference procedures for treatment effect estimation: Methods and challenges. arXiv preprint arXiv:2509.21660, 2025.arxiv.org/abs/2509.21660
  33. [33]Francisco Mourão, David Hajage, Daria Bystrova, Bertrand Bouvarel, Nathanaël Lapidus, Fabrice Carrat, and Benjamin Gleim. Prior-data fitted networks for causal inference: a simulation study with real-world scenarios. arXiv preprint arXiv:2603.15928, 2026.arxiv.org/abs/2603.15928
  34. [34]Samuel Müller, Noah Hollmann, Sebastian Pineda Arango, Josif Grabocka, and Frank Hutter. Transformers can do Bayesian inference. In International Conference on Learning Representations, 2022. arXiv:2112.10510.arxiv.org/abs/2112.10510
  35. [35]Thomas Nagler. Statistical foundations of prior-data fitted networks. In International Conference on Machine Learning, volume 202 of PMLR, pp. 25660–25676, 2023. arXiv:2305.11097.arxiv.org/abs/2305.11097
  36. [37]Kenyon Ng, Edwin Fong, David T. Frazier, Jeremias Knoblauch, and Susan Wei. TabMGP: Martingale posterior with TabPFN. In International Conference on Machine Learning, 2026. arXiv:2510.25154.arxiv.org/abs/2510.25154
  37. [38]Hamed Nilforoshan, Michael Moor, Yusuf Roohani, Yining Chen, Anja Šurina, Michihiro Yasunaga, Sara Oblak, and Jure Leskovec. Zero-shot causal learning. In Advances in Neural Information Processing Systems, volume 36, pp. 6862–6901, 2023.arxiv.org/abs/2301.12292
  38. [39]Ian Osband, Zheng Wen, Seyed Mohammad Asghari, Vikranth Dwaracherla, Morteza Ibrahimi, Xiyuan Lu, and Benjamin Van Roy. Epistemic neural networks. In Advances in Neural Information Processing Systems, volume 36, 2023. arXiv:2107.08924.arxiv.org/abs/2107.08924
  39. [40]Arik Reuter, Tim G. J. Rudner, Vincent Fortuin, and David Rügamer. Can transformers learn full Bayesian inference in context? In International Conference on Machine Learning, volume 267 of PMLR, pp. 51531–51582, 2025. arXiv:2501.16825.arxiv.org/abs/2501.16825
  40. [41]Jake Robertson, Arik Reuter, Siyuan Guo, Noah Hollmann, Frank Hutter, and Bernhard Schölkopf. Do-PFN: In-context learning for causal effect estimation. In Advances in Neural Information Processing Systems, volume 38, pp. 174811–174848, 2025. Robertson and Reuter contributed equally. arXiv:2506.06039.arxiv.org/abs/2506.06039
  41. [42]Vira Semenova and Victor Chernozhukov. Debiased machine learning of conditional average treatment effects and other causal functions. The Econometrics Journal, 24(2):264–289, 2021. arXiv:1702.06240.
  42. [43]Uri Shalit, Fredrik D. Johansson, and David Sontag. Estimating individual treatment effect: Generalization bounds and algorithms. In International Conference on Machine Learning, volume 70 of PMLR, pp. 3076–3085, 2017. arXiv:1606.03976.arxiv.org/abs/1606.03976
  43. [44]Christopher Stith, Medha Barath, Vahid Balazadeh, Jesse C. Cresswell, and Rahul G. Krishnan. Causal foundation models with continuous treatments, 2026. arXiv:2605.15133.arxiv.org/abs/2605.15133
  44. [45]Anne L. Taylor, Susan Ziesche, Clyde Yancy, Peter Carson, Ralph D’Agostino, Jr., Keith Ferdinand, Malcolm Taylor, Kirkwood Adams, Michael Sabolinski, Manuel Worcel, and Jay N. Cohn. Combination of isosorbide dinitrate and hydralazine in blacks with heart failure. New England Journal of Medicine, 351(20):2049–2057, 2004.

AI tools statement

This work lists 1 AI tool.

  • large language models · AI tool

    Roles
    Writing — original draftWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type