Evolving Infra: Agent-Adaptive LLM Serving at Scale
Hao Kang, Weili Xu, Ziyang Li, Zheng Du, Hanchen Li, Tian Xia, Song Bian, Tushar Krishna, Huizi Mao, Ion Stoica, Song Han
cs.DC
2026-11-09
Evolving Infra separates node phase from KV storage, switches in 6.2s, and cuts mean agent latency up to 4.1× and P95 TTFT up to 14× versus Dynamo on 36 GB300s.
Coding, math, and computer-use agents make one model call per step, with tools, sub-agents, and compaction in between. Compaction replaces a branch's history with a summary. Consecutive calls share a long prefix, so the KV cache (stored attention keys and values) can be reused, but the uncached input and the tokens to generate vary widely from step to step.
Putnam is decode-heavy: each step writes a long reasoning trace. OSWorld is prefill-heavy: each step appends a screenshot. Across those two and Claude Code, the best static split on nine nodes runs from 2P7D to 6P3D (x prefill nodes and y decode nodes). The mix moves. The best split in each 10-minute window drifts from 3P6D to 7P2D, and locking the cluster at 5P4D drops as much as 24% of throughput in some periods.
Recency does not say which KV is still useful. On Claude Code traces, about 98% of the prompt still matches cached KV after a 359-second sub-agent call, but only about 14% does after a 12-second compaction. LRU drops branches that are waiting on tools and keeps history the summary has already replaced.
Changing the prefill/decode split is expensive in current systems. Dynamo relaunches the worker: 681 seconds on average in the 90-agent motivation run, 754 seconds on average across the main runs. A reimplemented Arrow planner switches in place 34 times and misses 55.5% of the hits an unlimited shared cache would keep. Estimating prefill from the full input counts cached prefixes as new work, and a short pile-up of sub-agents is enough to force a switch. Pinning a request to the few nodes that hold its prefix pushes P95 TTFT (the 95th percentile of time to first token) to 27-34 seconds. Sending it somewhere without the prefix, so the prefix is recomputed, reaches 65 seconds. A shared pool that loads KV into GPU memory only when prefill starts reaches 95 seconds.
Evolving Infra separates a node's phase from where its KV lives. A symmetric engine runs both phases on one scheduling loop and moves KV in either direction over Mooncake RDMA. Changing phase means changing what the router sends. The process stays up. In-flight requests finish in place, queued requests move to other nodes of the current phase, and the KV stays readable from the pool.
The pool is host memory on every node. A prefill node reads a peer directly. While the request is still queued, it loads that KV onto the GPU and broadcasts it to every GPU on the node. Decode nodes only write the pool. Tokens they generate move GPU to GPU, so a host-memory read never sits on the decode path.
A cluster-wide prefix tree records, for each block on each node, how many active branches still reference it. The harness stamps a branch id on every request and reports when a branch finishes. Compaction bumps a version: blocks the new context drops lose a count, blocks it adds gain one. A transfer inside one phase moves the count to the destination. A transfer across phases keeps both copies, because the next step needs KV on both sides. Zero-count blocks go first: replaced history, finished sub-agents, and leftover copies from a transfer. Blocks some branch still references fall back to LRU.
Iteration time is fit online. Warmup uses nonnegative least squares, then the coefficients freeze. After that, only the average new tokens per iteration and the fraction restored from host memory are remeasured. Prefill splits uncached tokens from the cached prefix. The query-key pairs are about the product of the two, plus the triangular number of the uncached tokens. Decode is mostly weight traffic. At 8 or more running requests, context length moves iteration time by only 2-7% on these models, so that term stays out of the formula. Off the fitted points the mean error is under 7%: 4.2% for a single prefill, 6.3% for prefill batches of 2-8, and 2.6% for decode.
Every 600 seconds the planner scores candidate splits on the average request in the window, cut into 10 slices. Cluster throughput is whichever of prefill or decode is slower. A new split is taken only when its mean gain exceeds twice the standard error, which a short sub-agent burst does not clear. Stationary runs switch 2.0 times on average, against 3.6 for Dynamo. The router picks the prefill node with the lowest predicted TTFT and fetches KV while the request waits.
The main runs use nine nodes of four GB300 GPUs, 36 GPUs total, with tensor parallelism 4. Putnam and Claude Code run GLM-5.2. OSWorld runs Kimi K2.6. Weights are NVFP4, KV is FP8, and decoding uses multi-token prediction. Concurrency is 224/256/288 on Putnam, 90/108/126 on Claude Code, and 128/144/160 on OSWorld. Baselines are Dynamo v1.5.1 and the SGLang static split with the highest throughput over the run. Both start at 6P3D. The shifting run lasts three hours and moves from Putnam only to OSWorld only.
| Setting | Baseline | Result |
| Stationary mean end-to-end latency | Dynamo | 1.15-4.12× lower; coding 3.80-4.12×, computer use 2.34-2.69×, math 1.15-1.23× |
| Stationary P95 TTFT | Dynamo | 3.25-13.92× lower on coding and computer use; about 14× on the 90-agent coding case in Figure 1 |
| Stationary throughput | Dynamo | 1.10-2.73× |
| Lost KV reuse | Dynamo | 81-95% less |
| Phase switch | Dynamo relaunch, 754 s average | 6.2 s average, including the wait for in-flight requests, which keep running |
| Math shifting to computer use | Dynamo; best static 5P4D | Latency 2.15× and 1.33× lower; P95 TTFT 3.58× and 1.88× lower; throughput 2.14× and 1.28× |
| Throughput at the lowest concurrency | Best static split | 0.98-1.38× |
Figure 7's bars read 83.1 s, 51.5 s, and 38.7 s for mean end-to-end latency, and 130 s, 68.4 s, and 36.3 s for P95 TTFT: Dynamo, the best static split, then Evolving Infra.
On Claude Code at 126 agents, four starts from 3P6D to 6P3D all finish at 4P5D, and mean latency differs by at most 1.8%. Held at that split, the symmetric engine plus branch-counted eviction and routing already reaches 1.37× the throughput of the best static split. Async fetch alone cuts prefill idle time from 23.6% to 14.4% and lands at 1.12× upstream SGLang. Turning online resplits back on, once the split is already the best static one, costs 0.3% of throughput. Binary-search profiling of the same three-hour coding trace on 256 GPUs costs 10,752 GPU-hours.
On Claude Code, the busiest prefill node queues for 1.75-1.85× the average node, against 2.29-2.61× under cache-aware routing. LRU eviction of waiting branches accounts for 34-46% of the KV reuse Dynamo loses on that trace. Uncached prompt tokens that Dynamo still prefills reach 2.99× the Evolving Infra count.
A static split goes stale. In Figure 2 it gives up as much as 24% of throughput, and a new agent workload means profiling again. The online model follows average work after cache hits. A 10-minute window keeps a burst of sub-agents from flipping the split.
On a cluster that already separates prefill and decode, a resplit waits out in-flight requests instead of relaunching a node for minutes, and that node's KV does not vanish with the role change. Routing can spread requests by predicted time to first token. Eviction checks whether any live branch still points at the block.
At the lowest concurrency on a single workload, throughput can be only 0.98× the best static split. The gap opens when the mix moves and when contexts are compacted, forked, or left waiting.
The paper has no separate limitations section.
The directory needs the harness to send branch ids, finish events, and a version bump on compaction. Without those signals, a branch waiting on a tool is mixed up with history a summary has already replaced. Unmodified harnesses are outside the evaluation.
The coding numbers are trace replay. Trie pins output length and tool duration to the log, and the replayer preserves prefix overlap. In a closed loop, a different model output changes the next prefix and the prefill/decode balance.
The roughly 14× P95 comes from coding and computer use. On math, the planner keeps one or two prefill nodes. At 224 and 288 agents, P95 TTFT is higher than Dynamo, while mean latency is still 1.15-1.23× lower. Tail latency is spent on throughput.
KV capacity is ample on the GB300 nodes. Pausing waiting agents, as ThunderAgent does, reaches only 0.95× the throughput. The decode formula drops context length, and that choice was checked on these two thin-KV models at 8 or more concurrent requests. Arrow's source is closed, so the 34-switch number comes from a reimplemented planner. SGLang's runtime role switch rejects the speculative decoding these models use, so it is not in the comparison. Llumnix could not run on the GB300 Arm CPUs. On H200s, with DeepSeek-V4-Flash and 384 Claude Code sessions, Evolving Infra is 9% above the best static split and Llumnix is 12.2% below it. The paper says the gains still hold at 256 GPUs. The 3,072-GPU point is a simulation. The headline numbers are from 36 GPUs. The planning window is 600 seconds, and the fit coefficients stay frozen after warmup.