HeraSys: Collaborative Serving of Multiple LLM Workflows via Fine-Grained End-to-End Optimization
Abstract
Lay Summary
LLM-based applications often answer user requests through several connected steps, such as retrieving documents, using external tools, and generating a final response. When many requests run at the same time, current serving systems usually handle them separately, which can repeat shared work and cause some requests to wait much longer than others. HeraSys is a serving system that coordinates many active workflows together instead of treating them one by one. It breaks workflows into smaller steps, reuses steps that are shared across requests, and schedules the remaining work to balance quick responses with steady progress for longer requests. Experiments on retrieval, web search, and mixed workloads show that HeraSys reduces long waits and helps the system serve more requests under the same latency requirement. This can make LLM applications faster, fairer, and more efficient to run.