Introduction
Serving Machine Learning (ML) inferences in the public cloud involves navigating a complex landscape of trade-offs between accuracy, latency, and cost. Developers must choose between a vast array of model architectures and cloud resource types, often leading to inefficient over-provisioning or missed Service Level Objectives (SLOs). This paper introduces Paragon, a system designed to holistically manage model selection and resource procurement—combining Virtual Machines (VMs) and Serverless functions—to optimize deployment costs while strictly adhering to performance requirements.
The Challenge of Cloud ML Inference
Deploying models for tasks like face recognition or speech translation requires balancing two primary forms of heterogeneity:
- Model Heterogeneity: High-accuracy models (e.g., ResNet-200) often come with significant latency penalties compared to lightweight alternatives (e.g., MobileNet).
- Resource Heterogeneity: VMs offer cost-efficiency for steady workloads but scale slowly. Conversely, Serverless functions (e.g., AWS Lambda) provide near-instant scaling for "flash crowds" but at a higher per-request cost.
Existing solutions typically address these dimensions in isolation, leading to wasted resources during low traffic or performance degradation during spikes. Paragon argues for a simultaneous optimization of both model and resource types.
Characterizing the Trade-offs
The authors performed an extensive quantitative analysis of various Deep Neural Network (DNN) models to understand the relationship between accuracy and latency. This characterization is vital for implementing "ISO-latency" (maximizing accuracy for a given latency) and "ISO-accuracy" (minimizing latency for a given accuracy) strategies.
The Paragon System
Paragon employs a Mixed Procurement strategy. It utilizes VMs to handle baseline, steady-state traffic and dynamically offloads sudden bursts to Serverless functions. This "safety valve" approach ensures SLO compliance without the overhead of maintaining idle VM capacity.
Furthermore, the paper proposes a self-managed controller based on Deep Reinforcement Learning (PPO). This agent monitors system states like request rates and latency to dynamically adjust the model-resource mix, optimizing a multi-objective reward function encompassing cost, accuracy, and SLO adherence.
Key Results and Insights
- Cost Efficiency: Paragon achieves a 10% to 20% reduction in costs compared to state-of-the-art systems like Clipper or Cherrypick.
- Improved Reliability: The mixed procurement model reduces SLO violations by up to 60% compared to reactive VM-only scaling.
- Strategic Offloading: Paragon is "latency-aware," only utilizing expensive Serverless resources when a query is at risk of violating its latency bound.
- Serverless Dynamics: In platforms like AWS Lambda, increasing memory allocation also increases CPU power, creating a non-linear optimization space for cost and execution time.
Conclusion and Future Directions
Paragon demonstrates that joint optimization of model selection and resource mix is critical for efficient cloud ML serving. Future work includes integrating "Spot" instances for further cost savings and exploring model-specific optimizations like quantization and pruning within the management framework.
Summary updated