Neural Topological Ordering for Computation Graphs

07/13/2022
by   Mukul Gagrani, et al.
0

Recent works on machine learning for combinatorial optimization have shown that learning based approaches can outperform heuristic methods in terms of speed and performance. In this paper, we consider the problem of finding an optimal topological order on a directed acyclic graph with focus on the memory minimization problem which arises in compilers. We propose an end-to-end machine learning based approach for topological ordering using an encoder-decoder framework. Our encoder is a novel attention based graph neural network architecture called Topoformer which uses different topological transforms of a DAG for message passing. The node embeddings produced by the encoder are converted into node priorities which are used by the decoder to generate a probability distribution over topological orders. We train our model on a dataset of synthetically generated graphs called layered graphs. We show that our model outperforms, or is on-par, with several topological ordering baselines while being significantly faster on synthetic graphs with up to 2k nodes. We also train and test our model on a set of real-world computation graphs, showing performance improvements.

READ FULL TEXT
research
10/08/2018

An Improved Algorithm for Incremental Cycle Detection and Topological Ordering in Sparse Graphs

We consider the problem of incremental cycle detection and topological o...
research
09/04/2023

Differentiable Bayesian Structure Learning with Acyclicity Assurance

Score-based approaches in the structure learning task are thriving becau...
research
02/13/2022

Vital Node Identification in Complex Networks Using a Machine Learning-Based Approach

Vital node identification is the problem of finding nodes of highest imp...
research
03/19/2022

PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphs

Optimization of directed acyclic graph (DAG) structures has many applica...
research
05/24/2019

Learning to Identify High Betweenness Centrality Nodes from Scratch: A Novel Graph Neural Network Approach

Betweenness centrality (BC) is one of the most used centrality measures ...
research
08/14/2022

Novel Ordering-based Approaches for Causal Structure Learning in the Presence of Unobserved Variables

We propose ordering-based approaches for learning the maximal ancestral ...
research
01/27/2023

DAG Learning on the Permutahedron

We propose a continuous optimization framework for discovering a latent ...

Please sign up or login with your details

Forgot password? Click here to reset