All models

DAG-GNN

A graph neural network variational autoencoder whose learned weighted adjacency matrix is the DAG being recovered.

Graphs and geometry · 23 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
588
Operations
23
Framework
PyTorch
Recurrent
No
Published
ICML 2019
Cited by
256 (as of 27 October 2026)
Authors
Yue Yu, Jie Chen, Tian Gao, Mo Yu
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15527
Graph hash
aad52a0aa2c29d280680f43e4b8bceecfe7615d750606ca598afb00abadafcf7
Skeleton hash
40fd1b80f564b996f592eee1a6dde969b5fe56be34a9f8ca5bc15e13f906b1be
Architecture hash
40a78ad1a4f5a6c8b914df9a0c9cb9da68c03fafab34e1d0f5a6e4b04360d177
Diagram SHA-256
4a275e62397a8aeb52d4c201ca8eae368bd8aa5d4720653b1d81981201972dd8
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DAG-GNN learns a directed acyclic graph (DAG) from samples of a joint distribution, a combinatorial problem whose search space is superexponential in the number of graph nodes. It follows the continuous optimization approach of Zheng et al. (2018), who applied it to the linear structural equation model (SEM) with a least-squares loss. In place of the linear model, DAG-GNN uses a deep generative model: a variational autoencoder parameterized by a graph neural network.

The weighted adjacency matrix of the graph is an explicit parameter, learned together with the other neural network parameters. The encoder uses a multilayer perceptron (MLP) and produces a factored Gaussian variational posterior. The decoder also uses an MLP, and its likelihood is a factored Gaussian. To keep the graph acyclic, the authors propose a polynomial alternative to the matrix exponential constraint of Zheng et al., which they describe as more practically convenient and as numerically stable. The constrained problem is solved with the augmented Lagrangian approach. The model handles discrete variables as well as vector-valued ones.

On synthetic data, the paper reports that DAG-GNN outperforms DAG-NOTEARS, the algorithm of Zheng et al. (2018) based on linear SEM. On benchmark data sets with discrete variables, it describes the learned graphs as reasonably close to the global optima. The repository acknowledges two existing code bases, DAG NOTEAR and Neural relational inference for interacting systems.

Key idea. DAG-GNN learns the weighted adjacency matrix of a DAG with a graph neural network variational autoencoder that generalizes linear SEM, under a polynomial acyclicity constraint.

  • dag-gnn
  • dag structure learning
  • structure learning
  • directed acyclic graph
  • bayesian network
  • graph neural network
  • variational autoencoder
  • acyclicity constraint
  • structural equation model

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{yu2019daggnndagstructurelearning,
      title={DAG-GNN: DAG Structure Learning with Graph Neural Networks}, 
      author={Yue Yu and Jie Chen and Tian Gao and Mo Yu},
      year={2019},
      eprint={1904.10098},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1904.10098}, 
}