betaFeedback

WorksMathematics

B-SLIM: BART Sparse Linear Interactions Model for Heterogeneous Treatment Effects

Abstract

Estimating covariate-dependent treatment effects is a central challenge in personalized medicine. Existing approaches often emphasize either fully parametric models, risking misspecification, or flexible machine learning methods, which may require large samples to detect the small treatment effect heterogeneity common in medical settings. We propose B-SLIM (BART Sparse Linear Interaction Model), a semi-parametric model for causal inference that combines a flexible Bayesian Additive Regression Trees (BART) prognostic component with a sparse linear treatment effect component. This hybrid structure combines flexible prognosis modelling with interpretable treatment effects. The treatment effect component includes main effects and pairwise interactions, regularized through a global-local shrinkage prior. The model allows covariates to contribute to both components and provides direct inference on treatment effect modifiers, conditional mean potential outcomes, and conditional average treatment effects (CATEs). In simulations, B-SLIM outperforms a fully non-parametric alternative when main effects and pairwise interactions adequately represent the treatment effect function, whereas the non-parametric model performs better under strong non-linearity. On the nonlinear Infant Health and Development Program (IHDP) benchmark, the two Bayesian methods are competitive in predictive accuracy and ranking, and both achieve lower mean CATE error than the DR-learner, S-learner, and R-learner implementations considered. In the CANVAS trials, both methods yield similar rankings, while B-SLIM identifies several important drivers of treatment effect heterogeneity. B-SLIM enables interpretable inference on treatment effect parameters and patient-specific prediction of conditional mean potential outcomes, while remaining competitive at sample sizes relevant to medical studies.

Introduction

A treatment that is beneficial on average for a population might have varying degrees of benefit for different subgroups; a drug could benefit the majority of patients while causing severe side-effects for others. In hormone-receptor-positive, HER2-negative, node-negative breast cancer, genomic scores such as Oncotype DX are used to decide which patients are likely to benefit from chemotherapy and which can safely forgo it.[1] Assessing this individual treatment benefit matters for drug development, clinical decision-making, and policy recommendations. These recommendations rely on four key questions regarding treatment effect heterogeneity: “Who benefits from treatment?”, “Why do these individuals (not) benefit?” (i.e., which covariates drive the treatment effect), “How certain are we about the expected benefit for someone with these characteristics?”, and “What would have happened if this individual was (not) treated?”.

The question of “What if?” forms the basis of the causal inference literature. The potential outcomes framework[2] conceptualizes individuals as having two potential outcomes in a binary treatment setting: one under treatment and one under control. Because we only observe one outcome under a single treatment regime, the counterfactual remains missing. Assumptions and modelling are therefore required to infer the Average Treatment Effect (ATE) and the Conditional Average Treatment Effect (CATE), which denotes the expected treatment effect conditional on specific individual characteristics. In applied clinical research, subgroup analyses are routinely conducted to investigate whether certain covariates significantly modify the treatment effect. However, these repeated analyses often suffer from a lack of statistical power and prevalent Type-I errors.[3]

To overcome this lack of power and directly model the CATE, Tian et al.4 modelled the contrast between control and treated groups using a regularized linear model with interactions, treating the prognostic function as a nuisance parameter. Because the surface of the CATE is often smoother and easier to estimate than the separate potential outcome surfaces,{citep}5 modern causal machine learning methods focus on directly estimating this treatment contrast. Key subsequent developments include causal trees{citep}6 and Causal Random Forests (CRF),{citep}7 which estimate the CATE using a tree ensemble inspired by the Random Forests algorithm.{citep}8 Although asymptotic guarantees have been established for CRF,{citep}7 its reliance on deep decision trees can lead to poor performance in settings with limited sample sizes.{citep}9 Across different causal inference competitions, models using Bayesian Additive Regression Trees (BART){citep}10 priors frequently outperform other methods.{citep}11 The inherent regularization on tree depth and leaf nodes renders BART less susceptible to overfitting while maintaining the flexibility of an ensemble model. Building on this, {citet}Hahn et al.[9] propose Bayesian Causal Forests (BCF), which models the outcome space using two BART priors—one for the prognostic function and one for the treatment effect function—and provides posterior distributions for individual CATEs.

Although these Bayesian tree-based methods handle non-linear outcome relationships and provide credible intervals, two difficulties remain for practitioners. First, uncertainty quantification for these CATEs is difficult, yet it is needed if the estimates are to inform policy. These models provide a posterior for the CATE, but the frequentist coverage of its credible intervals can depend on regularization and the treatment effect structure. Second, black-box tree ensembles provide limited insight into which specific covariates are driving the treatment effect heterogeneity. Although post-hoc explainability techniques, such as fitting an additional surrogate machine learning model to the CATE predictions, can be employed,[12] this introduces the overhead of secondary modelling and additional estimation variance. To address these points and answer the four questions above, we propose B-SLIM (BART Sparse Linear Interaction Model) for causal inference. The prognostic baseline risk is modelled non-parametrically using BART, while the heterogeneity of the treatment effect is modelled parametrically using a linear formulation with main effects and interactions. The semi-parametric BART model of Zeldow et al. [13] combines the same two ingredients: a BART nuisance component and a parametric component for the treatment and its effect modifiers. Their structural mean model also allows an effect modifier to contribute to prognosis through a linear term. Related work by Prado et al. [14] allows covariates to be shared between the linear and BART components, modifying the tree updates to address identifiability. As they use non-sparse priors on the regression coefficients one may be forced to reduce the parameter space by selecting potential effect modifiers beforehand and ignoring two-way interactions between those. In practice effect modifiers are rarely known beforehand. We therefore allow the same covariates to enter the prognostic and treatment functions, and consider the full covariate space, including pairwise interactions, in the treatment effect function and regularize the resulting coefficient space. This space becomes large quickly, which is why we employ a global–local shrinkage prior. [15] Such a prior combines a global scale, which pulls all coefficients towards zero, with a local scale for each coefficient, which lets a strong signal escape this shrinkage. The horseshoe prior is the best known example. It shrinks noise terms towards zero while allowing relevant signals to escape strong shrinkage, thereby limiting shrinkage bias. [16] The sampling of our model is a modification of the Bayesian backfitting algorithm used by Hahn et al. [9] and Hastie and Tibshirani. [17] Finally, we demonstrate that our framework allows straightforward computation of Shapley values, which quantify the importance of each covariate for predicting the CATE, including the contribution of interaction terms. To summarize, our contribution is the combination of a regularized BART prognostic component with a parametric treatment component, regularized by global–local shrinkage, that allows appropriate inference and interpretation.

We evaluate the model in simulations, the semi-synthetic Infant Health and Development Program (IHDP) benchmark, and an application to the CANVAS Program. The simulations examine settings in which the treatment-effect structure is aligned with the model and settings in which it is misspecified. IHDP combines real covariate data with 100 simulated potential-outcome scenarios, so individual treatment effects are known. The CANVAS application examines canagliflozin in patients with type 2 diabetes at high cardiovascular risk. Section 2 presents the model, Section 3 describes the study settings, Section 4 reports the simulation and IHDP results, and Section 5 presents the CANVAS application before the discussion and conclusion.

Methodology

B-SLIM combines the flexible prognostic estimation of BART with the interpretable inference of a sparse linear interaction model for treatment effect heterogeneity. The BART prior allows the prognostic component to capture non-linearities and interactions. The sparse global–local shrinkage prior on the linear treatment effect component allows parameter inference and interpretation for the drivers of the treatment effect.

Causal Framework

Our main interest is in predicting and making inference on the conditional mean potential outcomes E{yi(0)∣xi}\mathrm{E}\{y_i(0) \mid x_i\} and E{yi(1)∣xi}\mathrm{E}\{y_i(1) \mid x_i\}, and their difference, the CATE τ(xi)\tau(x_i). These describe the expected outcomes under treatment and control for individuals with characteristics xix_i, rather than identifying both realized outcomes for a single individual. We denote the vector of covariates xix_i and the binary treatment assignment ziz_i for individual i=1,…,Ni = 1, \ldots, N. As we only observe one outcome for each individual, we need assumptions to identify these conditional means. [18] These are:

  • Stable unit treatment value assumption (SUTVA). SUTVA requires that there is no interference between units and that there are no multiple versions of a treatment. This means that the outcome can be written as: yi=ziyi(1)+(1−zi)yi(0)y_i = z_i y_i(1) + (1-z_i)y_i(0).

  • Conditional exchangeability, i.e. no unmeasured confounding given xix_i; {yi(1),yi(0)}⊥ ⁣ ⁣ ⁣⊥zi∣xi\{y_i(1), y_i(0)\} \perp\!\!\!\perp z_i \mid x_i.

  • Overlap, i.e. 0<P(zi=1∣xi)<10 < P(z_i = 1 \mid x_i) < 1. This entails that there always should be some randomness in assignment; in the case that this assumption fails, we would not have enough support to infer the counterfactual.

B-SLIM

We model the observed outcome yiy_i for individual i=1,…,Ni = 1, \ldots, N as the sum of a prognostic function μ\mu and a treatment effect function τ\tau:

yi=μ(xi,π^(xi))+uiτ(xi)+εi,εi∼N(0,σ2),(1)y_i = \mu(x_i, \hat{\pi}(x_i)) + u_i\tau(x_i) + \varepsilon_i,\qquad\varepsilon_i \sim\mathcal{N}(0,\sigma^2), \tag*{(1)}

where xix_i is a vector of pp covariates, ziz_i denotes the status of treatment, and π^(xi)\hat{\pi}(x_i) the fitted propensity score. We adopt a standard BART prior for the prognostic function μ(⋅)\mu(\cdot), allowing it to capture non-linearities and interactions in the baseline risk. To address regularization-induced confounding (RIC), where strongly regularized priors might not sufficiently adjust for confounding due to shrinkage-induced bias, we include the fitted propensity score π^(xi)\hat{\pi}(x_i) as a covariate in μ\mu, linking priors of outcome and assignment mechanisms. [9, 19] In observational data, we estimate the propensity score with a Bayesian logistic regression with main effects and pairwise interactions. In a randomized trial, the assignment probability is known from the design and need not be estimated; a constant assignment probability adds no information as a splitting variable. To facilitate direct inference on effect modifiers, we specify the CATE, τ(xi)\tau(x_i), as a linear model with interactions:

τ(xi)=α+∑j=1pβjxi,j+∑j<kβj,kxi,jxi,k,(2)\tau(x_i) = \alpha+ \sum_{j=1}^{p}\beta_j x_{i,j} + \sum_{j<k}\beta_{j,k}x_{i,j}x_{i,k}, \tag*{(2)}

where βj\beta_j and βj,k\beta_{j,k} respectively represent the main and interaction effects. Here pp counts the covariate columns after encoding. Products between two categorical contrast columns are excluded, with their coefficients set to zero.

Let uiu_i denote the fixed treatment coding, with ui=ziu_i = z_i for 0/1 coding and ui=zi−1/2u_i = z_i - 1/2 for symmetric coding. The binary encoding of ziz_i (e.g., 0/1 versus −0.5/0.5-0.5/0.5) implies an assumption about how the prior variability is distributed between the treatment and control mean outcome functions, and Hahn et al. [9] propose to estimate the treatment coding. A symmetric treatment coding gives the two mean outcome functions the same prior variability, while 0/1 coding allows additional prior variability in the treatment arm. We recommend that users choose the appropriate coding based on the problem context. Symmetric coding is preferred when we believe that the variability in both mean outcome functions will be similar; a 0/1 coding is more appropriate if the active treatment is expected to introduce additional heterogeneity in patient outcomes.

It is also possible to residualise the treatment indicator, using ui=zi−π^(xi)u_i = z_i - \widehat{\pi}(x_i) in the linear component in the spirit of Robinson-style orthogonalisation.[20] The separate residualised implementation is described in the Supplementary Material (§ 9.1); its comparison with the standard model is reported with the simulation results.

Shrinkage Prior for the Treatment Effect

The number of coefficients in (2) grows quadratically with the number of covariates. In order to efficiently shrink nuisance terms towards zero while keeping the bias on the main contributors to the treatment effect minimal, we employ a global–local shrinkage prior[15] for the coefficients of the main effects and interaction terms. This allows us to search over a large coefficient space while keeping τ(x)\tau(x) interpretable. The prior hierarchy is defined as:

α∼N(0,102),λj,λj,k∼C+(0,1),λglob∼C+(0,1)\begin{aligned} \alpha&\sim\mathcal{N}(0, 10^2),\\ \lambda_j,\lambda_{j,k} &\sim\mathcal{C}^{+}(0,1),\\ \lambda_{\mathrm{glob}} &\sim\mathcal{C}^{+}(0,1) \end{aligned}
βj∣λj,σ∼N(0,σ2λj2)(3)\beta_j \mid\lambda_j,\sigma\sim\mathcal{N}(0,\sigma^2\lambda_j^2) \tag*{(3)}
βj,k∣λj,k,λglob,σ∼N(0,σ2λj,k2λglob2),for included pairs j<k(4)\beta_{j,k} \mid\lambda_{j,k},\lambda_{\mathrm{glob}},\sigma\sim\mathcal{N}(0,\sigma^2\lambda_{j,k}^2\lambda_{\mathrm{glob}}^2), \qquad\text{for included pairs } j<k \tag*{(4)}
σ2∼InvGamma⁡(1,0.001).\sigma^2 \sim\operatorname{InvGamma}(1,0.001).

The global shrinkage parameter λglob\lambda_{\mathrm{glob}} sets the general sparsity of the interaction block. The local parameters λj\lambda_j and λj,k\lambda_{j,k} allow for the identification of signal independently. We keep the main effects outside this global scale, so that each βj\beta_j is governed by its own local parameter only, which gives a normal–half-Cauchy scale mixture for βj/σ\beta_j/\sigma, with concentration near zero and heavy tails. The auxiliary variable reparameterization of Makalic and Schmidt[21] permits Gibbs sampling. A coefficient whose 95% credible interval excludes zero provides posterior evidence of effect modification. These are pointwise intervals.

Posterior Inference

We estimate the joint posterior using a Bayesian backfitting algorithm.[17] This iterative procedure decouples the estimation of the prognostic and treatment functions by alternating between them using partial residuals. The full conditionals, BART prior, and sampling scheme are given in the Supplementary Material (§ 9.6 and Algorithm S1). At MCMC iteration mm, the sampling steps are:

  1. Update Prognostic Function: Compute the partial residuals Ri∗=yi−uiτ(m−1)(xi)R_i^* = y_i - u_i\tau^{(m-1)}(x_i). Draw μ(m)\mu^{(m)} from the BART posterior conditional on R∗R^*.

  1. Update Treatment Function: Compute the partial residuals Ri∗∗=yi−μ(m)(xi,π^i)R_i^{**} = y_i - \mu^{(m)}(x_i,\widehat{\pi}_i). Draw the linear parameters for τ(m)\tau^{(m)} (including α,β,λ\alpha,\beta,\lambda) using the appropriate sampler for the shrinkage prior, conditional on R∗∗R^{**}.

  1. Update Noise Variance: Draw σ2(m)\sigma^{2(m)} from its Inverse-Gamma full conditional, using the total residuals and the coefficient-prior terms that depend on σ2\sigma^2.

The supplied scripts use four independent chains per model, with 2000 burn-in iterations and 4000 retained draws per chain after 25 grow-from-root initialisation iterations. These settings apply to the simulations, IHDP and CANVAS.

For one simulated data set with N=500N = 500 (linear treatment effects and non-linear prognosis), the four sequential B-SLIM chains took 2.2 minutes of fitting time on an Intel Core i5-1335U (10 cores, 16 GB RAM; Windows 11, R 4.4.2), excluding data generation and propensity estimation.

The estimation of τ(xi)\tau(x_i) depends on how well the prognostic component accounts for the outcome variation. A better estimate of μ(xi)\mu(x_i) can leave a clearer signal in the partial residuals R∗∗R^{**}, although this does not by itself guarantee consistency or calibrated credible intervals for τ(xi)\tau(x_i).

Interpretation

While coefficient inference identifies statistically significant drivers of heterogeneity, we quantify the total contribution of a covariate to the CATE by marginal Shapley values.[22] Although often associated with black-box predictors, Shapley values have also been shown to be useful in relatively complex regression settings.[22] They decompose the predicted τ(xi)\tau(x_i) into contributions of covariates. Unlike for non-parametric models, our linear parametrisation for τ(xi)\tau(x_i) allows analytical computation of these Shapley values[22]:

ϕi,j=βjxi,j∗+12(∑k:k≠jβj,kxi,j∗xi,k∗−∑k:k≠jβj,kE[xi,j∗xi,k∗])(5)\phi_{i,j} = \beta_j x_{i,j}^{*} + \frac{1}{2}\left(\sum_{k:k\ne j}\beta_{j,k}x_{i,j}^{*}x_{i,k}^{*} - \sum_{k:k\ne j}\beta_{j,k}\mathbb{E}[x_{i,j}^{*}x_{i,k}^{*}]\right) \tag*{(5)}

where x∗x^* denotes centered covariates and the coefficients refer to the model expressed in these covariates. This gives a posterior for variable importance that accounts for both the main effect of a covariate and its interactions. From equation (5) it can be written as ϕi,j=ϕi,j,main+ϕi,j,int\phi_{i,j} = \phi_{i,j,\mathrm{main}} + \phi_{i,j,\mathrm{int}}, so that the main-effect and interaction contributions can be separated, with the contributions of contrast columns belonging to the same categorical covariate summed within each individual before taking absolute values.

AI Assistance

OpenAI Codex was used to assist with checking the sampler code, writing scripts to run the simulations on the server, formatting the manuscript in LaTeX, checking references, improving sentence flow and checking for typographical errors. The authors reviewed the analysis code and manuscript and take responsibility for the analyses, interpretation and final manuscript.

Study Settings

We evaluate the models in two settings where individual treatment effects are known: a simulation study based on Hahn et al.[9] and the semi-synthetic Infant Health and Development Program (IHDP) benchmark. The simulations assess model performance under both correct specification and misspecification of B-SLIM’s treatment effect component. The IHDP benchmark provides a complementary assessment using real covariate data and 100 simulated potential-outcome scenarios.

Simulation Study

We compare B-SLIM with the fully non-parametric Bayesian Causal Forest (BCF). We focus on these two models because they share a BART prognostic component and both provide predictions for the conditional mean potential outcomes. This comparison examines the trade-off between a regularized parametric and a tree-based treatment function. We estimate the Average Treatment Effect (ATE) and the Conditional Average Treatment Effect (CATE), and examine how both models behave under structural alignment and structural misspecification of the treatment effect.

Data Generating Process

We adopt the data-generating process (DGP) described by Hahn et al.[9] and extend its treatment effect component to include both structurally aligned and misspecified scenarios. We examine model performance across sample sizes N∈{250,500,750,1000,1500,3000}N \in\{250, 500, 750, 1000, 1500, 3000\}, with 200 independent replicates per cell. The baseline covariates consist of three continuous variables x1,x2,x3∼N(0,1)x_1, x_2, x_3 \sim\mathcal{N}(0,1), one binary variable x4x_4 taking values −1-1 and 11 with equal probability, and a categorical variable x5x_5 uniformly distributed over {1,2,3}\{1,2,3\}. The five covariates are independent. The prognostic function μ(x)\mu(x) is defined as:

μ(x)={1+g(x5)+x1x3,linear,−6+g(x5)+6∣x3−1∣,nonlinear,\mu(x) = \begin{cases} 1 + g(x_5) + x_1x_3, & \text{linear},\\ -6 + g(x_5) + 6\lvert x_3 - 1\rvert, & \text{nonlinear}, \end{cases}

where g(1)=2g(1) = 2, g(2)=−1g(2) = -1, and g(3)=−4g(3) = -4. Targeted selection into treatment is induced via the propensity score, mimicking medical scenarios where patients with worse prognoses are more likely to be treated:

π(xi)=max⁡(0,min⁡(1,0.8Φ(3μ(xi)s−0.5x1)+0.05+vi10))\pi(x_i) = \max\left(0, \min\left(1, 0.8\Phi\left(\frac{3\mu(x_i)}{s} - 0.5x_1\right) + 0.05 + \frac{v_i}{10}\right)\right)

where ss is the sample standard deviation of μ(x)\mu(x), Φ\Phi is the standard normal CDF, and vi∼Uniform⁡(0,1)v_i \sim\operatorname{Uniform}(0,1). We draw zi∼Bernoulli⁡{π(xi)}z_i \sim\operatorname{Bernoulli}\{\pi(x_i)\} and generate yi=μ(xi)+(zi−0.5)τ(xi)+ϵiy_i = \mu(x_i) + (z_i - 0.5)\tau(x_i) + \epsilon_i, with independent ϵi∼N(0,1)\epsilon_i \sim\mathcal{N}(0,1). The categorical variable is represented by two sum-contrast columns. B-SLIM uses symmetric treatment coding, ui=zi−1/2u_i = z_i - 1/2, matching this data-generating model. BCF uses adaptive treatment coding, as in Hahn et al.[9]. For both models, we estimate the propensity score using Bayesian logistic regression with main effects and pairwise interactions and include it in the prognostic component.

Treatment Effect Scenarios

To examine the trade-off between parametric structure and non-parametric flexibility, we simulate four treatment effect scenarios for the true CATE τ(x)\tau(x):

  1. Homogeneous Treatment Effect: The treatment effect is homogeneous for the whole population:

τ(x)=3(6)\tau(x) = 3 \tag*{(6)}

This setting examines whether the models avoid estimating spurious treatment effect heterogeneity.

  1. Linear Scenario: The treatment effect is generated by a simple linear interaction:

τ(x)=1+2x2x4\tau(x) = 1 + 2x_2x_4

This scenario aligns with the structural assumptions of B-SLIM. Alongside the homogeneous scenario, this simulation scenario was presented by Hahn et al.[9] and was also used in other work by Linero.[19]

  1. Heavy Saturation Scenario: The treatment effect is driven by a non-linear sigmoid saturation curve based on a continuous biomarker x1x_1:

τ(x)=0.5+41+exp⁡(−2.5x1)\tau(x) = 0.5 + \frac{4}{1 + \exp(-2.5x_1)}

Patients with low x1x_1 values receive a small baseline benefit, which grows rapidly as x1x_1 increases before capping at a biological saturation limit of 4.5. This scenario represents a functional misspecification for B-SLIM, favouring BCF.

  1. Mild Saturation Scenario: Building on the previous scenario, we model the treatment effect using a sigmoid function with reduced saturation to more closely reflect a linear relationship. This is defined as:

τ(x)=0.5+41+exp⁡(−0.4x1)\tau(x) = 0.5 + \frac{4}{1 + \exp(-0.4x_1)}

In Figure 1, τ(x)\tau(x) is plotted against x1x_1 for the two scenarios, alongside the density of x1x_1 for clarity.

Figure 1. Shape of τ(x)\tau(x) plotted against x1x_1 for the two saturation scenarios, with coefficients 2.5 and 0.4. The shaded area shows the standard normal density of x1x_1 (right axis).

Performance Measures

For the ATE and CATE, we report root mean squared error (RMSE), empirical coverage (Cov), and the average length (Len) of the 95% credible intervals. The ATE target in each replicate is the mean of the true CATEs in that sample; ATE RMSE is the square root of the mean squared estimation error across replicates. For the CATE, we first calculate the RMSE across individuals within each replicate and then average over replicates. Coverage and interval length are also averaged over replicates. With 200 independent replicates, the Monte Carlo standard error of an ATE coverage estimate near 95% is about 1.5 percentage points.

We assess how well the models rank individuals by calculating the Spearman correlation between posterior mean CATE estimates and the true CATE. We also evaluate their ability to identify individuals in the top 10%, 25%, and 50% of the true treatment effect distribution. For each group, an individual is selected only if the lower bound of their 95% credible interval exceeds the corresponding true threshold, which is known in simulation. Precision and sensitivity summarise how well each model identifies these individuals. This criterion reflects both the estimated treatment effects and their uncertainty, whereas Spearman correlation measures ranking alone. Full results for the homogeneous treatment effect scenario and the threshold-based selection analysis are provided in the Supplementary Material.

Semi-synthetic IHDP Benchmark

The Infant Health and Development Program (IHDP) data are a well-known semi-synthetic benchmark with real covariate data and synthetic potential outcomes under 100 different scenarios.[23, 24, 25] The benchmark contains 747 children with 25 covariates, of which five are continuous and one is a four-level categorical variable. Our preprocessing encodes these into 27 columns. Of the children, 139 (18.6%) are treated. All 100 data sets use the same covariates and the same treatment assignments; only the simulated potential outcomes change. Because the true treatment effect τ\tau is simulated for each child, CATE estimation accuracy can be assessed against the truth. The benchmark combines an exponential control mean with a linear treated mean: μ0(x)=exp⁡{(x+a)⊤b}\mu_0(x) = \exp\{(x + a)^\top b\} and μ1(x)=x⊤b−ω\mu_1(x) = x^\top b - \omega, so τ(x)=μ1(x)−μ0(x)\tau(x) = \mu_1(x) - \mu_0(x). Here aa is the covariate offset, bb the coefficient vector of the response surface, and ω\omega is chosen to give an average treatment effect of four among the treated. This is similar in spirit to the saturation settings in Subsection 3.1.2, except that the non-linearity is spread over several covariates rather than concentrated in x1x_1. The benchmark and its consequences for comparing CATE estimators are discussed in more detail by Curth et al.[26]

The IHDP comparison is restricted to the CATE. That makes it possible to include a DR-learner, an R-learner, and an S-learner alongside B-SLIM and BCF, using ten-fold cross-validation. Within each outer training partition, we obtain cross-fitted propensity estimates from a Bayesian logistic model with main effects and pairwise interactions. These estimates are reused throughout fitting and shared by BCF, B-SLIM, and the DR- and R-learners. In contrast to the synthetic simulations, the IHDP analysis uses out-of-sample evaluation with inner cross-fitting. Outcomes from the held-out data are excluded when fitting the propensity and outcome models. B-SLIM uses symmetric treatment coding to give both mean outcome functions the same prior variability and supplies this propensity estimate to its prognostic component. BCF uses binary treatment coding and adaptive treatment coding.[9]

Let μ0(x)\mu_0(x) and μ1(x)\mu_1(x) denote the mean outcomes under control and treatment. The DR-learner estimates these two outcome regressions by cross-fitting a SuperLearner ensemble,[27] using the logistic propensity estimates described above. It then builds an augmented inverse-probability-weighted pseudo-outcome[28] and fits a second SuperLearner to that pseudo-outcome. The R-learner is a causal forest that uses cross-fitted estimates of m(x)=E(Y∣X=x)m(x) = \mathbb{E}(Y \mid X = x) from the same ensemble, together with the same propensity.[29] The S-learner fits one SuperLearner outcome model to the covariates and treatment indicator and takes the contrast between the treatment arms.[30] The SuperLearner library used for these fits contains a generalized linear model, a penalized generalized linear model, three generalized additive models with two to four degrees of freedom, gradient boosting, and a random forest.

We evaluate the five methods using out-of-sample RMSE for the CATE, Spearman correlation with the true CATE, and the calibration slope. We also report each method’s mean rank, by RMSE, within the 100 data sets. Lower RMSE and a lower mean rank are better, a higher Spearman correlation is better, and a calibration slope of one is ideal. The slope is obtained by regressing the true CATE on the estimated CATE with an intercept. For the two Bayesian methods we additionally evaluate the 95% credible intervals for each individual CATE: coverage of the true τi\tau_i, how often the interval excludes zero, and the Type S error among those that do. Because exclusion rates are not comparable when methods have different coverage, we save the complete CATE posterior draws and perform a second, coverage-matched analysis, reported in the Supplementary Material. For each Bayesian model, a scale factor cc is chosen using the other IHDP replicates and then evaluated on the held-out replicate. The held-out response surface therefore does not determine its own scale factor, although all replicates share the same children and treatment assignments.

Results

Simulation Results

Homogeneous Treatment Effect

In the homogeneous scenario, B-SLIM and BCF both shrink towards homogeneity, with lower CATE RMSE for BCF under linear prognosis (Supplementary Table S2). The true treatment effect is constant, τ(x)=3\tau(x)=3. In B-SLIM, the shrinkage prior pulls the main-effect and interaction coefficients towards zero, allowing the treatment function to approach a constant. For both models, CATE RMSE decreases with sample size under linear and non-linear prognosis.

Linear Treatment Effect

In the linear scenario, the true CATE is generated as a simple linear interaction: τ(x)=1+2x2x4\tau(x)=1+2x_2x_4. Table 1 shows that B-SLIM generally has lower ATE RMSE and has lower CATE RMSE, shorter interval lengths, and higher CATE coverage than BCF. The absolute difference in CATE performance is most pronounced from N=250N=250 to N=1000N=1000. In this range, BCF often shrinks the treatment effect back towards homogeneity because its tree prior does not represent a linear treatment surface as efficiently. As the sample size increases, BCF estimates the heterogeneity more accurately, although its RMSE for the CATE remains higher. The exact sample size at which this occurs depends on the signal-to-noise ratio. This pattern also holds when the prognostic function μ(x)\mu(x) is non-linear. At N=3000N=3000, the CATE credible intervals from B-SLIM are narrower (0.598) than those from BCF (1.299), while maintaining coverage of 98%.

μ(x)\mu(x) FormNNBCFB-SLIM
ATECATEATECATE
RMSECovLenRMSECovLenRMSECovLenRMSECovLen
Linear2500.2500.950.9490.9930.913.2740.2200.970.8850.5740.972.453
Linear5000.1320.980.5920.7000.932.4660.1320.960.5670.3680.971.652
Linear7500.1120.960.4580.5800.932.1280.1130.940.4460.3080.971.338
Linear10000.0980.960.3880.5200.941.9090.0970.950.3800.2590.971.148
Linear15000.0770.950.3090.4400.941.6550.0770.940.3050.2130.970.932
Linear30000.0530.960.2120.3310.941.2890.0520.970.2120.1490.970.652
Non-linear2500.3240.890.9591.1500.913.5950.2350.940.8290.6010.962.432
Non-linear5000.1900.880.5810.8180.922.5950.1580.910.5350.3720.971.601
Non-linear7500.1250.930.4490.6610.942.1970.1080.960.4230.2780.981.270
Non-linear10000.1010.950.3810.5840.941.9670.0900.970.3610.2340.981.080
Non-linear15000.0850.910.2990.4910.931.6650.0790.910.2890.1880.970.863
Non-linear30000.0540.950.2050.3660.941.2990.0490.970.2010.1290.980.598

Table 1. Performance Comparison in the Default Heterogeneous Scenario (Linear Interaction CATE). Results are shown for models with Heterogeneous Treatment Effects, comparing Linear and Non-linear prognostic functions (μ\mu).

Heavy Saturation

The comparative advantage for the point estimates shifts in favour of BCF in the heavy saturation scenario (Table 2). Here, the treatment effect follows a steep sigmoid curve and is non-linear. The RMSEs are similar at N=250N = 250. BCF generally has lower CATE RMSE and better coverage because the tree-based treatment function can capture the steep curve by splitting on x1x_1. As NN increases, the posterior of B-SLIM concentrates around a biased linear approximation, causing its credible intervals to shrink and coverage to decrease. BCF’s advantage under heavy saturation is on the CATE magnitudes. On ranking the order reverses: B-SLIM has higher Spearman correlation in every cell (Table 4). It also recovers more of the true top decile at higher precision under the interval-based selection rule (Section S5). When the treatment function is monotone, the linear approximation therefore hurts the estimated sizes more than the ordering of patients.

μ(x)\mu(x) FormNNBCFB-SLIM
ATECATEATECATE
RMSECovLenRMSECovLenRMSECovLenRMSECovLen
Linear2500.2230.960.8870.6080.962.5590.2170.970.8940.6800.912.324
5000.1330.980.5690.4230.971.8630.1350.960.5730.5440.841.550
7500.1100.960.4470.3620.961.5560.1150.960.4510.5150.771.265
10000.0980.960.3810.3230.961.3760.0990.950.3840.4910.701.081
15000.0770.950.3060.2740.961.1510.0790.940.3090.4720.600.877
30000.0530.960.2110.2110.950.8570.0540.970.2140.4520.420.616
Non-linear2500.2740.920.8660.7100.962.7310.2380.940.8420.7100.902.299
5000.1720.890.5480.5080.961.9060.1590.920.5410.5510.831.509
7500.1150.940.4310.4000.961.5690.1090.950.4280.5000.761.193
10000.0940.960.3680.3470.961.3800.0890.960.3650.4800.691.022
15000.0820.910.2920.2910.951.1390.0810.920.2940.4640.580.817
30000.0510.950.2020.2100.950.8360.0510.950.2040.4460.390.572

Table 2. Performance Comparison in the Heavy Saturation Scenario (Non-linear Sigmoid CATE). Results are shown for models with Heterogeneous Treatment Effects, comparing Linear and Non-linear prognostic functions (μ(x)\mu(x)).

ScenarioNNLinear μ(x)\mu(x)Non-linear μ(x)\mu(x)
BCFB-SLIMBCFB-SLIM
Linear2500.902 (0.0028)0.966 (0.0016)0.880 (0.0037)0.962 (0.0024)
Linear5000.955 (0.0012)0.985 (0.0007)0.943 (0.0015)0.985 (0.0007)
Linear7500.970 (0.0007)0.990 (0.0005)0.965 (0.0010)0.992 (0.0004)
Linear10000.977 (0.0006)0.993 (0.0004)0.972 (0.0008)0.994 (0.0003)
Linear15000.984 (0.0003)0.995 (0.0002)0.981 (0.0005)0.996 (0.0002)
Linear30000.992 (0.0002)0.998 (0.0001)0.990 (0.0003)0.998 (0.0001)
Heavy saturation2500.902 (0.0031)0.936 (0.0033)0.888 (0.0043)0.930 (0.0049)
Heavy saturation5000.944 (0.0019)0.974 (0.0013)0.934 (0.0020)0.975 (0.0013)
Heavy saturation7500.958 (0.0014)0.982 (0.0009)0.953 (0.0015)0.985 (0.0008)
Heavy saturation10000.965 (0.0011)0.987 (0.0007)0.961 (0.0012)0.989 (0.0006)
Heavy saturation15000.973 (0.0009)0.991 (0.0005)0.972 (0.0008)0.993 (0.0004)
Heavy saturation30000.983 (0.0006)0.995 (0.0002)0.984 (0.0005)0.997 (0.0002)
Mild saturation2500.452 (0.0167)0.527 (0.0196)0.378 (0.0169)0.576 (0.0189)
Mild saturation5000.660 (0.0130)0.762 (0.0115)0.546 (0.0158)0.772 (0.0110)
Mild saturation7500.741 (0.0107)0.820 (0.0094)0.696 (0.0122)0.849 (0.0076)
Mild saturation10000.788 (0.0093)0.858 (0.0080)0.752 (0.0103)0.892 (0.0051)
Mild saturation15000.851 (0.0061)0.903 (0.0051)0.852 (0.0060)0.932 (0.0035)
Mild saturation30000.919 (0.0033)0.952 (0.0024)0.930 (0.0027)0.966 (0.0016)

Table 4. Spearman correlation between posterior-mean CATE estimates and the true CATE in simulation. Values are means (Monte Carlo standard errors) over 200 replicates. Spearman correlation is undefined for the homogeneous treatment effect.

Mild Saturation

The mild saturation scenario provides a less severe departure from linearity. Table 3 presents the RMSE, empirical coverage, and average length of the 95% credible intervals in this setting. When the treatment effect saturates slowly as x1x_1 increases, it can be approximated by a linear gradient. From N=500N = 500, B-SLIM has lower CATE RMSE than BCF, with CATE coverage close to or above nominal. Its CATE intervals become shorter from N=750N = 750 under linear prognosis and from N=500N = 500 under non-linear prognosis, while at N=250N = 250 BCF has shorter intervals under both prognostic forms but lower CATE RMSE only under linear prognosis.

μ(x)\mu(x) FormNNBCF ATE RMSEBCF ATE CovBCF ATE LenBCF CATE RMSEBCF CATE CovBCF CATE LenB-SLIM ATE RMSEB-SLIM ATE CovB-SLIM ATE LenB-SLIM CATE RMSEB-SLIM CATE CovB-SLIM CATE Len
Linear2500.2140.960.8710.4650.972.0320.2170.980.8770.5230.972.265
Linear5000.1320.960.5650.3360.971.4960.1310.960.5650.3330.971.522
Linear7500.1080.960.4450.2930.961.2600.1100.950.4440.2800.971.238
Linear10000.0960.960.3800.2680.961.1210.0960.950.3780.2350.971.059
Linear15000.0770.950.3050.2260.960.9490.0770.950.3050.1920.970.858
Linear30000.0520.970.2110.1740.960.7150.0520.970.2120.1360.970.599
Non-linear2500.2400.930.8470.5660.952.0860.2330.940.8280.5520.952.251
Non-linear5000.1560.930.5410.4200.941.4780.1570.910.5340.3410.961.477
Non-linear7500.1080.950.4270.3310.951.2440.1060.950.4220.2520.981.167
Non-linear10000.0900.950.3650.2960.951.1170.0880.960.3600.2110.980.995
Non-linear15000.0810.900.2910.2460.960.9380.0790.910.2890.1700.980.791
Non-linear30000.0510.960.2010.1760.960.6950.0490.960.2000.1170.980.549

Table 3. Performance Metrics: Mild Saturation Scenario. Evaluation of the Average Treatment Effect (ATE) and Conditional Average Treatment Effect (CATE) across varying sample sizes (NN) and functional forms of the prognostic score (μ(x)\mu(x)).

ATE coverage is close to nominal under linear prognosis, but less satisfactory in some settings under non-linear prognosis. With a linear prognostic function, the nominal 95% ATE intervals have coverage ranging from 94.0% to 97.5% for both models across the scenarios. The favourable CATE results therefore do not imply uniformly well-calibrated inference for the ATE. Under linear prognosis, both models have mostly small positive ATE bias. In the linear treatment-effect scenario, mean ATE errors decrease from 0.016 at N=250N = 250 to 0.014 at N=3000N = 3000 for B-SLIM, and from 0.039 to 0.017 for BCF. The small positive ATE bias suggests that both models may not fully adjust for selection in this setting.

Ranking Performance

Table 4 reports Spearman correlations with the true CATE. B-SLIM has higher mean correlation in every heterogeneous simulation cell. In the linear scenario, correlations range from 0.962 to 0.998, compared with 0.880 to 0.992 for BCF. Under heavy saturation they range from 0.930 to 0.997, compared with 0.888 to 0.984 for BCF. Thus, the linear approximation can preserve the ordering of patients even when it biases the CATE magnitudes. Ranking is more difficult for both methods under mild saturation, where the treatment effect varies less.

The interval-based selection results in the Supplementary Material (Section S5) provide a related comparison. Under heavy saturation B-SLIM recovers more of the true top decile than BCF with higher precision, despite its poor coverage in this scenario. Results are more mixed at the 25% and 50% thresholds. These selection results also depend on interval width and calibration, and should be read alongside the Spearman correlations. The full ranking tables, including the broader thresholds, are in the Supplementary Material.

In a separate paired simulation of the linear interaction treatment effect, we also investigated residualising the treatment indicator. This variant increased the CATE RMSE under both prognostic forms, by 14.3 to 36.2% (Supplementary Section S1).

Overall, BCF performs better on CATE magnitudes when the treatment effect cannot be represented by main effects and pairwise interactions. When subgroup heterogeneity is represented well by these terms, B-SLIM estimates the CATE more efficiently in these simulations.

IHDP Results

The IHDP benchmark is a challenging setting for B-SLIM because the true treatment effect is the difference between linear and exponential mean outcome surfaces. Despite this structural mismatch, the model approximates the CATE surface and performs on par with BCF (Table 5). BCF has a slightly lower mean RMSE (1.720 versus 1.739 for B-SLIM), a lower median RMSE, and the lower RMSE in 75 of the 100 data sets. BCF also has the

Table 5: IHDP benchmark. Results over 100 replicates using 10-fold out-of-sample predictions. Values are mean (standard error) unless stated. RMSE is for the CATE. The mean rank is the average rank by RMSE across the 100 data sets.

MethodRMSEmedian RMSESpearmanCalib. slopemean rank
B-SLIM1.739 (0.242)0.9570.879 (0.015)0.808 (0.022)2.08
BCF1.720 (0.269)0.8190.892 (0.018)0.928 (0.022)1.36
DR-learner2.343 (0.250)1.6180.716 (0.029)0.786 (0.033)3.88
S-learner3.109 (0.453)1.5450.817 (0.023)1.822 (0.085)3.41
R-learner4.212 (0.635)1.9120.726 (0.017)1.715 (0.058)4.27

Table 5.

lower mean rank and a calibration slope closer to one, as well as a higher mean Spearman correlation (0.892 versus 0.879).

Of the five implementations, the two Bayesian methods have the lowest mean RMSE and the lowest mean rank, and the two highest mean Spearman correlations. Calibration is more mixed: BCF is closest to a slope of one. Both models use the same BART prior for the prognostic function and differ on the priors chosen to model the treatment contrast. We observe that the pairwise interactions still approximate the non-linear treatment function over the observed covariate support, because they allow the effect of one covariate to depend on another.

The signal-stratified results in Table 6 reverse the ordering of the two Bayesian methods. BCF has the lower RMSE in 24 of the 25 data sets in the weakest quartile, whereas B-SLIM has the lower RMSE in 16 of the 25 data sets in the strongest quartile. This matches the simulations. A linear treatment function uses a structured signal more efficiently, while BCF shrinks more towards a homogeneity. When the treatment effect varies less, as in the weakest quartile, the extra shrinkage helps. When the CATE signal is pronounced, B-SLIM fares better. The quartiles also differ in the scale and shape of τ\tau, so signal strength is probably not the only reason. What the split does show is that the two Bayesian models do not rank the same way in every IHDP scenario.

Table 6: Performance of the two Bayesian methods by the amount of treatment effect signal present, measured by quartiles of sd⁡(τ)\operatorname{sd}(\tau) across the 100 data sets. Δ\Delta is the difference in RMSE (for the CATE) between B-SLIM and BCF, so a negative value favours B-SLIM.

Quartilerange of sd⁡(τ)\operatorname{sd}(\tau)data setsmean Δ\Deltamedian Δ\DeltaB-SLIM wins
1 (weakest)0.03–1.08250.1390.1351/25
21.15–2.54250.1260.1232/25
32.57–5.55250.1490.1626/25
4 (strongest)5.67–43.2225−0.338−0.22816/25

Table 6.

Individual CATE Posteriors on IHDP

In addition to the point estimates, we also evaluate whether the models correctly predict harm or benefit, and how they quantify uncertainty. The IHDP outcomes are synthetic, so we can check the sign of each posterior and whether the interval covers the true effect. We report how often the 95% interval excludes zero, and the Type S error among those that do (Table 7). The same quantities are split by quartiles of signal strength of the treatment effect in Table 8.

Methodexcludes 0sign correctType ScoveragewidthAUC P(τ>0)P(\tau> 0)
B-SLIM0.890 (0.007)0.998 (0.000)0.002 (0.000)0.930 (0.005)5.04 (0.55)0.992 (0.001)
BCF0.897 (0.009)0.997 (0.000)0.003 (0.000)0.914 (0.005)4.55 (0.64)0.976 (0.008)

Table 7. Individual CATE posteriors on IHDP (100 replicates, 10-fold out-of-sample, 95% credible intervals). Values are mean (standard error) over the 100 data sets, except AUC, which is averaged where both true effect signs occur. “Excludes 0” is the fraction of children whose interval excludes zero. “Sign correct” and “Type S” are conditional on that. Coverage is of the true τi\tau_i (nominal 0.95). AUC is for P(τi>0)P(\tau_i > 0) as a classifier of sign⁡(τi)\operatorname{sign}(\tau_i).

Quartile of sd⁡(τ)\operatorname{sd}(\tau)Coverage BCFCoverage B-SLIMType S (%) BCFType S (%) B-SLIM
1 (weakest)0.9610.9630.050.02
20.9280.9440.380.11
30.8980.9320.290.17
4 (strongest)0.8700.8800.410.47

Table 8. Coverage of the true τi\tau_i and Type S error rate by quartile of sd⁡(τ)\operatorname{sd}(\tau), using the same quartiles as Table 6. Nominal coverage is 0.95.

The main difference is the length of the credible intervals. B-SLIM has wider intervals, while the shorter intervals of BCF exclude zero more often. This extra confidence comes at a price. BCF undercovers more than B-SLIM in every signal quartile, and its Type S rate is slightly higher overall, although not in the strongest quartile (Table 8). The AUC for P(τi>0)P(\tau_i > 0) as a classifier of the sign of τi\tau_i, i.e. how well the model can discriminate between a true negative and true positive effect is higher for B-SLIM. Coverage is better and more uniform for B-SLIM, but still below the nominal 95% for both methods except in the weakest quartile.

The exclusion rates before calibration in Table 7 are therefore not a fair comparison of how often each model can detect a non-zero effect. The B-SLIM intervals cover 93.0% of the true τi\tau_i, against 91.4% for BCF. We use the posterior draws to rescale each model’s intervals towards a common empirical coverage target of 95%. The amount of adjustment was chosen from the remaining 99 data sets and then applied to the held-out one, so the same replicate is not used both to set the interval and to score it. The Supplementary Material (Section S3, Table S3) reports the result. BCF’s intervals have to be expanded the most (c=1.186c = 1.186), while B-SLIM needs c=1.105c = 1.105. At approximately matched coverage, the exclusion rates are close: 87.6% of children for B-SLIM and 87.8% for BCF (paired difference −0.0015, 95% CI [−0.0101, 0.0072]). The higher exclusion rate of BCF before calibration therefore becomes much smaller at comparable empirical coverage.

Methodcccoverageexcludes 0correct exclusionType Swidth
B-SLIM1.105 (0.000)0.950 (0.004)0.876 (0.008)0.875 (0.008)0.001 (0.000)5.56 (0.61)
BCF1.186 (0.000)0.950 (0.003)0.878 (0.010)0.876 (0.010)0.002 (0.000)5.39 (0.76)

Table S3. Coverage-matched individual CATE inference on IHDP. Each model’s intervals are rescaled towards a common empirical coverage target of 95%. The scale factor is chosen from the other 99 data sets and then applied to the held-out one; held-out coverage need not equal the target exactly. Values are mean (standard error) over 100 replicates. The scale factor cc multiplies the distances from the posterior mean to the 2.5th and 97.5th posterior percentiles; c>1c > 1 widens the interval. “Correct exclusion” is the fraction of children whose interval excludes zero in the direction of the true effect.

Applied Example: The CANVAS Program

We applied B-SLIM to individual participant data from the CANVAS Program. We considered two randomized, double-blind, placebo-controlled trials, CANVAS (NCT01032629) and CANVAS-R (NCT01989754), designed to evaluate the cardiovascular and renal effects of the SGLT2 inhibitor canagliflozin in patients with type 2 diabetes at high cardiovascular risk. [31, 32] Access to this trial data was granted under the Yale University Open Data Access (YODA) Project (Access Request Number: 2025-068433). The primary continuous outcome measure for this analysis is the change in HbA1c from baseline to the 52-week follow-up. HbA1c reflects average blood glucose over the preceding months and is an important measure of the glucose-lowering response to SGLT2 inhibitors. Earlier studies of canagliflozin have also assessed glycaemic efficacy over this follow-up period. [34]

We compare canagliflozin with placebo. To capture potential drivers of treatment effect heterogeneity, we selected a set of baseline participant characteristics, including baseline HbA1c, age, urinary albumin-to-creatinine ratio, eGFR, systolic blood pressure, history of cerebrovascular disease, diabetes duration, and sex. We also included body mass index, recorded race, history of heart failure, and baseline use of insulin, metformin, GLP-1 receptor agonists, and agents acting on the renin–angiotensin system. The full covariate list and coding are given in Supplementary Section S4. We used complete cases for the 52-week HbA1c change, treatment assignment, and selected baseline covariates; missing values were not imputed. B-SLIM uses symmetric treatment coding to give both mean outcome functions the same prior variability, while BCF uses adaptive treatment coding. Both models include the treatment proportion in the full CANVAS-R training pool as the same constant propensity score in the prognostic component. The Shapley decomposition and coefficient posteriors are presented below.

Results and Interpretability

We trained both models on the CANVAS-R analytic sample and evaluated them in the CANVAS analytic sample. In the smaller training samples, both models shrink the estimated treatment effects towards homogeneity, more so for BCF (Supplementary Section S4). At the full CANVAS-R sample, the correlation between their out-of-sample CATE predictions is r=0.843r = 0.843; at N=4000N = 4000 it is 0.813 (Table S4). The models rank patients similarly by predicted benefit, while B-SLIM has lower out-of-sample RMSE for HbA1c change at every training size. When their rankings are similar, B-SLIM also gives direct parameter-level inference on the treatment-effect modifiers.

Outcome RMSECATE agreementNet AUUC/nvn_v
NNDrawsBCFB-SLIMrrSpearmanBCFB-SLIM
500201.009 ± 0.1190.947 ± 0.0160.702 ± 0.1370.759 ± 0.0880.009 ± 0.0130.012 ± 0.015
1000200.974 ± 0.0780.926 ± 0.0090.692 ± 0.1300.727 ± 0.1080.019 ± 0.0100.021 ± 0.014
1500200.952 ± 0.0570.918 ± 0.0040.741 ± 0.1020.778 ± 0.0900.020 ± 0.0090.025 ± 0.008
2000200.979 ± 0.0440.916 ± 0.0050.778 ± 0.0880.803 ± 0.0740.023 ± 0.0090.026 ± 0.010
3000200.970 ± 0.0580.913 ± 0.0020.811 ± 0.0690.828 ± 0.0520.025 ± 0.0040.028 ± 0.006
4000200.944 ± 0.0240.910 ± 0.0020.813 ± 0.0330.823 ± 0.0310.027 ± 0.0030.031 ± 0.005
501810.9500.9090.8430.8510.0290.035

Table S4. Out-of-sample performance on CANVAS. Values are mean ± standard deviation over 20 training draws, except the last row, which is a single fit on the full CANVAS-R sample. RMSE is for the outcome YY. Correlation and Spearman are between the two models’ out-of-sample CATEs. Net AUUC subtracts the random-targeting area and is divided by the 3004 validation participants; its units are HbA1c change.

RACE, considered jointly, has the largest grouped Shapley contribution, followed by baseline HbA1c and age; these contributions arise mainly through main effects. Figure 2 shows their contributions across individuals. Higher baseline HbA1c generally contributes to a larger treatment-related reduction in HbA1c, while older age contributes to a smaller reduction.

Individual Shapley summaries for the predicted CATE in CANVAS-R

Figure 2. Individual Shapley summaries for the predicted CATE in CANVAS-R. Each point adds the posterior medians of one individual’s main-effect and interaction contributions. Colour indicates the covariate value, from low (blue) to high (red). Negative contributions indicate a larger HbA1c reduction. RACE1–RACE5 are contrast columns of one categorical covariate. The spread describes variation between individuals. Abbreviations are defined in Supplementary Table S5.

We constructed simultaneous 95% posterior intervals across the full set of assessed treatment-effect contrasts for all covariates, including all pairwise RACE comparisons. The simultaneous intervals for baseline HbA1c, age, and the Black or African American versus White contrast exclude zero. For the RACE contrast, the estimated treatment-related reduction in HbA1c is greater in Black or African American participants than in White participants (Supplementary Figure S2). These contrasts account for interactions and are averaged over the observed distribution of the remaining covariates (Supplementary Section S4.2). BCF provides posterior distributions of the CATE, but does not offer the same direct inference on individual effect modifiers. A pooled analysis that included CANVAS sub-studies reported HbA1c reductions across racial groups, although the studies were not powered for comparisons between them. [35] Another CANVAS Program analysis com-

pared cardiovascular and renal outcomes in Asian and White participants,[36] although they considered different outcomes than our analysis.

Posterior Distributions of the Main Effects

Figure 3 shows the posteriors of the main-effect coefficients for baseline HbA1c and age. Their means are −0.094-0.094 and 0.0900.090, with pointwise 95% credible intervals [−0.145,−0.044][-0.145, -0.044] and [0.033,0.147][0.033, 0.147], respectively, on the fitted model scale. With all other encoded covariates set to zero, the main-effect coefficients indicate that higher baseline HbA1c is associated with a greater treatment-related reduction in HbA1c, and older age with a smaller reduction.

Code and Data Availability

The simulation, IHDP, and application analysis scripts are available at https://github.com/HYHBalci/bslim-paper.[37] The B-SLIM implementation for general use is available in bslim, based on stochtree, at https://github.com/HYHBalci/bslim.[38] The analysis repository includes data-generating code, model fitting, and evaluation scripts. CANVAS participant data are available through the Yale University Open Data Access Project under request 2025-0684, subject to its access requirements.

Discussion

We presented B-SLIM, which places a flexible BART prior on the prognostic function and uses a sparse linear model, with main effects and pairwise interactions, to capture the treatment effect. The global–local shrinkage prior enables the search of a large interaction space and allows appropriate inference. Shapley values provide interpretation by summarizing how each covariate contributes to the CATE. The model also provides conditional mean potential-outcome predictions, besides CATE estimation.

The simulations describe the trade-off that our semi-parametric structure creates. When the treatment effect is linear, or close enough to a linear gradient, B-SLIM generally has lower CATE RMSE and, at larger sample sizes, tighter credible intervals than BCF. When the treatment function is more strongly non-linear, BCF has lower RMSE and better coverage. Spearman ranking favours B-SLIM in all heterogeneous simulation settings. Under monotone saturation it is also generally the more sensitive and the more precise of the two at the sharpest interval-based threshold. ATE coverage is close to nominal under linear prognosis: both models’ nominal 95% ATE intervals have coverage between 94.0% and 97.5%, alongside mostly small positive ATE bias. Residual bias under targeted selection may contribute, although these results do not identify its source.

We primarily compare with BCF because both models use a BART prognostic component, allowing us to examine the effect of modelling the treatment contrast parametrically or with a second forest. IHDP provides a broader comparison with the DR-, S-, and R-learners.

On IHDP the true treatment effect is the difference between linear and exponential mean outcome surfaces, so it does not lie in the linear-plus-interactions span of our model. Even so, the approximation is close enough that B-SLIM performs on par with BCF. The two Bayesian methods have the first and second lowest mean RMSE and mean rank, they have the two highest mean Spearman correlations with the true CATE, and both outperform the implementations of the frequentist machine learners considered here (the DR-learner, the S-learner, and the R-learner) on these metrics. Comparing the two Bayesian methods on individual inference, BCF excludes zero from the individual intervals more often, while B-SLIM has wider intervals, better coverage of the true τi\tau_i, and fewer Type S errors overall. Neither method attains the nominal 95% coverage except in the weakest quartile. After calibrating the intervals towards the same empirical coverage, B-SLIM and BCF have very similar exclusion rates.

In our data set CANVAS, the two models rank patients similarly, while B-SLIM has lower out-of-sample outcome prediction error. Its grouped Shapley decomposition places RACE, baseline HbA1c, and age among the largest contributors to treatment-effect heterogeneity, mainly through main effects. The corresponding full CATE contrasts have simultaneous 95% posterior intervals that exclude zero. B-SLIM provides these contrasts directly; BCF’s CATE posterior does not give the same parameter-level inference.

The gain in efficiency of B-SLIM still comes with a structural limitation: non-linearity in the treatment function cannot always be represented by main effects and pairwise interactions. The IHDP results qualify this limitation, since a smooth non-linear treatment function can still be approximated using the main and interaction effects. The heavy saturation results show where this approximation starts to break down.

Including more covariates and their pairwise interactions increases the number of coefficients and the computation required for fitting.

Guidance for Practice

In practice, B-SLIM is the more natural choice when treatment effect heterogeneity is expected to be represented well by main effects and pairwise interactions, and when direct inference on effect modifiers or prediction of both potential outcomes is required. BCF is safer when strong non-linearity in the treatment function is plausible.

In real data, where the CATE is not known, out-of-sample outcome prediction can help to decide between the two models. In a randomized validation sample, patients can also be grouped by predicted benefit. Comparing the observed treatment–control differences with the predicted mean treatment effects in these groups then assesses calibration at group level. When performance is similar, we prefer B-SLIM, because it provides more interpretability at the parameter level. We also advise evaluating the agreement between the CATE rankings of the two models, because this assesses the robustness of the ranking with respect to model choice. Strong disagreement between the models calls for further model checking rather than favouring either model by itself.

Future Directions

It may be worthwhile to extend B-SLIM with the BART updates proposed by Prado et al.[14] to improve identifiability. Note, however, that in our setting identifiability is much less of an issue than in the general case, as the two parts of the model act on different outcome spaces: one on the overall prediction and the other on the treatment contrast. Moreover, our sparse regularization on the regression parameters likely also helps to disentangle tree effects from regression effects. Still, more targeted updating may improve convergence of the parameter estimates and lower their uncertainty.

Rather than estimating a sparse signal with a treatment function, future work might directly classify whether individuals do or do not benefit from a treatment. Recent work by Müller et al. 39 and Cheng et al. 40 provides frameworks for identifying subgroups with treatment benefit while controlling specified error rates under their respective assumptions. Given that our model can capture the prognostic function, the remaining partial residuals could be used to classify patients into subgroups without explicitly modelling the treatment effect function. Furthermore, Chen et al. 41 present a global test for heterogeneity based on whether score residuals are associated with the covariates. A formulation that uses a BART prior for the prognostic function could extend this test. The same backfitting scheme also extends to a Student-tt working likelihood for continuous outcomes with heavy tails, and to a probit model for binary outcomes; both variants are implemented, but further testing is required to evaluate these. When the coefficient space grows, prior specifications that link shrinkage across main and interaction effects may improve estimation.[22] Future work could also examine how more flexible propensity-score models account for the targeted-selection mechanism.

Conclusion

In summary, we provide B-SLIM, a semi-parametric Bayesian model for individualized treatment effect estimation in observational studies and randomized trials. It combines a nonparametric prognostic component with a sparse linear treatment effect component, providing direct parameter inference and patient-specific predictions of conditional mean potential outcomes. In the simulations and IHDP, the interaction basis is efficient under linearity and also approximates smooth non-linearity over the observed covariate support. On IHDP, both Bayesian methods outperform the DR-learner, S-learner, and R-learner implementations considered here in mean CATE RMSE and ranking. In CANVAS, the two Bayesian models rank patients similarly, while B-SLIM provides evidence of effect modification by baseline HbA1c, age, and RACE. B-SLIM is the more suitable choice when main effects and pairwise interactions can reasonably describe or approximate treatment effect heterogeneity and inference on the effect modifiers is of interest. BCF remains the safer default when the treatment effect is strongly non-linear and cannot be adequately represented by this basis. If the two models perform similarly, we prefer B-SLIM for its interpretability.

Acknowledgements

This study, carried out under YODA Project # 2025-0684, used data obtained from the Yale University Open Data Access Project, which has an agreement with JANSSEN RESEARCH & DEVELOPMENT, L.L.C.. The interpretation and reporting of research using this data are solely the responsibility of the authors and does not necessarily represent the official views of the Yale University Open Data Access Project or JANSSEN RESEARCH & DEVELOPMENT, L.L.C.. The original proposal can be found: https://yoda.yale.edu/data-request/2025-0684/.

Funding

This work was supported by a starter grant awarded to Jeroen Hoogland (project number 20113364).

Supporting information

The accompanying supplement contains the treatment-residualisation comparison, additional simulation results, coverage-matched IHDP analyses, CANVAS validation and interpretability details, and posterior sampling equations and algorithm.

Supplementary Material

This supplement provides additional simulation and application results and computational details.

Orthogonalisation of the Treatment Contrast

The standard fit uses centered treatment coding, z−0.5z - 0.5. In the orthogonalised fit, we use z−π^(x)z - \hat{\pi}(x) instead. We estimate π^(x)\hat{\pi}(x) once with a Bayesian logistic regression including main effects and pairwise interactions, and hold it fixed across chains. Both fits use the same prognostic forest specification and prior. Residualising treatment changes the conditional outcome function represented by the prognostic component.

In this comparison, orthogonalising the treatment contrast increases CATE RMSE in every design, by 14.3 to 36.2% (Table S1). Under a linear μ\mu, the increase averages 17.7%, with wider intervals and higher coverage. Under a non-linear μ\mu, the increase averages 29.6% and average coverage falls despite wider intervals. The last two columns of Table S1 use the same interval-based top-quartile rule as in the main simulations; sensitivity falls in both panels.

CATE RMSECoverageCI widthTop-25% sensitivity
NNstandardresidualisedchangestandardresidualisedstandardresidualisedstandardresidualised
Linear μ\mu
2500.6390.751+17.4%0.9420.9812.4153.5160.4910.298
5000.3810.459+20.5%0.9590.9771.6192.1020.6210.490
7500.3120.357+14.3%0.9630.9771.3071.6160.6890.586
10000.2600.299+14.9%0.9650.9761.1161.3630.7320.649
15000.2050.245+19.4%0.9690.9750.9001.0880.7760.714
30000.1430.170+19.4%0.9670.9690.6230.7420.8430.808
Non-linear μ\mu
2500.5780.748+29.6%0.9570.9602.3183.1320.4650.373
5000.3500.477+36.2%0.9680.9611.5321.9450.6120.548
7500.2660.347+30.1%0.9770.9721.2191.4970.6760.616
10000.2230.296+32.8%0.9780.9701.0371.2680.7170.651
15000.1760.223+26.7%0.9780.9750.8280.9980.7760.732
30000.1230.151+22.4%0.9790.9770.5740.6810.8410.808

Table S1. Orthogonalised versus standard B-SLIM under both prognostic forms, with 200 replicates per setting. Change is the percentage increase in CATE RMSE. Sensitivity uses the same interval-based top-quartile rule as in the main simulations.

The standard-arm values come from this separate experiment and differ from those in main-text Table 1. There are 200 replicates at each sample size.

Homogeneous Simulation Results

Table S2 presents the results for the homogeneous simulation scenario, where τ(x)=3\tau(x) = 3 and all non-intercept treatment-effect coefficients are zero. The results show that B-SLIM and BCF can shrink back towards homogeneity, with lower CATE RMSE for BCF under linear prognosis.

μ(x)\mu(x)FormNNBCFB-SLIM
ATECATEATECATE
RMSECovLenRMSECovLenRMSECovLenRMSECovLen
Linear2500.2150.970.8690.3880.991.9560.2170.970.8750.5020.972.241
5000.1320.950.5620.2570.981.3600.1320.970.5630.3210.981.503
7500.1080.960.4440.2120.991.1100.1110.950.4450.2690.981.225
10000.0960.960.3780.1910.990.9670.0970.960.3780.2260.981.047
15000.0760.950.3040.1570.980.7880.0770.940.3050.1860.980.850
30000.0520.970.2110.1090.980.5540.0520.970.2110.1320.970.594
Non-linear2500.2360.920.8370.4740.971.9550.2340.930.8240.5360.962.221
5000.1530.920.5360.3070.971.3110.1570.910.5330.3300.971.459
7500.1080.950.4250.2320.981.0700.1070.950.4210.2450.981.152
10000.0880.970.3630.2050.980.9370.0890.970.3590.2040.980.983
15000.0800.920.2900.1740.980.7600.0800.910.2880.1660.980.785
30000.0500.970.2010.1220.990.5270.0490.960.2000.1140.980.545

Table S2. Performance Comparison in the Homogeneous Scenario (Constant CATE, τ=3\tau= 3). Results are shown for models with Homogeneous Treatment Effects, comparing Linear and Non-linear prognostic functions (μ\mu).

Coverage-matched Individual CATE Inference on IHDP

This calibration is possible because the individual treatment effects are known in the semi-synthetic benchmark.

The original 95% credible intervals of the two Bayesian methods do not have the same coverage of the true τi\tau_i on IHDP, so their exclusion rates are not directly comparable. Let mim_i be the posterior mean, and qi,0.025q_{i,0.025} and qi,0.975q_{i,0.975} the posterior percentiles that form the central 95% credible interval. We rescale this interval as

Ii(c)=[mi+c{qi,0.025−mi},mi+c{qi,0.975−mi}].I_i(c) = [m_i + c\{q_{i,0.025} - m_i\}, m_i + c\{q_{i,0.975} - m_i\}].

The scale factor c>1c > 1 widens the interval. For each held-out replicate and each model, we choose the smallest cc attaining at least 95% empirical coverage across the other 99 data sets, and then evaluate it on the held-out replicate. The resulting intervals are empirically calibrated CATE intervals, not tolerance intervals or necessarily 95% posterior credible intervals. The shared covariates and treatment assignments mean this evaluates calibration across IHDP response surfaces rather than across new patient samples. Table S3 reports the comparison; held-out mean coverage is 0.950 for both methods. The exclusion rates are close.

Detailed Analysis: The CANVAS Program

Out-of-Sample Performance

We compare B-SLIM with BCF by using an analytic sample of 5018 individuals from CANVAS-R for training and 3004 individuals from CANVAS for validation. These are the numbers included in this analysis, rather than the original trial enrolments. To study the effect of sample size, we drew 20 treatment-stratified samples without replacement for

N∈{500,1000,1500,2000,3000,4000}N \in\{500, 1000, 1500, 2000, 3000, 4000\} from CANVAS-R and trained both models on each sample. We also fit both models once on the full CANVAS-R sample. Both models include the treatment proportion in the full CANVAS-R training pool as the same constant propensity score in the prognostic component. We evaluate agreement between the models using the correlation between their out-of-sample CATEs, and we evaluate ranking using the uplift curve.[42] Because the outcome is follow-up minus baseline HbA1c, a more negative CATE indicates greater benefit. The uplift curve ranks individuals from high to low predicted benefit, −τ^(x)-\hat{\tau}(x), and plots the cumulative gain as an increasing portion of the population is treated. This evaluation relies on randomization; without exchangeability, the empirical treatment effect cannot be compared directly with the model output. Figure S1 and Table S4 show the results for both methods at the different sample sizes.

Out-of-sample CATE agreement and uplift curves for B-SLIM and BCF

Figure S1. Out-of-sample CATE agreement (left) and uplift curves (right) for B-SLIM and BCF at N=1000N = 1000, 2000, 3000, and 4000 (mean over 20 draws). The orthogonal fit is a total least-squares line between the two models’ predictions, minimizing perpendicular distances; it is unrelated to treatment residualisation in § 9.1. Dotted min–max lines show the pointwise range across the 20 training draws. The dotted diagonal marks equality in the agreement panels and random targeting in the uplift panels.

The comparison of the individual CATEs shows that the two models already agree reasonably well at small NN, and that this agreement increases with sample size (Table S4 and Figure S1). At N=1000N = 1000 the average correlation of the out-of-sample CATEs is r=0.69r = 0.69; at N=4000N = 4000 it is r=0.81r = 0.81, and r=0.84r = 0.84 when both models are trained on the whole CANVAS-R sample. Spearman correlations are similar. This indicates similar estimated treatment effect patterns, although agreement between models does not establish the true functional form. At smaller sample sizes, both models often shrink the treatment effect back towards homogeneity, BCF more strongly.

The uplift curves in Figure S1 are comparable for both models and remain close to the diagonal representing random targeting. This limits the evidence for improved targeting despite agreement between the models. The normalized net areas under the uplift curve in Table S4 are similar as well. Thus, even when the CATE magnitudes differ at lower sample sizes, the models rank patients similarly. B-SLIM also has smaller RMSEs for the out-of-sample outcome (YY) at every training size in Table S4. In this evaluation, B-SLIM therefore provides comparable ranking while also allowing direct variable selection, which we examine in the next section.

To standardize the area under the uplift curve, write U(f)U(f) for cumulative uplift when the fraction ff of the validation sample is selected. With nv=3004n_v = 3004, we report

NetAUUCnv=1nv{∫01U(f) df−U(1)2}.\frac{\mathrm{NetAUUC}}{n_v} = \frac{1}{n_v}\left\{\int_{0}^{1} U(f)\,\mathrm{d}f - \frac{U(1)}{2}\right\}.

We subtract the area under the straight line for random targeting and divide by the validation-sample size. Positive values indicate greater cumulative HbA1c reduction than random targeting. Table S4 reports this normalized measure.

At N=500N = 500, the outcome-RMSE standard deviation is much lower for B-SLIM than for BCF (0.016 versus 0.119). We interpret this difference as reflecting the greater sample-to-sample variation induced by BCF’s tree-based treatment-effect structure.

Interpretability and Variable Selection in Practice

The out-of-sample evaluations show comparable ranking for the two models. B-SLIM also allows structural interpretation. We therefore applied the Shapley value decomposition to the CANVAS-R data to describe the covariate contributions to treatment effect heterogeneity. The Shapley summaries and the HbA1c and age coefficient posteriors are shown in the main text (Figure 2 and Figure 3). Table S5 defines the abbreviations.

Posterior distributions of the main-effect coefficients for baseline HbA1c and age

Figure 3. Posterior distributions of the main-effect coefficients for baseline HbA1c (upper panel) and age (lower panel). Both pointwise 95% credible intervals exclude zero.

LabelCovariate
BLBMIBody mass index
AGEAge
HHFFLHistory of heart failure
BLSBPSystolic blood pressure
SEXSex
DIADURDiabetes duration
HCEREBFLHistory of cerebrovascular disease
BLA1CHbA1c
BLGFREstimated glomerular filtration rate
INSULBLInsulin use
GLP1BLGLP-1 receptor agonist use
BLACRUrinary albumin-to-creatinine ratio
RACERecorded race, represented by sum contrasts RACE1–RACE5
METFORBLMetformin use
RANGIBLUse of agents acting on the renin–angiotensin system

Table S5. Baseline covariates in the CANVAS analysis and figure labels.

For RACE, the signed column contributions are summed within each individual before taking absolute values. RACE, baseline HbA1c, and age have the largest contributions, predominantly through main effects. The recorded race categories are White; Black or African American; Asian; American Indian or Alaska Native; Native Hawaiian or Other Pacific Islander; and Other/Multiple. We combine Other and Multiple, and treat Unknown and Not Reported as missing before complete-case filtering.

To assess each covariate, we compare the full fitted CATE, including its interactions, at selected values while averaging over the empirical distribution of the other covariates. For continuous covariates, we compare the 90th and 10th percentiles; for binary covariates, the two levels; and for RACE, every pair of categories. For posterior contrast draws dℓ(m)d_{\ell}^{(m)}, with posterior mean dˉℓ\bar{d}_{\ell} and standard deviation sℓs_{\ell}, we take the 95th percentile kk of max⁡ℓ∣(dℓ(m)−dˉℓ)/sℓ∣\max_{\ell} \lvert(d_{\ell}^{(m)}-\bar{d}_{\ell})/s_{\ell}\rvert. The intervals dˉℓ±ksℓ\bar{d}_{\ell} \pm ks_{\ell} are simultaneous across all assessed contrasts. A covariate is flagged when at least one of its intervals excludes zero.

Figure S2 shows the simultaneous intervals for all assessed contrasts.

Full fitted CATE contrasts in CANVAS-R

Figure S2. Full fitted CATE contrasts in CANVAS-R, including interactions and averaged over the other covariates. Continuous covariates compare the 90th minus 10th percentile; binary covariates compare the higher-coded minus lower-coded level; RACE compares the first named minus second named category. Points are posterior means; blue and grey intervals are pointwise and simultaneous 95% credible intervals, respectively. Contrasts are on the fitted model scale.

Ranking Performance in Simulation

Tables S6 and S7 display interval-based selection performance under the Heavy Saturation and Mild Saturation scenarios, respectively.

Two patterns hold across both scenarios. The advantage of B-SLIM is concentrated at the sharp thresholds. Under heavy saturation it attains both higher sensitivity and higher precision than BCF at the top 10% threshold, recovering on average 29.9% of the true top decile against 1.3% for BCF, at a mean precision of 0.994 against 0.757. At the top 50% threshold under heavy saturation, mean sensitivities are similar (0.706 for BCF against 0.686), while their mean precisions are close (0.998 against 0.998). The advantage under this selection rule is therefore concentrated at the more selective threshold.

Table S6 shows that under heavy saturation the precision of B-SLIM stays at or above 0.956 at every sample size and threshold, while BCF’s top 10% precision ranges from 0.397 to 0.965 and is weakest when μ(x)\mu(x) is non-linear. The selection rule can therefore identify high-benefit individuals in this monotone simulation, even though the CATE magnitudes are biased and coverage drops (Table 2). Under mild saturation (Table S7) the same ordering at the top decile shows up from N≥1000N \ge1000 onwards, but at N=250N = 250 neither model is dependable at the top decile: precision falls to 0.748 for B-SLIM under a linear μ(x)\mu(x) and to 0.261 for BCF under a non-linear one. At small sample sizes, precision at the sharpest threshold is not stable. These ranking results are for a monotone treatment function.

μ(x)\mu(x) FormNNBCFB-SLIM
Top 10%Top 25%Top 50%Top 10%Top 25%Top 50%
SensPrecSensPrecSensPrecSensPrecSensPrecSensPrec
Linear2500.0090.6490.0110.8760.0230.9530.0260.7480.0320.8630.0590.913
5000.0100.9580.0150.9610.0480.9900.0390.8850.0590.9690.1150.991
7500.0140.9020.0320.9550.0800.9920.0650.9450.0900.9810.1700.992
10000.0260.9010.0450.9560.1160.9920.0580.9740.1050.9880.2240.992
15000.0170.8930.0600.9780.1900.9960.0800.9890.1560.9920.3140.996
30000.0350.9740.1500.9910.3940.9980.1820.9910.2980.9960.4970.997
Non-linear2500.0110.2610.0140.4680.0340.7420.0400.4840.0530.7060.0880.885
5000.0110.2320.0190.5630.0600.8600.0530.8540.0850.9260.1570.970
7500.0040.3330.0170.7610.0750.9400.0590.9590.1010.9870.2060.991
10000.0060.4680.0280.8220.1270.9590.0730.9710.1360.9870.2710.994
15000.0110.6290.0590.8950.2150.9890.1230.9870.2120.9920.3790.996
30000.0300.8100.1440.9790.4290.9970.2260.9950.3540.9970.5440.999

Table S7. Interval-based selection performance: mild saturation scenario. A patient is flagged if the lower bound of the 95% credible interval exceeds the threshold. Precision is averaged only over replicates in which the model flagged at least one patient, so it should be read together with sensitivity.

μ(x)\mu(x) FormNNBCF Top 10% SensBCF Top 10% PrecBCF Top 25% SensBCF Top 25% PrecBCF Top 50% SensBCF Top 50% PrecB-SLIM Top 10% SensB-SLIM Top 10% PrecB-SLIM Top 25% SensB-SLIM Top 25% PrecB-SLIM Top 50% SensB-SLIM Top 50% Prec
Linear2500.0160.9200.0410.9830.4270.9970.1010.9890.1020.9990.4060.997
Linear5000.0140.9050.0650.9970.6331.0000.1870.9970.1851.0000.5940.999
Linear7500.0180.9340.1150.9950.7081.0000.2510.9980.2321.0000.6660.999
Linear10000.0250.9160.1500.9950.7470.9990.2891.0000.2681.0000.7220.999
Linear15000.0140.8270.2270.9960.7950.9990.3491.0000.3141.0000.7710.999
Linear30000.0130.9650.4680.9940.8480.9990.4601.0000.3881.0000.8410.999
Non-linear2500.0130.3970.0320.8440.4710.9920.1460.9560.1400.9860.4830.989
Non-linear5000.0140.5530.0790.9190.6850.9970.2400.9890.2310.9990.6480.997
Non-linear7500.0060.6020.1040.9720.7260.9980.2981.0000.2711.0000.7050.999
Non-linear10000.0060.4860.1700.9750.7590.9990.3420.9990.3041.0000.7450.999
Non-linear15000.0060.7850.2810.9950.8140.9990.4151.0000.3551.0000.7950.999
Non-linear30000.0130.7930.5070.9970.8600.9980.5041.0000.4141.0000.8551.000

Table S6. Interval-based selection performance: heavy saturation scenario. A patient is flagged if the lower bound of the 95% credible interval exceeds the threshold. Precision is averaged only over replicates in which the model flagged at least one patient, so it should be read together with sensitivity.

Computational Details

We use Bayesian backfitting to alternate between the prognostic and treatment functions. Let uiu_i denote the fixed treatment coding, with ui=ziu_i = z_i for 0/1 coding and ui=zi−1/2u_i = z_i - 1/2 for symmetric coding. Let hih_i contain the pp covariate columns and the qq included interaction columns, and collect their coefficients in bb. The treatment-weighted design WW has rows uihiTu_i h_i^\mathsf{T}, so that y=μ+uα+Wb+ϵy = \mu+ u\alpha+ Wb + \epsilon and τ(xi)=α+hiTb\tau(x_i) = \alpha+ h_i^\mathsf{T}b. Write P\mathcal{P} for the included interaction pairs, K=p+qK = p + q, and

D=diag⁡(λ12,…,λp2,{λj,k2λglob2}(j,k)∈P),Q=WTW+D−1.D = \operatorname{diag}\left(\lambda_1^2,\ldots,\lambda_p^2,\{\lambda_{j,k}^2\lambda_{\mathrm{glob}}^2\}_{(j,k)\in\mathcal{P}}\right), \qquad Q = W^\mathsf{T}W + D^{-1}.

All quantities below are on the fitted scale, after centering the outcome and dividing it by its training-sample standard deviation. The simulations use the generated covariates, while IHDP and CANVAS standardize continuous covariates before forming interaction products. Binary and categorical contrast columns and the treatment coding are not standardized. We use the inverse-gamma parameterization p(v)∝v−a−1exp⁡(−b/v)p(v) \propto v^{-a-1}\exp(-b/v) for v∼IG⁡(a,b)v \sim\operatorname{IG}(a,b); conditioning on the data and all other current parameters is denoted by ∣−\mid-.

For the prognostic function, we use the BART prior of Chipman et al.,[10], with T=250T = 250 trees and splitting probability 0.95(1+d)−20.95(1+d)^{-2} at depth dd, a maximum depth of 10, and at least five observations per leaf. Given leaf variance sμ2s_\mu^2, the leaf parameters have independent N(0,sμ2)\mathcal{N}(0,s_\mu^2) priors. For a leaf containing ntℓn_{t\ell} observations, let StℓS_{t\ell} be the sum of the tree-specific partial residuals defined in Algorithm S1. Then

vtℓ=(ntℓσ2+1sμ2)−1,θtℓ∣−∼N(vtℓStℓσ2,vtℓ).(7)v_{t\ell} = \left(\frac{n_{t\ell}}{\sigma^2} + \frac{1}{s_\mu^2}\right)^{-1}, \qquad\theta_{t\ell}\mid- \sim\mathcal{N}\left(\frac{v_{t\ell}S_{t\ell}}{\sigma^2},v_{t\ell}\right). \tag*{(7)}

With sμ2∼IG⁡(aμ/2,bμ/2)s_\mu^2 \sim\operatorname{IG}(a_\mu/2,b_\mu/2) and LL leaves across the forest, the leaf variance is drawn from

sμ2∣−∼IG⁡(aμ+L2,bμ+∑t,ℓθtℓ22),aμ=3,bμ=1/T.(8)s_\mu^2\mid- \sim\operatorname{IG}\left(\frac{a_\mu+L}{2},\frac{b_\mu+\sum_{t,\ell}\theta_{t\ell}^2}{2}\right), \qquad a_\mu= 3,\quad b_\mu= 1/T. \tag*{(8)}

The treatment intercept and coefficients have the Gaussian full conditionals

vα=(uTuσ2+1100)−1,α∣−∼N(vαuT(y−μ−Wb)σ2,vα)(9)v_{\alpha} = \left(\frac{u^{\mathsf{T}}u}{\sigma^2}+\frac{1}{100}\right)^{-1}, \qquad\alpha\mid- \sim\mathcal{N}\left(\frac{v_{\alpha}u^{\mathsf{T}}(y-\mu-Wb)}{\sigma^2},v_{\alpha}\right) \tag*{(9)}
b∣−∼NK(Q−1WT(y−μ−uα),σ2Q−1).(10)b \mid- \sim\mathcal{N}_{K}\left(Q^{-1}W^{\mathsf{T}}(y-\mu-u\alpha),\sigma^2Q^{-1}\right). \tag*{(10)}

Following Makalic and Schmidt,[21] a unit half-Cauchy scale is represented by λ2∣ν∼IG⁡(1/2,1/ν)\lambda^2 \mid\nu\sim\operatorname{IG}(1/2,1/\nu) and ν∼IG⁡(1/2,1)\nu\sim\operatorname{IG}(1/2,1). Applying this to each local scale and using auxiliary variable ξ\xi for the global scale gives

νj∣−∼IG⁡(1,1+λj−2),λj2∣−∼IG⁡(1,1νj+βj22σ2)(11)\nu_j \mid- \sim\operatorname{IG}(1,1+\lambda_j^{-2}), \qquad\lambda_j^2 \mid- \sim\operatorname{IG}\left(1,\frac{1}{\nu_j}+\frac{\beta_j^2}{2\sigma^2}\right) \tag*{(11)}
νj,k∣−∼IG⁡(1,1+λj,k−2),λj,k2∣−∼IG⁡(1,1νj,k+βj,k22σ2λglob2)(12)\nu_{j,k} \mid- \sim\operatorname{IG}(1,1+\lambda_{j,k}^{-2}), \qquad\lambda_{j,k}^2 \mid- \sim\operatorname{IG}\left(1,\frac{1}{\nu_{j,k}}+\frac{\beta_{j,k}^2}{2\sigma^2\lambda_{\mathrm{glob}}^2}\right) \tag*{(12)}
ξ∣−∼IG⁡(1,1+λglob−2),λglob2∣−∼IG⁡(q+12,1ξ+12σ2∑(j,k)∈Pβj,k2λj,k2).(13)\xi\mid- \sim\operatorname{IG}(1,1+\lambda_{\mathrm{glob}}^{-2}), \qquad\lambda_{\mathrm{glob}}^2 \mid- \sim\operatorname{IG}\left(\frac{q+1}{2},\frac{1}{\xi}+\frac{1}{2\sigma^2}\sum_{(j,k)\in\mathcal{P}}\frac{\beta_{j,k}^2}{\lambda_{j,k}^2}\right). \tag*{(13)}

The main effects have local scales only; the global scale applies to the interaction block. Finally, with total residuals e=y−μ−uα−Wbe=y-\mu-u\alpha-Wb,

σ2∣−∼IG⁡(1+N+K2,0.001+eTe+bTD−1b2).(14)\sigma^2 \mid- \sim\operatorname{IG}\left(1+\frac{N+K}{2},0.001+\frac{e^{\mathsf{T}}e+b^{\mathsf{T}}D^{-1}b}{2}\right). \tag*{(14)}

The intercept and leaf priors are independent of σ2\sigma^2; the regularized coefficient priors contribute the additional K/2K/2 and bTD−1b/2b^{\mathsf{T}}D^{-1}b/2 terms.

The latest available parameter values are used at each step.

Algorithm S1 Bayesian Backfitting MCMC Scheme for B-SLIM

  1. Initialize: Prognostic forest μ(⋅)\mu(\cdot), leaf variance sμ2s_{\mu}^{2}, linear parameters α\alpha, bb, local and global shrinkage parameters, auxiliary variables, and noise variance σ2\sigma^{2}.

  2. Fix the covariates, interactions, treatment coding uu, and propensity score (fitted in observational data or known from the randomized design).

  3. for iteration m=1,…,Nburn+Nkeepm = 1,\ldots,N_{\mathrm{burn}} + N_{\mathrm{keep}} do

  4. 1. Update Prognostic Function (μ\mu):

  5. Compute partial residuals for i=1,…,Ni = 1,\ldots,N:

  6. Ri∗=yi−uiτ(m−1)(xi)R_{i}^{*} = y_{i} - u_{i}\tau^{(m-1)}(x_{i}).

  7. for each tree t=1,…,Tt = 1,\ldots,T do

  8. Compute tree-specific residuals Ri,(−t)∗=Ri∗−∑s≠tgs(xi,π^i)R_{i,(-t)}^{*} = R_{i}^{*} - \sum_{s \ne t} g_{s}(x_{i},\hat{\pi}_{i}).

  9. Propose a tree modification (e.g., grow, prune) and accept/reject via Metropolis–Hastings, integrating out leaf values.

  10. Draw the leaf parameters conditional on the updated tree structure and Ri,(−t)∗R_{i,(-t)}^{*} using (S1).

  11. end for

  12. Draw the common leaf variance using (S2).

  13. 2. Update Treatment Function (τ\tau):

  14. Compute partial residuals for i=1,…,Ni = 1,\ldots,N:

  15. Ri∗∗=yi−μ(m)(xi,π^i)R_{i}^{**} = y_{i} - \mu^{(m)}(x_{i},\hat{\pi}_{i}).

  16. Draw the intercept α\alpha using (S3).

  17. Draw the main-effect and interaction coefficients jointly in bb using (S4), with residuals R∗∗−uαR^{**} - u\alpha and design WW.

  18. Draw each local auxiliary and then its local scale using (S5) and (S6).

  19. Draw the global auxiliary ξ\xi and then λglob2\lambda_{\mathrm{glob}}^{2} using (S7).

  20. Update the CATE function:

  21. τ(m)(xi)=α+∑j=1pβjxi,j+∑(j,k)∈Pβj,kxi,jxi,k\tau^{(m)}(x_{i}) = \alpha+ \sum_{j=1}^{p}\beta_{j}x_{i,j} + \sum_{(j,k)\in\mathcal{P}}\beta_{j,k}x_{i,j}x_{i,k}.

  22. 3. Update Noise Variance (σ2\sigma^{2}):

  23. Compute total residuals:

  24. ei=yi−μ(m)(xi,π^i)−uiτ(m)(xi)e_{i} = y_{i} - \mu^{(m)}(x_{i},\hat{\pi}_{i}) - u_{i}\tau^{(m)}(x_{i}).

  25. Draw σ2(m)\sigma^{2(m)} using (S8), including the coefficient-prior term bTD−1bb^{\mathsf{T}}D^{-1}b.

  26. if m>Nburnm > N_{\mathrm{burn}} then

  27. Store the draw and the predictions of interest.

  28. end if

  29. end for

References

  1. [1]Sparano JA, Gray RJ, Makower DF, et al. Adjuvant chemotherapy guided by a 21-gene expression assay in breast cancer. N Engl J Med. 2018;379(2):111–121. doi: 10.1056/nejmoa1804710DOI
  2. [2]Rubin DB. Estimating causal effects of treatments in randomized and nonrandomized studies. J Educ Psychol. 1974;66(5):688–701. doi: 10.1037/h0037350DOI
  3. [3]Kent DM, Paulus JK, van Klaveren D, et al. The predictive approaches to treatment effect heterogeneity (PATH) statement. Ann Intern Med. 2020;172(1):35–45. doi: 10.7326/M18-3667DOI
  4. [9]Hahn PR, Murray JS, Carvalho CM. Bayesian regression tree models for causal inference: Regularization, confounding, and heterogeneous effects (with discussion). Bayesian Anal. 2020;15(3):965–1056. doi: 10.1214/19-ba1195DOI
  5. [10]Chipman HA, George EI, McCulloch RE. BART: Bayesian additive regression trees. Ann Appl Stat. 2010;4(1):266–298. doi: 10.1214/09-aoas285DOI
  6. [12]Svensson D, Hermansson E, Nikolaou N, Sechidis K, Lipkovich I. Overview and practical recommendations on using Shapley values for identifying predictive biomarkers via CATE modeling. Stat Med. 2026;45(1–2):e70375. doi: 10.1002/sim.70375DOI
  7. [13]Zeldow B, Lo Re V III, Roy J. A semiparametric modeling approach using Bayesian additive regression trees with an application to evaluate heterogeneous treatment effects. Ann Appl Stat. 2019;13(3):1989–2010. doi: 10.1214/19-aoas1266DOI
  8. [14]Prado EB, Parnell AC, Moral RA, McJames N, O’Shea A, Murphy K. Accounting for shared covariates in semiparametric Bayesian additive regression trees. Ann Appl Stat. 2025;19(1):302–328. doi: 10.1214/24-aoas1960DOI
  9. [15]Carvalho CM, Polson NG, Scott JG. The horseshoe estimator for sparse signals. Biometrika. 2010;97(2):465–480. doi: 10.1093/biomet/asq017
  10. [16]van der Pas SL, Kleijn BJK, van der Vaart AW. The horseshoe estimator: Posterior concentration around nearly black vectors. Electron J Stat. 2014;8(2):2585–2618. doi: 10.1214/14-ejs962DOI
  11. [17]Hastie T, Tibshirani R. Bayesian backfitting (with comments and a rejoinder by the authors). Stat Sci. 2000;15(3):196–223. doi: 10.1214/ss/1009212815DOI
  12. [18]Imbens GW, Rubin DB. Causal Inference for Statistics, Social, and Biomedical Sciences: An Introduction. Cambridge University Press; 2015. https://doi.org/10.1017/cbo9781139025751
  13. [19]Linero AR. In nonparametric and high-dimensional models, Bayesian ignorability is an informative prior. J Am Stat Assoc. 2024;119(548):2785–2798. doi: 10.1080/01621459.2023.2278202DOI
  14. [20]Robinson PM. Root-N-consistent semiparametric regression. Econometrica. 1988;56(4):931–954. doi: 10.2307/1912705DOI
  15. [21]Makalic E, Schmidt DF. A simple sampler for the horseshoe estimator. IEEE Signal Process Lett. 2016;23(1):179–182. doi: 10.1109/lsp.2015.2503725DOI
  16. [22]van de Wiel MA, Amestoy M, Hoogland J. Linked shrinkage to improve estimation of interaction effects in regression models. Epidemiol Methods. 2024;13(1):20230039. doi: 10.1515/em-2023-0039DOI
  17. [23]Infant Health and Development Program. Enhancing the outcomes of low-birth-weight, premature infants: A multisite, randomized trial. JAMA. 1990;263(22):3035–3042. doi: 10.1001/jama.1990.03440220059030DOI
  18. [24]Hill JL. Bayesian nonparametric modeling for causal inference. J Comput Graph Stat. 2011;20(1):217–240. doi: 10.1198/jcgs.2010.08162DOI
  19. [25]Johansson FD. IHDP semi-synthetic benchmark data: 100 replications. Public train and test data files. Accessed November 5, 2026. https://www.fredjo.com/files/ihdp_npci_1-100.train.npz; https://www.fredjo.com/files/ihdp_npci_1-100.test.npz.
  20. [26]Curth A, Svensson D, Weatherall J, van der Schaar M. Really Doing Great at Estimating CATE? A Critical Look at ML Benchmarking Practices in Treatment Effect Estimation. In: Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks. Vol. 1. 2021. https://datasets-benchmarks-proceedings.neurips.cc/paper/2021/hash/2a79ea27c279e471f4d180b08d62b00a-Abstract-round2.html.
  21. [27]van der Laan MJ, Polley EC, Hubbard AE. Super learner. Stat Appl Genet Mol Biol. 2007;6(1). doi: 10.2202/1544-6115.1309DOI
  22. [28]Kennedy EH. Towards optimal doubly robust estimation of heterogeneous causal effects. Electron J Stat. 2023;17(2):3008–3049. doi: 10.1214/23-ejs2157DOI
  23. [29]Nie X, Wager S. Quasi-oracle estimation of heterogeneous treatment effects. Biometrika. 2021;108(2):299–319. doi: 10.1093/biomet/asaa076DOI
  24. [30]Künzel SR, Sekhon JS, Bickel PJ, Yu B. Metalearners for estimating heterogeneous treatment effects using machine learning. Proc Natl Acad Sci U S A. 2019;116(10):4156–4165. doi: 10.1073/pnas.1804597116DOI
  25. [31]Neal B, Perkovic V, de Zeeuw D, et al. Rationale, design, and baseline characteristics of the Canagliflozin Cardiovascular Assessment Study (CANVAS) - a randomized placebo-controlled trial. Am Heart J. 2013;166(2):217–223.e11. doi: 10.1016/j.ahj.2013.05.007DOI
  26. [32]Neal B, Perkovic V, Matthews DR, et al. Rationale, design and baseline characteristics of the CANagliflozin cardioVascular Assessment Study-Renal (CANVAS-R): A randomized, placebo-controlled trial. Diabetes Obes Metab. 2017;19(3):387–393. doi: 10.1111/dom.12829DOI
  27. [34]Cefalu WT, Leiter LA, Yoon KH, et al. Efficacy and safety of canagliflozin versus glimepiride in patients with type 2 diabetes inadequately controlled with metformin (CANTATA-SU): 52 week results from a randomised, double-blind, phase 3 non-inferiority trial. Lancet. 2013;382(9896):941–950. doi: 10.1016/S0140-6736(13)60683-2DOI
  28. [35]Gavin JR III, Davies MJ, Davies M, Vijapurkar U, Alba M, Meininger G. The efficacy and safety of canagliflozin across racial groups in patients with type 2 diabetes mellitus. Curr Med Res Opin. 2015;31(9):1693–1702. doi: 10.1185/03007995.2015.1067192DOI
  29. [36]Chen X, Hou X, Gao J, et al. Ethnic disparities in cardiovascular and renal responses to canagliflozin between Asian and White patients with type 2 diabetes mellitus: A post hoc analysis of the CANVAS Program. Diabetes Obes Metab. 2024;26(3):878–890. doi: 10.1111/dom.15380DOI
  30. [37]Balci Y. B-SLIM: manuscript and analysis code. Research compendium; 2026. Repository snapshot accessed November 5, 2026. https://github.com/HYHBalci/bslim-paper.
  31. [38]Balci Y. B-SLIM: BART sparse linear interaction model for causal inference. R package source repository; 2026. Repository snapshot accessed November 5, 2026. https://github.com/HYHBalci/bslim.
  32. [42]Rzepakowski P, Jaroszewicz S. Decision trees for uplift modeling. In: 2010 IEEE International Conference on Data Mining. IEEE; 2010:441–450. https://doi.org/10.1109/icdm.2010.62

Paper details

vlnc:W_d7pkncxe
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents