Contrastive Proxy Forests: Completeness-Preserving Proxy Learning from Multimodal Records
Authors: Kyoungeui Hong, Zijun Gao, Ruishan Liu
Organizations: Department of Computer Science, University of Southern California, Los Angeles, CA, USA · Department of Data Sciences and Operations, USC Marshall School of Business, University of Southern California, Los Angeles, CA, USA
Proximal causal inference removes unmeasured confounding using two proxies of the confounder, an outcome-side W and a treatment-side Z. The proxies must satisfy exclusion restrictions and be complete, meaning that they reflect every aspect of the confounder. In practice, they are a few variables hand-picked from a structured table, even though clinical notes and physiological waveforms carry rich information about the confounder. Such records are too high-dimensional for a proximal estimator, and generic compression such as PCA may keep modality-specific variation (style) instead of the confounder, destroying completeness. Our key observation is that, under the proximal condition, the confounder is the only link between a treatment-side and an outcome-side modality beyond the covariates. Learning what they share therefore captures the confounder and filters out modality-specific style. Contrastive Proxy Forests (CPF) learns both proxies by contrasting the two modalities, given the covariates, on a separate unlabeled sample, and passes them to a proximal causal forest. This contrastive objective has an exact closed-form solution, ridge canonical correlation analysis. We prove that CPF preserves the exclusion restrictions exactly and that its proxies inherit the completeness of the raw records under conditions we characterize. Where style is strong, CPF lowers the error of conditional effects by 10-22% relative to PCA proxies, and on MIMIC-IV it is the only method whose point estimate of warfarin's effect on stroke falls inside the range of randomized trials.
Figures & tables
Figure 1: (a) Four ways to obtain proxies from high-dimensional records. Only CPF, which keeps what the two modalities share, has all three properties. (b) Stage 1 builds raw-input dictionaries on an unlabeled pool and learns the proxy maps a and b in closed form by X -conditional ridge CCA, with the bandwidth B and ridge λ chosen without labels. Stage 2 applies the fixed maps to the analysis sample and estimates the CATE with NC-CSF.
Figure 2: The predicted transition as style grows from 0 to 16 times the shared signal, with 60 datasets per point. (a, b) CATE RMSE with 95% intervals. CSF-X adjusts for X alone, GRF-cov uses the PCA proxies as covariates, and the oracle uses the true U . Circles mark significant paired differences between CPF and NC-CSF with PCA proxies. (c) Share of the RMST error gap between CSF-X and the oracle that each set of proxies closes. (d) Gain in the linear R2 of U when the proxies are added to X .
Group A (strong style)
Group B (no style)
Proxies
RMSE
∣ Bias ∣
Δ
RMSE
∣ Bias ∣
Δ
True U (oracle)
.0232
.0076
.0226
.0069
CPF
.0374
.0221
–
.0346
.0178
–
PCA (NC-CSF)
.0452
.0319
+20.8
.0356
.0191
+2.9
PLS
.0438
.0299
+17.1
.0345
.0177
−0.2 †
Deep CCA
.0430
.0286
+14.9
.0356
.0189
+2.8
Table 1: RMST CATE error of NC-CSF with proxies from different learners, all fitted on the same pool from the same dictionaries, and of covariate adjustment. Δ : RMSE versus CPF (%). Survival probability in Appendix D . The values come from a separate run, so last digits can differ from Tables 3 and 4 .
Figure 3: How much to compress, and how much unlabeled data. RMST CATE RMSE with 60 datasets per point. (a, b) Proxy dimension d per modality, with and without style. The uncompressed raw dictionary of about 2,200 columns sits at the end of the axis. (c) Size of the unlabeled pool on the S8 design, with the analysis sample fixed at 3,000. CSF-X, which adjusts for X alone, is off the scale at about .085. Dashed lines show NC-CSF with the true U .
Survival, RMST
Continuous
(NC-CSF)
(NC-CF)
Proxies
S8
D
S8
D
CPF
.0341
.0295
.1250
.0922
PCA
.0440
.0301
.1846
.0958
Raw, uncompressed
.0987
.0911
.1679
.1115
True U
.0248
.0234
.0770
.0816
Table 2: Raw records versus learned proxies in the same estimator. CATE RMSE on the d-sweep datasets, 60 per setting, with CPF’s proxies, PCA proxies of the same dictionaries, the full raw dictionary without compression, and the true U . CPF and PCA use 8 proxies per modality, and the raw dictionary has about 2,200 columns on S8.
Group A (strong style)
Group B (no style)
Variant
RMSE
∣ Bias ∣
Δ
RMSE
∣ Bias ∣
Δ
CPF
.0374
.0221
–
.0347
.0179
–
No X -conditioning
.0376
.0223
+0.4
.0349
.0180
+0.5
No bridges
.0377
.0205
+0.8
.0371
.0174
+6.9
InfoNCE heads
.0483
.0350
+29.1
.0547
.0403
+57.8
PCA, not CCA
.0452
.0320
+20.9
.0356
.0191
+2.7
Table 3: RMST CATE error when one component of CPF is changed. In order, the rows remove X -conditioning, adjust for CPF’s proxies as covariates without bridges, use InfoNCE heads ( van den Oord et al., 2018 ) instead of the closed form, use PCA instead of CCA on the same dictionary, use pretrained embeddings instead of the dictionary, and use PCA of pretrained embeddings, the common practice. Δ is the RMSE change relative to CPF in %, paired over datasets. The two embedding rows cover 249 datasets in group A and 427–428 in group B. Appendix D adds MAE.
Group A
Group B
Outcome (estimator)
CPF
PCA
Δ
CPF
PCA
Δ
RMST (NC-CSF)
.0374
.0452
−17.3
.0347
.0356
−2.6
Surv. prob. (NC-CSF)
.0703
.0804
−12.5
.0665
.0679
−2.1
Continuous (NC-CF)
.1716
.2252
−23.8
.1887
.1952
−3.3
Binary (NC-CF)
.0503
.0571
−11.8
.0521
.0526
−1.0
Table 4: The same CPF proxies for three outcome types. CATE RMSE with CPF and PCA proxies of the same dictionaries, and the change Δ in %. Continuous and binary outcomes are redrawn on the benchmark datasets from each case’s linear predictor, in the strong-confounding cases ( Appendix F ). All 8 differences are significant.
Table 5: Real data with answers from randomized controlled trials (RCTs). Average RMST effects with 95% bootstrap intervals from 250 replicates. MIMIC-IV follows death and ischemic stroke up to 360 and 243 days after discharge, in days, and NHANES follows death up to 10 years, in months. CSF ( X only) is the same forest without proxies, and NC-CSF (hand-picked) is NC-CSF’s construction from tabular variables. RCT answers are carried to each cohort by applying the trial hazard ratio to its Kaplan–Meier curve ( Appendix G ).
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
Latent variables and covariates
Covariates
X∼N(0,I5)
Confounder
U∼N(0,1)
Shared factor
V∼N(0,1) ; enters both modalities only, unrelated to treatment, outcome, and censoring
Weibull proportional hazards (shape 1.5, scale 0.4); η0=X⊤β+βuU (nonlinear outcome adds X12 , X22 , X1U , 0.5σ(U) ), η1=η0+τlogHR , β∼N(0,0.42I) ; the two potential outcomes share the same uniform draw
Appendix
Table 6: Synthetic data-generating model, cases, and evaluation settings. σ(⋅) is the logistic function and B⋅ are smooth basis functions over the length of a modality.
Group A (strong style)
Group B (base and survival realism)
Target
Method
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
RMST
Oracle
.0232
.0186
.0076
.0226
.0177
.0069
CPF
.0374 (75.0)
.0322 (75.5)
.0221 (76.5)
.0347 (78.1)
.0287 (79.2)
.0179 (81.3)
NC-CSF
.0452 (61.2)
.0398 (61.6)
.0320 (60.6)
.0356 (76.4)
.0295 (77.6)
.0191 (79.2)
Surv. prob.
Oracle
.0472
.0352
.0161
.0473
.0347
.0142
CPF
.0703 (71.6)
.0566 (70.6)
.0331 (76.7)
.0665 (77.0)
.0520 (76.6)
.0279 (81.8)
Appendix
Table 7: CATE error (group means) of CPF, NC-CSF (the same estimator with PCA proxies) and the oracle (NC-CSF with the true U ). In parentheses: share of the gap between X -only adjustment (CSF-X) and the oracle closed (%). All CPF–NC-CSF differences are significant ( ∣z∣≥2.0 ).
RMST
Survival probability
Setting
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
S8
−20.9
−23.5
−42.3
−14.8
−15.8
−29.8
HT3S
−22.0
−24.2
−37.1
−14.8
−15.9
−25.6
HBIS
−14.5
−16.2
−28.9
−10.7
−11.2
−23.5
HALL
−12.5
−13.7
−19.7
−9.9
−9.9
−17.0
D
−2.0 †
−3.0
−5.3 †
+0.1 †
−0.4 †
+3.9 †
Appendix
Table 8: Change in CPF’s error relative to NC-CSF with PCA proxies, by setting (%). † : ∣z∣<2 .
RMSE
MAE
∣ Bias ∣
Setting
CPF
NC-CSF
Δ
CPF
NC-CSF
Δ
CPF
NC-CSF
Δ
RMST
S8
.0294
.0372
−20.9%
.0245
.0321
−23.5%
.0142
.0245
−42.3%
HT3S
.0371
.0475
−22.0%
.0318
.0420
−24.2%
.0215
.0342
−37.1%
HBIS
.0337
.0394
−14.5%
.0281
.0335
−16.2%
.0172
.0242
−28.9%
HALL
.0520
.0594
−12.5%
.0467
.0541
−13.7%
.0381
.0475
−19.7%
Appendix
Table 9: CATE error in group A (260 datasets; 80 for S8 and 60 for each other setting). ∣ Bias ∣ is the absolute value of the per-dataset mean bias mean(τ^−τ) , averaged over datasets, and Δ is the relative change of CPF versus NC-CSF. The paired difference is significant in every cell ( ∣z∣≥5.1 ).
RMSE
MAE
∣ Bias ∣
Setting
CPF
NC-CSF
Δ
CPF
NC-CSF
Δ
CPF
NC-CSF
Δ
RMST
D
.0264
.0270
−2.0%
.0217
.0224
−3.0%
.0116
.0122
−5.3%
HV
.0311
.0317
−1.8%
.0255
.0260
−1.8%
.0134
.0148
−9.5%
HLOW
.0616
.0623
−1.2%
.0567
.0573
−1.1%
.0486
.0496
−2.0%
RARE
.0172
.0182
−5.5%
.0112
.0117
−3.7%
.0053
.0053
+0.4%
Appendix
Table 10: CATE error in group B (80 datasets for D, which adds the weak-confounding cases, and 60 for each other setting; 440 in total). Metrics and Δ are defined as in Table 9 .
Group A
Group B
Method
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
NC-CSF oracle
.0472
.0352
.0161
.0473
.0347
.0142
CPF
.0703
.0566
.0331
.0665
.0520
.0279
NC-CSF
.0804
.0652
.0433
.0679
.0532
.0286
GRF-cov
.0923
.0779
.0488
.0828
.0696
.0331
RSF-T
.1090
.0863
.0558
.0988
.0750
.0418
Appendix
Table 11: Survival-probability version of Table 14 : CATE error of every method (group means).
Group A
Group B
Variant
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
CPF
.0703
.0566
.0331
.0665
.0520
.0279
w/o X -conditioning
.0706
.0569
.0334
.0668
.0523
.0280
w/o bridges
.0819
.0694
.0325
.0799
.0664
.0289
InfoNCE heads
.0843
.0688
.0478
.0970
.0774
.0559
CCA → PCA
.0804
.0652
.0433
.0679
.0532
.0286
Appendix
Table 12: Survival-probability CATE error of the ablation ladder (group means).
RMST
Survival probability
Setting
n
px
CPF
NC-CSF
Δ RMSE
Δ MAE
Δ∣ Bias ∣
CPF
NC-CSF
Δ RMSE
Δ MAE
Δ∣ Bias ∣
N1000
1,000
5
.0395
.0387
+1.9†
+2.3†
+2.6†
.0787
.0803
−2.0†
−1.8†
−4.1†
D
3,000
5
.0297
.0302
−1.8†
−2.9
−5.9†
.0592
.0587
+0.9†
+0.3†
+8.5†
N8000
8,000
5
.0263
.0270
−2.5†
−3.3
−8.1†
.0499
.0514
−2.8
−4.1
+2.1†
X2
3,000
2
.0279
.0274
+1.8†
+1.0†
+5.4†
.0559
.0563
−0.7†
−1.3†
−0.8†
X10
3,000
10
.0349
.0346
+1.0†
+0.3†
−4.0†
.0650
.0648
+0.3†
−0.1†
+2.4†
Appendix
Table 13: Scale experiments around the base setting D, varying the training sample size n and the covariate dimension px one at a time (6 strong-confounding cases × 10 repetitions = 60 datasets per row; pool fixed at 10,000). The D row has n=3,000 and px=5 ; it excludes the weak-confounding cases and therefore differs slightly from Table 10 . RMSE columns give the values for CPF and NC-CSF, Δ is the relative change (%) of CPF versus NC-CSF, and † marks ∣z∣<2 . Removing X -conditioning increased RMSE by at most 1.7% in any cell.
Group A
Group B
Method
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
CPF
.0374
.0322
.0221
.0347
.0287
.0179
GRF-cov
.0492
.0439
.0365
.0405
.0344
.0228
RSF-T
.0672
.0564
.0423
.0576
.0462
.0300
RSF-S
.0734
.0679
.0675
.0664
.0593
.0588
CSF-X
.0799
.0738
.0694
.0777
.0702
.0655
Appendix
Table 14: RMST CATE error of CPF and the external baselines, group means.
Group A (style)
Group B
Proxies
RMSE
MAE
∣ Bias ∣
Δ RMSE
RMSE
MAE
∣ Bias ∣
Δ RMSE
CPF (ours)
.0374
.0321
.0221
–
.0346
.0286
.0178
–
NC-CSF (PCA)
.0452
.0397
.0319
+20.8
.0356
.0295
.0191
+2.9
PLS
.0438
.0382
.0299
+17.1
.0345
.0286
.0177
−0.2 †
Deep CCA
.0430
.0377
.0286
+14.9
.0356
.0296
.0189
+2.8
Embedding, uncompressed
.0562
.0507
.0438
+50.1
.0377
.0317
.0199
+9.0
Appendix
Table 15: RMST CATE error with proxies from other representation learners in the same NC-CSF estimator, and covariate adjustment for every raw feature (GRF-all), group means. Δ RMSE: change versus CPF (positive = worse); † : ∣z∣<2 .
Group A (style)
Group B
Proxies
RMSE
MAE
∣ Bias ∣
Δ RMSE
RMSE
MAE
∣ Bias ∣
Δ RMSE
CPF (ours)
.0703
.0566
.0332
–
.0664
.0520
.0278
–
NC-CSF (PCA)
.0803
.0652
.0432
+14.3
.0679
.0532
.0287
+2.3
PLS
.0779
.0629
.0408
+10.8
.0667
.0522
.0274
+0.5 †
Deep CCA
.0776
.0631
.0413
+10.4
.0682
.0534
.0296
+2.7
Embedding, uncompressed
.0955
.0799
.0580
+35.9
.0721
.0580
.0298
+8.5
Appendix
Table 16: Survival-probability version of Table 15 . CPF and NC-CSF rows come from the run that produced the table and can differ from Table 7 in the last digit.
Group A
Group B
Variant
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
CPF
.0374
.0322
.0221
.0347
.0287
.0179
w/o X -conditioning
.0376
.0323
.0223
.0349
.0288
.0180
w/o bridges
.0377
.0327
.0205
.0371
.0312
.0174
InfoNCE heads
.0483
.0426
.0350
.0547
.0467
.0403
CCA → PCA
.0452
.0398
.0320
.0356
.0295
.0191
Appendix
Table 17: Ablation ladder with MAE: RMST CATE error (group means); Table 3 is the main-text version. The two ‘w/o dictionary’ rows cover 249 (A) and 427–428 (B) datasets.
Table 19: Unlabeled pool size on the S8 design (60 datasets per row). Δ : CPF versus NC-CSF.
S8 (style ×8 )
D (no style)
d
CPF
NC-CSF (PCA- d )
Δ (%)
CPF
NC-CSF (PCA- d )
Δ (%)
2
.0364
.0807
−54.9
.0364
.0393
−7.4 †
4
.0336
.0674
−50.2
.0293
.0328
−10.5
8
.0339
.0441
−23.2
.0296
.0302
−2.0 †
16
.0355
.0440
−19.4
.0311
.0310
+0.3 †
32
.0376
.0450
−16.6
.0329
.0329
−0.0 †
Appendix
Table 20: Proxy dimension d (RMST CATE RMSE; 60 datasets per cell). NC-CSF uses PCA- d , so this also tunes PCA’s dimension.
Figure 4: CATE error versus the unlabeled pool size (S8 design).
Figure 5: CATE error versus the proxy dimension d (CPF: CCA- d ; NC-CSF: PCA- d ), with style (S8) and without (D).
Figure 6: Distribution of RMST CATE error by setting (per-case means). Group A lies left of the dashed line.
Figure 7: Distribution of survival-probability CATE error by setting. Layout as in Figure 6 .
Figure 8: CATE error versus training sample size n (base setting D, pool fixed at 10,000).
Figure 9: CATE error versus covariate dimension px (otherwise as in Figure 8 ).
RMSE
∣ Bias ∣
Outcome (estimator)
Setting
CPF
PCA
Raw
True U
CPF
PCA
Raw
True U
Δ
RMST (NC-CSF)
S8
.0341
.0440
.0987
.0248
.0165
.0298
.0698
.0082
+189.7
D
.0295
.0301
.0911
.0234
.0128
.0137
.0594
.0078
+208.7
Surv. prob. (NC-CSF)
S8
.0648
.0782
.2702
.0485
.0268
.0407
.1868
.0161
+317.1
D
.0587
.0585
.2579
.0480
.0214
.0199
.1562
.0142
+339.5
Continuous (NC-CF)
S8
.1250
.1846
.1679
.0770
.1046
.1707
.1531
.0334
+34.3
Appendix
Table 21: Raw records versus learned proxies for all four outcomes: CATE RMSE and absolute mean bias, averaged over the 60 datasets in each setting (NC-CSF for survival, NC-CF otherwise). Δ : change in the RMSE of the raw dictionary relative to CPF (%), paired over datasets.
Continuous outcome
Binary outcome
Group A
Group B
Group A
Group B
Estimator
Proxies
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
RMSE
MAE
∣ Bias ∣
NC-CF
true U
.0781
.0633
.0339
.0963
.0760
.0355
.0402
.0325
.0140
.0429
.0347
.0153
CPF proxies
.1716
.1594
.1536
.1887
.1638
.1361
.0503
.0433
.0282
.0521
.0441
.0260
PCA proxies
.2252
.2154
.2127
.1952
.1698
.1424
.0571
.0500
.0365
.0526
.0447
.0267
no proxies ( X only)
.5720
.5607
.5602
.6096
.5844
.5753
.1155
.1072
.1016
.1182
.1087
.1029
Appendix
Table 22: Beyond survival: CATE error (group means, strong-confounding cases) with a continuous and a binary outcome. Causal forest: EconML’s CausalForestDML ( Battocchi et al., 2019 ) . Bottom row: change of the CPF proxies versus the PCA proxies with NC-CF.
Modality
Proxies
X alone
Patient state beyond X
Recording conditions beyond X and patient state
Clinical notes
PCA-8
.102
.003
.399
CPF
.045
.000
.067
Electrocardiogram
PCA-8
.025
.066
.000
CPF
.028
.089
.000
Appendix
Table 23: What the proxy directions of the MIMIC-IV modalities encode: 5-fold cross-validated R2 on the 7,336 analysis rows, as gains beyond X , with PCA directions weighted by their variance. Recording conditions are counted beyond X and patient state.
Estimating causal effects from observational data is central to science and policy, but the effects are not identified when confounders are unmeasured. Proximal causal inference addresses this problem with proxies of the unmeasured confounders. However, existing proxy-based approaches either designate proxy roles and solve an inverse problem, which is ill-posed and hard to estimate with high-dimensional proxies, or use a latent-variable model, which assumes that the learned latent variable matches the hidden confounder and leaves bias when it does not. To address these challenges, we introduce proximal balancing. It carries the classical idea of covariate balancing to confounders that are observed only through proxies: it learns a low-dimensional summary of the covariates and proxies that makes the treatment groups comparable, and then adjusts for this summary. It needs no designated proxy roles, inverse problem, or latent model. We give identification theory, finite-sample guarantees, and a practical algorithm, PROBE. We demonstrate the method on low-dimensional, high-dimensional, and image proxies and on real-world data.
Yonghan Jung
School of Information Sciences, University of Illinois Urbana-Champaign
Estimating treatment effects from observational data typically relies on the No Unmeasured Confounding Assumption (NUCA), which rarely holds in practice. Proximal causal learning (PCL) addresses unmeasured confounding via proxy variables, yet existing methods require the proxy variables to be pre-specified. Thus, we propose PCL-U, a framework that learns proxy variables directly from observed covariates. PCL-U uses neural encoders to decompose covariates into treatment-inducing, outcome-inducing, and shared proxies, guided by minimax mutual information objectives, and obtains causal estimates through a practical moment-based risk function. Experiments on benchmarks show that PCL-U matches or outperforms existing baselines. Besides, there are two types of synthetic datasets with varying dimensions and confounding strengths that illustrate that our method maintains stable estimation accuracy.
Ying Tang, Yi Wang
Shanghai University of International Business and Economics, Shanghai 201620, China
Standard causal identification methods often assume no unmeasured confounding and can fail when relevant confounders are unobserved. Proximal causal inference instead uses proxy variables to identify effects under hidden confounding. However, nonparametric proximal estimation can be challenging in practice: recovering causal estimands such as the conditional average treatment effect (CATE) requires solving an ill-posed integral equation that is data-hungry, hyperparameter-sensitive, and optimization-unstable. Bayesian inference for such models provides a desirable alternative, mitigating these difficulties by regularizing through the prior. However, computing a posterior is itself challenging, as a typical likelihood function will include latent variables. Following the recent success of tabular foundation models in backdoor, instrumental variable, and frontdoor settings, we propose that prior-data fitted networks (PFNs) are uniquely suited to resolve this bottleneck. Indeed, by training on synthetic data sampled from compliant structural causal models with access to oracle counterfactuals, we simplify the task substantially, amortizing the implied Bayesian operator inversion into a single transformer forward pass. Compared to prior literature that focuses primarily on point estimation, our model, ProximalFM, explicitly targets the Bayesian posterior distribution of the CATE. One unique aspect of this problem is that we need to provide Monte Carlo estimates of the oracle CATEs, leading to a novel variation of PFNs that accounts for the added stochastic error. Across a diverse suite of proximal regimes, ProximalFM achieves consistently strong CATE-estimation performance without dataset-specific tuning, with its largest advantage when latent confounding is substantial and the proxies are weakly informative; it also provides fast inference through a single amortized forward pass.
Christophe Muller, Ayub Kharel, Alex Luedtke +6
University of Oxford · Harvard University · University of Illinois Urbana-Champaign +5