NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Continuous Structure Constraint Integration for Robust Causal Discovery

Lyuzhou Chen, Taiyu Ban, Derui Lyu, Yijia Sun, Kangtao Hu, Xiangyu Wang, Huanhuan ChenAISTATS 2025

Abstract

Causal discovery aims to infer a Directed Acyclic Graph (DAG) from observational data to represent causal relationships among variables. Traditional combinatorial methods search DAG spaces to identify optimal structures, while recent advances in continuous optimization improve this search process. However, integrating structural constraints informed by prior knowledge into these methods remains a substantial challenge. Existing methods typically integrate prior knowledge in a hard way, demanding precise information about causal relationships and struggling with erroneous priors. Such rigidity can lead to significant inaccuracies, especially when the priors are flawed. In response to these challenges, this work introduces the Edge Constraint Adaptive (ECA) method, a novel approach that softly represents the presence of edges, allowing for a differentiable representation of prior constraint loss. This soft integration can more flexibly adjust to both accurate and erroneous priors, enhancing both robustness and adaptability. Empirical evaluations demonstrate that our approach effectively leverages prior to improve causal structure accuracy while maintaining resilience against prior errors, thus offering significant advancements in the field of causal discovery.

Introduction

Causal discovery—the process of inferring a Directed Acyclic Graph (DAG) from observational data—is a fundamental challenge in science and AI. While recent "continuous optimization" methods (like the NOTEARS algorithm) have accelerated this process by treating it as a smooth mathematical problem, they struggle to incorporate expert "prior knowledge" effectively.

Currently, if a researcher knows that "Variable A causes Variable B," they usually enforce this as a hard constraint. However, human experts are often fallible. If a prior is flawed, hard constraints force the model into an incorrect structure, compromising the accuracy of the entire graph. The authors identify a critical gap: the need for a "soft" way to suggest causal relationships so that the data can override the expert if the evidence is strong enough.

Methodology: Edge Constraint Adaptive (ECA)

The core innovation of the ECA method lies in its differentiable representation of edge existence. Instead of binary "on/off" switches for edges, ECA uses a soft characterization function to represent the probability of an edge existing.

The transformation from a hard binary indicator function (left) to a soft, differentiable representation (right) allows for gradient-based optimization of prior constraints.

This soft integration allows the prior constraint to be integrated directly into the gradient-based optimization process. The method derives a scoring function from a Bayesian perspective, creating a competitive interplay between two terms:

  1. Data-Structure Likelihood: How well the graph explains the observed data.
  2. Prior-Adherence Term: How well the graph matches the expert's suggestions.

By making the prior constraints differentiable, the model can "negotiate" between the data and the prior at every step of the learning process. If a prior is wrong, the gradient from the data likelihood term eventually overpowers the gradient from the prior term.

Experimental Results

The researchers evaluated ECA using a variety of synthetic and benchmark settings, including Erdos-Rényi (ER) and Scale-Free (SF) graphs with up to 80 nodes. They tested both linear and nonlinear Structural Equation Models (SEMs) under various noise conditions, including non-equal variance noise.

To test robustness, they introduced a "Prior Error Ratio" (PER) to simulate scenarios where 25%, 50%, or even 100% of the expert's suggestions were intentionally wrong.

F1 score performance across varying proportions of true priors and error ratios (PER). Even with high error rates (PER=1.0), ECA maintains robust performance.

Key Findings

  • Superior Robustness: ECA consistently achieved higher F1 scores and lower Structural Hamming Distance (SHD) compared to hard-constraint methods. Remarkably, even when the Prior Error Ratio was 1.0 (meaning there were as many wrong priors as right ones), ECA still performed better than the baseline model using no priors.
  • Global Refinement: Providing a prior for just a few edges improves the accuracy of the entire graph. By establishing a correct "skeleton," the model becomes much better at orienting remaining unknown edges.
  • Handling Real-World Noise: ECA significantly outperformed state-of-the-art methods in cases of non-equal variance noise, using even small amounts of prior knowledge to "anchor" the correct causal ordering.

Conclusion and Future Work

ECA offers a significant advancement in making causal discovery more practical by allowing for the integration of imperfect human knowledge. While the current work focuses on edge existence, future research could extend this soft approach to more complex constraints, such as ancestral relationships or path-based constraints. Additionally, scaling the underlying solvers for extremely high-dimensional datasets remains an area for further optimization.

Summary updated

BibTeX
@inproceedings{chen2025continuous,
  author = {Lyuzhou Chen and Taiyu Ban and Derui Lyu and Yijia Sun and Kangtao Hu and Xiangyu Wang and Huanhuan Chen},
  title = {{Continuous Structure Constraint Integration for Robust Causal Discovery}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=23OrwVz5d5},
}
Figure