[Paper Review] Omnivore: An Optimizer for Multi-device Deep Learning on CPUs and GPUs
Omnivore is an automatic optimizer for multi-device deep learning that improves training speed by 1.9× to 12× over state-of-the-art systems. It achieves this by treating each device as a black box based on throughput, using a predictive model to tune hyperparameters and execution strategies—including asynchronous SGD with tuned momentum—across CPUs and GPUs to minimize end-to-end convergence time.
We study the factors affecting training time in multi-device deep learning systems. Given a specification of a convolutional neural network, our goal is to minimize the time to train this model on a cluster of commodity CPUs and GPUs. We first focus on the single-node setting and show that by using standard batching and data-parallel techniques, throughput can be improved by at least 5.5x over state-of-the-art systems on CPUs. This ensures an end-to-end training speed directly proportional to the throughput of a device regardless of its underlying hardware, allowing each node in the cluster to be treated as a black box. Our second contribution is a theoretical and empirical study of the tradeoffs affecting end-to-end training time in a multiple-device setting. We identify the degree of asynchronous parallelization as a key factor affecting both hardware and statistical efficiency. We see that asynchrony can be viewed as introducing a momentum term. Our results imply that tuning momentum is critical in asynchronous parallel configurations, and suggest that published results that have not been fully tuned might report suboptimal performance for some configurations. For our third contribution, we use our novel understanding of the interaction between system and optimization dynamics to provide an efficient hyperparameter optimizer. Our optimizer involves a predictive model for the total time to convergence and selects an allocation of resources to minimize that time. We demonstrate that the most popular distributed deep learning systems fall within our tradeoff space, but do not optimize within the space. By doing this optimization, our prototype runs 1.9x to 12x faster than the fastest state-of-the-art systems.
Motivation & Objective
- Address the lack of automated configuration in deep learning systems, which often leads to suboptimal performance and up to 10× longer training times.
- Demystify the tradeoffs between hardware efficiency (FLOPS) and statistical efficiency (convergence speed) in distributed training.
- Show that CPU-based deep learning can be as efficient and cost-effective as GPU-based training when optimized properly.
- Reveal that asynchrony in SGD does not incur a statistical penalty when algorithmic momentum is properly tuned, challenging prior assumptions.
- Develop an automatic optimizer that selects optimal configurations across hardware types and training strategies to minimize total training time.
Proposed method
- Design a prototype system, Omnivore, that treats each device (CPU or GPU) as a black box based solely on its throughput, enabling hardware-agnostic training.
- Implement standard batching and data-parallelism on CPUs to achieve 5.5× higher throughput than state-of-the-art systems, making CPU training viable and efficient.
- Theoretically and empirically characterize asynchrony in SGD as introducing an implicit momentum term, showing that tuning explicit momentum eliminates performance penalties.
- Build a predictive model for time-to-convergence that jointly optimizes hyperparameters (e.g., learning rate, momentum) and execution strategies (e.g., synchronous vs. asynchronous training).
- Use the optimizer to select configurations that minimize total training time, demonstrating that existing systems operate suboptimally within the tradeoff space.
- Evaluate across multiple hardware settings (EC2 CPU and GPU instances), showing that Omnivore achieves 5× speedup on CPU clusters and 5.6× on GPU clusters relative to baseline configurations.
Experimental results
Research questions
- RQ1Can CPU-based deep learning achieve performance comparable to GPU-based training when optimized with proper batching and throughput-aware design?
- RQ2What is the relationship between asynchrony in distributed SGD and algorithmic momentum, and does tuning momentum eliminate the statistical cost of asynchrony?
- RQ3How do hardware efficiency (FLOPS) and statistical efficiency (convergence speed) trade off in multi-device deep learning systems?
- RQ4Why do existing deep learning systems underperform despite being in the same tradeoff space, and what configuration choices lead to suboptimal performance?
- RQ5Can an automatic optimizer that jointly tunes hyperparameters and execution strategies reduce end-to-end training time significantly across diverse hardware platforms?
Key findings
- Omnivore achieves 5.5× higher throughput on CPUs than state-of-the-art systems by applying standard batching and data-parallelism, enabling CPU training to be as fast as GPU training when properly optimized.
- Asynchrony in SGD does not incur a statistical penalty when algorithmic momentum is tuned—this resolves a long-standing debate and explains why prior studies reported slower performance with asynchronous training.
- The optimal configuration for minimizing training time lies in a tradeoff space between hardware and statistical efficiency, which existing systems fail to optimize within.
- Omnivore reduces end-to-convergence time by 1.9× to 12× compared to the fastest existing systems, with the largest gains in configurations where prior systems diverged or underperformed.
- On cloud platforms like EC2, CPU-based training with Omnivore is 2.1× cheaper than GPU-based training due to better FLOPS/dollar ratios, making CPUs a cost-effective alternative.
- When comparing GPU and CPU clusters under optimal configuration, the GPU cluster is 5.6× faster in raw speed (excluding statistical inefficiencies), and 1.8× cheaper per iteration due to better FLOPS/dollar efficiency.
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.