[Paper Review] Serverless Model Serving for Data Science.
This paper evaluates serverless computing as a viable platform for machine learning model serving in data science, demonstrating that it outperforms traditional cloud and GPU-based systems in cost and latency under certain conditions. The authors conduct a cross-cloud performance and cost evaluation on AWS and GCP, showing serverless can match or exceed GPU systems in efficiency, especially for variable or low-to-moderate workloads.
Machine learning (ML) is an important part of modern data science applications. Data scientists today have to manage the end-to-end ML life cycle that includes both model training and model serving, the latter of which is essential, as it makes their works available to end-users. Systems for model serving require high performance, low cost, and ease of management. Cloud providers are already offering model serving options, including managed services and self-rented servers. Recently, serverless computing, whose advantages include high elasticity and fine-grained cost model, brings another possibility for model serving. In this paper, we study the viability of serverless as a mainstream model serving platform for data science applications. We conduct a comprehensive evaluation of the performance and cost of serverless against other model serving systems on two clouds: Amazon Web Service (AWS) and Google Cloud Platform (GCP). We find that serverless outperforms many cloud-based alternatives with respect to cost and performance. More interestingly, under some circumstances, it can even outperform GPU-based systems for both average latency and cost. These results are different from previous works' claim that serverless is not suitable for model serving, and are contrary to the conventional wisdom that GPU-based systems are better for ML workloads than CPU-based systems. Other findings include a large gap in cold start time between AWS and GCP serverless functions, and serverless' low sensitivity to changes in workloads or models. Our evaluation results indicate that serverless is a viable option for model serving. Finally, we present several practical recommendations for data scientists on how to use serverless for scalable and cost-effective model serving.
Motivation & Objective
- To assess the viability of serverless computing as a mainstream platform for model serving in data science applications.
- To compare the performance and cost of serverless with traditional cloud-based and GPU-accelerated model serving systems.
- To identify performance bottlenecks and cross-platform differences, particularly in cold start latency between AWS and GCP.
- To provide practical recommendations for data scientists on deploying scalable, cost-effective model serving using serverless.
- To challenge the prevailing belief that serverless is unsuitable for ML workloads and that GPU systems are inherently superior for model inference.
Proposed method
- Conduct a comprehensive benchmarking evaluation of model serving systems across AWS and Google Cloud Platform (GCP).
- Use real-world data science workloads to measure latency, throughput, and cost across different model types and input sizes.
- Implement and compare multiple model serving architectures: serverless functions (AWS Lambda, GCP Cloud Functions), managed GPU instances, and self-hosted CPU/GPU servers.
- Analyze cold start performance differences between AWS and GCP serverless platforms.
- Evaluate system sensitivity to workload fluctuations and model complexity changes.
- Derive practical deployment guidelines based on performance and cost trade-offs across diverse scenarios.
Experimental results
Research questions
- RQ1Can serverless computing deliver competitive performance and cost efficiency for machine learning model serving compared to GPU-based and managed cloud alternatives?
- RQ2How do cold start latencies of serverless functions differ between AWS and GCP, and what impact do they have on overall system performance?
- RQ3Under what workload conditions does serverless outperform GPU-accelerated systems in both latency and cost?
- RQ4How sensitive is serverless model serving to changes in model size, input data, or request frequency?
- RQ5What are the practical deployment considerations for data scientists adopting serverless for scalable and cost-effective model serving?
Key findings
- Serverless outperforms many cloud-based alternatives in both cost and performance, particularly for workloads with moderate to low request rates.
- Under certain conditions, serverless achieves lower average latency and cost than GPU-based systems, challenging the assumption that GPUs are always superior for inference.
- A significant gap in cold start latency exists between AWS and GCP serverless functions, with GCP exhibiting notably longer cold starts.
- Serverless demonstrates low sensitivity to changes in workload volume and model complexity, indicating strong adaptability to dynamic data science workloads.
- The performance and cost advantages of serverless are most pronounced in scenarios with variable or bursty workloads, where fine-grained resource allocation reduces idle costs.
- The study provides actionable recommendations for data scientists to leverage serverless for scalable, cost-effective, and performant model serving.
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.