Towards Demystifying Serverless Machine Learning Training

Jiawei Jiang, Shaoduo Gan, Yue Liu, Fanlin Wang, Gustavo Alonso +4 more
5/17/2021
cs.DCcs.LG

Official code: DS3Lab/LambdaML (9 stars, Python, Apache-2.0, last commit 2022-07-02).

Abstract

The appeal of serverless (FaaS) has triggered a growing interest on how to use it in data-intensive applications such as ETL, query processing, or machine learning (ML). Several systems exist for training large-scale ML models on top of serverless infrastructures (e.g., AWS Lambda) but with inconclusive results in terms of their performance and relative advantage over "serverful" infrastructures (IaaS).

Show full abstract

In this paper we present a systematic, comparative study of distributed ML training over FaaS and IaaS. We present a design space covering design choices such as optimization algorithms and synchronization protocols, and implement a platform, LambdaML, that enables a fair comparison between FaaS and IaaS. We present experimental results using LambdaML, and further develop an analytic model to capture cost/performance tradeoffs that must be considered when opting for a serverless infrastructure. Our results indicate that ML training pays off in serverless only for models with efficient (i.e., reduced) communication and that quickly converge. In general, FaaS can be much faster but it is never significantly cheaper than IaaS.

View on arXivView PDF

Code Implementations(1)

DS3Lab/LambdaMLOfficial100%
Apache-2.0

Machine learning on serverless platform

90Python, ShellOct 3, 20194 years agoApache-2.0

Similar Papers

Cite this paper

@article{jiang2021towards,
  title  = {Towards Demystifying Serverless Machine Learning Training},
  author = {Jiawei Jiang and Shaoduo Gan and Yue Liu and Fanlin Wang and Gustavo Alonso and Ana Klimovic and Ankit Singla and Wentao Wu and Ce Zhang},
  year   = {2021},
  eprint = {2105.07806},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.07806}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.07806.svg)](https://codeofpaper.com/paper/2105.07806)

Discussion