Skip to main content
QUICK REVIEW

[Paper Review] Directed Acyclic Graph Neural Networks

Veronika Thost, Jie Chen|arXiv (Cornell University)|Jan 20, 2021
Advanced Graph Neural NetworksComputer Science34 references33 citations
TL;DR

DAGNN introduces a neural architecture tailored for directed acyclic graphs by processing nodes in topological order with attention-based aggregation from direct predecessors and GRU-based updates, achieving state-of-the-art performance on DAG-centric tasks.

ABSTRACT

Graph-structured data ubiquitously appears in science and engineering. Graph neural networks (GNNs) are designed to exploit the relational inductive bias exhibited in graphs; they have been shown to outperform other forms of neural networks in scenarios where structure information supplements node features. The most common GNN architecture aggregates information from neighborhoods based on message passing. Its generality has made it broadly applicable. In this paper, we focus on a special, yet widely used, type of graphs -- DAGs -- and inject a stronger inductive bias -- partial ordering -- into the neural network design. We propose the \emph{directed acyclic graph neural network}, DAGNN, an architecture that processes information according to the flow defined by the partial order. DAGNN can be considered a framework that entails earlier works as special cases (e.g., models for trees and models updating node representations recurrently), but we identify several crucial components that prior architectures lack. We perform comprehensive experiments, including ablation studies, on representative DAG datasets (i.e., source code, neural architectures, and probabilistic graphical models) and demonstrate the superiority of DAGNN over simpler DAG architectures as well as general graph architectures.

Motivation & Objective

  • Incorporate the partial order of DAGs as a strong inductive bias in graph neural networks.
  • Develop a DAG-specific neural architecture that updates node representations utilizing current-layer predecessor information.
  • Unify prior DAG architectures under a common framework and demonstrate empirical improvements on DAG datasets from code, neural architectures, and probabilistic models.

Proposed method

  • Define a DAG-specific MPNN-like framework with equations (3)–(4) where h_v^l is updated using current-layer predecessor information.
  • Instantiate G^l as an attention-based aggregator over direct predecessors P(v) with softmax weights dependent on h_v^{l-1} and h_u^l (Equation 5 and 6).
  • Use a recurrent combine operator F^l (GRU) to update node representations (Equation 7).
  • Optionally process in both directions by using a reverse DAG to enable bidirectional information flow.
  • Employ a readout that pools across target nodes (and optionally sources via reverse processing) and concatenates layer-wise representations (Equation 8).
  • Extend with edge-type embeddings in the message calculation (Equation 9) to incorporate edge attributes.

Experimental results

Research questions

  • RQ1Can a DAG-aware GNN leveraging partial order improve representation quality over standard MPNNs on DAG-structured data?
  • RQ2How do architectural choices (attention vs gated-sum, multi-layer depth, readout strategy, edge attributes) impact performance on DAG tasks?
  • RQ3What are the theoretical properties (permutation invariance, injectivity) of DAGNN, and how do topological batching and bidirectionality affect efficiency?
  • RQ4How does DAGNN perform across diverse DAG domains such as source code, neural architectures, and Bayesian networks?

Key findings

  • DAGNN outperforms a wide range of DAG-specific and general GNN baselines on TOK and LP tasks in the OGBG-CODE dataset, with DAGNN achieving 34.41 vs 32.64 on TOK-15 and higher LP-15 performance than most baselines.
  • On latent representation tasks NA and BN, DAGNN yields the best RMSE and Pearson r, surpassing D-VAE and other autoencoder baselines (RMSE 0.264 and r 0.964 for NA; RMSE 0.122 and r 0.993 for BN).
  • Ablation studies show that attention-based aggregation is crucial, and replacing it with gated-sum or removing edge attributes degrades performance in most settings.
  • Increasing depth beyond two or three layers offers diminishing or no gains for TOK-15 and BN/NA datasets, with two-to-three layers often yielding the best results.
  • Topological batching substantially improves parallelism and runtime efficiency, achieving near-minimal sequential batches equal to the longest DAG path length.
  • DAGNN demonstrates competitive training time per epoch relative to other DAG baselines and demonstrates faster convergence at higher learning rates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.