Breaking the Computation and Communication Abstraction Barrier in Distributed Machine Learning Workloads

Abhinav Jangda, Jun Huang, Guodong Liu, Amir Hossein Nodehi Sabet, Saeed Maleki +4 more
5/12/2021
132 citations
cs.DCcs.LGcs.PL

Official code: parasailteam/coconet (84 stars, HTML, MIT, last commit 2022-12-02).

Abstract

Recent trend towards increasing large machine learning models require both training and inference tasks to be distributed. Considering the huge cost of training these models, it is imperative to unlock optimizations in computation and communication to obtain best performance.

Show full abstract

However, current logical separation between computation and communication kernels in deep learning frameworks misses the optimization opportunities across such barrier. Breaking this abstraction with a holistic consideration can provide many optimizations to provide performance improvements in distributed workloads. Manually applying these optimizations needs modifications in underlying computation and communication libraries for each scenario, which is time consuming and error-prone. Therefore, we present CoCoNeT, with a DSL to express a program with both computation and communication. CoCoNeT contains several machine learning aware transformations to optimize a program and a compiler to generate high performance kernels. Providing both computation and communication as first class constructs allows users to work on a high-level abstraction and apply powerful optimizations, such as fusion or overlapping of communication and computation. CoCoNeT enables us to optimize data-, model-and pipeline-parallel workloads in large language models with only a few lines of code. Experiments show CoCoNeT significantly outperforms state-of-the-art distributed machine learning implementations.

View on arXivView PDF

Code Implementations(1)

MIT
849HTML, C++Dec 2, 20214 years agoMIT

Similar Papers

Cite this paper

@article{jangda2021breaking,
  title  = {Breaking the Computation and Communication Abstraction Barrier in Distributed Machine Learning Workloads},
  author = {Abhinav Jangda and Jun Huang and Guodong Liu and Amir Hossein Nodehi Sabet and Saeed Maleki and Youshan Miao and Madanlal Musuvathi and Todd Mytkowicz and Olli Sarikivi},
  year   = {2021},
  eprint = {2105.05720},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.05720}
}

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

Discussion