Graph neural networks with configuration cross-attention for tensor compilers

Dmitrii Khizbullin, Eduardo Rocha de Andrade, Thanh Hau Nguyen, Matheus Pedroza Ferreira, David R. Pugh
5/26/2024
cs.LGcs.ARcs.PF

No official code found. Best implementation: thanhhau097/google_fast_or_slow (13 stars, last commit 2024-05-07).

Abstract

With the recent popularity of neural networks comes the need for efficient serving of inference workloads. A neural network inference workload can be represented as a computational graph with nodes as operators transforming multidimensional tensors. The tensors can be transposed and/or tiled in a combinatorially large number of ways, some configurations leading to accelerated inference. We propose TGraph, a neural graph architecture that allows screening for fast configurations of the target computational graph, thus representing an artificial intelligence (AI) tensor compiler in contrast to the traditional heuristics-based compilers. The proposed solution improves mean Kendall's $τ$ across layout collections of TpuGraphs from 29.8% of the reliable baseline to 67.4% of TGraph. We estimate the potential CO$_2$ emission reduction associated with our work to be equivalent to over 50% of the total household emissions in the areas hosting AI-oriented data centers.

View on arXivView PDF

Code Implementations(1)

134Shell, PythonOct 21, 20232 years ago

Similar Papers

Cite this paper

@article{khizbullin2024graph,
  title  = {Graph neural networks with configuration cross-attention for tensor compilers},
  author = {Dmitrii Khizbullin and Eduardo Rocha de Andrade and Thanh Hau Nguyen and Matheus Pedroza Ferreira and David R. Pugh},
  year   = {2024},
  eprint = {2405.16623},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16623v2}
}

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

Discussion