RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement
Wu et al. in Inference & systems
How can a live LLM engine improve without restarting?
RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement
The agent's loop outruns restart-based serving
Recursive self-improvement (RSI) lets coding agents tune live serving. An idealized zero-update-cost view of a 4-hour DS4.1 campaign shows 95 full-stack edits and five reverts. Code edits force restarts; hot patches risk stale CUDA graphs.
It keeps weights, pools and communicators resident while reloading stateless serving logic. Explicit ownership and GPU-binding contracts tell the control plane what to rebuild.
Three contracts make live GPU updates tractable
- 1
Separate lifetimes
Pinned state units keep weights, pools and communicators resident; stateless logic can reload.
- 2
Track graph bindings
Dependencies are live, by-address (device pointers) or by-value (captured code), telling the planner what must be rebuilt.
- 3
Name candidates
Hash code, configuration, topology and weights into a named identity; cold-check milestones asynchronously.
State stays pinned beneath reloadable logic

Captured graphs bind by value to logic units and by address to pinned state units. A stable microkernel sits beneath; an O(1) staleness guard checks replay.
Updates cross GPU ranks as one transaction
- 1
Check and plan
AST/manifest checks reject undeclared imports, mutable globals and captures; the planner picks the lowest safe rung.
- 2
Stage off-path
Read-only snapshots and kernel builds stage while the old version serves.
- 3
Pause at one epoch
For draining edits, ranks pause at a shared scheduler epoch; invalid graphs are destroyed before their buffers.
- 4
Commit together
A durable two-round barrier resumes ranks together; failures unwind, and failed rollback freezes the engine.
Warm tests can miss a cold-start defect
A Qwen3.8 candidate passed every warm test over buffers left populated by earlier traffic.
The same patch failed all 355 cold graph replays. Async milestone checks compare fast paths with batch-invariant references; live reverts returned to canonical identity with zero HBM residue.
A warm pass cannot replace a cold-state check.
Live updates fit an agent's trial loop
Warm SGLang 0.5.23 restarts took 85 s for 1-GPU Qwen3.8 and 262 s for 4-GPU DS4.1, with default CUDA graphs.
On 1-GPU Qwen3.8, code/config edits commit in 1.00–2.22 s. Warm-cache restart comparisons with CUDA graphs disabled for all systems show 32×–99× speedups over SGLang/vLLM.
Qwen3.8 found headroom beyond tuned SGLang

On 1-GPU Qwen3.8, R9 beat SGLang 0.5.23 by 7.1%–7.7% in HTTP decode throughput at concurrency 8–16; startup checks blocked 12 corrupting kernels. Panels (a–d) trace updates, scaling, prefix caching and EAGLE/MTP.
4-GPU DS4.1 gains held on unseen AgentX traffic

On the unretuned 256K AgentX holdout, RSInfer's frontier rose 19.0%–31.8% against DeepInfer/DI+. Panel (c): up-right is better. Greedy outputs matched prefix-cached DeepInfer bit-for-bit on 256/256 requests.
At 1.0T scale, throughput and latency both shifted

Against SGLang (5-layer DFLASH + 110 GiB/rank HiCache L2), 4-GPU MiMo2.6 E10 reached 2,997 tok/s vs 1,721 peak (1.74×). Panel (c): P99 TTFT fell 5.2×–12.4× at 1.0–4.9 req/s; (d) up-right is better.
The target is cooperative, single-node serving
No hitless rollout
Only live config toggles avoid drains; topology/native-extension changes restart roles, and microkernel edits restart the engine.
Not a sandbox
Static checks catch accidental coupling, not adversarial code or out-of-bounds GPU writes. GPU traps or OOM can strand collective peers and require a group restart.
Bounded, single-node scope
Bounded TLA+ checks found zero safety violations in 4,743 states and caught all 17 mutants, but do not prove arbitrary-scale liveness; POSIX coordination is single-node.
Why it matters
- For RSI, separating reloadable logic from resident GPU state makes rapid trials possible without restarting the full engine.
- Practitioners can declare state ownership and graph bindings, then use coordinated commits and cold checks to qualify changes.
- The open question is whether these safeguards extend to multi-node, adversarial or hitless serving.
132 likes 12 slides, 3 min
1 day ago