[Paper Review] DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization
This paper proposes DAGMA, a novel differentiable acyclicity characterization for learning directed acyclic graphs (DAGs) using log-determinant functions over M-matrices, enabling faster and more stable optimization. It achieves state-of-the-art performance with up to 4.8x speedup and 60% lower structural Hamming distance compared to NOTEARS on large-scale linear and nonlinear SEMs.
The combinatorial problem of learning directed acyclic graphs (DAGs) from data was recently framed as a purely continuous optimization problem by leveraging a differentiable acyclicity characterization of DAGs based on the trace of a matrix exponential function. Existing acyclicity characterizations are based on the idea that powers of an adjacency matrix contain information about walks and cycles. In this work, we propose a new acyclicity characterization based on the log-determinant (log-det) function, which leverages the nilpotency property of DAGs. To deal with the inherent asymmetries of a DAG, we relate the domain of our log-det characterization to the set of $ extit{M-matrices}$, which is a key difference to the classical log-det function defined over the cone of positive definite matrices. Similar to acyclicity functions previously proposed, our characterization is also exact and differentiable. However, when compared to existing characterizations, our log-det function: (1) Is better at detecting large cycles; (2) Has better-behaved gradients; and (3) Its runtime is in practice about an order of magnitude faster. From the optimization side, we drop the typically used augmented Lagrangian scheme and propose DAGMA ($ extit{DAGs via M-matrices for Acyclicity}$), a method that resembles the central path for barrier methods. Each point in the central path of DAGMA is a solution to an unconstrained problem regularized by our log-det function, then we show that at the limit of the central path the solution is guaranteed to be a DAG. Finally, we provide extensive experiments for $ extit{linear}$ and $ extit{nonlinear}$ SEMs and show that our approach can reach large speed-ups and smaller structural Hamming distances against state-of-the-art methods. Code implementing the proposed method is open-source and publicly available at https://github.com/kevinsbello/dagma.
Motivation & Objective
- To address the NP-hard combinatorial challenge of learning DAGs from data by reformulating it as a continuous optimization problem.
- To develop a new exact and differentiable acyclicity characterization based on the log-determinant function, leveraging the nilpotency of DAG adjacency matrices.
- To improve upon existing acyclicity functions like h_exp and h_poly by enhancing gradient behavior, cycle detection, and computational efficiency.
- To design a novel optimization framework, DAGMA, that follows a central path akin to barrier methods, ensuring convergence to a DAG at the limit.
- To empirically validate the method on linear and nonlinear structural equation models, demonstrating superior speed and accuracy.
Proposed method
- Proposes a new acyclicity characterization using the log-determinant of a matrix transformed via M-matrices, which generalizes the classical log-det function to asymmetric DAGs.
- Defines the domain of the log-det function over M-matrices to preserve acyclicity constraints, ensuring exactness and differentiability.
- Introduces DAGMA, a method that follows a central path of unconstrained regularized problems, with the log-det function acting as a barrier term.
- Uses a path-following scheme with decreasing central path parameter μ, where each step solves an unconstrained optimization problem with log-det regularization.
- Employs adaptive optimization (ADAM) with early stopping and thresholding to refine edge predictions and reduce false discoveries.
- Replaces the standard augmented Lagrangian scheme with a central path approach, improving convergence and stability.
Experimental results
Research questions
- RQ1Can a log-determinant-based acyclicity characterization outperform existing trace-based characterizations in detecting cycles and gradient stability?
- RQ2How does the use of M-matrices enable a more effective and stable log-det function for asymmetric DAGs compared to standard positive definite cones?
- RQ3Does a central path-based optimization scheme lead to better convergence and faster training than augmented Lagrangian methods in DAG learning?
- RQ4Can the proposed log-det characterization achieve state-of-the-art performance in both linear and nonlinear structural equation models?
- RQ5What is the computational and statistical trade-off between the new log-det method and existing methods like NOTEARS and GOLEM?
Key findings
- DAGMA achieves up to 4.8x faster runtime and 60% lower structural Hamming distance than NOTEARS on a 1000-node linear ER4 model.
- The proposed log-det acyclicity function detects large cycles more effectively than h_exp and h_poly, improving structural accuracy.
- The gradients of the log-det function are better-behaved than those of existing characterizations, leading to more stable optimization.
- The method runs approximately an order of magnitude faster in practice than h_exp and h_poly due to efficient matrix determinant computation.
- On nonlinear SEMs, DAGMA achieves similar structural Hamming distance to NONLINEAR NOTEARS but with 3x to 10x speedup.
- The central path approach in DAGMA guarantees that the solution converges to a DAG at the limit, ensuring acyclicity without post-processing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.