JIZHI: A Fast and Cost-Effective Model-As-A-Service System for Web-Scale Online Inference at Baidu

Hao Liu, Qian Gao, Jiang Li, Xiaochao Liao, Hao Xiong +7 more
6/3/2021
cs.IRcs.DCcs.LG

Official code: PaddlePaddle/Serving (927 stars, C++, Apache-2.0, last commit 2026-10-09).

Abstract

In modern internet industries, deep learning based recommender systems have became an indispensable building block for a wide spectrum of applications, such as search engine, news feed, and short video clips. However, it remains challenging to carry the well-trained deep models for online real-time inference serving, with respect to the time-varying web-scale traffics from billions of users, in a cost-effective manner.

Show full abstract

In this work, we present JIZHI - a Model-as-a-Service system - that per second handles hundreds of millions of online inference requests to huge deep models with more than trillions of sparse parameters, for over twenty real-time recommendation services at Baidu, Inc. In JIZHI, the inference workflow of every recommendation request is transformed to a Staged Event-Driven Pipeline (SEDP), where each node in the pipeline refers to a staged computation or I/O intensive task processor. With traffics of real-time inference requests arrived, each modularized processor can be run in a fully asynchronized way and managed separately. Besides, JIZHI introduces heterogeneous and hierarchical storage to further accelerate the online inference process by reducing unnecessary computations and potential data access latency induced by ultra-sparse model parameters. Moreover, an intelligent resource manager has been deployed to maximize the throughput of JIZHI over the shared infrastructure by searching the optimal resource allocation plan from historical logs and fine-tuning the load shedding policies over intermediate system feedback. Extensive experiments have been done to demonstrate the advantages of JIZHI from the perspectives of end-to-end service latency, system-wide throughput, and resource consumption. JIZHI has helped Baidu saved more than ten million US dollars in hardware and utility costs while handling 200% more traffics without sacrificing inference efficiency.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A flexible, high-performance carrier for machine learning models(『飞桨』服务化部署框架)

927245C++, PythonMar 31, 20191 months agoApache-2.0
dagdeep-learningdockergpumicro-service+10 more

Similar Papers

Cite this paper

@article{liu2021jizhi,
  title  = {JIZHI: A Fast and Cost-Effective Model-As-A-Service System for Web-Scale Online Inference at Baidu},
  author = {Hao Liu and Qian Gao and Jiang Li and Xiaochao Liao and Hao Xiong and Guangxing Chen and Wenlin Wang and Guobao Yang and Zhiwei Zha and Daxiang Dong and Dejing Dou and Haoyi Xiong},
  year   = {2021},
  eprint = {2106.01674},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01674}
}

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/2106.01674.svg)](https://codeofpaper.com/paper/2106.01674)

Discussion