DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization

Kevin Bello, Bryon Aragam, Pradeep Ravikumar
9/16/2022
243 citations
cs.LGstat.MEstat.ML

Official code: kevinsbello/dagma (146 stars, Python, Apache-2.0, last commit 2024-01-14).

Abstract

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.

Show full abstract

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 $\textit{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 ($\textit{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 $\textit{linear}$ and $\textit{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.

View on arXivView PDF

Code Implementations(1)

kevinsbello/dagmaOfficial100%
Apache-2.0

A Python 3 package for learning Bayesian Networks (DAGs) from data. Official implementation of the paper "DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization"

14628PythonOct 31, 20222 years agoApache-2.0
bayesian-networkscausal-discoverydagsgraphical-modelsneurips-2022+1 more

Similar Papers

Cite this paper

@article{bello2022dagma,
  title  = {DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization},
  author = {Kevin Bello and Bryon Aragam and Pradeep Ravikumar},
  year   = {2022},
  eprint = {2209.08037},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.08037}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.08037.svg)](https://codeofpaper.com/paper/2209.08037)

Discussion