Architecture Disagreement as a Warning Sign for Confounding by Indication

When doctors give a treatment to the sickest patients, a naive comparison makes the treatment look harmful. This is confounding by indication: the reason for treating a patient also drives that patient's outcome. Neural treatment-effect estimators try to correct for it by learning a compressed summary of each patient and predicting outcomes under treatment and under no treatment. Their answers, though, depend heavily on design choices nobody can check directly. These include how much the patient summary is compressed, where the network splits into treatment-specific branches, and how hard treated and untreated patients are forced to look alike. The true counterfactual is never observed, so ordinary validation cannot say which design is right. It is also known that some designs silently discard the very variables that caused the confounding.

We propose to learn a probability distribution over these causal architectures instead of picking one. The distribution is trained with a search objective built from doubly robust pseudo-outcomes, not from factual prediction error. We then use the resulting spread of effect estimates across plausible architectures as a per-patient diagnostic. The two-sentence version is as follows. Distributional architecture search, which treats network design as something to infer with uncertainty, can be pointed at a causal objective. Where the plausible architectures disagree about a patient's treatment effect, that disagreement should mark the patients for whom confounding by indication makes the estimate untrustworthy, and it should do so better than retraining one fixed network with different random seeds.

Core Claim

The claim has two parts, and each can be falsified on its own. First, a Dirichlet distribution over causal-network topologies, optimized against a doubly robust estimate of treatment-effect error on held-out data, gives better conditional average treatment effect (CATE) estimates than the same search driven by factual outcome loss. A CATE is the expected benefit of treatment for patients with given covariates. We expect the gap to be largest in heavily confounded settings. Second, and more importantly, averaging CATE over architectures sampled from the learned distribution gives a per-unit spread that tracks true per-unit error more closely than two alternatives: the spread of a same-size seed ensemble of a fixed architecture, and the width of post-hoc sensitivity bounds. The expected concentration of that advantage is in low-overlap regions, meaning patients who were almost always or almost never treated. That is where confounding by indication lives.

The second part is where the idea stops being "run NAS on Dragonnet". Its value comes from treating architecture as a source of specification uncertainty that seeds do not explore. Architectures that bypass the compressed summary and architectures that do not will disagree exactly where a confounder has been lost. Seed variation leaves that choice untouched.

Grounding in Prior Work

Two results motivate the proposal. Adapting Neural Networks for the Estimation of Treatment Effects introduces Dragonnet, a network with a shared trunk, a head that predicts the probability of treatment (the propensity), and two outcome heads, trained with a "targeted regularization" term from semiparametric theory. It shows that a model with worse factual prediction error can give better causal estimates. Any architecture search that uses factual validation loss, as DARTS-style methods do, is therefore optimizing the wrong thing. Bounds on Representation-Induced Confounding Bias for Treatment Effect Estimation shows that compressing covariates, or forcing treated and control summaries to match, can discard confounders. This turns an observed-confounding problem into an unobserved one. That paper wraps a fixed trained network in sensitivity bounds. We instead make the degree of compression and bypass part of what is inferred. The balancing trade-off in Estimating individual treatment effect: generalization bounds and algorithms makes the same point from the other side. That paper (CFR) penalizes the distance between treated and control summaries, and too strong a penalty collapses useful features. Dynamic Inter-treatment Information Sharing for Individualized Treatment Effects Estimation generates weights with a hypernetwork, a network that outputs another network's weights, so information can be shared across treatment groups. Its layer structure is still hand-set. We search where sharing should stop.

The search methods come from distributional NAS. DrNAS: Dirichlet Neural Architecture Search places a Dirichlet distribution over operation choices, trains it with pathwise gradients, and argues that this implicitly penalizes sharp curvature of the validation loss. That property matters more here than in image classification. A doubly robust validation signal on a few hundred patients with extreme propensities is very noisy, which is exactly the setting where point-estimate search overfits to its validation set and collapses. BaLeNAS: Differentiable Architecture Search via the Bayesian Learning Rule and Rethinking Bi-Level Optimization in Neural Architecture Search: A Gibbs Sampling Perspective offer Gaussian and Gibbs-sampling alternatives. We use them as secondary search engines, not as the core. Bayesian Quadrature for Neural Ensemble Search is the closest idea on the architecture side. It marginalizes predictions over an architecture distribution and reports better calibration under image corruption. It has never faced the factual-versus-counterfactual shift created by treatment selection, and its Gaussian-process surrogate does not scale well.

Two further papers constrain the design. Empirical Analysis of Model Selection for Heterogeneous Causal Effect Estimation finds that doubly robust and TMLE-based selection scores work well, but only when the underlying propensity and outcome models, called nuisance models, are carefully tuned with AutoML. We therefore fix cross-fitted, FLAML-tuned nuisance models before any search. Really Doing Great at Estimating CATE? A Critical Look at ML Benchmarking Practices in Treatment Effect Estimation shows that method rankings on IHDP reverse when the simulated effect is made additive. Our evaluation must therefore span data-generating processes, not one benchmark setting.

Research Program

The search space is a Dragonnet-like network with the fixed topology loosened into distributional choices. Each edge in a small cell-structured trunk chooses among a linear map, a two-layer MLP block, identity, and zero. A categorical variable sets the depth at which the trunk branches into treatment-specific heads. A "covariate bypass" edge optionally feeds the raw covariates, or a wide projection of them, directly into the outcome heads. This is the structural answer to representation-induced bias. A small categorical choice sets the balancing penalty strength (none, weak, strong). For image-confounded data the trunk cells use small convolutions instead of MLP blocks. Every choice gets Dirichlet concentration parameters, trained DrNAS-style with pathwise gradients.

The lower-level problem fits network weights on the training fold using factual loss, propensity loss, and targeted regularization, as in Dragonnet. The upper-level problem changes the validation objective. With cross-fitted nuisance estimates $\hat\mu_0,\hat\mu_1$ (outcome models) and $\hat e$ (propensity) held fixed, each validation unit gets a doubly robust pseudo-outcome

$$\tilde Y = \hat\mu_1(X)-\hat\mu_0(X) + \frac{T\,(Y-\hat\mu_1(X))}{\hat e(X)} - \frac{(1-T)\,(Y-\hat\mu_0(X))}{1-\hat e(X)},$$

where $T$ is the observed treatment and $Y$ the observed outcome. The Dirichlet parameters then minimize the mean of $(\hat\tau(X)-\tilde Y)^2$, where $\hat\tau$ is the network's CATE estimate. Propensities are clipped, and the clipping level is reported. Its expectation equals true CATE error up to a term that does not depend on the architecture, when nuisances are accurate, and this is why it is the right target. Its variance explodes under strong confounding by indication, and this is why a distribution rather than a point estimate is used.

After search we sample $K$ architectures (default $K=10$) from the learned distribution and retrain each from scratch, which is cheap for tabular data. The final estimate averages their CATE predictions, either uniformly or with weights proportional to $\exp(-L_k/\lambda)$, where $L_k$ is architecture $k$'s doubly robust loss on a third fold and $\lambda$ is a temperature. The per-unit standard deviation across the $K$ members is the diagnostic. We also report which choices the distribution concentrates on, such as bypass usage and branching depth, as a function of the benchmark's confounding strength. This tests the interpretive claim that stronger confounding pushes the distribution toward bypass paths and earlier branching.

Baselines

The naive reference point is a TARNet with fixed default hyperparameters, trained once, and a Dragonnet with targeted regularization at its published configuration. For Dragonnet, Adapting Neural Networks for the Estimation of Treatment Effects reports an ACIC 2018 mean absolute error of 0.35 (0.55 without targeted regularization, 1.45 for TARNet) and an IHDP average-effect error of $\Delta_{all}=0.11$. These are the published numbers we must match or beat under our own re-runs. We re-run everything on identical splits instead of relying on the published figures.

The strongest competitor for accuracy is tuned Dragonnet. We run random search over the same choices our space exposes: width, depth, branching layer, bypass on or off, and balancing strength. Selection uses the same doubly robust score and the same FLAML-tuned nuisance models, following the two-level protocol of Empirical Analysis of Model Selection for Heterogeneous Causal Effect Estimation. That paper reports no single headline number found on Lacuna. We also run that paper's "causal ensembling", a softmax-weighted average of the top-scoring models from the random search. It is the direct competitor to our architecture-marginalized estimate. Both get the same total GPU-hours and the same number of fully trained members as our search plus retraining. Beating them means lower square-root PEHE, the root-mean-squared error of per-unit effect estimates, averaged over the IHDP replications and the ACIC 2016 settings, with the improvement concentrated in strongly confounded settings.

On IHDP we also include HyperITE's HyperTLearner. Dynamic Inter-treatment Information Sharing for Individualized Treatment Effects Estimation reports an out-of-sample PEHE of 1.12 versus 1.32 for the T-Learner. It is the best reported soft-sharing design.

For the diagnostic claim there are two baselines. The first is a seed ensemble of $K$ tuned Dragonnets. The second is the sensitivity bounds of Bounds on Representation-Induced Confounding Bias for Treatment Effect Estimation, whose deferral reduced TARNet's error by 12.89% and a Bayesian neural network's by 15.41% on that paper's synthetic benchmark. Beating them means a higher rank correlation between per-unit spread (or bound width) and per-unit absolute CATE error. It also means a lower PEHE after deferring the same fraction of the most-uncertain units, a deferral curve evaluated at matched deferral rates.

Three ablations isolate the ingredients. Replacing the doubly robust upper objective with factual validation loss tests the objective. Replacing the Dirichlet with point-estimate DARTS on the same objective tests the distributional part. Removing the bypass edge and balancing choice from the space, while keeping everything else, tests whether the diagnostic's power comes from exploring confounder-relevant choices.

Why not just…?

Why not just tune Dragonnet with random search and a doubly robust selection score? This is the real threat. On 25-feature tabular data it may match our PEHE, because the search space is small enough to cover by sampling. We accept that possibility. The accuracy claim is secondary, and the matched-budget comparison will show whether it survives. The random-search population is also a set of architectures, so its spread can be used as a diagnostic. We therefore include "random-search top-$K$ spread" as a further diagnostic baseline. If it matches the learned distribution's spread, the conclusion is that architecture diversity matters but learning the distribution does not. That would still be a useful, publishable negative result. On HC-MNIST, where the image encoder's space is far larger, we expect random search to fall behind.

Why not just use a seed ensemble of a good fixed architecture? Seed ensembles capture optimization noise. They do not vary the choice that causes representation-induced bias: whether a confounder survives compression. The argument in Bounds on Representation-Induced Confounding Bias for Treatment Effect Estimation is that lost confounders produce bias, not variance, and bias is invisible to seed resampling. The decisive test is the correlation between spread and error, split by propensity stratum. If seed spread tracks error as well as architecture spread in the extreme-propensity strata, the diagnostic claim fails.

Why not just compute sensitivity bounds on a fixed network? Bounds from that paper widen whenever information is lost, including harmless lost instruments, and they depend on a neighborhood hyperparameter. They can therefore over-defer. Our spread only reflects disagreement among architectures that all score well on the causal objective. We compare both at matched deferral rates. We also compare against a combination that applies bounds to our marginalized estimator, in case the two are complementary rather than competing.

Why not use tabular AutoML or causal forests and skip neural search? For IHDP-scale tabular data this is reasonable. Really Doing Great at Estimating CATE? A Critical Look at ML Benchmarking Practices in Treatment Effect Estimation shows that neural estimators win on original IHDP and a causal forest wins under additive effects. We therefore include an AutoML-tuned doubly robust learner and a causal forest in both IHDP variants. We do not claim neural search wins everywhere. HC-MNIST is the regime where tree methods cannot operate on raw pixels and architecture choice determines confounder retention, and it is where the proposal should earn its keep.

Proposed Experiments

The data are IHDP (100 replications), with both the original response surface and the additive-effect modification from the benchmarking critique, the 75 ACIC 2016 settings, the ACIC 2018 settings used by Dragonnet, Twins, and HC-MNIST. On all of these the true effects are known or simulated. Metrics are square-root PEHE, average-effect absolute error, per-unit rank correlation between uncertainty and absolute error, and PEHE-versus-deferral curves. Each metric is reported overall and within propensity quintiles, where the extreme quintiles mark confounding by indication.

Three checks decide the proposal. The first is whether the doubly robust objective beats factual loss inside the same distributional search, especially on ACIC settings with strong confounding. If not, the objective mismatch highlighted by Dragonnet does not carry over to architecture choice. The second is whether architecture-distribution spread beats seed-ensemble spread and random-search spread as an error predictor in the extreme-propensity quintiles. This is the central claim, and a tie falsifies it. The third, on HC-MNIST and a synthetic setting where one weak confounder is deliberately planted, is whether the learned distribution puts mass on the bypass edge when that confounder is present and drops it when the planted variable is only an instrument. That would show the search reacting to the difference the sensitivity bounds cannot see.

A side check tests the training-free proxy used by BaLeNAS (Synflow). We measure whether it correlates at all with PEHE across the sampled architectures. We expect it not to, which would argue against importing zero-cost selection into causal search. There is no reported result found on Lacuna for any NAS method on IHDP, ACIC, Twins, or HC-MNIST. All search-based numbers will be new.