Navigation menu
Evolving Infra: Agent-Adaptive LLM Serving at Scale
Evolving Infra: Agent-Adaptive LLM Serving at Scale
Hao Kang, Weili Xu, Ziyang Li, Zheng Du, Hanchen Li, Tian Xia et al.
2026-11-12▲ 10arXiv 2611.12304v2Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
Evolving Infra is an agent-adaptive PD-disaggregated serving framework that decouples compute allocation from KV cache management and uses online iteration-time models plus branch-aware KV reuse to improve latency and throughput on agentic workloads.
Problem
Agentic workloads vary across agents, over time, and within each agent, while existing PD-disaggregated serving keeps compute allocation coupled to KV cache management and relies on coarse signals. Phase switches either relaunch workers, taking minutes, or strand cached KV; online planners misestimate prefill and decode demand; routers and eviction policies misjudge branch KV reuse. These limitations cause load imbalance between prefill and decode nodes and eviction of KV that active branches will reuse.
Method
Evolving Infra builds a symmetric engine on SGLang with one scheduling loop for both phases and a bidirectional RDMA KV transfer protocol, so the planner can reassign a node's phase without restart. KV is pooled across host memory of all nodes; a prefill node pulls reusable KV from a peer's L2 and completes the fetch while the request waits. A cluster-wide prefix-tree KV directory records per-block, per-node counts of active branches and updates them on append, fork, compaction, branch end, and KV transfer. The planner fits per-node prefill and decode iteration-time models online, separates cached from uncached prefill tokens, evaluates splits on average request work over a window, and switches only when a candidate's mean gain exceeds twice its standard error. Eviction removes zero-count blocks first in LRU order; routing sends each prefill request to the node with the shortest predicted TTFT.
Results
- On stationary coding, math, and computer-use workloads, Evolving Infra improves throughput, lost KV reuse, mean E2E latency, and P95 TTFT over Dynamo, and its phase switches are much cheaper. §6.2
- The planner selects different PD splits by workload and switches far less often than Dynamo; on decode-heavy Putnam it trades P95 TTFT for throughput. §6.2
- KV-reuse-aware routing and eviction reduce P95 TTFT on CC and OSWorld and keep prefill queues more balanced; LRU eviction accounts for a large share of Dynamo's lost KV reuse on CC. §6.2
- Under a shifting workload composition from Putnam to OSWorld, Evolving Infra tracks the best per-window split and improves latency and throughput over Dynamo and the best static split. §6.3
- Ablation shows similar latency from four initial splits, component gains without online adaptation, a small throughput cost of adaptation, and a large offline-profiling cost avoided. §6.4
Limitations
- Each run starts with a 30-minute warmup that is excluded from measurement, so reported results are steady-state after warmup rather than from cold start (§6.1).
- Scaling to 3,072 GPUs is evaluated in simulation, not on real hardware (§D.2, §7).
- The KV directory depends on harness-provided branch IDs and finish or compaction signals; its counts follow agent context management only if the harness reports these events (§4.3).
- On decode-heavy Putnam, the planner keeps one or two prefill nodes and raises P95 TTFT above Dynamo at 224 and 288 agents while lowering mean E2E latency (§6.2).
Key points
- Every node runs an engine that serves both phases with one scheduling loop and a KV transfer protocol that works in either direction; the router changes the request type it sends to switch phase without restart. §4.1
- All nodes' host memory forms a shared KV pool; each node caches KV in GPU memory and writes through to host memory in both phases, and prefill nodes pull peer L2 KV over RDMA. §4.2
- Evolving Infra completes the whole KV fetch while a request is queued and loads it into GPU memory before prefill, unlike HiCache prefetching only into host memory during the wait. §4.2
- The KV directory is a prefix tree that records, for each block on each node, how many active branches reference it; it updates counts on append, fork, compaction, finish, and same-phase or cross-phase transfers. §4.3
- Prefill iteration time is modeled from uncached tokens, query–key pairs, restored tokens, and fixed cost; decode iteration time from fixed cost, routed-expert fraction, and running requests; coefficients are fitted online by nonnegative least squares. §5.1
- The planner evaluates candidate PD splits by min prefill or decode throughput on average work and average decode queue over window slices, and switches only if mean gain exceeds twice standard error. §5.2
- Each node evicts zero-count blocks first in LRU order and positive-count blocks only afterward; the router picks the prefill node with the smallest predicted TTFT, including queue, service time, exposed fetch, and copy price. §5.3
- Evaluation uses 36 GB300 GPUs with GLM-5.2 or Kimi K2.6 at TP4, serving Putnam, OSWorld, and Claude Code traces; baselines are Dynamo v1.5.1 and the best static SGLang PD split, both with HiCache LRU. §6.1
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

