Causal Regularization

Dominik Janzing

Overview

Standard regularization techniques like Ridge and Lasso are traditionally used to prevent overfitting on finite datasets. However, this paper demonstrates that these same tools can also mitigate the bias caused by unobserved confounders—even in scenarios where you have infinite data. By estimating the "strength of confounding" rather than relying on standard cross-validation, we can tune regularization to recover models that more accurately reflect the true causal mechanism.

The Challenge of Unobserved Confounders

The central challenge in causal inference is the well-known adage that "correlation is not causation." When we regress a target $Y$ on predictors $X$, the resulting model often captures the influence of unobserved common causes (confounders) rather than the direct causal effect of $X$ on $Y$.

Causal DAG illustrating the confounding setup where a common source Z influences both the observed variables X and the unobserved error E.

In standard machine learning, we use regularization (like $L_1$ or $L_2$ penalties) to ensure our model generalizes to new samples drawn from the same distribution. However, a model that predicts well observationally doesn't necessarily behave well under interventions (e.g., if we manually change $X$). The author tackles this gap between statistical prediction and causal interpretation, specifically focusing on scenarios where we cannot observe all the confounders.

Methods: Overfitting vs. Confounding

The paper's core contribution is establishing a formal mathematical analogy between overfitting (a finite-sample effect) and confounding (a population-level effect).

  1. The Analogy: The author proves that the error term introduced by unobserved confounders in a linear model shares the exact mathematical structure as the error term introduced by having too few data points.
  2. The ConCorr Algorithm: Because the errors are structurally similar, the author argues we should use the same "medicine" (Ridge or Lasso regularization). However, standard Cross-Validation (CV) fails here because it optimizes for predictive accuracy on the observational distribution, effectively rewarding the model for using confounding shortcuts. Instead, the proposed ConCorr (Confounder Correction) algorithm:
  3. Estimates the "confounding strength" ($\beta$) using a spectral analysis of the covariance matrices.
  4. Calculates the expected length of the "true" causal vector.
  5. Chooses a regularization parameter ($\lambda$) that forces the regression coefficients to match that expected length.
  6. Causal Generalization Bound: The paper introduces a "correlation dimension" to quantify the complexity of a function class, providing a theoretical bound on the error made when interpreting a non-linear regression as a causal model.

Experimental Validation

The paper evaluates the ConCorr approach across three distinct data settings:

  • Simulated Data: High-dimensional linear models ($d=30$) where the ground truth causal vectors and confounding strengths are explicitly known.
  • Optical Device: A real-world physical setup where a laptop screen displays images ($X$) and a photodiode measures light intensity ($Y$). A hidden voltage source controlling LEDs acts as a controlled, unobserved confounder.
  • Taste of Wine: A modified version of the UCI Wine Quality dataset. By intentionally dropping a highly correlated variable (alcohol content), the author creates a confounded scenario to test if regularization can recover the true influence of the remaining ingredients.

Key Insights and Results

  • Cross-Validation is Causal-Blind: CV is designed to minimize predictive error. If a confounder provides a "shortcut" for prediction, CV will encourage the model to use it. Causal regularization intentionally sacrifices some predictive power to ignore these non-causal shortcuts.
  • Confounding as High-Dimensional Noise: In high-dimensional spaces, the signal from a complex confounder often "looks" like random noise relative to the true causal signal. This explains why $L_2$ penalties, which suppress noise, are surprisingly effective at "cleaning" the causal signal.

Empirically, the ConCorr algorithm demonstrated superior causal recovery. In simulations, it consistently achieved lower Relative Squared Error (RSE) compared to both unregularized regression and standard cross-validated Ridge/Lasso.

Scatter plots comparing the relative squared error of the regularized approach versus the unregularized baseline.

The experiments highlighted a critical weakness of standard CV: it typically chooses a $\lambda$ that is far too small for causal purposes, regularizing "too weakly" to remove confounding bias. On the real-world optical device data, ConCorr significantly improved causal predictions in several cases and never performed worse than the cross-validated baseline.

Limitations and Future Directions

While promising, the approach has limitations. Much of the formal proof and the ConCorr algorithm rely heavily on linear models. Although the "causal generalization bound" extends to non-linear functions, practical implementation for deep learning remains an open question. Furthermore, the method's success depends on accurately estimating the confounding strength; if the underlying "independent source model" for confounding is violated, the regularization may be tuned incorrectly.

Ultimately, this work provides a compelling "aha" moment: the population limit of a confounded model behaves exactly like the finite sample limit of an unconfounded model. This insight allows researchers to repurpose decades of regularization research for the much harder problem of causal discovery, potentially inspiring "causal-aware" early stopping in deep learning or new regularizers designed specifically to capture causal features.

Summary updated

BibTeX
@inproceedings{janzing2019causal,
  author = {Dominik Janzing},
  title = {{Causal Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure