Every time you type something into ChatGPT and hit send, a machine somewhere starts working. It reads your words, then writes back one word at a time until the thought is done. That moment, the answering, has a name. It is called inference. And it costs money every single time.

Training a model is the famous expensive part, the one that makes headlines. But training happens once. Inference happens forever, on every question from every user. So the real bill for running an AI service is the inference bill. The question that quietly decides whether an AI company makes money is simple to ask and hard to answer. How do you serve millions of people at once without the costs running away from you?

A new paper takes that question apart using an old idea from a strange place: traffic.

Why one machine is not enough

Start with what answering actually involves. There are two jobs, not one.

The first job is reading your prompt. The machine takes everything you typed and digests it in a single heavy burst. Engineers call this prefill. It is short and demanding, like a chef reading the whole order at once.

The second job is writing the reply. The machine produces the answer one word at a time, each word leaning on the words before it. This is called decode. It is a long slow drip, like the chef plating one dish, then the next.

These two jobs strain the hardware in different ways. Reading wants raw computing muscle. Writing wants fast memory more than muscle. Forcing one machine to do both means it is always good at one and clumsy at the other.

So large services break the work apart. Reading goes to one pool of chips. Writing goes to another. This splitting is what the paper means by disaggregated inference. Disaggregated is just a long word for broken into separate pieces. The pieces share one fixed budget of expensive chips, and they have to divide that budget between them.

Now you have a traffic problem

Here is where it gets interesting. Once you have separate pools fighting over a shared budget, and a flood of requests deciding which machine to land on, you no longer have one tidy system. You have a crowd. Each request wants the fastest machine for itself. Each pool wants more chips for its own job.

Picture rush hour. Every driver picks the lane that looks fastest right now. Each choice is perfectly sensible on its own. The result is a jam that is slower for everybody than if a single traffic controller had assigned lanes. Nobody meant to cause it. Selfish-but-reasonable choices added up to a mess.

Game theory has a name for the size of that mess. It is the price of anarchy. You compare how the system performs when everyone acts selfishly against how it would perform under perfect coordination. A price of anarchy of one means the selfish version is already as good as it gets. A bigger number means coordination would have helped, and the gap is wasted money and wasted time.

This paper is the first to measure that price for a real AI serving system, in this case NVIDIA Dynamo, the software that shuffles requests across machines.

The waste hides until the system fills up

The most useful finding is about timing. The waste does not climb steadily as the service gets busier. It stays flat, then it snaps.

The researchers ran a large model and slowly increased the number of people asking questions at the same time. Below a certain crowd size, the price of anarchy sat calmly around 19 and did not budge no matter how they tuned the routing rules. The system was busy but not full. Choices barely mattered.

Then the machines filled up. Engineers call this point saturation, the moment a system can take no more work without slowing down. Past it, the price of anarchy shot up to 284 at the heaviest load tested. Same software. Same model. The only thing that changed was that the road ran out of room.

The numbers underneath are blunt. The time to get the first word of an answer grew from about 70 milliseconds to 113 seconds as the crowd grew. That is roughly 1,500 times slower. Oddly, the speed of writing each following word barely changed. It was reading the prompts, the prefill job, that choked first and dragged everything down with it.

A referee who watches for the jam

If the trouble only shows up past saturation, then the fix only needs to show up past saturation too.

That is what the researchers built. A small program, about 270 lines of code wrapped around the existing router, that watches the system and waits. While traffic is light it does nothing and lets the normal rules run. The moment it detects the jam coming on, it switches the routing rules to a setting tuned for a crowded road.

It worked. On one model the worst first-word delays dropped by 7.6 times after the switch. On another the overall waste score fell more than threefold. Just as telling, the system stopped swinging wildly. Before the fix, the same setup gave very different results from run to run. After it, the numbers held steady.

There is a cost. Running the crowd-mode rules gives up some raw throughput, between roughly 13 and 36 percent in the tests, because steadier traffic moves a little slower than reckless traffic on a good day. That trade is the whole point. A predictable system that handles its worst moments well beats a fast system that falls apart when it matters.

What to take from this

Be careful about how far you carry these results. This is one paper, by a single author, built on one specific platform and run on a small cluster of three machines. Several of the experiments were done only once, so the exact figures should be read as direction, not gospel. The author says as much.

The idea underneath travels further than the numbers, though. The cost of running AI for a lot of people at once is not a flat line you can plan around. It is calm, then it is a cliff. The cliff sits at the point where the machines fill up, and the system gets dramatically worse right when demand is highest. That is the worst possible time for things to break.

For anyone weighing what it really takes to serve an AI product at scale, that shape is the lesson. The dangerous question is not how cheaply the system runs on a quiet afternoon. It is what happens the moment everybody shows up at once.

Sources: huggingface.co