Skip to main content
QUICK REVIEW

[Paper Review] Bamboo: Making Preemptible Instances Resilient for Affordable Training of Large DNNs

John Thorpe, Pengzhan Zhao|arXiv (Cornell University)|Apr 26, 2022
Cloud Computing and Resource ManagementComputer Science14 citations
TL;DR

Bamboo is a distributed system that enhances resilience and efficiency for training large deep neural networks (DNNs) on preemptible cloud instances by injecting redundant computations into pipeline bubbles in pipeline-parallel training. It achieves 3.7× higher training throughput and 2.4× lower cost compared to on-demand instances, outperforming checkpointing by minimizing restart overhead in frequent preemption scenarios.

ABSTRACT

DNN models across many domains continue to grow in size, resulting in high resource requirements for effective training, and unpalatable (and often unaffordable) costs for organizations and research labs across scales. This paper aims to significantly reduce training costs with effective use of preemptible instances, i.e., those that can be obtained at a much cheaper price while idle, but may be preempted whenever requested by priority users. Doing so, however, requires new forms of resiliency and efficiency to cope with the possibility of frequent preemptions - a failure model that is drastically different from the occasional failures in normal cluster settings that existing checkpointing techniques target. We present Bamboo, a distributed system that tackles these challenges by introducing redundant computations into the training pipeline, i.e., whereby one node performs computations over not only its own layers but also over some layers in its neighbor. Our key insight is that training large models often requires pipeline parallelism where "pipeline bubbles" naturally exist. Bamboo carefully fills redundant computations into these bubbles, providing resilience at a low cost. Across a variety of widely used DNN models, Bamboo outperforms traditional checkpointing by 3.7x in training throughput, and reduces costs by 2.4x compared to a setting where on-demand instances are used.

Motivation & Objective

  • To address the high cost of training large DNNs, especially for small organizations and research labs.
  • To overcome the unreliability and frequent preemptions of preemptible cloud instances, which disrupt long-running DNN training.
  • To reduce training cost and improve efficiency beyond traditional checkpointing, which incurs high restart overhead under frequent preemption.
  • To design a system that enables fast recovery and high throughput on preemptible resources without sacrificing scalability or model size.
  • To provide a cost-effective alternative to on-demand instances by leveraging redundant computation in pipeline-parallel training.

Proposed method

  • Bamboo introduces redundant computation (RC) by having each training node perform computations not only on its own model layers but also on the layers of its successor in the pipeline.
  • It exploits 'pipeline bubbles'—idle periods in pipeline parallelism—by filling them with redundant computations to enable fast recovery upon preemption.
  • The system uses a lightweight coordination mechanism to ensure consistency and avoid double computation when nodes are active.
  • Bamboo supports both pipeline parallelism and pure data parallelism using the same RC-based resilience mechanism.
  • It avoids the need for full checkpointing by precomputing and caching results in the pipeline bubbles, reducing restart time and wasted computation.
  • The design is optimized to minimize resource overhead while maximizing resilience to unpredictable preemptions.

Experimental results

Research questions

  • RQ1Can redundant computation in pipeline bubbles significantly reduce training restart overhead on preemptible instances?
  • RQ2How does Bamboo’s approach compare to traditional checkpointing in terms of training throughput and cost efficiency under frequent preemptions?
  • RQ3To what extent can Bamboo reduce training costs compared to using on-demand instances, while maintaining high throughput?
  • RQ4Can the same RC mechanism be effectively applied to both pipeline and pure data parallelism?
  • RQ5What is the performance and cost impact of Bamboo across diverse, widely used DNN architectures?

Key findings

  • Bamboo achieves 3.7× higher training throughput compared to checkpointing-based approaches on preemptible instances.
  • It reduces training costs by 2.4× compared to using on-demand instances, demonstrating strong cost-efficiency.
  • The system significantly outperforms checkpointing in scenarios with frequent preemptions, where checkpointing wastes up to 77% of training time on GPT-2 with 64 spot instances.
  • Bamboo’s redundant computation technique effectively fills idle pipeline bubbles without introducing significant overhead or resource contention.
  • The approach is effective across six representative DNN models, showing consistent gains in throughput and cost reduction.
  • Bamboo’s design is generalizable to both pipeline and pure data parallelism, enabling broad applicability in large-scale DNN training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.