HeraSys: Collaborative Serving of Multiple LLM Workflows via Fine-Grained End-to-End Optimization
HeraSys is an LLM serving system that optimizes the end-to-end performance of concurrent multi-tenant workflows by eliminating cross-workflow computational redundancy through structural node merging and employing a load-aware joint scheduling policy to significantly reduce tail latency while increasing throughput.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a bustling kitchen where a team of chefs is trying to cook hundreds of complex meals at once. In the world of Artificial Intelligence, these "meals" are tasks performed by Large Language Models (LLMs)—the super-smart computer brains that write stories, answer questions, and solve problems. Usually, when you ask an AI to do something, it's treated like a single, isolated order. But in the real world, applications are becoming more like elaborate banquets: a single request might involve searching for information, checking a database, and then writing a summary, all in one go. These are called "workflows."
The problem is that when many people order these complex banquets at the same time, the kitchen gets chaotic. If two customers ask for the same ingredient to be chopped, the kitchen might chop it twice, wasting time and energy. Worse, if one customer orders a massive, slow-cooking stew, the chefs might get stuck on it, leaving everyone else waiting for their quick salads to be served. This is the challenge of "serving" AI: how do you manage a flood of complex, overlapping requests without the system grinding to a halt or leaving some people waiting forever?
This is where a new system called HeraSys steps in. Think of HeraSys as a revolutionary kitchen manager who doesn't just look at one order at a time, but watches the entire kitchen floor to see how different orders can help each other. Instead of treating every request as a separate island, HeraSys looks for overlaps. If two different customers need the same document analyzed or the same tool used, HeraSys says, "Hey, let's do that once and share the result!" It also acts like a traffic cop, ensuring that the quick, simple orders don't get stuck behind the slow, heavy ones, and that the slow ones don't get starved of attention.
The researchers behind HeraSys built a system that breaks down these complex AI tasks into tiny, fine-grained pieces. They found that by merging duplicate steps and smartly scheduling who gets the kitchen's resources (like powerful computer chips), they could make the whole system much faster. In their tests, they showed that HeraSys could cut the time it takes for the slowest requests to finish by up to 2.17 times (meaning they were more than twice as fast) and increased the total number of tasks the system could handle by up to 1.85 times compared to the best existing systems.
The paper argues against the old way of doing things, where systems treat every request as an independent, isolated job. They show that this "isolation" creates unnecessary waste and bottlenecks. Instead, they propose a collaborative approach where the system actively looks for shared work. They also argue against simple scheduling rules like "first come, first served," which can cause long tasks to block everyone else, or "shortest job first," which can make long tasks wait forever. HeraSys suggests a balanced, "load-aware" strategy that reserves some resources for the heavy tasks while prioritizing the quick ones, ensuring fairness and speed for everyone.
The results, measured through extensive experiments on real hardware, suggest that this fine-grained, collaborative approach is a significant step forward. By fusing redundant steps and dynamically adjusting how tasks are grouped and executed, HeraSys manages to keep the average wait time low while preventing the "tail" of slow, frustrating delays that often plague complex AI systems. It's a bit like realizing that if you organize a group of friends to clean a house, you shouldn't just assign each person a room; you should notice that two people are both vacuuming the same hallway and have them work together, while making sure the person washing the windows doesn't get stuck waiting for the vacuum cleaner.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.