We propose a test of whether two interventions induce the same outcome distribution when outcomes are structured and high-dimensional, such as images, text and graphs. We represent the interventional distributions as mean embeddings on learned deep features, such that the treatment effect is a doubly robust representation of the difference in mean embeddings. Our test, DR-KTE-Deep, optimises the learned features so as to maximise an estimated power criterion on this treatment effect representation. To motivate our learning objective, we show that the power criterion characterises the asymptotic signal-to-noise ratio of the test under fixed alternatives, and we derive a uniform finite-sample bound for its regularised estimate. We show that, with the learned kernel fixed, a held-out test is asymptotically valid under the null given suitable nuisance-estimation rates. Empirically, DR-KTE-Deep achieves substantially higher power than fixed and bandwidth-optimised kernel baselines across image, text and graph outcomes, while maintaining well-calibrated Type-I error.
Figures & tables
Figure 1: Semi-synthetic medical-image experiments adapted from MedMNIST ( Yang et al., 2021 ; Yang et al., 2023 ) . Each pair shows a treated potential outcome Y1 and its ground-truth individual treatment effect (ITE).
Figure 2: Synthetic example where treatment assignment is driven by an indicator of disease severity X . The potential-outcome distributions are Gaussians with the same mean, but the traditional-treatment distribution is isotropic while the experimental-treatment distribution is anisotropic. The deep kernel adapts to the geometry of the distributions, while the Gaussian kernel treats points uniformly throughout the outcome space.
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
Breast-Tumor
0.749±0.018/0.053±0.003
0.761±0.017/0.051±0.003
0.989±0.002/0.054±0.003
Chest-Cardiomegaly
0.156±0.007/0.050±0.003
0.158±0.008/0.050±0.003
0.928±0.046/0.051±0.004
Chest-Effusion
0.231±0.009/0.053±0.004
0.245±0.011/0.053±0.004
0.999±0.000/0.048±0.004
Chest-Mass
0.436±0.018/0.050±0.003
0.461±0.019/0.050±0.003
1.000±0.000/0.056±0.004
Derma-Melanoma
0.171±0.009/0.051±0.002
0.172±0.009/0.050±0.002
0.898±0.040/0.053±0.004
OCT-CNV
0.907±0.014/0.052±0.003
0.917±0.014/0.051±0.003
1.000±0.000/0.053±0.003
Table 1: Power ( H1 ) and Type-I error ( H0 ) for medical-image outcomes at N=1500 and α=0.05 . Each cell reports H1/H0 , with means ± one standard error across 20 independent repetitions.
Figure 3: Results for OCT-Drusen. (a) Type-I error under H0 , (b) average power when varying N while keeping δ=0.4 fixed, (c) average power when varying δ while keeping N=1500 fixed. Shaded bands show ± one standard error across 20 independent repetitions. The dotted grey line marks α=0.05 .
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
Oncology Notes
0.371±0.015/0.048±0.003
0.371±0.015/0.048±0.003
0.809±0.023/0.055±0.003
Movie Reviews
0.255±0.012/0.050±0.003
0.254±0.012/0.050±0.003
0.449±0.026/0.053±0.004
Clinical Notes
0.058±0.004/0.052±0.003
0.058±0.004/0.051±0.003
0.939±0.013/0.058±0.004
Table 2: Power ( H1 ) and Type-I error ( H0 ) for text outcomes, represented as a sequence of tokens, at N=1500 and α=0.05 . Each cell reports H1/H0 , with means ± one standard error across 20 independent repetitions.
Figure 4: Results for Movie Reviews. (a) Type-I error under H0 , (b) average test power when varying N while keeping δ=1.0 fixed, (c) average test power when varying δ while keeping N=1500 fixed. Shaded bands show ± one standard error across 20 independent repetitions. The dotted grey line marks α=0.05 .
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
LLM Code Repairs
0.968±0.008/0.048±0.004
0.963±0.009/0.048±0.004
1.000±0.000/0.051±0.003
Contact Networks
0.959±0.006/0.052±0.003
0.958±0.006/0.052±0.003
0.962±0.006/0.051±0.002
Table 3: Power ( H1 ) and Type-I error ( H0 ) for graph outcomes at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Value
Training variance regularisation λ
10−4
Validation and test variance regularisation
0
CME regularisation λμ
10−3
EMA decay γ
0.95
Minimum mixture weight wmin
10−9
Learning-rate schedule
Cosine decay to 1% of initial rate
Appendix
Table 4: Shared hyperparameters for our experiments.
Experiment
Epochs
Ensemble Size M
Feature LR
Other LR
Image outcomes
500
3
2×10−2
10−3
Text outcomes (token sequences)
1000
3
10−3
10−4
Graph outcomes
1000
3
2×10−2
10−3
Text outcomes (embedded)
1000
3
10−5
10−4
Scalar outcomes
1000
5
2×10−2
10−3
Causal-Blob
1000
5
2×10−2
10−2
Appendix
Table 5: Experiment-specific hyperparameters.
Figure 5: Four-layer fully connected feature extractor for scalar outcomes, Causal-Blob, and text outcomes under an embedded representation.
Figure 6: Four-layer convolutional feature extractor for image outcomes.
Figure 7: Two-layer transformer feature extractor for text outcomes represented as a sequence of tokens.
Figure 8: Three-layer message-passing feature extractor for graph outcomes.
Figure 9: Results for OCT-DME. From left to right: (a) Type-I error under H0 ( δ=0 ), (b) average test power when varying N while keeping δ=0.4 fixed, (c) average test power when varying δ while keeping N=1500 fixed. Shaded bands show ± one standard error across 20 independent outer repetitions. The dotted grey line marks α=0.05 .
Figure 10: Results for Derma-Melanoma. From left to right: (a) Type-I error under H0 ( δ=0 ), (b) average test power when varying N with δ=1.4 fixed, (c) average test power when varying δ with N=1500 fixed. Shaded bands show ± one standard error across 20 independent outer repetitions. The dotted grey line marks α=0.05 .
Figure 11: Data-generating process for MNIST, RetinaMNIST and BUSI. The covariate X and treatment A generate a scalar pseudo-outcome Y~ , which is discretised to select the label of the sampled image outcome Y .
Figure 12: MNIST (Scenario II, left) and RetinaMNIST (Scenario III, right). Panels (a) and (c) show label distributions under each treatment. Panels (b) and (d) show sampled image outcomes.
Dataset
N
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
MNIST
1500
I
0.046±0.003
0.046±0.003
0.051±0.003
II
0.731±0.026
0.731±0.026
0.870±0.024
III
0.721±0.024
0.721±0.024
0.803±0.023
3000
I
0.049±0.003
0.049±0.003
0.049±0.004
II
0.948±0.008
0.948±0.008
0.986±0.002
III
0.938±0.010
0.937±0.010
0.973±0.006
Appendix
Table 6: Average rejection rates for MNIST, RetinaMNIST, and BUSI image outcomes at α=0.05 . Scenario I reports Type-I error; Scenarios II and III report power. Effect strengths are δ=1.0 and 1.5 for MNIST II and III, δ=2.0 and 4.0 for RetinaMNIST II and III, and δ=4.0 for BUSI III. Values are means ± one standard error across 20 independent outer repetitions.
N
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
1500
H0
0.051±0.003
0.052±0.003
0.050±0.004
H1
0.225±0.008
0.229±0.008
0.380±0.050
3000
H0
0.054±0.004
0.054±0.004
0.050±0.003
H1
0.502±0.012
0.514±0.012
0.961±0.019
Appendix
Table 7: Type-I error ( H0 ) and power ( H1 ) for Fake-MNIST at α=0.05 . Values are means ± one standard error across 20 independent outer repetitions.
Power/Type-I error ( H1/H0 )
N
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
1500
0.322±0.014/0.049±0.004
0.351±0.016/0.051±0.003
0.382±0.024/0.050±0.004
3000
0.710±0.020/0.046±0.003
0.780±0.022/0.048±0.003
0.891±0.019/0.045±0.003
Appendix
Table 8: Power and Type-I error for Causal-Blob at α=0.05 . Each cell reports H1/H0 , with means ± one standard error across 20 independent outer repetitions.
Power/Type-I error ( H1/H0 )
N
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
1500
II
0.999±0.000/0.055±0.004
1.000±0.000/0.059±0.004
0.995±0.002/0.055±0.004
III
0.611±0.028/0.055±0.004
0.653±0.027/0.059±0.004
0.614±0.028/0.055±0.004
IV
0.980±0.007/0.055±0.004
0.985±0.005/0.059±0.004
0.981±0.004/0.055±0.004
3000
II
1.000±0.000/0.048±0.003
1.000±0.000/0.046±0.003
1.000±0.000/0.048±0.003
III
0.903±0.013/0.048±0.003
0.927±0.012/0.046±0.003
0.914±0.013/0.048±0.003
Appendix
Table 9: Power and Type-I error for scalar outcomes at α=0.05 , with δ=0.8 and M=5 . Each cell reports H1/H0 , with means ± one standard error across 20 independent outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-KTE-Deep
IPW-Cross
KPT
Scenario II
0.961±0.007/0.048±0.003
0.920±0.012/0.085±0.009
0.638±0.022/0.070±0.013
Scenario III
0.739±0.011/0.048±0.003
0.574±0.008/0.085±0.009
0.291±0.017/0.070±0.013
Scenario IV
0.945±0.009/0.048±0.003
0.903±0.013/0.085±0.009
0.607±0.027/0.070±0.013
Appendix
Table 10: Power and Type-I error at α=0.05 , N=1600 and M=1 for different choices of estimator. Each cell reports H1/H0 , with means ± one standard error across 20 independent outer repetitions.
Power/Type-I error ( H1/H0 )
Environment
Fitted μ^θ
μ^θ≡0
Causal-Blob
0.318±0.024/0.047±0.006
0.247±0.017/0.047±0.007
Scenario II
0.999±0.001/0.056±0.004
0.927±0.012/0.057±0.003
Scenario III
0.616±0.015/0.056±0.004
0.349±0.013/0.057±0.003
Scenario IV
1.000±0.000/0.056±0.004
0.999±0.001/0.057±0.003
Appendix
Table 11: Power and Type-I error at α=0.05 , N=1500 and M=1 . Each cell reports H1/H0 , with means ± one standard error across 20 independent outer repetitions.
Scenario
Random Weights
Pixel Autoencoder
DR-KTE-Deep
OCT-Drusen
H1
0.057±0.004
0.052±0.004
0.371±0.080
H0
0.054±0.004
0.050±0.003
0.058±0.005
Fake-MNIST
H1
0.204±0.008
0.200±0.012
0.380±0.050
H0
0.053±0.004
0.055±0.004
0.050±0.004
Appendix
Table 12: Power under H1 and Type-I error under H0 at N=1500 . Values are means and one standard error across 20 independent outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-KTE
DR-KTE-Opt
DR-KTE-Deep
Oncology Notes
0.828±0.035/0.057±0.010
0.827±0.035/0.058±0.010
0.828±0.036/0.058±0.010
Movie Reviews
0.892±0.009/0.029±0.004
0.895±0.008/0.029±0.004
0.895±0.008/0.029±0.004
Clinical Notes
0.894±0.027/0.049±0.007
0.894±0.027/0.049±0.007
0.894±0.027/0.050±0.007
Appendix
Table 13: Power ( H1 ) and Type-I error ( H0 ) at N=1500 and α=0.05 for text outcomes represented as text embeddings.
Dataset
Statistic
M=1
M=2
M=3
M=5
Causal-Blob
Power
0.350±0.003
0.373±0.007
0.383±0.007
0.394±0.008
SD
0.150±0.011
0.157±0.015
0.150±0.014
0.151±0.014
OCT-Drusen
Power
0.993±0.000
0.995±0.000
0.995±0.000
0.996±0.001
SD
0.011±0.001
0.009±0.002
0.009±0.002
0.007±0.001
Appendix
Table 14: Mean and standard deviation (SD) of empirical power at N=1500 and δ=1.0 . Each statistic is computed across 20 independent outer repetitions within each batch; values are means ± one standard error across five independent batches.
Figure 13: Average standard deviation of empirical power against ensemble size at N=1500 and δ=1.0 . Shaded bands show ± one standard error across five independent batches.
Power/Type-I error ( H1/H0 )
Scenario
DR-KTE-WL
DR-KTE-WL-Deep
LLM Code Repairs
0.743±0.023/0.059±0.006
0.964±0.008/0.050±0.004
Contact Networks
0.971±0.005/0.057±0.003
0.972±0.005/0.056±0.004
Appendix
Table 15: Power ( H1 ) and Type-I error ( H0 ) for graph outcomes using Weisfeiler-Lehman base kernels at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions. Gaussian-kernel results are given in Table 3 .
Power/Type-I error ( H1/H0 )
Scenario
DR-ATE
DR-KTE-Deep
Breast-Tumor
0.052±0.003/0.047±0.004
0.989±0.002/0.054±0.003
Chest-Cardiomegaly
0.044±0.003/0.043±0.003
0.928±0.046/0.051±0.004
Chest-Effusion
0.046±0.005/0.049±0.003
0.999±0.000/0.048±0.004
Chest-Mass
0.052±0.003/0.051±0.004
1.000±0.000/0.056±0.004
Derma-Melanoma
0.045±0.004/0.048±0.002
0.898±0.040/0.053±0.004
Appendix
Table 16: Comparison with DR-ATE for medical-image outcomes at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Dataset
Scenario
DR-ATE
DR-KTE-Deep
MNIST
I
0.045±0.003
0.051±0.003
II
0.677±0.027
0.870±0.024
III
0.695±0.023
0.803±0.023
RetinaMNIST
I
0.052±0.003
0.051±0.004
II
0.434±0.016
0.647±0.022
III
0.235±0.010
0.732±0.035
Appendix
Table 17: Comparison with DR-ATE for MNIST, RetinaMNIST, BUSI and Fake-MNIST at N=1500 . Scenario I and Fake-MNIST H0 report Type-I error; Scenarios II and III and Fake-MNIST H1 report power. Values are means ± one standard error across 20 outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-ATE
DR-KTE-Deep
Oncology Notes
0.375±0.015/0.051±0.003
0.809±0.023/0.055±0.003
Movie Reviews
0.141±0.009/0.048±0.003
0.449±0.026/0.053±0.004
Clinical Notes
0.053±0.004/0.053±0.003
0.939±0.013/0.058±0.004
Appendix
Table 18: Comparison with DR-ATE for text outcomes at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-ATE
DR-KTE-Deep
LLM Code Repairs
0.874±0.019/0.056±0.004
1.000±0.000/0.051±0.003
Contact Networks
0.923±0.009/0.059±0.004
0.962±0.006/0.051±0.002
Appendix
Table 19: Comparison with DR-ATE for graph outcomes at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-ATE
DR-KTE-Deep
Causal-Blob
0.049±0.003/0.043±0.002
0.382±0.024/0.050±0.004
Appendix
Table 20: Comparison with DR-ATE on Causal-Blob at N=1500 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Power/Type-I error ( H1/H0 )
Scenario
DR-ATE
DR-KTE-Deep
Scenario II
0.939±0.009/0.097±0.007
0.995±0.002/0.055±0.004
Scenario III
0.050±0.004/0.097±0.007
0.614±0.028/0.055±0.004
Scenario IV
0.972±0.006/0.097±0.007
0.981±0.004/0.055±0.004
Appendix
Table 21: Comparison with DR-ATE for scalar outcomes at N=1500 . Each alternative is paired with the shared Scenario I null. Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.
Figure 14: Causal-Blob at N=4000 when varying the outcome dimension, with δ=0 under H0 and δ=1.0 under H1 . Shaded bands show ± one standard error across 20 independent outer repetitions. The dotted grey line marks α=0.05 .
Power/Type-I error ( H1/H0 )
Scenario
DR-KTE
DR-KTE-Deep
Joint maximisation
Breast-Tumor
0.749±0.018/0.053±0.003
0.989±0.002/0.054±0.003
0.989±0.003/0.053±0.003
Chest-Cardiomegaly
0.156±0.007/0.050±0.003
0.928±0.046/0.051±0.004
0.763±0.077/0.051±0.004
Chest-Effusion
0.231±0.009/0.053±0.004
0.999±0.000/0.048±0.004
0.998±0.001/0.056±0.004
Chest-Mass
0.436±0.018/0.050±0.003
1.000±0.000/0.056±0.004
0.999±0.000/0.050±0.004
Derma-Melanoma
0.171±0.009/0.051±0.002
0.898±0.040/0.053±0.004
0.795±0.060/0.046±0.003
Appendix
Table 22: Effect of joint maximisation at N=1500 and α=0.05 . Each cell reports H1/H0 , with means ± one standard error across 20 outer repetitions.