mlsanityData to 7 Oct 2026

Baechi: Fast Device Placement of Machine Learning Graphs

arXiv 2301.08695 ↗First posted 20 Jan 2023cs.DC cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Machine Learning graphs (or models) can be challenging or impossible to train when either devices have limited memory, or models are large. To split the model across devices, learning-based approaches are still popular. While these result in model placements that train fast on data (i.e., low step times), learning-based model-parallelism is time-consuming, taking many hours or days to create a placement plan of operators on devices. We present the Baechi system, the first to adopt an algorithmic approach to the placement problem for running machine learning training graphs on small clusters of memory-constrained devices. We integrate our implementation of Baechi into two popular open-source learning frameworks: TensorFlow and PyTorch. Our experimental results using GPUs show that: (i) Baechi generates placement plans 654 X - 206K X faster than state-of-the-art learning-based approaches, and (ii) Baechi-placed model's step (training) time is comparable to expert placements in PyTorch, and only up to 6.2% worse than expert placements in TensorFlow. We prove mathematically that our two algorithms are within a constant factor of the optimal. Our work shows that compared to learning-based approaches, algorithmic approaches can face different challenges for adaptation to Machine learning systems, but also they offer proven bounds, and significant performance benefits.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 33 of its 77 references that are in the map. First posted on arXiv 20 Jan 2023.

Builds on

33 of 77 references.

References · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2021Convex optimizationcited by 2,479
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  8. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  9. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  10. 2019Towards Federated Learning at Scale: System Designcited by 826
  11. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  12. 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 287
21 more
  1. 2014One weird trick for parallelizing convolutional neural networkscited by 264
  2. 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
  3. 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
  4. 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 116
  5. 2020DAPPLE: A Pipelined Data Parallel Approach for Training Large Modelscited by 100
  6. 2017Device Placement Optimization with Reinforcement Learningcited by 84
  7. 2021TeraPipe: Token-Level Pipeline Parallelism for Training Large-Scale Language Modelscited by 74
  8. 2016Theano: A Python framework for fast computation of mathematical expressionscited by 64
  9. 2019PipeMare: Asynchronous Pipeline Parallel DNN Trainingcited by 54
  10. 2018Supporting Very Large Models using Automatic Dataflow Graph Partitioningcited by 43
  11. 2013Petuum: A New Platform for Distributed Machine Learning on Big Datacited by 35
  12. 2018Machine learning for Internet of Things data analysis: A surveycited by 29
  13. 2020Ordering Chaos: Memory-Aware Scheduling of Irregularly Wired Neural Networks for Edge Devicescited by 27
  14. 2019Placeto: Learning Generalizable Device Placement Algorithms for Distributed Machine Learningcited by 26
  15. 2020Efficient Algorithms for Device Placement of DNN Graph Operatorscited by 24
  16. 2020Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learningcited by 17
  17. 2019Characterizing Deep Learning Training Workloads on Alibaba-PAIcited by 11
  18. 2021Amazon SageMaker Model Parallelism: A General and Flexible Framework for Large Model Trainingcited by 11
  19. 2016Big Data Caching for Networking: Moving from Cloud to Edgecited by 8
  20. 2013MLI: An API for Distributed Machine Learningcited by 3
  21. 2014Parallel scheduling of task trees with limited memorycited by 1

Built on by

Cited by year

Citing papers per year: 2023: 2.

2 papers.