[論文レビュー] Quantifying and Improving Performance of Distributed Deep Learning with Cloud Storage
本稿では、クラウドストレージバケツからローカルディスクではなくデータを読み込むことで、分散ディープラーニング学習の高速化を実現するキャッシュおよびプリフェッチングシステム、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.
研究の動機と目的
- 分散ディープラーニングにおける、クラウドストレージバケツからの遅いデータ読み込みが引き起こすパフォーマンスボトルネックを解消すること。
- サーバesslessやオンライン学習ワークロードなど、ローカルストレージが制限されたり一時的であるようなクラウド環境における学習効率の向上。
- 高いパフォーマンスを維持しながらローカルストレージ使用量を最小限に抑えることで、学習コストを低減すること。
- クラウドストレージの帯域幅制限を緩和するためのキャッシュおよびプリフェッチの有効性を評価すること。
- 伝統的なローカルディスクまたは直接バケツアクセスと比較した場合のDELIの経済的利点を定量化するコストモデルの構築。
提案手法
- DELIはPyTorchのデータ読み込み抽象化に基づいて構築されており、既存のディープラーニングワークフローへの統合を可能にしている。
- 任意の時点でデータセットの一部しかローカルに保持しない、設定可能なキャッシュレイヤーを実装している。
- キャッシュの50%が消費された時点でプリフェッチがトリガーされ、次の学習イテレーションの前にデータが利用可能になるようにしている。
- キャッシュ利用度とデータ可用性のバランスを取るために、しきい値に基づくプリフェッチ戦略を採用している。
- サンプルをスーパーサンプルにグループ化し、バケツメタデータをローカルにキャッシュすることで、クラウドAPIコールを削減している。
- Googleクラウドプラットフォームの価格体系に基づくコストモデルを構築し、経済的利点を評価している。
実験結果
リサーチクエスチョン
- RQ1クラウドストレージバケツを用いた分散学習において、キャッシュおよびプリフェッチがデータ読み込み遅延を顕著に短縮できるか?
- RQ2限られたローカルストレージ環境下でパフォーマンスを最大化する最適なプリフェッチしきい値は何か?
- RQ3DELIのパフォーマンスは、ローカルディスクまたはクラウドバケツからの直接読み込みと比較して、学習時間およびリソース効率の面でどの程度優れているか?
- RQ4DELIは、クラウドベースの分散学習ワークロードにおいて、どの程度の学習コストを削減できるか?
- RQ5キャッシュ、プリフェッチ、しきい値ベースのトリガーの各コンponentが、パフォーマンス向上にそれぞれどの程度寄与しているか?
主な発見
- DELIは、クラウドストレージバケツからの直接読み込みと比較して、データ読み込み待機時間を85.6%〜93.5%短縮した。
- 最適な設定では、キャッシュの50%が消費された時点でプリフェッチがトリガーされ、ほぼローカルディスク性能に近いパフォーマンスが達成された。
- DELIは、ローカルストレージ使用量をわずかに抑えたまま、ローカルディスク読み込みと同等のパフォーマンスを実現した。
- Googleクラウドの価格体系に基づくコストモデルでは、特定のワークロードにおいて総学習コストを最大17%まで削減できることが示された。
- キャッシュ、プリフェッチ、しきい値ベースのトリガーの各コンponentが、フルパフォーマンス向上を実現するために不可欠であることが分かった。
- コストモデルは、特に1エポックあたりの学習時間が長いモデルにおいて、DELIが費用を削減できることを示している。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。