Hoard: A Distributed Data Caching System to Accelerate Deep Learning Training on the Cloud

Christian Pinto, Yiannis Gkoufas, Andrea Reale, Seetharami Seelam, Steven EliukarXiv 2018

Abstract

Deep Learning system architects strive to design a balanced system where the computational accelerator—FPGA, GPU, etc.—is not starved for data. Feeding training data fast enough to effectively keep accelerator utilization high is difficult when utilizing dedicated hardware like GPUs. As accelerators get faster, storage media and data buses have not kept pace, and the ever-increasing size of training data further compounds the problem. We describe the design and implementation of a distributed caching system called Hoard that stripes data across fast local disks of multiple GPU nodes using a distributed file system that efficiently feeds data to ensure minimal degradation in GPU utilization due to I/O starvation. Hoard can cache data from a central storage system before the start of a job or during initial execution, feeding the cached data for subsequent epochs and different job invocations (e.g., hyper-parameter tuning). Hoard exposes a POSIX file system interface so existing deep learning frameworks can take advantage of the cache without modifications. We show that Hoard, using two NVMe disks per node and a distributed file system for caching, achieves a 2.1x speed-up over a 10Gb/s NFS central storage system on a 16-GPU cluster for a challenging AlexNet ImageNet benchmark. Hoard eliminates I/O bottlenecks and increases system utilization by 2x compared to using shared storage without the cache.

Introduction

Deep learning (DL) is an inherently data-hungry process. While GPU compute power has exploded, the storage systems and network buses feeding them have struggled to keep pace. This leads to I/O starvation, a state where expensive GPUs sit idle waiting for data to arrive from a central server. Current solutions often involve manual local copying, which is tedious and unscalable, or expensive High-Performance Computing (HPC) storage that lacks cloud flexibility. Hoard bridges this gap by utilizing the fast, local NVMe disks already present on cloud GPU nodes to create a large, shared, high-speed distributed cache.

System Architecture

Hoard is designed as a collection of micro-services integrated directly with Kubernetes. Its architecture consists of several key layers designed to optimize data delivery for DL workloads.

Logical view of the Hoard architecture and its integration with Kubernetes.
  • Distributed Cache Layer: Built on IBM Spectrum Scale (GPFS) with Active File Management (AFM), this layer "stripes" data across local NVMe drives. By spreading a single dataset across multiple disks, the system aggregates the I/O bandwidth of all participating nodes.
  • Dataset-Level Management: Unlike traditional block-level caches, Hoard manages data at the dataset level. Since DL training requires iterating over the entire dataset every epoch, losing even a small fraction of files from the cache would cause significant performance degradation. Hoard treats the dataset as an atomic unit for caching and eviction.
  • POSIX Interface: Hoard exposes the cache as a standard file system. This allows frameworks like TensorFlow or PyTorch to access data as if it were local, requiring zero code modifications.
  • Smart Scheduling: Hoard coordinates with the Kubernetes scheduler to place training jobs on nodes where the required data is already cached, maximizing data locality.

Performance Evaluation

The primary evaluation utilized the ImageNet dataset (~150GB) and the AlexNet model. AlexNet was chosen specifically for its high ratio of I/O requests relative to computation, making it an ideal stress test for storage bottlenecks.

Comparison of training throughput (images/sec) between remote storage (REM), local NVMe, and Hoard.

As shown in the performance results, Hoard effectively shields training performance from remote storage bottlenecks. During the first epoch (the "warming" phase), performance is limited by the underlying central storage. However, once the cache is populated (around training step 2100 in the figure), Hoard's performance becomes indistinguishable from running on a local NVMe drive.

Key results include:

  • 2.1x Speedup: On a 16-GPU cluster, Hoard achieved a 2.1x speedup compared to a 10Gb/s NFS system over a 90-epoch run.
  • Doubled Utilization: By eliminating I/O wait times, the system doubled the effective utilization of the GPUs.
  • Decoupled Lifecycles: Hoard maintains the cache independently of specific jobs. In hyperparameter tuning scenarios, this eliminates the "startup tax" of re-copying data for every new run.

Conclusion and Future Work

Hoard demonstrates that a distributed, dataset-aware cache can significantly mitigate I/O starvation in cloud-based deep learning. While the system shows parity with local NVMe after the first epoch, future work will address the "first epoch tax" and explore more sophisticated eviction strategies for multi-tenant environments. Additionally, while the current 4-node evaluation is promising, further testing at a larger scale (hundreds of nodes) will be necessary to confirm the system's scalability in massive production clusters.

Summary updated

BibTeX
@misc{pinto2018hoard,
  author = {Christian Pinto and Yiannis Gkoufas and Andrea Reale and Seetharami Seelam and Steven Eliuk},
  title = {{Hoard: A Distributed Data Caching System to Accelerate Deep Learning Training on the Cloud}},
  year = {2018},
  eprint = {1812.00669},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00669},
}
Figure