Lune

VLDB2022Top-tier venue

Optimizing Inference Serving on Serverless Platforms

Ahsan Ali, Riccardo Pinciroli, Feng Yan, Evgenia Smirni

Abstract

Serverless computing is gaining popularity for machine learning (ML) serving workload due to its autonomous resource scaling, easy to use and pay-per-use cost model. Existing serverless platforms work well for image-based ML inference, where requests are homogeneous in service demands. That said, recent advances in natural language processing could not fully benefit from existing serverless platforms as their requests are intrinsically heterogeneous. Batching requests for processing can significantly increase ML serving efficiency while reducing monetary cost, thanks to the pay-per-use pricing model adopted by serverless platforms. Yet, batching heterogeneous ML requests leads to additional computation overhead as small requests need to be "padded" to the same size as large requests within the same batch. Reaching effective batching decisions (i.e., which requests should be batched together and why) is non-trivial: the padding overhead coupled with the serverless auto-scaling forms a complex optimization problem. To address this, we develop Multi-Buffer Serving (MBS), a framework that optimizes the batching of heterogeneous ML inference serving requests to minimize their monetary cost while meeting their service level objectives (SLOs). The core of MBS is a performance and cost estimator driven by analytical models supercharged by a Bayesian optimizer. MBS is prototyped and evaluated on AWS using bursty workloads. Experimental results show that MBS preserves SLOs while outperforming the state-of-the-art by up to 8 x in terms of cost savings while minimizing the padding overhead by up to 37 x with 3 x less number of serverless function invocations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SpotServe: Serving Generative Large Language Models on Preemptible Instances cites Batch: machine learning inference serving on serverless platforms with adaptive batching
  • SpotServe: Serving Generative Large Language Models on Preemptible Instances cites TurboTransformers: an efficient GPU serving system for transformer models
  • HexGen: Generative Inference of Large Language Model over Heterogeneous Environment cites TurboTransformers: an efficient GPU serving system for transformer models
  • SONIC: Application-aware Data Passing for Chained Serverless Applications cites Lambada: Interactive Data Analytics on Cold Data Using Serverless Cloud Infrastructure
  • Optimus: Warming Serverless ML Inference via Inter-Function Model Transformation cites Batch: machine learning inference serving on serverless platforms with adaptive batching
  • Optimus: Warming Serverless ML Inference via Inter-Function Model Transformation cites Lambada: Interactive Data Analytics on Cold Data Using Serverless Cloud Infrastructure
  • FaaSGraph: Enabling Scalable, Efficient, and Cost-Effective Graph Processing with Serverless Computing cites SONIC: Application-aware Data Passing for Chained Serverless Applications
  • FaaSGraph: Enabling Scalable, Efficient, and Cost-Effective Graph Processing with Serverless Computing cites Batch: machine learning inference serving on serverless platforms with adaptive batching
  • FaaSGraph: Enabling Scalable, Efficient, and Cost-Effective Graph Processing with Serverless Computing cites Lambada: Interactive Data Analytics on Cold Data Using Serverless Cloud Infrastructure
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. SpotServe: Serving Generative Large Language Models on Preemptible InstancesXupeng Miao, Chunan Shi, Jiangfei Duan, Xiaoli Xi et al.ASPLOS 2024 · 71 citations
  2. HexGen: Generative Inference of Large Language Model over Heterogeneous EnvironmentYouhe Jiang, Ran Yan, Xiaozhe Yao, Yang Zhou et al.ICML 2024 · 46 citations
  3. Optimus: Warming Serverless ML Inference via Inter-Function Model TransformationZicong Hong, Jian Lin, Song Guo, Sifu Luo et al.EuroSys 2024 · 29 citations
  4. BlitzScale: Fast and Live Large Model Autoscaling with O(1) Host CachingDingyan Zhang, Haotian Wang, Yang Liu, Xingda Wei et al.OSDI 2025 · 29 citations
  5. FaaSGraph: Enabling Scalable, Efficient, and Cost-Effective Graph Processing with Serverless ComputingYushi Liu, Shixuan Sun, Zijun Li, Quan Chen et al.ASPLOS 2024 · 14 citations

Builds on8

  1. Batch: machine learning inference serving on serverless platforms with adaptive batchingAhsan Ali, Riccardo Pinciroli, Feng Yan, Evgenia SmirniSC 2020 · 184 citations
  2. SONIC: Application-aware Data Passing for Chained Serverless ApplicationsAshraf Mahgoub, Karthick Shankar, Subrata Mitra, Ana Klimovic et al.USENIX ATC 2021 · 170 citations
  3. AutoFocus: Efficient Multi-Scale InferenceMahyar Najibi, Bharat Singh, Larry DavisICCV 2019 · 143 citations
  4. Lambada: Interactive Data Analytics on Cold Data Using Serverless Cloud InfrastructureIngo Müller, Renato Marroquín, Gustavo AlonsoSIGMOD 2020 · 135 citations
  5. TurboTransformers: an efficient GPU serving system for transformer modelsJiarui Fang, Yang Yu, Chengduo Zhao, Jie ZhouPPoPP 2021 · 117 citations

Related papers

  1. Towards Resource-Efficient Serverless LLM Inference with SLINFERChuhao Xu, Zijun Li, Quan Chen, Han Zhao et al.HPCA 2026
  2. Optimizing Distributed Deployment of Mixture-of-Experts Model Inference in Serverless ComputingMengfan Liu, Wei Wang, Chuan WuINFOCOM 2025 · 6 citations
  3. SMIless: Serving DAG-based Inference with Dynamic Invocations under Serverless ComputingChengzhi Lu, Huanle Xu, Yudan Li, Wenyan Chen et al.SC 2024 · 8 citations
  4. INFless: a native serverless system for low-latency, high-throughput inferenceYanan Yang, Laiping Zhao, Yiming Li, Huanyu Zhang et al.ASPLOS 2022 · 145 citations
  5. Lazy Batching: An SLA-aware Batching System for Cloud Machine Learning InferenceYujeong Choi, Yunseong Kim, Minsoo RhuHPCA 2021 · 65 citations
Dusk over the sea between two cliffs drawn in fine vertical lines