# BARISTA: Efficient and Scalable Serverless Serving System for Deep   Learning Prediction Services

**Authors:** Anirban Bhattacharjee, Ajay Dev Chhokra, Zhuangwei Kang, Hongyang Sun,, Aniruddha Gokhale, Gabor Karsai

arXiv: 1904.01576 · 2019-12-30

## TL;DR

Barista is a scalable serverless system for deep learning prediction services that optimizes resource management and workload forecasting to ensure low latency and cost efficiency.

## Contribution

It introduces a novel workload forecasting method, an optimization framework, and an intelligent resource management agent for serverless deep learning serving.

## Key findings

- Effective workload forecasting identifies usage trends.
- Cost minimization with bounded latency is achievable.
- Barista outperforms baseline systems in real-world tests.

## Abstract

Pre-trained deep learning models are increasingly being used to offer a variety of compute-intensive predictive analytics services such as fitness tracking, speech and image recognition. The stateless and highly parallelizable nature of deep learning models makes them well-suited for serverless computing paradigm. However, making effective resource management decisions for these services is a hard problem due to the dynamic workloads and diverse set of available resource configurations that have their deployment and management costs. To address these challenges, we present a distributed and scalable deep-learning prediction serving system called Barista and make the following contributions. First, we present a fast and effective methodology for forecasting workloads by identifying various trends. Second, we formulate an optimization problem to minimize the total cost incurred while ensuring bounded prediction latency with reasonable accuracy. Third, we propose an efficient heuristic to identify suitable compute resource configurations. Fourth, we propose an intelligent agent to allocate and manage the compute resources by horizontal and vertical scaling to maintain the required prediction latency. Finally, using representative real-world workloads for urban transportation service, we demonstrate and validate the capabilities of Barista.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.01576/full.md

## Figures

18 figures with captions in the complete paper: https://tomesphere.com/paper/1904.01576/full.md

## References

45 references — full list in the complete paper: https://tomesphere.com/paper/1904.01576/full.md

---
Source: https://tomesphere.com/paper/1904.01576