Efficient Algorithms for Device Placement of DNN Graph Operators

Jakub Tarnawski, Amar Phanishayee, Nikhil R. Devanur, Divya Mahajan, Fanny Nina Paravecino
6/29/2020
cs.LGcs.DCstat.ML

Official code: msr-fiddle/dnn-partitioning (42 stars, C++, last commit 2020-10-12).

Abstract

Modern machine learning workloads use large models, with complex structures, that are very expensive to execute. The devices that execute complex models are becoming increasingly heterogeneous as we see a flourishing of domain-specific accelerators being offered as hardware accelerators in addition to CPUs.

Show full abstract

These trends necessitate distributing the workload across multiple devices. Recent work has shown that significant gains can be obtained with model parallelism, i.e, partitioning a neural network's computational graph onto multiple devices. In particular, this form of parallelism assumes a pipeline of devices, which is fed a stream of samples and yields high throughput for training and inference of DNNs. However, for such settings (large models and multiple heterogeneous devices), we require automated algorithms and toolchains that can partition the ML workload across devices. In this paper, we identify and isolate the structured optimization problem at the core of device placement of DNN operators, for both inference and training, especially in modern pipelined settings. We then provide algorithms that solve this problem to optimality. We demonstrate the applicability and efficiency of our approaches using several contemporary DNN computation graphs.

View on arXivView PDF

Code Implementations(1)

4214C++, PythonOct 12, 20206 years agoNOASSERTION

Similar Papers

Cite this paper

@article{tarnawski2020efficient,
  title  = {Efficient Algorithms for Device Placement of DNN Graph Operators},
  author = {Jakub Tarnawski and Amar Phanishayee and Nikhil R. Devanur and Divya Mahajan and Fanny Nina Paravecino},
  year   = {2020},
  eprint = {2006.16423},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.16423}
}

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

Discussion