Efficient Neural Causal Discovery without Acyclicity Constraints

Phillip Lippe, Taco Cohen, Efstratios Gavves

Causal discovery—the process of identifying "what causes what" from data—is a notoriously difficult challenge in machine learning and statistics. Traditionally, these relationships are represented as a Directed Acyclic Graph (DAG). However, the number of possible DAGs grows super-exponentially with the number of variables, making exhaustive searches impossible for large systems.

Recent "continuous optimization" methods have attempted to solve this by treating the graph as a matrix of weights. But there’s a catch: to ensure the result is a valid DAG (and not a cycle), these methods rely on complex mathematical constraints or penalties. These constraints are often "stiff," making the optimization slow, prone to local minima, and difficult to scale beyond 100 variables.

In this paper, the authors introduce ENCO (Efficient Neural Causal Discovery), a method that scales causal structure learning to graphs with up to 1,000 nodes—an order of magnitude larger than previous state-of-the-art techniques. By cleverly separating edge existence from edge orientation in a continuous optimization framework, ENCO bypasses the computationally expensive acyclicity constraints that typically bottleneck causal discovery.

The ENCO Architecture

ENCO takes a novel path by leveraging both observational and interventional data (data where a variable has been actively manipulated). Its architecture consists of two alternating stages:

  1. Distribution Fitting: For every variable $X_i$, a neural network learns to predict its value based on all other variables. To simulate different parent sets, the authors use a "dropout-like" scheme where inputs are masked based on current edge probabilities.
  2. Graph Fitting: Instead of using one parameter per edge, ENCO uses two distinct parameters:
  3. $\gamma$ (Existence): The probability that an undirected edge exists between two nodes.
  4. $\theta$ (Orientation): The probability of the direction (e.g., $X_i \to X_j$ vs. $X_j \to X_i$).
ENCO Architecture

The Trick: By modeling orientation separately (where $\theta_{ij} = -\theta_{ji}$), the orientation of one edge doesn't immediately force a cycle elsewhere in the same way traditional adjacency matrices do. This allows for unconstrained optimization.

To train the model, the authors derive a low-variance gradient estimator using the REINFORCE algorithm. By comparing the log-likelihood of a variable with and without a specific parent during interventions, the model receives a very clean signal on whether an edge is truly causal.

Key Insights

  • Orientation is the Key: The biggest breakthrough is realizing that if you have interventional data, you don't actually need to enforce acyclicity during training. The interventional signal is strong enough to naturally push the model toward the correct, acyclic structure.
  • Independent Causal Mechanisms: ENCO exploits the idea that a causal mechanism $p(X_i | \text{parents}(X_i))$ remains invariant when you intervene on other variables, but changes when you intervene on $X_i$ itself.
  • Latent Confounder Detection: The authors found that latent confounders (unobserved variables causing two observed ones) create a specific signature: an edge that looks beneficial in observational data but detrimental in interventional data. They developed a specific score function to flag these pairs.
  • Handling Determinism: Unlike many constraint-based methods that rely on statistical independence tests, ENCO’s score-based neural approach handles deterministic relationships (where $X$ perfectly predicts $Y$) gracefully.

Experimental Results

The authors evaluated ENCO on a diverse set of benchmarks, including synthetic graphs, scalability benchmarks (up to 1,000 nodes), real-world inspired data from the BnLearn repository (e.g., Sachs, Alarm, and Diabetes), and continuous data models.

  • Massive Scalability: ENCO recovered a 1,000-node graph with less than one error on average in under nine hours. Previous best-in-class methods either ran out of memory or produced thousands of errors at this scale.
  • Superior Accuracy: On the BnLearn benchmarks, ENCO achieved a Structural Hamming Distance (SHD) of nearly 0.0 across almost all datasets, significantly outperforming baselines like DCDI and SDI.
  • Variance Reduction: Their novel gradient estimator showed 10x lower standard deviation compared to previous REINFORCE-based estimators, which is what allows the model to converge so efficiently.
  • Robustness: Even when interventions were only available for a subset of variables (partial interventions), ENCO remained competitive and often outperformed specialized baselines.

Limitations and Future Work

While ENCO represents a massive leap in scalability, it does have limitations. The strongest convergence guarantees require interventions on all variables; while it works well with partial interventions in practice, the theoretical guarantees weaken. Additionally, the current orientation parameters are pairwise independent. The model doesn't inherently "know" that if $A \to B$ and $B \to C$, then $C \to A$ would create a cycle. Incorporating transitive relations could further speed up convergence. Finally, like most methods, it struggles if the underlying distribution is non-faithful (i.e., causal effects perfectly cancel each other out), though the authors show ENCO is more robust here than many competitors.

Summary updated

BibTeX
@inproceedings{lippe2022efficient,
  author = {Phillip Lippe and Taco Cohen and Efstratios Gavves},
  title = {{Efficient Neural Causal Discovery without Acyclicity Constraints}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=x21uf7xdfD},
}
Figure