ψDAG: Projected Stochastic Approximation Iteration for DAG Structure Learning

Klea Ziu, Slavomír Hanzely, Loka Li, Kun Zhang, Martin Takác, Dmitry KamzolovarXiv 2024 · DOI

TL;DR

This paper introduces ψDAG, a novel framework for learning the structure of Directed Acyclic Graphs (DAGs) that tackles the computational challenges of existing methods. By reformulating the problem as a stochastic optimization task and employing efficient projection techniques, ψDAG achieves significantly better scalability and faster convergence, especially on large-scale problems.

What Problem Does This Paper Address?

Learning the structure of Directed Acyclic Graphs (DAGs) is crucial for understanding complex systems in fields like biology, economics, and social sciences. However, the sheer number of possible DAGs grows exponentially with the number of nodes, making exhaustive search infeasible. Recent approaches have tried to overcome this by transforming the discrete problem into a continuous optimization task using differentiable acyclicity constraints. While these methods have shown promise, they often struggle with:

  • Optimization difficulties: The non-convex nature of DAG constraints can lead to local minima and slow convergence.
  • Computational complexity: Many existing methods rely on computationally expensive operations like matrix exponentials, making them impractical for large graphs.
  • Scalability issues: These limitations prevent current methods from effectively handling real-world problems with thousands of nodes.

This paper aims to address these limitations by proposing a more scalable and efficient approach to DAG structure learning.

Methods

The core of the proposed method, ψDAG, lies in a two-pronged approach:

  1. Stochastic Approximation Reformulation: The authors reformulate the DAG learning problem as a stochastic optimization problem. Instead of optimizing over the exact expectation, they leverage Stochastic Approximation (SA) and Stochastic Gradient Descent (SGD) to handle the objective function. This allows for lower per-iteration complexity.
  2. Projected Optimization Framework: Instead of enforcing DAG constraints strictly at every step, ψDAG employs a three-step iterative framework:
  3. Unconstrained Optimization (A₁): An initial optimization step is performed without strict DAG constraints, using SGD.
  4. Projection (ψ): A novel projection step finds a DAG that is "closest" to the current iterate. This projection also determines a topological sorting of the vertices. This step is crucial for efficiently enforcing acyclicity.
  5. Constrained Optimization (A₂): A second optimization step is performed, but this time, it preserves the vertex order obtained from the projection. This ensures that the algorithm converges towards a valid DAG.

The key innovation here is the projection method, which efficiently enforces DAG constraints without the need for computationally expensive penalty terms or complex matrix operations.

Datasets

The authors evaluate their method on:

  • Synthetic Datasets: They generate synthetic DAGs using two established random graph models: Erdős-Rényi (ER) and Scale-Free (SF) graphs. These graphs are parameterized by the number of nodes ($d$) and the expected number of edges ($k$). They also vary the noise distributions (Gaussian, exponential, Gumbel) and the graph density.
  • Real-world Dataset: The proposed method is also evaluated on the Sachs et al. (2005b) causal protein signaling network dataset, a benchmark commonly used in the field.

Key Insights and Ideas

  • Stochasticity as a Scalability Enabler: Reframing the problem as a stochastic optimization task is key to reducing per-iteration costs and enabling scalability.
  • Projection is More Efficient than Strict Constraints: The novel projection step, which finds a "closest" DAG and its topological sort, is more computationally efficient than methods that rely on differentiable but expensive acyclicity constraints (like matrix exponentials).
  • Order Matters: The framework highlights the importance of vertex ordering. By projecting onto a valid topological order, the algorithm can efficiently navigate the space of DAGs.
  • Significant Speedup on Large Graphs: The proposed method demonstrates a dramatic improvement in runtime, especially as the number of nodes increases, making it practical for problems previously intractable.

Key Results

  • Scalability: ψDAG scales exceptionally well, handling graphs with up to 10,000 nodes. In contrast, baseline methods like GOLEM and DAGMA struggle significantly, with some runs exceeding 350 hours or failing to converge for graphs with over 3000 nodes.
  • Runtime: ψDAG consistently outperforms GOLEM and DAGMA in terms of runtime across various graph types and noise distributions, often converging in a matter of hours for large graphs.
  • Convergence: The paper theoretically proves that ψDAG converges to a local minimum of the objective function at a rate of $O(1/\sqrt{T})$.
  • Real-world Performance: On the Sachs et al. protein signaling network dataset, ψDAG outperforms GOLEM and NOTEARS across key metrics like Structural Hamming Distance (SHD), True Positive Rate (TPR), and False Positive Rate (FPR). DAGMA failed to optimize on this dataset.

Limitations and Future Work

  • Local Minima: The theoretical guarantee is for convergence to a local minimum, which is a common limitation in non-convex optimization.
  • Computational Cost of Projection: While more efficient than previous methods, the projection step still has a computational cost. The paper mentions that for very large graphs, memory becomes the primary limitation.
  • Future Work: The authors suggest exploring further improvements to the projection method and investigating its application to more complex scenarios, such as non-linear DAGs or scenarios with unobserved confounders. The paper also briefly touches upon a "weighted projection" that shows slight improvements in convergence speed but is deferred to an appendix due to inconsistent runtime benefits.

Summary updated

BibTeX
@misc{ziu2024dag,
  author = {Klea Ziu and Slavomír Hanzely and Loka Li and Kun Zhang and Martin Takác and Dmitry Kamzolov},
  title = {{ψDAG: Projected Stochastic Approximation Iteration for DAG Structure Learning}},
  year = {2024},
  eprint = {2410.23862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.23862},
}
Figure