Astrolabe: Balancing Load in LLM Serving with Randomized Prediction-Guided Scheduling
Astrolabe is a randomized prediction-guided scheduler for multi-instance LLM serving that achieves superior load balancing and reduced latency by combining response-length estimation, simulation-based latency prediction, and a power-of-two-choices dispatch policy, thereby eliminating the need for costly migration-based rebalancing.
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 you are running a massive, high-tech bakery that specializes in baking "thought-cakes" for millions of customers at once. In this bakery, the ovens are incredibly powerful, but the recipes are tricky. Sometimes a customer asks for a simple cookie (a short answer), and sometimes they ask for a ten-layer wedding cake (a long, complex answer). The problem is that the bakers (the computers) don't know how big the cake will be until they start baking it. If a baker gets stuck with a huge order while everyone else is idle, the line backs up, and customers get angry.
To fix this, many bakeries used to have a "runner" who would run between ovens, grabbing half-baked cakes and moving them to a freer oven if one got too busy. This is called "migration." But in the world of artificial intelligence, moving these half-baked cakes is messy and slow. It's like trying to carry a giant, fragile, half-frozen cake across a crowded room without dropping it; it takes up a lot of energy, clogs the hallways, and often makes the whole bakery slower. This paper, titled "Astrolabe," asks a bold question: What if we didn't need to move the cakes at all? What if we could just guess the size of the order before it even hits the oven, and send it to the right baker immediately?
The authors of this paper, Wei Da and Evangelia Kalyvianaki from the University of Cambridge, built a new system called Astrolabe to solve this exact problem. They found that instead of frantically running back and forth to shuffle work around, you can use a clever "guessing game" to send orders to the right place instantly.
Here is how Astrolabe works, using a simple game of chance. Imagine you have a dozen bakers. When a new order comes in, instead of asking every single baker how busy they are (which takes too long) or just picking one at random (which is risky), the system picks two bakers at random. It quickly asks them, "If you took this order right now, how long would it take?" One of them might say, "About 10 seconds," and the other might say, "About 50 seconds." The system instantly picks the 10-second baker and sends the order there.
This trick is called "power-of-two choices." It's like walking into a crowded cafeteria and picking the shortest line by only checking two lines instead of scanning the whole room. The paper shows that this simple random check is surprisingly powerful. By combining this with a "crystal ball" (a prediction model) that guesses how long the AI's answer will be, Astrolabe can route requests to the best baker before the line even starts to form.
The results are quite impressive. In their tests, Astrolabe managed to handle just as many requests as the old "runner" method (migration), but without the messy overhead of moving data around. In fact, when the bakery got super busy, the old method started to collapse, with wait times jumping from seconds to minutes. Astrolabe, however, kept things smooth. It reduced the time it took to get the first word of an answer by up to 77% in some cases and cut down on the number of times orders had to be interrupted and restarted by about 6 times compared to the competition.
The paper also tested what happens if the "crystal ball" isn't perfect. Even when the predictions were a bit off (which happens in real life), the system still worked better than the old ways. It turns out that because the system only compares two bakers at a time, small mistakes in guessing don't matter as much as you'd think. If both bakers are guessed to be slow, the system just picks the "less slow" one, and the math still works out.
The authors also checked if this would work if they changed the type of oven or the kind of cake being baked. They tried different models and different settings, and Astrolabe kept winning. It seems that this "guess-and-check" approach is a robust way to keep AI systems running fast, even when the workload is chaotic and unpredictable.
In short, the paper suggests that we don't need to build complex, heavy-duty systems to move work around to balance the load. Instead, a little bit of randomness and a good guess about the future can do the job much faster and more efficiently. It's a reminder that sometimes, the smartest way to manage a crowd isn't to micromanage every single person, but to give them a few good options and let them choose the best path.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.