Abstract
Spurious correlations allow flexible models to predict well during training but poorly on related test distributions. Recent work has shown that models that satisfy particular independencies involving correlation-inducing \textit{nuisance} variables have guarantees on their test performance. Enforcing such independencies requires nuisances to be observed during training. However, nuisances, such as demographics or image background labels, are often missing. Enforcing independence on just the observed data does not imply independence on the entire population. Here we derive \acrshort{mmd} estimators used for invariance objectives under missing nuisances. On simulations and clinical data, optimizing through these estimates achieves test performance similar to using estimators that make use of the full data.
Introduction
Machine learning models often rely on spurious correlations—non-causal shortcuts that hold in a training set but fail in different environments. For instance, a model might learn to associate a specific background texture with a digit class. Invariant Representation Learning (IRL) aims to mitigate this by forcing the model to learn features that are independent of such "nuisance" variables. However, standard IRL methods assume that these nuisance labels are available for all training data. In practice, especially in sensitive domains like healthcare, these labels (e.g., patient demographics) are frequently missing.
Problem Formulation: The Missing Nuisance Challenge
The core objective in IRL is to learn a representation $\Phi(X)$ of the input $X$ that is independent of the nuisance variable $Z$, conditioned on the true label $Y$. This is often achieved by minimizing the Maximum Mean Discrepancy (MMD) between distributions of $\Phi(X)$ for different values of $Z$.
As shown in Figure 1, the nuisance variable $Z$ influences the input $X$, and its observability is governed by a missingness indicator $\Delta$. A critical finding of this work is that enforcing independence only on the observed subset ($\Delta=1$) does not guarantee independence across the entire population. In fact, doing so can lead the model to discard valid invariant solutions.
Proposed Estimators for Missing Data
To address this, the authors derive three MMD estimators capable of handling missing nuisance labels:
- Inverse Probability Weighting ($G_W$): Re-weights observed samples based on the probability of being observed, $P(\Delta=1|X, Y)$.
- Regression-based ($m_W$): Uses a model to estimate the conditional distribution of the missing nuisance variable.
- Doubly-Robust (DR) Estimator: Combines both weighting and regression. The DR estimator is consistent if either the missingness model or the nuisance model is correctly specified, providing a robust "safety net" for researchers.
Experimental Evaluation
The proposed methods were tested on several datasets, including a synthetic simulation, a clinical dataset (MIMIC-III), and Textured MNIST.
In the Textured MNIST experiment (Figure 2), the goal is to classify digits regardless of the background texture. When texture labels were missing, standard models failed significantly (13% accuracy). While an "observed-only" baseline reached 63%, the Doubly-Robust (DR) estimator achieved 72-73% accuracy, nearly matching the 74% performance of a model with access to the full dataset.
Conclusion
This research bridges the gap between causal inference and kernel-based invariance metrics. By providing robust MMD estimators for missing data, it enables the training of more reliable and fair models in real-world scenarios where nuisance labels are incomplete. Future work includes scaling these methods to continuous nuisance variables and high-dimensional missingness patterns.
Summary updated