cs.LGNov 23, 2026

What Environment Invariance Identifies: Minimal Invariant Sets in Reproducing Kernel Hilbert Spaces

Authors: Ridham Patel

Organizations: Computer Science & Engineering, Indian Institute of Technology Gandhinagar, Gandhinagar, Gujarat, India

Abstract

Invariant causal prediction identifies the direct causes of a target YY by searching for covariate sets whose conditional law of YY is stable across environments. We state that criterion at the level of operators, calling a set SS invariant when the conditional mean embeddings of YY given XSX_S agree across environments, and characterise the resulting family exactly: under two conditions on the environments, which we state separately because they fail independently, the invariant sets are precisely those containing PA(Y)PA(Y) and no descendant of YY. Two consequences follow. Invariance does not identify PA(Y)PA(Y) uniquely, since every descendant-free superset is invariant as well; and PA(Y)PA(Y) is the unique minimal invariant set. In finite samples, recovery requires the non-invariant sets to be separated from invariance by a margin, and the sample size splits into a screening term logarithmic in the ambient dimension and a term inherited from conditional mean embedding estimation, which is the binding one. The characterisation yields two selection rules with different failure modes, of which the conservative one controls false positives. Controlled experiments verify each population prediction directly, including the failure of uniqueness. They also show that invariance testing is a practical bottleneck: two natural designs are severely miscalibrated, while the selected test reduces but does not eliminate Type I error inflation.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Jun 27, 2025

Bayesian Invariance Modeling of Multi-Environment Data

Invariant prediction [Peters et al., 2016] analyzes feature/outcome data from multiple environments to identify invariant features - those with a stable predictive relationship to the outcome. Such features support generalization to new environments and help reveal causal mechanisms. Previous methods have primarily tackled this problem through hypothesis testing or regularized optimization. Here we develop Bayesian Invariant Prediction (BIP), a probabilistic model for invariant prediction. BIP encodes the indices of invariant features as a latent variable and recover them by posterior inference. Under the assumptions of Peters et al. [2016], the BIP posterior targets the true invariant features. We prove that the posterior is consistent and that greater environment heterogeneity leads to faster posterior contraction. To handle many features, we design an efficient variational approximation called VI-BIP. In simulations and real data, we find that BIP and VI-BIP are more accurate and scalable than existing methods for invariant prediction.
Jun 11, 2026

Is Spurious Correlation Removal Always Learnable?

Invariant learning can fail even when the invariant structure is statistically identifiable. We show a conditional computational barrier: under a black-box samplable supervised sparse recovery primitive motivated by average-case sparse-recovery reductions, there exist samplable multi-environment instances with a one-dimensional predictive invariant subspace (k=1k=1) that are learnable with polynomial samples by exhaustive search, while any polynomial-time constant-accuracy recovery algorithm would contradict the primitive. We further quantify environment diversity by a separation parameter γγ, which controls identifiability and the curvature of invariance objectives. Under sufficient diversity and local Gaussian regularity, the minimax risk is E[\dist(V^,Vinv)2]=Θ(k(d−k)/(n∣E∣))\mathbb{E}[\dist(\hat{V},V_{\mathrm{inv}})^2]=Θ(k(d-k)/(n|\mathcal{E}|)), and under label-induced shifts a phase transition occurs at n∗∝k(d−k)/(∣E∣γ2)n^*\propto k(d-k)/(|\mathcal{E}|γ^2) with refined estimation error scaling proportional to 1/γ21/γ^2. Synthetic and real datasets illustrate the predicted gaps and transitions and motivate simple diversity diagnostics.
Nov 1, 2026

Partial Invariance for Classification under Structural Causal Models

Making predictions in an unseen environment from data collected across multiple training environments is challenging. This challenge is particularly pronounced when the target-generating mechanism varies across environments. In this work, we introduce environment-label separation, a form of partial environmental invariance that decomposes the target conditional distribution into an environment-invariant component and a label-invariant component. We show that this partial invariance enables estimation of the target conditional distribution in an unseen environment when using labeled training data together with unlabeled test features. Within the structural causal model framework, we provide sufficient conditions for environment-label separation. Building on these conditions, we develop an algorithm, dIMP-Classifier, which jointly minimizes an estimate of the test risk and encourages invariance across environments. We further provide finite-sample guarantees that characterize the test risk in terms of deviations from invariance, estimation error, and sample complexity. Experiments on simulated data and the real-world light tunnel Causal Chamber data demonstrate that the proposed approach can perform under interventions on the target mechanism and consistently outperforms the considered standard and invariance-based baselines.