← Latest papers
🔢 mathematics

Online Linear Programming for Multi-Objective Routing in LLM Serving

This paper proposes a science-based online linear programming framework with bid-price control and warm-started dual updates to optimize multi-objective routing in LLM serving, demonstrating superior latency and throughput performance compared to traditional heuristic approaches.

Original authors: Zixi Chen, Yinyu Ye, Zijie Zhou

Published 2026-07-07
📖 5 min read🧠 Deep dive

Original authors: Zixi Chen, Yinyu Ye, Zijie Zhou

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 busy, high-end restaurant kitchen. This kitchen has several parallel cooking stations (the GPUs), and customers (the AI requests) are arriving one by one.

In a normal kitchen, you might just send the next order to the first empty chef. But in this specific "AI restaurant," things are tricky:

  1. The Orders are Weird: Some orders are quick appetizers (short text), while others are massive, complex meals that take a long time to cook (long text generation). You don't know exactly how long an order will take until it's already being cooked.
  2. The Space is Tight: Each chef has a limited counter space (memory) and can only hold a certain number of plates on their stove at once (batch size). If you put too many plates on one stove, the whole station crashes.
  3. The Customers are Picky: Some customers want their food immediately (low latency), while others just want to know the kitchen is busy and efficient (high throughput). Sometimes, you have to choose: do you serve one customer super fast, or serve ten customers a little slower?

The Problem with Old Methods
Most kitchens today use simple rules, like "send the order to the chef with the shortest line" or "send it to the chef who is currently free." The paper argues these rules are like using a hammer to fix a watch. They don't understand the value of the order or the cost of the space it takes up. They can't easily balance the need for speed against the need to keep the kitchen running smoothly.

The New Solution: The "Smart Price Tag" System
The authors propose a new way to run the kitchen using a concept called Online Linear Programming. Think of this as a "Smart Price Tag" system for every inch of counter space and every minute of a chef's time.

Here is how it works, step-by-step:

1. The Shadow Price (The "Opportunity Cost")

Imagine every spot on a chef's stove has a hidden "price tag" attached to it. This isn't money; it's a Shadow Price.

  • If a stove is crowded and running out of space, the price tag goes up. This tells the router: "Be careful! Using this space now might mean we can't cook a huge, important meal later."
  • If a stove is empty, the price tag is low. It's cheap to use right now.

2. The Decision (Benefit vs. Cost)

When a new customer order arrives, the router doesn't just look at who is free. It does a quick math check:

  • The Benefit: How happy will this customer be? (Will they get their food fast? Will it help the kitchen's overall efficiency?)
  • The Cost: What is the sum of the "Shadow Prices" of the space this order needs?

The Rule: If the Benefit is higher than the Cost, the router says, "Yes, cook this!" If the Cost is too high (the stove is too expensive right now), the router might say, "Wait in line," or send it to a different, cheaper stove.

3. Learning on the Fly (The "Warm Start")

The kitchen is chaotic. The "price tags" change every second as new orders come in and old ones finish.

  • Old methods would try to recalculate the perfect plan from scratch every time a new order arrives. That takes too long (like trying to solve a giant puzzle while the food burns).
  • This new method uses a Smart Update. It remembers the prices from the last second and makes a tiny, quick adjustment (a "warm start") based on what just happened. It's like a chef who knows the general rhythm of the kitchen and just tweaks their movements slightly for the new order, rather than relearning how to cook every time.

4. The Multi-Goal Menu

The best part is that the kitchen manager can change the "menu" of goals instantly without rebuilding the kitchen.

  • Need speed? The manager turns up the "price" of waiting time. The router will prioritize getting food out fast, even if the kitchen gets a bit crowded.
  • Need efficiency? The manager turns up the "price" of wasted space. The router will pack orders tightly to get more done, even if some customers wait a tiny bit longer.
  • Need to fix the slowest customers? The manager can tell the system to specifically protect the "tail" (the slowest 1% of orders) so no one gets left behind.

The Results

The authors tested this "Smart Price Tag" system in a simulation of a massive AI kitchen. They compared it to the old "shortest line" rules.

  • The Result: The new system was much better at balancing the trade-offs. It could make the kitchen faster or more efficient depending on what the manager wanted, without breaking the system.
  • The Big Picture: The paper claims that using this "science-based" math approach is superior to the "guess-and-check" heuristics currently used in most AI systems. It gives the system a brain that understands the true cost of resources, rather than just following a simple rule.

In short: Instead of blindly sending orders to the first available chef, this system acts like a smart manager who knows exactly how much every second of time and every inch of counter space is worth, ensuring the kitchen runs perfectly no matter how crazy the rush gets.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →