Contrastive Proxy Forests: Completeness-Preserving Proxy Learning from Multimodal Records
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
Abstract
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
| Group A (strong style) | Group B (no style) | |||||
| Proxies | RMSE | Bias | RMSE | Bias | ||
| True (oracle) | .0232 | .0076 | .0226 | .0069 | ||
| CPF | .0374 | .0221 | – | .0346 | .0178 | – |
| PCA (NC-CSF) | .0452 | .0319 | .0356 | .0191 | ||
| PLS | .0438 | .0299 | .0345 | .0177 | † | |
| Deep CCA | .0430 | .0286 | .0356 | .0189 | ||
| 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 | .0248 | .0234 | .0770 | .0816 |
| Group A (strong style) | Group B (no style) | |||||
|---|---|---|---|---|---|---|
| Variant | RMSE | Bias | RMSE | Bias | ||
| CPF | .0374 | .0221 | – | .0347 | .0179 | – |
| No -conditioning | .0376 | .0223 | .0349 | .0180 | ||
| No bridges | .0377 | .0205 | .0371 | .0174 | ||
| InfoNCE heads | .0483 | .0350 | .0547 | .0403 | ||
| PCA, not CCA | .0452 | .0320 | .0356 | .0191 | ||
| Group A | Group B | |||||
|---|---|---|---|---|---|---|
| Outcome (estimator) | CPF | PCA | CPF | PCA | ||
| RMST (NC-CSF) | .0374 | .0452 | .0347 | .0356 | ||
| Surv. prob. (NC-CSF) | .0703 | .0804 | .0665 | .0679 | ||
| Continuous (NC-CF) | .1716 | .2252 | .1887 | .1952 | ||
| Binary (NC-CF) | .0503 | .0571 | .0521 | .0526 | ||
| Unadjusted | CSF ( only) | NC-CSF (hand-picked) | NC-CSF (PCA) | CPF | RCT | ||
| MIMIC-IV, atrial fibrillation: clinical notes (treatment side), 12-lead ECG (outcome side) | |||||||
| Warfarin death | RMST (days) | to | |||||
| Warfarin stroke | RMST (days) | to | |||||
| NHANES 2003–2006: dietary recall (treatment side), accelerometry (outcome side) | |||||||
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Latent variables and covariates | |
| Covariates | |
| Confounder | |
| Shared factor | ; enters both modalities only, unrelated to treatment, outcome, and censoring |
| Treatment, survival, censoring | |
| Treatment | Linear: ; nonlinear: , ; ; calibrated to |
| Event time | Weibull proportional hazards (shape 1.5, scale 0.4); (nonlinear outcome adds , , , ), , ; the two potential outcomes share the same uniform draw |
| 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) | |
| RMST | Survival probability | |||||
|---|---|---|---|---|---|---|
| Setting | RMSE | MAE | Bias | RMSE | MAE | Bias |
| S8 | ||||||
| HT3S | ||||||
| HBIS | ||||||
| HALL | ||||||
| D | † | † | † | † | † | |
| RMSE | MAE | Bias | |||||||
| Setting | CPF | NC-CSF | CPF | NC-CSF | CPF | NC-CSF | |||
| RMST | |||||||||
| S8 | .0294 | .0372 | .0245 | .0321 | .0142 | .0245 | |||
| HT3S | .0371 | .0475 | .0318 | .0420 | .0215 | .0342 | |||
| HBIS | .0337 | .0394 | .0281 | .0335 | .0172 | .0242 | |||
| HALL | .0520 | .0594 | .0467 | .0541 | .0381 | .0475 | |||
| RMSE | MAE | Bias | |||||||
| Setting | CPF | NC-CSF | CPF | NC-CSF | CPF | NC-CSF | |||
| RMST | |||||||||
| D | .0264 | .0270 | .0217 | .0224 | .0116 | .0122 | |||
| HV | .0311 | .0317 | .0255 | .0260 | .0134 | .0148 | |||
| HLOW | .0616 | .0623 | .0567 | .0573 | .0486 | .0496 | |||
| RARE | .0172 | .0182 | .0112 | .0117 | .0053 | .0053 | |||
| 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 |
| Group A | Group B | |||||
|---|---|---|---|---|---|---|
| Variant | RMSE | MAE | Bias | RMSE | MAE | Bias |
| CPF | .0703 | .0566 | .0331 | .0665 | .0520 | .0279 |
| w/o -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 |
| RMST | Survival probability | |||||||||||
| Setting | CPF | NC-CSF | RMSE | MAE | Bias | CPF | NC-CSF | RMSE | MAE | Bias | ||
| N1000 | 1,000 | 5 | .0395 | .0387 | .0787 | .0803 | ||||||
| D | 3,000 | 5 | .0297 | .0302 | .0592 | .0587 | ||||||
| N8000 | 8,000 | 5 | .0263 | .0270 | .0499 | .0514 | ||||||
| X2 | 3,000 | 2 | .0279 | .0274 | .0559 | .0563 | ||||||
| X10 | 3,000 | 10 | .0349 | .0346 | .0650 | .0648 | ||||||
| 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 |
| 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 | .0356 | .0295 | .0191 | ||
| PLS | .0438 | .0382 | .0299 | .0345 | .0286 | .0177 | † | |
| Deep CCA | .0430 | .0377 | .0286 | .0356 | .0296 | .0189 | ||
| Embedding, uncompressed | .0562 | .0507 | .0438 | .0377 | .0317 | .0199 | ||
| 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 | .0679 | .0532 | .0287 | ||
| PLS | .0779 | .0629 | .0408 | .0667 | .0522 | .0274 | † | |
| Deep CCA | .0776 | .0631 | .0413 | .0682 | .0534 | .0296 | ||
| Embedding, uncompressed | .0955 | .0799 | .0580 | .0721 | .0580 | .0298 | ||
| Group A | Group B | |||||
|---|---|---|---|---|---|---|
| Variant | RMSE | MAE | Bias | RMSE | MAE | Bias |
| CPF | .0374 | .0322 | .0221 | .0347 | .0287 | .0179 |
| w/o -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 |
| RMST CATE RMSE | oracle gap closed (%) | linear of | |||||
|---|---|---|---|---|---|---|---|
| style | CPF | NC-CSF | (%) | CPF | NC-CSF | CPF | NC-CSF |
| .0318 | .0317 | † | 87 | 87 | 0.85 | 0.85 | |
| .0296 | .0306 | 90 | 89 | 0.85 | 0.84 | ||
| .0300 | .0324 | 90 | 86 | 0.85 | 0.82 | ||
| .0302 | .0343 | 89 | 82 | 0.84 | 0.80 | ||
| .0303 | .0376 | 90 | 78 | 0.82 | 0.77 | ||
| RMST CATE RMSE | Survival probability CATE RMSE | |||||
|---|---|---|---|---|---|---|
| pool | CPF | NC-CSF | (%) | CPF | NC-CSF | (%) |
| 500 | .0463 | .0481 | .0825 | .0846 | ||
| 1,000 | .0430 | .0453 | .0771 | .0803 | ||
| 2,500 | .0404 | .0440 | .0744 | .0807 | ||
| 5,000 | .0371 | .0443 | .0706 | .0810 | ||
| 10,000 | .0350 | .0435 | .0677 | .0818 | ||
| S8 (style ) | D (no style) | |||||
|---|---|---|---|---|---|---|
| CPF | NC-CSF (PCA- ) | (%) | CPF | NC-CSF (PCA- ) | (%) | |
| 2 | .0364 | .0807 | .0364 | .0393 | † | |
| 4 | .0336 | .0674 | .0293 | .0328 | ||
| 8 | .0339 | .0441 | .0296 | .0302 | † | |
| 16 | .0355 | .0440 | .0311 | .0310 | † | |
| 32 | .0376 | .0450 | .0329 | .0329 | † | |
| RMSE | Bias | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Outcome (estimator) | Setting | CPF | PCA | Raw | True | CPF | PCA | Raw | True | |
| RMST (NC-CSF) | S8 | .0341 | .0440 | .0987 | .0248 | .0165 | .0298 | .0698 | .0082 | |
| D | .0295 | .0301 | .0911 | .0234 | .0128 | .0137 | .0594 | .0078 | ||
| Surv. prob. (NC-CSF) | S8 | .0648 | .0782 | .2702 | .0485 | .0268 | .0407 | .1868 | .0161 | |
| D | .0587 | .0585 | .2579 | .0480 | .0214 | .0199 | .1562 | .0142 | ||
| Continuous (NC-CF) | S8 | .1250 | .1846 | .1679 | .0770 | .1046 | .1707 | .1531 | .0334 | |
| 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 | .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 ( only) | .5720 | .5607 | .5602 | .6096 | .5844 | .5753 | .1155 | .1072 | .1016 | .1182 | .1087 | .1029 | |
| Modality | Proxies | alone | Patient state beyond | Recording conditions beyond and patient state |
|---|---|---|---|---|
| Clinical notes | PCA-8 | .102 | .003 | .399 |
| CPF | .045 | .000 | .067 | |
| Electrocardiogram | PCA-8 | .025 | .066 | .000 |
| CPF | .028 | .089 | .000 |