Omnivore: An Optimizer for Multi-device Deep Learning on CPUs and GPUs

Stefan Hadjis, Ce Zhang, Ioannis Mitliagkas, Christopher RéarXiv 2016

Introduction

Training deep neural networks (DNNs) has become a computational "arms race," demanding massive resources. While distributed systems like TensorFlow and MXNet are widely used, they often require manual, static configurations regarding hardware choice (CPUs vs. GPUs) and synchronization protocols (synchronous vs. asynchronous). Suboptimal choices can lead to training times an order of magnitude slower than necessary. Omnivore addresses this by automatically optimizing training across heterogeneous clusters, treating hardware as raw computing power.

The Omnivore System

Omnivore employs three primary strategies to bridge the gap between hardware efficiency and statistical convergence.

1. FLOPS-Proportional Scheduling

The system first optimizes single-node performance, particularly for CPUs, using advanced batching and data-parallel techniques. By abstracting the model into distinct computational phases—such as the Convolution (CONV) phase and the Fully-Connected (FC) phase—Omnivore can treat any device as a "black box" of FLOPS. This abstraction simplifies global scheduling across diverse hardware.

Figure 1: Abstraction of deep learning models into CONV and FC phases to facilitate hardware-agnostic scheduling.

2. Compute Groups and Asynchrony

Devices are organized into "compute groups." Within a group, execution is synchronous; across groups, it is asynchronous. This allows the system to tune the "degree of asynchrony" by adjusting the number of groups.

3. The Asynchrony-Momentum Connection

A key theoretical contribution of Omnivore is the proof that asynchronous parallelization introduces an "implicit momentum" into Stochastic Gradient Descent (SGD). Omnivore’s automatic optimizer uses a periodic grid search to find the maximum asynchrony possible without exceeding the model's optimal momentum, ensuring both speed and convergence stability.

Experimental Evaluation

Omnivore was evaluated on standard benchmarks including ImageNet, CIFAR-10, MNIST, and the Shakespeare corpus (for RNNs/LSTMs).

Single-Node Optimization

A core finding is that CPUs are significantly underrated. With proper optimization, the researchers showed that CPUs can be 5.5x faster than previously reported in deep learning literature, achieving performance levels proportional to their peak FLOPS.

Figure 4: Performance scaling on CPUs, showing speed-up relative to thread count and batch size (bp), alongside memory usage.

Distributed Performance

Omnivore demonstrated end-to-end speedups of 1.9x to 12x over state-of-the-art systems like MXNet and SINGA on ImageNet. Furthermore, it reached target accuracy 6x faster than Bayesian hyperparameter optimizers by leveraging its internal model of system dynamics rather than treating the training process as a complete black box.

Key Insights and Discussion

  • Asynchrony as a Hyperparameter: By treating asynchrony and momentum as linked variables, Omnivore allows users to "dial back" explicit momentum to gain hardware speed through asynchrony while maintaining stability.
  • Hardware-Statistical Tradeoff: Omnivore is the first system to explicitly navigate the tradeoff between hardware efficiency (iteration speed) and statistical efficiency (convergence rate) automatically.

Limitations and Future Work

The system currently requires a short "warm-up" period of synchronous training to stabilize weights before the optimizer takes over. Additionally, its performance models assume a relatively uniform network topology. Future work includes developing "slope-aware" optimizers to detect when to rerun optimization and collaborating with chip manufacturers for larger-scale integration.

Summary updated

BibTeX
@misc{hadjis2016omnivore,
  author = {Stefan Hadjis and Ce Zhang and Ioannis Mitliagkas and Christopher Ré},
  title = {{Omnivore: An Optimizer for Multi-device Deep Learning on CPUs and GPUs}},
  year = {2016},
  eprint = {1606.04487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.04487},
}
Figure