[论文解读] Quantifying and Improving Performance of Distributed Deep Learning with Cloud Storage
本文提出 DELI,一种缓存与预取系统,通过从云存储桶而非本地磁盘加载数据,加速分布式深度学习训练。通过在缓存使用率达50%时智能预取数据,DELI 相较于直接访问存储桶,将数据加载等待时间减少了 85.6%–93.5%,实现了接近本地磁盘的性能,同时最小化本地存储使用量,并可能降低云成本。
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.
研究动机与目标
- 解决在分布式深度学习中,由于从云存储桶加载数据缓慢而造成的性能瓶颈。
- 改善在本地存储有限或临时的云环境中(如无服务器或在线学习工作负载)的训练效率。
- 通过最小化本地存储使用量,同时保持高性能,降低训练成本。
- 评估缓存与预取在缓解云存储带宽限制方面对深度学习工作负载的有效性。
- 开发一个成本模型,量化使用 DELI 相较于传统本地磁盘或直接访问存储桶的经济收益。
提出的方法
- DELI 基于 PyTorch 的数据加载抽象构建,可无缝集成至现有深度学习工作流。
- 实现了一个可配置的缓存层,仅在任意时刻将数据集的一小部分存储在本地。
- 当缓存使用率达到 50% 时触发预取,确保下一轮训练迭代前数据已准备就绪。
- 系统采用基于阈值的预取策略,在缓存利用率与数据可用性之间实现平衡。
- 通过将样本分组为超样本并本地缓存存储桶元数据,减少云 API 调用次数。
- 基于 Google Cloud Platform 定价开发了成本模型,用于评估经济收益。
实验结果
研究问题
- RQ1在使用云存储桶时,缓存与预取能否显著降低分布式训练中的数据加载延迟?
- RQ2在本地存储受限的条件下,最优的预取阈值是什么,能够最大化性能?
- RQ3在训练时间和资源效率方面,DELI 的性能与直接从本地磁盘或云存储桶加载相比如何?
- RQ4DELI 在基于云的分布式学习工作负载中,能在多大程度上降低训练成本?
- RQ5缓存与预取组件各自对性能提升的贡献程度如何?
主要发现
- 与直接从云存储桶加载相比,DELI 将数据加载等待时间减少了 85.6% 至 93.5%。
- 最优配置在缓存使用率达 50% 时触发预取,实现接近本地磁盘的性能。
- DELI 在仅使用本地存储空间的一小部分情况下,实现了与本地磁盘加载相当的性能。
- 根据基于 Google Cloud 定价的成本模型,系统可将特定工作负载的总训练成本降低高达 17%。
- 每个组件——缓存、预取以及基于阈值的触发机制——对实现全部性能提升均不可或缺。
- 成本模型表明,DELI 能够节省成本,尤其适用于每轮训练时间较长的模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。