How Can We Train Deep Learning Models Across Clouds and Continents? An Experimental Study
Alexander Erben, Ruben Mayer, Hans-Arno Jacobsen
TL;DR
The paper tackles the challenge of cost-efficiently training deep learning models using spot instances across clouds and continents. It leverages the Hivemind framework to enable decentralized, data-parallel training on interruptible hardware and introduces a granularity metric to predict geo-distributed scalability. Through extensive experiments on CV, NLP, and ASR tasks across geo-distributed, multi-cloud, and hybrid-cloud configurations, it demonstrates meaningful speedups for small- to mid-sized models (up to ≈4.37x with 8 GPUs) while highlighting egress costs and intercontinental latency as key cost drivers. The results offer practical guidelines and metrics for practitioners to optimize cost-per-throughput when using spot pricing across multiple clouds and regions, showing that geo-distributed spot training can be a viable and cost-effective alternative to centralized on-demand or high-end single-node offerings.
Abstract
This paper aims to answer the question: Can deep learning models be cost-efficiently trained on a global market of spot VMs spanning different data centers and cloud providers? To provide guidance, we extensively evaluate the cost and throughput implications of training in different zones, continents, and clouds for representative CV, NLP, and ASR models. To expand the current training options further, we compare the scalability potential for hybrid-cloud scenarios by adding cloud resources to on-premise hardware to improve training throughput. Finally, we show how leveraging spot instance pricing enables a new cost-efficient way to train models with multiple cheap VMs, trumping both more centralized and powerful hardware and even on-demand cloud offerings at competitive prices.
