English

Scalable and Cost-Efficient ML Inference: Parallel Batch Processing with Serverless Functions

Distributed, Parallel, and Cluster Computing 2025-02-18 v1 Machine Learning

Abstract

As data-intensive applications grow, batch processing in limited-resource environments faces scalability and resource management challenges. Serverless computing offers a flexible alternative, enabling dynamic resource allocation and automatic scaling. This paper explores how serverless architectures can make large-scale ML inference tasks faster and cost-effective by decomposing monolithic processes into parallel functions. Through a case study on sentiment analysis using the DistilBERT model and the IMDb dataset, we demonstrate that serverless parallel processing can reduce execution time by over 95% compared to monolithic approaches, at the same cost.

Keywords

Cite

@article{arxiv.2502.12017,
  title  = {Scalable and Cost-Efficient ML Inference: Parallel Batch Processing with Serverless Functions},
  author = {Amine Barrak and Emna Ksontini},
  journal= {arXiv preprint arXiv:2502.12017},
  year   = {2025}
}