Skip to main navigation Skip to search Skip to main content

Leveraging Intra-Function Parallelism in Serverless Machine Learning

Ionut Predoaia*, Pedro García-López

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Running stateful machine learning algorithms with serverless architectures inherently induces overheads, as serverless functions are not directly network-addressable, hence one must rely on a remote storage service for storing the shared state. To hide the access latency to the remote storage, one can employ intra-function parallelism to take advantage of the multicore computing resources of the serverless functions. In this work, we port to serverless two stateful machine learning algorithms, k-means clustering and logistic regression, and then adopt intra-function parallelism to parallelize the execution of the serverless functions. Several experiments have demonstrated that intra-function parallelism delivers performance improvements in serverless machine learning. Improved performances of up to 68% have been achieved when running k-means on serverless functions that employ intra-function parallelism. We demonstrate with k-means and logistic regression that from a performance perspective it is preferable to execute a smaller number of multiple-vCPUs workers than a larger number of single-vCPU workers, due to decreased synchronization overheads.
Original languageEnglish
Title of host publicationWoSC '23: Proceedings of the 9th International Workshop on Serverless Computing
PublisherACM
Pages36–41
Number of pages6
ISBN (Electronic)979-8-4007-0455-0
DOIs
Publication statusPublished - 11 Dec 2023
Event9th International Workshop on Serverless Computing, WoSC '23 - Bologna, Italy
Duration: 11 Dec 202315 Dec 2023
https://www.serverlesscomputing.org/wosc9

Workshop

Workshop9th International Workshop on Serverless Computing, WoSC '23
Country/TerritoryItaly
CityBologna
Period11/12/2315/12/23
Internet address

Bibliographical note

This is an author-produced version of the published paper. Uploaded in accordance with the University’s Research Publications and Open Access policy.

Keywords

  • Intra-Function Parallelism
  • Lithops
  • Machine Learning
  • Multicore Functions
  • Serverless
  • Stateful

Cite this