Neural Topological Ordering for Computation Graphs

Mukul Gagrani, Corrado Rainone, Yang Yang, Harris Teague, Wonseok Jeon +5 more
7/13/2022
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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 \emph{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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gagrani2022neural,
  title  = {Neural Topological Ordering for Computation Graphs},
  author = {Mukul Gagrani and Corrado Rainone and Yang Yang and Harris Teague and Wonseok Jeon and Herke Van Hoof and Weiliang Will Zeng and Piero Zappi and Christopher Lott and Roberto Bondesan},
  year   = {2022},
  eprint = {2207.05899},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.05899v2}
}

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/2207.05899.svg)](https://codeofpaper.com/paper/2207.05899)

Discussion