Learning linear structural equation models in polynomial time and sample complexity

Asish Ghoshal, Jean Honorio

Abstract

Causal discovery from observational data is a fundamental challenge across scientific disciplines. Traditional methods for learning Structural Equation Models (SEMs) often face prohibitive computational complexity or rely on restrictive assumptions such as "faithfulness" and equal noise variances. This paper introduces a novel, computationally efficient algorithm that learns the structure of linear SEMs in polynomial time. By leveraging the properties of the precision matrix to identify terminal nodes iteratively, the proposed method achieves statistical consistency in high-dimensional settings without requiring the faithfulness assumption, significantly expanding the applicability of causal discovery in real-world scenarios.

Introduction

Understanding cause-and-effect relationships is essential for fields ranging from genetics to finance. Structural Equation Models (SEMs) provide a standard mathematical framework for this, representing variables as nodes in a Directed Acyclic Graph (DAG). However, learning these graphs from purely observational data is notoriously difficult. Most existing approaches encounter two major hurdles: computational complexity, where finding the optimal graph is often NP-hard, and restrictive assumptions, such as faithfulness (the requirement that every independence in the data maps perfectly to a missing edge) or homoscedasticity (equal noise variances).

This research addresses these barriers by providing a method that is both computationally efficient (polynomial time) and statistically consistent, even for high-dimensional data with arbitrary noise distributions.

Methodology

The authors propose a "bottom-up" iterative algorithm that avoids the exponential search space typical of causal discovery. Instead of attempting to identify the entire graph structure simultaneously, the algorithm focuses on identifying terminal nodes—nodes that act as effects but not causes for any other variables currently in the system.

The Precision Matrix Innovation

The core innovation lies in the use of the precision matrix (the inverse of the covariance matrix). The authors demonstrate that under a new, generalized identifiability condition, a terminal node can be identified by locating the minimum value on the diagonal of the precision matrix. This transforms a global search problem into a series of local, linear-algebraic operations.

Iterative Reconstruction

Once a terminal node is identified, the algorithm "reads off" its parents and edge weights directly from the precision matrix. The node's influence is then removed from the system using a technique similar to a Schur complement update, and the process repeats until the entire DAG is reconstructed. To handle finite samples in high-dimensional settings (where the number of variables $p$ exceeds the number of samples $n$), the authors utilize the CLIME estimator to robustly estimate the precision matrix.

Experimental Results

The algorithm was evaluated using both synthetic and real-world datasets. Synthetic tests involved randomly generated Erdos-Rényi DAGs with varying numbers of nodes ($p = 50, 100, 150, 200$) and different noise types, including sub-Gaussian and Rademacher distributions.

Figure 1: Performance of the proposed algorithm on synthetic data. The left plot shows the probability of exact graph recovery ($P(G^* = \hat{G})$) as a function of the sample size parameter $C$. The right plot shows the estimation error of the edge weights ($|B^* - \hat{B}|_\infty$) decreasing as $C$ increases.

As shown in Figure 1, the algorithm demonstrates strong statistical consistency. In the identifiable regime, it achieves 100% accuracy and recall as the sample size increases. Even in "non-identifiable" regimes where traditional methods like the PC algorithm hover around 50% accuracy, this method maintains approximately 96% accuracy. Computationally, the algorithm runs in $O(p(d + \log p))$ operations in the population setting, a massive improvement over score-based methods that scale exponentially ($2^p$).

On real-world gene-expression datasets, the proposed method achieved the lowest average negative log-likelihood compared to standard benchmarks like MMHC, GES, and PC, while maintaining significantly faster execution times.

Discussion and Future Work

By moving beyond the "equal variance" and "faithfulness" requirements, this work significantly broadens the types of systems that can be modeled accurately. The use of the precision matrix as a "roadmap" for causal structure provides a robust alternative to global search strategies.

While the current framework is limited to linear SEMs, it lays the groundwork for several future directions. These include extending precision-matrix techniques to discrete or binary Bayesian networks and integrating the terminal-node identification strategy into existing score-based methods to prune search spaces and enhance efficiency. The ability to perform causal discovery in polynomial time marks a significant step toward scalable and reliable automated scientific discovery.

Summary updated

BibTeX
@inproceedings{ghoshal2018learning,
  author = {Asish Ghoshal and Jean Honorio},
  title = {{Learning linear structural equation models in polynomial time and sample complexity}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
}
Figure