Taming Resource Heterogeneity In Distributed ML Training With Dynamic Batching

Sahil Tyagi, Prateek Sharma
5/20/2023
cs.LGcs.DC

No confident code implementation found for this paper.

Abstract

Current techniques and systems for distributed model training mostly assume that clusters are comprised of homogeneous servers with a constant resource availability. However, cluster heterogeneity is pervasive in computing infrastructure, and is a fundamental characteristic of low-cost transient resources (such as EC2 spot instances). In this paper, we develop a dynamic batching technique for distributed data-parallel training that adjusts the mini-batch sizes on each worker based on its resource availability and throughput. Our mini-batch controller seeks to equalize iteration times on all workers, and facilitates training on clusters comprised of servers with different amounts of CPU and GPU resources. This variable mini-batch technique uses proportional control and ideas from PID controllers to find stable mini-batch sizes. Our empirical evaluation shows that dynamic batching can reduce model training times by more than 4x on heterogeneous clusters.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tyagi2023taming,
  title  = {Taming Resource Heterogeneity In Distributed ML Training With Dynamic Batching},
  author = {Sahil Tyagi and Prateek Sharma},
  year   = {2023},
  eprint = {2305.12213},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.12213v1}
}

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

Discussion