Causal Invariance Learning via Efficient Optimization of a Nonconvex Objective

Zhenyu Wang, Yifan Hu, Peter Bühlmann, Zijian GuoOpenReview 2025

TL;DR

This paper introduces NegDRO, a novel optimization framework for causal discovery that efficiently identifies causal relationships from data across multiple environments. By reformulating the problem as a nonconvex optimization task with negative environment weights, NegDRO overcomes the computational limitations of existing methods and achieves scalable, provably optimal causal discovery.

What Problem Does This Paper Address?

Uncovering causal relationships from observational data is a fundamental challenge in many scientific fields. While using data from multiple environments (e.g., different experimental conditions or populations) offers a powerful way to disentangle correlation from causation, current methods face two major hurdles:

  1. Identifiability: It's not always clear when a learned "invariant prediction model" (a model that performs consistently across environments) actually reflects the true underlying causal mechanism.
  2. Scalability: Existing causal discovery algorithms often rely on exhaustive searches over all possible subsets of variables, leading to computational complexity that grows exponentially with the number of variables, making them impractical for real-world problems with many features.

This paper aims to address these issues by providing clear conditions for causal identification and developing a computationally efficient algorithm that scales polynomially with the number of covariates.

Methods

The authors tackle causal discovery within an "additive intervention regime," where data from multiple environments is generated by applying environment-specific perturbations to a base structural equation model. Their core contributions are:

  • Identification Conditions: They derive nearly necessary and sufficient conditions for when an invariant prediction model uniquely identifies the true causal outcome model. These conditions are based on the heterogeneity of interventions across environments.
  • NegDRO Formulation: They propose "Negative Weight Distributionally Robust Optimization" (NegDRO), a continuous, nonconvex minimax optimization problem. Unlike standard Distributionally Robust Optimization (DRO) methods that use non-negative weights for environment losses, NegDRO allows negative weights. This is crucial for breaking convexity and enabling the identification of the causal model.
  • Efficient Algorithm: Despite the nonconvexity of NegDRO, they demonstrate that a standard gradient-based method can converge to the global optimum, which corresponds to the true causal outcome model. They provide theoretical guarantees for this convergence, showing it scales polynomially with the number of covariates and is efficient in terms of sample size and iterations.

Datasets

The paper does not introduce new datasets. Instead, it uses simulated data generated under the "additive intervention regime" to evaluate the proposed methods. This regime is characterized by structural equation models where environment-specific noise terms introduce distributional shifts.

Key Insights and Ideas

  • Negative Weights Unlock Causality: The key insight is that allowing negative weights in the optimization objective (NegDRO) is not just a mathematical trick but a fundamental mechanism to enforce risk invariance across environments, which is essential for causal identification. This breaks the convexity of standard DRO and requires new optimization techniques.
  • Nonconvexity is Tractable for Causality: While nonconvex optimization is generally challenging, the specific structure of the NegDRO problem, combined with the derived identification conditions, allows for global optimality guarantees with standard gradient methods. This is a significant theoretical result.
  • Intervention Heterogeneity is Key: The identification of causal effects hinges on sufficient diversity in how environments are intervened upon. The paper provides concrete conditions (Condition 2a/2b) that quantify this heterogeneity, moving beyond abstract assumptions.
  • Scalability Through Continuous Optimization: By framing causal discovery as a continuous optimization problem rather than a discrete search (like subset enumeration), the authors achieve polynomial scalability with the number of covariates.

Key Results

  • Theoretical Guarantees: The paper establishes nearly necessary and sufficient conditions for causal identification and proves that the global optimizer of NegDRO recovers the true causal outcome model under these conditions.
  • Algorithmic Efficiency: A gradient-based algorithm is proposed that converges to the causal outcome model with provable rates in terms of sample size and iterations. This algorithm scales polynomially with the number of covariates, unlike exponential-time methods.
  • Empirical Validation: Numerical experiments demonstrate that NegDRO outperforms existing methods (like CausalDantzig and DRIG) in terms of estimation accuracy and computational efficiency, especially in scenarios with limited interventions or high dimensionality. For instance, NegDRO achieves accurate estimation where other methods fail or become computationally intractable.

Limitations and Future Work

  • Linear Models: The current work primarily focuses on linear structural equation models. Extending NegDRO to nonlinear settings is a natural next step.
  • Convergence Rate: While the proposed algorithm achieves a convergence rate of O(n⁻¹/⁴) in finite samples, the authors note that achieving the optimal O(n⁻¹/²) rate remains an open question.
  • Optimal Parameter Tuning: The paper provides guidance on selecting parameters like the ridge penalty (μ) and regularization parameter (γ), but finding truly optimal values for practical applications might require further investigation.
  • Generalization to Other Settings: The paper focuses on the additive intervention regime. Exploring NegDRO's applicability to other intervention types or causal discovery settings would be valuable.

Summary updated

BibTeX
@misc{wang2025causal,
  author = {Zhenyu Wang and Yifan Hu and Peter Bühlmann and Zijian Guo},
  title = {{Causal Invariance Learning via Efficient Optimization of a Nonconvex Objective}},
  year = {2025},
  url = {https://openreview.net/forum?id=bW83a6hEIF},
  howpublished = {OpenReview},
}
Figure