arXiv:2610.37227stat.MLOct 2026

Manuscript Offprint

arXiv:2610.37227

Doubly Robust Deep Kernel Tests for Structured Outcomes

Robin Leman, Bariscan Bozkurt, Sofiane Tanji, Arthur Gretton, Houssam Zenati

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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.

(a) Pneumonia

Treated Y1Y^{1}

ITE

Figure

(b) OCT-Drusen

Treated Y1Y^{1}

ITE

Figure

(c) Derma-Melanoma

ITE

Treated Y1Y^{1}

Figure

ITE

Figure 1: Semi-synthetic medical-image experiments adapted from MedMNIST (Yang et al., 2021; 2023). Each pair shows a treated potential outcome Y1Y^{1} and its ground-truth individual treatment effect (ITE).

1 Introduction

In causal problems involving structured and high-dimensional outcomes, such as images, text, and graphs, a mean outcome may be undefined or poorly aligned with the structure of the data. For example, comparing protein or text sequences requires choosing a numerical representation or a notion of similarity (Saigo et al., 2004; Lodhi et al., 2002; Reimers & Gurevych, 2019) and comparing images with coordinate-wise averaging ignores the spatial structure of the data (LeCun et al., 1998). Distributional causal inference addresses this by defining the interventional distributions directly on the structured outcome space, without reducing outcomes.

to an arbitrary scalar summary or notion of averaging (Rothe, 2010; Chernozhukov et al., 2013; Kennedy et al., 2023; Muandet et al., 2021). Kernels define similarities on these spaces (Gärtner, 2003; Borgwardt et al., 2006; Shervashidze et al., 2011) and, through kernel mean embeddings, represent interventional distributions in a reproducing kernel Hilbert space (RKHS) (Smola et al., 2007).

Kernels define the geometry used to compare outcome distributions (Sriperumbudur et al., 2010; Simon-Gabriel & Schölkopf, 2018; Gretton, 2019). If this geometry is fixed a priori, the kernel may be poorly suited to detecting differences between the interventional distributions, leading to low test power (Gretton et al., 2012a; Sutherland et al., 2017). Deep kernels address this by using neural networks to learn a representation of the outcomes and compare distributions in the resulting space (Wilson et al., 2016). Rather than learning this representation through a reconstruction task, the learned kernel can be optimised by directly maximising a test-power criterion (Sutherland et al., 2017).

We consider two soft interventions π\pi and π′\pi' inducing the outcome distributions PYπP_Y^\pi and PYπ′P_Y^{\pi'}. Determining whether an intervention changes the outcome distribution can be formulated as a hypothesis testing problem, testing H0:PYπ=PYπ′H_0: P_Y^\pi = P_Y^{\pi'} against H1:PYπ≠PYπ′H_1: P_Y^\pi \neq P_Y^{\pi'}.

Treatment effects often need to be estimated from observational data, because experimentation can be costly, unethical or infeasible. In this setting, interventional distributions are not directly observed and must be recovered (Robins, 1986; Hernán & Robins, 2020; Muandet et al., 2021; Zenati et al., 2025b). This can be done by estimating either treatment assignment or the conditional outcome embedding (Song et al., 2009; Grünewälder et al., 2012). However, either approach alone is sensitive to model misspecification. We therefore use a doubly robust estimator, which combines both approaches and remains consistent when either model is correctly specified (Bang & Robins, 2005; Luedtke & Chung, 2024).

In this paper, we introduce DR-KTE-Deep, which combines doubly robust interventional embeddings with deep kernel learning and testing. Our main contributions are: (i) we develop a method for learning deep kernels for tests of interventional distributions, estimating both the distributional discrepancy and the test-power criterion from observational data; (ii) we derive a uniform finite-sample bound for the estimated learning criterion, accounting for both kernel-class complexity and errors in estimating the treatment-assignment and outcome models; (iii) we establish conditional asymptotic validity of the held-out test after nuisance estimation and kernel training and selection; and (iv) we evaluate the method on image, text, and graph outcomes, showing substantial power gains over fixed and bandwidth-optimised doubly robust kernel tests, while maintaining Type-I error close to the nominal level.

The remainder of the paper is organised as follows. Section 3 develops the doubly robust test. Section 4 develops the deep-kernel learning objective. Section 5 evaluates its power and calibration across image, text, and graph outcomes. Section 6 concludes.

References (66)