Introduction
Causal discovery aims to uncover the "who-causes-whom" structure—represented as a Directed Acyclic Graph (DAG)—from raw data. A major breakthrough in this field was differentiable structure learning (e.g., the NOTEARS algorithm), which transformed the discrete task of finding a graph into a smooth, continuous optimization problem solvable via gradient descent.
However, a significant gap has remained: incorporating prior expert knowledge. Experts often possess "ancestral" knowledge—knowing, for instance, that "Smoking eventually causes Lung Cancer," even if intermediate biological steps are unknown. This paper introduces a generalized framework for integrating these "ancestral constraints" into differentiable causal discovery, ensuring learned causal graphs are mathematically sound and consistent with expert knowledge.
The Challenge of Ancestral Constraints
The authors identify two major hurdles in using prior knowledge within continuous optimization frameworks:
- Non-equivalence: Continuous math is inherently "fuzzy." Previous attempts to represent path existence smoothly were not mathematically equivalent to the discrete reality, leading to either missing paths or unnecessary extra edges.
- Order Violations: During optimization, the algorithm might attempt to add a path that contradicts the "topological order" of previously discovered paths. Because the requirement for the graph to be acyclic (no loops) is strict, the algorithm frequently gets stuck in local optima where it cannot satisfy the expert's constraints.
Proposed Methodology
To bridge this gap, the researchers propose two primary innovations:
- Binary-Masked Characterization: They developed a novel function to represent path existence. It utilizes a binary mask that "turns off" the constraint once a path is discovered. This ensures the math is both sufficient (guaranteeing a path exists) and necessary (not forcing extra edges), effectively solving the non-equivalence problem.
- Order-Guided Optimization: To prevent the algorithm from getting stuck in local optima, they introduced a two-step optimization process:
- Phase 1 (Warm-up): The algorithm solves a simplified problem to find a graph that respects the partial ordering implied by all constraints, leveraging the mathematical concept of "transitive closure."
- Phase 2 (Full Discovery): This "order-consistent" graph serves as the starting point for the full causal discovery task, ensuring optimization begins in a region where satisfying all constraints is feasible.
Key Insights and Data Efficiency
The paper demonstrates that prior knowledge acts as a compass; it doesn't merely "fix" parts of the graph but guides the entire optimization toward a more globally accurate solution. A critical insight is the mathematical proof that the loss for "path existence" and the loss for "acyclicity" often push the model in opposite directions, explaining why previous methods essentially fought themselves.
Perhaps the most striking finding is the drastic reduction in required data when constraints are applied.
As shown in the evaluation on the real-world Sachs protein signaling dataset, the proposed method using only 100 samples with constraints (PE-NOTEARS-100) can outperform a standard model (NOTEARS) relying on 902 samples without constraints.
Experimental Results
The researchers evaluated their approach extensively on synthetic data (Erdős-Rényi and Scale-Free graphs ranging from 10 to 50 nodes) and the aforementioned Sachs dataset.
Across almost all tests, the proposed method (PE-NOTEARS) achieved superior accuracy, demonstrating lower Structural Hamming Distance (SHD) and higher F1 scores compared to standard differentiable methods. Furthermore, the "Path Recovery Rate"—measuring how many expert constraints were actually satisfied—was significantly higher than in ablation variants, validating the order-guided strategy.
Despite the path-existence mathematics being computationally heavier ($O(d^4)$), the authors successfully utilized GPU acceleration and fast matrix power iteration to maintain scalability for larger graphs.
Limitations and Future Work
While highly effective, the framework has areas for future refinement. First, calculating path existence carries a computational overhead compared to standard acyclicity checks, inviting research into more efficient characterizations. Second, while the order-guided initialization is highly beneficial, the framework lacks an explicit mechanism to prevent new order violations from emerging late in the optimization process. Finally, extending this work beyond simple path existence to handle complex logical constraints (e.g., "Either A causes B OR C causes D") remains an open challenge for the field.
Summary updated