Skip to main content
QUICK REVIEW

[Paper Review] AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving

Zhuohan Li, Lianmin Zheng|ArXiv.org|Feb 22, 2023
Cloud Computing and Resource ManagementComputer Science20 citations
TL;DR

AlpaServe automatically partitions and places collections of large deep learning models across a cluster, leveraging model parallelism to enable statistical multiplexing and improved SLO attainment under bursty workloads.

ABSTRACT

Model parallelism is conventionally viewed as a method to scale a single large deep learning model beyond the memory limits of a single device. In this paper, we demonstrate that model parallelism can be additionally used for the statistical multiplexing of multiple devices when serving multiple models, even when a single model can fit into a single device. Our work reveals a fundamental trade-off between the overhead introduced by model parallelism and the opportunity to exploit statistical multiplexing to reduce serving latency in the presence of bursty workloads. We explore the new trade-off space and present a novel serving system, AlpaServe, that determines an efficient strategy for placing and parallelizing collections of large deep learning models across a distributed cluster. Evaluation results on production workloads show that AlpaServe can process requests at up to 10x higher rates or 6x more burstiness while staying within latency constraints for more than 99% of requests.

Motivation & Objective

  • Motivate and analyze the use of model parallelism for serving multiple large models beyond memory limits.
  • Characterize the trade-offs between model-parallel overhead and statistical multiplexing gains in latency-sensitive serving.
  • Develop algorithms to automatically partition, place, and schedule multiple models across a cluster to maximize SLO attainment.

Proposed method

  • Extend Autoparallelization (based on Alpa) to serving by focusing on forward propagation and minimizing maximal stage latency.
  • Develop a two-level simulator-guided greedy placement algorithm to optimize model replication, grouping, and model-parallel configurations across device groups.
  • Use DP-based inter-op and ILP-based intra-op analyses to enumerate candidate parallel configurations for serving workloads.
  • Integrate a simulator to estimate SLO attainment under predicted workload patterns and guide placement decisions.
  • Provide extensions to training-oriented auto-parallelization to suit inference workloads where weight synchronization is unnecessary.

Experimental results

Research questions

  • RQ1Under what conditions does model parallelism improve serving latency and SLO attainment for multi-model workloads?
  • RQ2How should a cluster be partitioned and which models should be co-located or replicated to maximize SLO attainment under bursty requests?
  • RQ3What are the overheads of inter-op and intra-op parallelism in serving, and how do they influence placement decisions?
  • RQ4Can automated pruning of the configuration space effectively identify high-performing model-parallel serving strategies?

Key findings

  • Model parallelism enables statistical multiplexing across devices, reducing average latency and increasing burst tolerance, especially when memory is limited or workloads are bursty.
  • With bursty (high CV) arrivals, model-parallel placements can achieve up to 1.9x speedup in mean latency in the illustrated two-model, two-GPU scenario.
  • Model parallelism can reduce SLO violations when SLOs are tight (short deadlines) but may underperform replication for looser SLOs due to overheads.
  • Overheads in inter-op parallelism are mainly due to stage imbalance, while intra-op overheads are dominated by inter-device communication, yet both affect throughput and latency differently.
  • A simulator-guided greedy placement algorithm can achieve high SLO attainment (often >98%) by optimally placing and configuring model replicas and groups across the cluster.

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.