Neural Topological Ordering for Computation Graphs

Open Access
Authors
  • R. Bondesan
  • M. Gagrani
  • W. Jeon
  • C. Lott
Publication date 2023
Host editors
  • S. Koyejo
  • S. Mohamed
  • A. Agarwal
  • D. Belgrave
  • K. Cho
  • A. Oh
Book title 36th Conference on Neural Information Processing Systems (NeurIPS 2022)
Book subtitle New Orleans, Louisiana, USA, 28 November-9 December 2022
ISBN
  • 9781713871088
ISBN (electronic)
  • 9781713873129
Series Advances in Neural Information Processing Systems
Event Thirty-sixth Conference on Neural Information Processing Systems
Volume | Issue number 23
Pages (from-to) 17327-17339
Publisher San Diego, CA: Neural Information Processing Systems Foundation
Organisations
  • Faculty of Science (FNWI) - Institute of Physics (IoP)
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
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 (DAG) 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.
Document type Conference contribution
Note With supplemental file
Language English
Published at https://papers.nips.cc/paper_files/paper/2022/hash/6ef586bdf0af0b609b1d0386a3ce0e4b-Abstract-Conference.html https://openreview.net/forum?id=EvtEGQmXe3
Other links https://www.proceedings.com/68431.html
Downloads
Supplementary materials
Permalink to this page
Back