When a hidden variable drives both who gets a treatment and how they fare, the usual fix of adjusting for observed covariates gives confidently wrong answers. Proximal causal learning offers a way out. It uses two kinds of imperfect stand-ins for the hidden variable. One is a treatment-side proxy: a measurement related to treatment choice that does not directly affect the outcome. The other is an outcome-side proxy: a measurement related to the outcome that is not affected by the treatment. With both in hand, the effect can be recovered by solving an integral equation for a "bridge function." Today that equation is solved with kernel methods. Their cost grows with the cube of the sample size, and they become unstable when the proxies are weak. Both limitations show up in the leading estimators, Proximal Causal Learning of Conditional Average Treatment Effects and Doubly Robust Proximal Causal Learning for Continuous Treatments.
We propose to replace the kernel machinery with one object learned by noise-contrastive estimation (NCE). NCE learns a probability ratio by training a classifier to tell real data from deliberately scrambled "noise" data. The object we learn this way is the ratio between the true joint distribution of the two proxies and the distribution you get by pairing them at random within the same treatment arm. That single ratio fully determines the conditional-expectation operator in the proximal equations, and its adjoint as well. As a result, one contrastive classifier supplies both bridge functions a doubly robust estimator needs. It turns bridge-function fitting into plain minibatch least squares with no adversary, and it gives an explicit, inspectable operator whose singular values tell us when the proxies are too weak to trust.
Core Claim
We write $A$ for treatment, $Y$ for outcome, $Z$ for the treatment-side proxy and $W$ for the outcome-side proxy. Observed covariates are folded into $A$ for brevity. The outcome bridge $h$ must satisfy $E[Y \mid Z, A] = E[h(W,A) \mid Z, A]$. The treatment bridge $q$ must satisfy $E[q(Z,A) \mid W, A] = 1/p(A \mid W)$. Define the proxy dependence ratio
$$r(w,z,a) = \frac{p(w,z \mid a)}{p(w \mid a)\,p(z \mid a)},$$
which measures how much more often a proxy pair $(w,z)$ co-occurs within treatment arm $a$ than it would under independent pairing. Both conditional expectations then become reweighted averages over proxies drawn independently within the arm:
$$E[h(W,A)\mid z,a] = E_{W\sim p(W\mid a)}\big[r(W,z,a)\,h(W,a)\big], \qquad E[q(Z,A)\mid w,a] = E_{Z\sim p(Z\mid a)}\big[r(w,Z,a)\,q(Z,a)\big].$$
The ratio $r$ is exactly what the optimal NCE classifier recovers. The classifier separates true triples $(w,z,a)$ from triples in which $w$ has been reshuffled among units with the same $a$ (A fast and simple algorithm for training neural probabilistic language models; Conditional Noise-Contrastive Estimation of Unnormalised Models). The shuffled negatives used to train the classifier are then reused as the Monte Carlo samples in the averages above.
The claim has three parts. First, this estimator matches kernel proximal methods on their own small benchmarks. Second, it scales to sample sizes and proxy dimensions (images, long feature vectors) where those methods cannot run. Third, the spectrum of the learned operator predicts in advance when a proximal estimate will be badly biased.
Relation to Prior Work
The closest work is Recovering Causal Features for Instrumental Variable Regression with Contrastive Learning. Its InfoIV method uses a contrastive loss with an instrument as the auxiliary variable to recover a latent treatment from images. It then hands the confounding problem to ordinary two-stage least squares. We do not recover any latent variable. Instead, we use NCE to estimate the operator that the proximal identification argument is built on, so that the hidden confounder is bypassed rather than reconstructed. InfoIV's identifiability results, which require factorial latents, are therefore not needed here.
Variational Noise-Contrastive Estimation combines NCE with variational posteriors for latent-variable density models. It has no causal semantics, and we do not borrow its latent machinery.
Two lines of work motivate the proposal by exposing the gap. The kernel proximal estimators cited above achieve strong accuracy. P-learner reaches CATE mean squared error (MSE) of 0.06 against 0.521 for a causal forest. PKDR reaches causal MSE of 0.16 against 3.47 for proximal outcome regression. Both papers acknowledge cubic kernel scaling and ill-posedness under weak proxies. On the instrumental-variable side, Learning Deep Features in Instrumental Variable Regression shows that estimating a full first-stage conditional density fails in high dimensions. Dual Instrumental Variable Regression avoids that step with a minimax problem in a kernel space, which keeps the kernel cost. Our approach sidesteps density estimation differently. We never model $p(W \mid Z,A)$. We only learn a ratio, which a classifier can do in high dimensions.
Two NCE papers act as constraints on the design. An experimental analysis of Noise-Contrastive Estimation: the noise distribution matters shows that NCE degrades when the noise poorly covers the data. Understanding Hard Negatives in Noise Contrastive Estimation shows how negative choice shapes what is learned. For us, the negatives must come from $p(W \mid a)$ and not from the pooled marginal. Otherwise the classifier learns the dependence between $W$ and $A$ rather than the proxy dependence. This is easy when treatment is discrete and is a genuine design problem when it is continuous.
Research Program
Stage one: learning the ratio. We train the proxy-dependence classifier with a learnable log-normalizer per treatment arm. We check self-normalization empirically: the reshuffled-sample average of $\hat r$ should be close to one. For discrete $A$, negatives are within-arm permutations of $W$. For continuous $A$, we compare two options. The first draws negatives from nearest neighbours in $A$. The second avoids conditional noise altogether by estimating $p(w,z,a)/(p(w)p(z,a))$ and $p(w,a)/(p(w)p(a))$ with two unconditional NCE classifiers and dividing. We also study a low-rank parameterization $\hat r = 1 + \phi(w,a)^\top \psi(z,a)$. Under this form the operator becomes a finite matrix, and each bridge equation reduces to a small linear system whose singular values we can read off directly.
Stage two: fitting the bridges. The outcome bridge minimizes a regularized residual:
$$\min_h \; E\Big[\big(Y - \tfrac{1}{k}\textstyle\sum_{j=1}^{k} \hat r(W_j, Z, A)\, h(W_j, A)\big)^2\Big] + \lambda \|h\|^2,$$
where $W_1,\dots,W_k$ are within-arm shuffled proxies and $\lambda$ is a Tikhonov penalty that controls ill-posedness. The Monte Carlo inner average makes the squared loss biased, so we use two independent negative sets and take the product of their residuals. The treatment bridge is fit the same way using the adjoint average and a separately estimated propensity. The two bridges then enter the standard doubly robust proximal pseudo-outcome, with cross-fitting so that the ratio, the bridges and the final effect regression use disjoint folds. This mirrors the P-learner construction but replaces every kernel operator with the contrastive one.
Stage three: diagnosing weak proxies. We analyse how errors in $\hat r$ propagate into bridge error. We expect the propagation to be amplified by the inverse of the smallest relevant singular value of the operator. This is the standard behaviour of Tikhonov-regularized inverse problems, and it motivates the diagnostic. We report that singular value, computed exactly in the low-rank case and via randomized power iteration otherwise, as a warning statistic for proxy strength.
Baselines
The naive reference points are an unadjusted regression and the causal forest reported in the P-learner paper. On its synthetic CATE benchmark the causal forest has MSE 0.521, and the oracle that observes the hidden confounder reaches 0.049. Any method must land between these two.
For heterogeneous effects, the strongest existing competitor is P-learner. It is the only doubly robust proximal CATE estimator in the file and reports MSE 0.06 on that benchmark. For continuous treatments, the strongest competitor is PKDR, which reports causal MSE 0.16 in the misspecified scenario. We rerun both with their published configurations on identical data splits and cross-fitting folds. Each method, including ours, gets the same hyperparameter search budget: the same number of configurations and the same validation criterion, namely held-out bridge-equation residual.
On the small benchmarks, beating the baselines means matching their error within seed-to-seed variation. On the scaled benchmarks, it means achieving lower error at sample sizes where the kernel methods are either run out of memory or forced onto subsamples.
Three ablations isolate the key ingredient, which is a calibrated ratio learned from correctly chosen negatives:
- Negative sampling instead of NCE. We drop the noise-density correction, as in word2vec-style negative sampling. The learned scores are then not a calibrated ratio, and we expect the bridge estimate to be biased accordingly.
- Pooled negatives. We draw negatives from the pooled marginal of $W$ rather than within arm.
- Direct conditional-mean feature regression. We keep the same networks but estimate the conditional expectation by regressing learned features of $W$ on $(Z,A)$, as in the deep-feature instrumental-variable approach. No ratio is involved.
Why not just…?
Why not just scale the kernel methods with random features or Nyström approximations? For low-dimensional tabular proxies this is a real threat. Approximate kernels may recover most of the scaling benefit at little accuracy cost. We will include Nyström-approximated P-learner and PKDR at matched compute as an explicit baseline. Our argument for the contrastive route rests on high-dimensional proxies such as images, where fixed kernels on raw inputs measure similarity poorly. If Nyström kernels match us on the image-proxy benchmark, the scalability claim fails and only the diagnostic claim survives.
Why not just solve the bridge equation with a neural adversarial minimax game? This avoids kernels too. The trade-off is that it needs a second network, the adversary, and a saddle-point optimization. The DualIV paper reports that saddle-point methods can be high-variance at small sample sizes: DeepGMM shows higher variance than DualIV at $n=50$. More importantly, a minimax solution never exposes the operator, so there is no singular-value diagnostic. We will run a neural minimax bridge estimator with the same architecture and budget, and compare error, seed variance and wall-clock time.
Why not just use an off-the-shelf contrastive or negative-sampling representation of the proxies? Unsupervised contrastive embeddings are what Using Embeddings to Correct for Unobserved Confounding in Networks found insufficient. There, off-the-shelf DeepWalk-style embeddings captured network structure unrelated to confounding. Only semi-supervised embeddings reduced the Pokec bias from 4.51 to 2.03 against a truth of 1.0. Negative sampling without the density correction also does not estimate a ratio. The first ablation above tests directly whether calibration matters for the final effect estimate.
Proposed Experiments
Small-sample fidelity. We use the synthetic proximal CATE simulation from the P-learner paper and the continuous-treatment simulation from the PKDR paper. We report CATE MSE and causal MSE against the published 0.06 and 0.16.
Scaling. We extend these generators to $n$ from $10^3$ to $10^6$. We add an image-proxy variant in which $W$ is rendered as a dSprites-style 64×64 image whose latent factors carry the hidden confounder, in the manner of the dSprites and Demand-MNIST designs used by DFIV and InfoIV. We report effect error and wall-clock time. No reported result for proximal methods on image proxies was found on Lacuna, so all numbers here will be new.
Real data. We use the SUPPORT right heart catheterization cohort (5,735 patients). There is no ground truth, so the check is qualitative agreement with P-learner's reported heterogeneity: the 20% of patients at highest predicted risk die roughly 3 days sooner. We also compare how bootstrap stability of the two estimates changes as the regularization strength $\lambda$ varies.
Decisive checks. Three results would settle the proposal.
First, we sweep proxy strength in synthetic data, weakening the dependence of $Z$ and $W$ on the hidden confounder. The estimated smallest singular value should track realized bias, with a monotone relationship across at least an order of magnitude of proxy strength. If it does not, the diagnostic claim is false.
Second, the negative-sampling ablation and the pooled-negative ablation should show measurable effect bias relative to within-arm NCE. If they do not, calibration is not doing the work we claim.
Third, on the image-proxy benchmark at $n \geq 10^5$, our estimator should beat Nyström kernels and neural minimax at equal compute. If it does not, the practical case for the method reduces to interpretability alone.
References
- Proximal Causal Learning of Conditional Average Treatment Effects
- Doubly Robust Proximal Causal Learning for Continuous Treatments
- A fast and simple algorithm for training neural probabilistic language models
- Conditional Noise-Contrastive Estimation of Unnormalised Models
- Recovering Causal Features for Instrumental Variable Regression with Contrastive Learning
- Variational Noise-Contrastive Estimation
- Learning Deep Features in Instrumental Variable Regression
- Dual Instrumental Variable Regression
- An experimental analysis of Noise-Contrastive Estimation: the noise distribution matters
- Understanding Hard Negatives in Noise Contrastive Estimation
- Using Embeddings to Correct for Unobserved Confounding in Networks