Skip to main content
QUICK REVIEW

[Paper Review] Hemingway: Modeling Distributed Optimization Algorithms

Xinghao Pan, Shivaram Venkataraman|arXiv (Cornell University)|Feb 20, 2017
Stochastic Gradient Optimization TechniquesComputer Science31 references22 citations
TL;DR

Hemingway proposes a black-box modeling system that predicts convergence rates and system performance of distributed optimization algorithms across varying cluster sizes, enabling optimal algorithm and configuration selection. By combining system-level timing models with convergence rate models, it reduces trial-and-error in hyperparameter tuning, with initial results showing promise for convex optimization workloads in distributed ML settings.

ABSTRACT

Distributed optimization algorithms are widely used in many industrial machine learning applications. However choosing the appropriate algorithm and cluster size is often difficult for users as the performance and convergence rate of optimization algorithms vary with the size of the cluster. In this paper we make the case for an ML-optimizer that can select the appropriate algorithm and cluster size to use for a given problem. To do this we propose building two models: one that captures the system level characteristics of how computation, communication change as we increase cluster sizes and another that captures how convergence rates change with cluster sizes. We present preliminary results from our prototype implementation called Hemingway and discuss some of the challenges involved in developing such a system.

Motivation & Objective

  • To address the challenge of selecting optimal distributed optimization algorithms and cluster configurations for a given ML workload.
  • To model how convergence rates and system-level performance (computation + communication) change with increasing cluster size.
  • To reduce reliance on trial-and-error by building predictive models for training time and convergence behavior.
  • To enable automated recommendation of the best algorithm and cluster setup for a given problem and data.
  • To extend the approach to adaptive and asynchronous optimization settings, and eventually non-convex problems like deep learning.

Proposed method

  • Build a system-level model to predict per-iteration time based on cluster size, capturing trade-offs between computation and communication.
  • Develop a separate convergence rate model that tracks how optimization error decreases with increasing parallelism.
  • Combine both models to estimate total training time (per-iteration time × number of iterations) for different configurations.
  • Use prototype evaluations with CoCoA+ to calibrate and validate the models on real distributed workloads.
  • Leverage data acquisition techniques like experiment design and data subset bootstrapping to minimize training data and resource costs.
  • Design the system as a black-box model to be applicable across diverse distributed optimization algorithms without requiring algorithm-specific internals.

Experimental results

Research questions

  • RQ1How do convergence rates of distributed optimization algorithms change as cluster size increases?
  • RQ2How does the per-iteration time (computation + communication) vary with cluster size in data-parallel settings?
  • RQ3Can a combined model of system performance and convergence rate predict the optimal cluster size and algorithm for a given ML problem?
  • RQ4What data acquisition strategies minimize training overhead while maintaining model accuracy?
  • RQ5Can the modeling framework be extended to asynchronous algorithms and non-convex optimization problems like deep learning?

Key findings

  • Increasing cluster size reduces per-iteration computation time but increases communication overhead, leading to a trade-off in total training time.
  • Larger cluster sizes degrade convergence rates in algorithms like CoCoA due to reduced local update quality, even if per-iteration time decreases.
  • The combination of system-level and convergence models enables accurate prediction of optimal configuration, minimizing training time.
  • Preliminary results with CoCoA+ show that convergence rates can be extrapolated across different partition sizes and iterations.
  • The system can guide adaptive reconfiguration during training, such as adjusting parallelism as convergence progresses.
  • Challenges remain in scaling to non-convex optimization and minimizing data collection cost through efficient sampling and bootstrapping.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.