Efficient Serving of LLM Applications with Probabilistic Demand Modeling

Yifei Liu, Zuo Gan, Zhenghao Gan, Weiye Wang, Chen Chen +6 more
6/17/2025
cs.DCcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Applications based on Large Language Models (LLMs) contains a series of tasks to address real-world problems with boosted capability, which have dynamic demand volumes on diverse backends. Existing serving systems treat the resource demands of LLM applications as a blackbox, compromising end-to-end efficiency due to improper queuing order and backend warm up latency.

Show full abstract

We find that the resource demands of LLM applications can be modeled in a general and accurate manner with Probabilistic Demand Graph (PDGraph). We then propose Hermes, which leverages PDGraph for efficient serving of LLM applications. Confronting probabilistic demand description, Hermes applies the Gittins policy to determine the scheduling order that can minimize the average application completion time. It also uses the PDGraph model to help prewarm cold backends at proper moments. Experiments with diverse LLM applications confirm that Hermes can effectively improve the application serving efficiency, reducing the average completion time by over 70% and the P95 completion time by over 80%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025efficient,
  title  = {Efficient Serving of LLM Applications with Probabilistic Demand Modeling},
  author = {Yifei Liu and Zuo Gan and Zhenghao Gan and Weiye Wang and Chen Chen and Yizhou Shan and Xusheng Chen and Zhenhua Han and Yifei Zhu and Shixuan Sun and Minyi Guo},
  year   = {2025},
  eprint = {2506.14851},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14851v1}
}

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

Discussion