[Paper Review] Quantifying and Improving Performance of Distributed Deep Learning with Cloud Storage
This paper proposes DELI, a caching and pre-fetching system that accelerates distributed deep learning training by loading data from cloud storage buckets instead of local disks. By intelligently pre-fetching data when half the cache is consumed, DELI reduces data loading wait time by 85.6%–93.5% compared to direct bucket access, achieving near-local-disk performance while minimizing local storage usage and potentially lowering cloud costs.
Cloud computing provides a powerful yet low-cost environment for distributed deep learning workloads. However, training complex deep learning models often requires accessing large amounts of data, which can easily exceed the capacity of local disks. Prior research often overlooks this training data problem by implicitly assuming that data is available locally or via low latency network-based data storage. Such implicit assumptions often do not hold in a cloud-based training environment, where deep learning practitioners create and tear down dedicated GPU clusters on demand, or do not have the luxury of local storage, such as in serverless workloads. In this work, we investigate the performance of distributed training that leverages training data residing entirely inside cloud storage buckets. These buckets promise low storage costs, but come with inherent bandwidth limitations that make them seem unsuitable for an efficient training solution. To account for these bandwidth limitations, we propose the use of two classical techniques, namely caching and pre-fetching, to mitigate the training performance degradation. We implement a prototype, DELI, based on the popular deep learning framework PyTorch by building on its data loading abstractions. We then evaluate the training performance of two deep learning workloads using Google Cloud's NVIDIA K80 GPU servers and show that we can reduce the time that the training loop is waiting for data by 85.6%-93.5% compared to loading directly from a storage bucket - thus achieving comparable performance to loading data directly from disk - while only storing a fraction of the data locally at a time. In addition, DELI has the potential of lowering the cost of running a training workload, especially on models with long per-epoch training times.
Motivation & Objective
- To address the performance bottleneck caused by slow data loading from cloud storage buckets in distributed deep learning.
- To improve training efficiency in cloud environments where local storage is limited or ephemeral, such as in serverless or online learning workloads.
- To reduce training costs by minimizing local storage usage while maintaining high performance.
- To evaluate the effectiveness of caching and pre-fetching in mitigating bandwidth limitations of cloud storage for deep learning workloads.
- To develop a cost model that quantifies savings from using DELI over traditional local disk or direct bucket access.
Proposed method
- DELI is built on PyTorch’s data loading abstractions, enabling integration with existing deep learning workflows.
- It implements a configurable caching layer that stores only a fraction of the dataset locally at any time.
- Pre-fetching is triggered when 50% of the cache has been consumed, ensuring data is available before the next training iteration.
- The system uses a threshold-based pre-fetching strategy to balance cache utilization and data availability.
- It reduces cloud API calls by grouping samples into super-samples and caching bucket metadata locally.
- A cost model based on Google Cloud Platform pricing is developed to evaluate economic benefits.
Experimental results
Research questions
- RQ1Can caching and pre-fetching significantly reduce data loading latency in distributed training when using cloud storage buckets?
- RQ2What is the optimal pre-fetching threshold that maximizes performance under limited local storage?
- RQ3How does DELI’s performance compare to direct loading from local disks or cloud buckets in terms of training time and resource efficiency?
- RQ4To what extent can DELI reduce training costs in cloud-based distributed learning workloads?
- RQ5How do caching and pre-fetching components individually contribute to performance improvement?
Key findings
- DELI reduces data loading wait time by 85.6% to 93.5% compared to direct loading from cloud storage buckets.
- The optimal configuration triggers pre-fetching when 50% of the cache is consumed, achieving near-local-disk performance.
- DELI achieves performance comparable to local disk loading while using only a fraction of the local storage space.
- The system can reduce total training cost by up to 17% for certain workloads, as shown in the cost model using Google Cloud pricing.
- Each component—caching, pre-fetching, and threshold-based triggering—is essential for realizing the full performance gain.
- The cost model demonstrates that DELI can save money, especially for models with long per-epoch training times.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.