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

On Causal Discovery in the Presence of Deterministic Relations

Loka Li, Haoyue Dai, Hanin Al Ghothani, Biwei Huang, Jiji Zhang, Shahar Harel, Isaac Bentwich, Guangyi Chen, Kun Zhang

Standard causal discovery algorithms often stumble when faced with a common real-world phenomenon: deterministic relationships. When variables are perfectly determined by others—such as Body Mass Index (BMI) being a strict mathematical function of weight and height ($BMI = weight / height^2$)—traditional algorithms fail because these relationships violate a core theoretical assumption known as "faithfulness."

To address this, researchers have introduced DGES (Determinism-aware Greedy Equivalent Search), a novel three-phase framework that combines efficient greedy searching with targeted exact searching to accurately recover causal structures even in the absence of noise.

The Problem with Determinism

Most constraint-based causal discovery methods rely on the faithfulness assumption. This assumption posits that every conditional independence found in the data corresponds to a specific structural separation in the underlying causal graph. However, deterministic relations—where one variable is a direct function of others without any random noise—systematically break this rule.

Examples of causal graphs where shaded nodes represent deterministic variables, complicating standard discovery methods.

Consider a simple causal chain: $X \to Y \to Z$. If $Y$ is a deterministic function of $X$, then once $X$ is known, $Y$ effectively becomes a constant. Standard algorithms observe this "constant" behavior and falsely conclude that $Y$ and $Z$ are independent, leading them to erroneously delete the $Y \to Z$ edge.

While exact score-based methods can theoretically handle this by looking for the "sparsest" representation of the data, they are computationally explosive. Scaling at $O(2^d)$ where $d$ is the number of variables, exact search quickly becomes unfeasible for large systems.

The DGES Framework: A Hybrid Solution

The authors propose DGES, a hybrid approach that leverages the scalability of greedy search and the accuracy of exact search. It operates in three distinct phases:

1. Minimal Deterministic Cluster (MinDC) Detection

The algorithm first identifies sets of variables that share a deterministic bond. By using regression (linear for simple cases, or kernel-based for nonlinear cases), DGES finds variables that can be predicted by others with near-zero residual variance. These form the "Minimal Deterministic Clusters."

2. Modified Greedy Equivalent Search (GES)

Next, the algorithm runs a global search to find an initial graph skeleton. Crucially, the authors modify the standard GES rules to prevent the algorithm from deleting edges based on the false "constant independence" signals caused by determinism.

Additionally, they introduce an Adjusted BIC score. In deterministic systems, the log-likelihood involves $\log|\Sigma|$. If the noise variance ($\Sigma$) approaches zero, the math breaks down. Adding a small constant ($\xi$) to the BIC score provides a vital engineering fix for applying score-based methods to noiseless data.

Greedy searches often leave behind redundant edges in deterministic systems. To clean these up, DGES performs an exact search (using the A* algorithm).

Graph partitioning into a Deterministic Cluster (DC), Boundary Set (BS), and Non-Deterministic Cluster (NDC).

However, the true "scalability hack" of DGES is that it restricts this computationally heavy exact search only to the deterministic clusters (DC) and their immediate Boundary Set (BS) neighbors, leaving the Non-Deterministic Clusters (NDC) alone. By isolating these clusters, the heavy computational lifting is restricted to tiny sub-graphs, allowing the approach to scale to dozens or hundreds of variables.

Key Insights and Results

The foundation of DGES rests on the Sparsest Markov Representation (SMR) assumption, which serves as a more robust alternative to Faithfulness. SMR essentially dictates that the algorithm should "pick the simplest graph that explains the data," which naturally handles deterministic paths without getting confused by vanishing noise.

When put to the test, DGES demonstrated impressive capabilities:

  • Superior Accuracy: In simulations using random Erdös-Rényi graphs with linear Gaussian, mixed nonlinear, and MLP-based functional models, DGES consistently outperformed constraint-based baselines (like DPC) and standard GES in terms of Structural Hamming Distance (SHD) and F1 score.
  • High Efficiency: While a full exact search (A*) is accurate, its runtime explodes as variables increase. DGES maintained near-perfect accuracy while keeping runtime relatively flat, even as the graph size grew.
  • Real-World Discovery: On a real-world Pharmacokinetics dataset containing 32 variables and over 4,000 samples, DGES successfully clustered variables like {height, weight, BMI} and {Clearance, Volume of distribution, Elimination rate constant}, correctly identifying the underlying physical and biological formulas that define those relationships.

Limitations and Future Work

While DGES is excellent at identifying where determinism exists and how those clusters connect to the broader graph, it cannot always uniquely identify the internal causal directions within a deterministic cluster without further strong assumptions (such as non-Gaussianity).

Future work will likely focus on integrating more specific functional model assumptions to further orient edges inside these deterministic "black boxes," as well as exploring more efficient ways to handle complex cases where multiple deterministic clusters overlap significantly.

Summary updated

BibTeX
@inproceedings{li2024causal,
  author = {Loka Li and Haoyue Dai and Hanin Al Ghothani and Biwei Huang and Jiji Zhang and Shahar Harel and Isaac Bentwich and Guangyi Chen and Kun Zhang},
  title = {{On Causal Discovery in the Presence of Deterministic Relations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=pfvcsgFrJ6},
}
Figure