Skip to content

RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement

Tianyuan Wu, Wei Gao, Ruibo Fan, Chaokun Chang, Hanfeng Lu, Yuechen Tao, Yinghao Yu, Wei Wang

cs.DC

Abstract

In agent-driven Recursive Self-Improvement (RSI), coding agents iteratively probe, rewrite, and benchmark schedulers, caches, and GPU kernels on a live LLM serving engine every few minutes. Existing engines (vLLM, SGLang, DeepInfer) bind mutable code to context-bound GPU weights, memory pools, communicators, and CUDA graphs, forcing 1-15.5 min restarts across 1-4 GPUs, while in-place patching and host dynamic updaters silently replay stale graphs, deadlock lockstep collectives, or mask bugs behind residual warm state. We present RSInfer, an LLM serving engine re-architected for fast, safe, and accountable RSI. RSInfer keeps early GPU binding on the data plane while turning state ownership, bindings, and identity into statically checked control-plane contracts. A stable, domain-agnostic microkernel decouples resident state units from stateless logic units so all serving code reloads in place in seconds (fast); typed GPU bindings (live, by-address, by-value) drive minimal rebuilds under a TLA+-checked epoch-aligned multi-rank transaction (safe); and canonical state identities pair residue-free reverts with asynchronous cold-start verification (accountable). RSInfer commits 1-GPU code and configuration edits in 1.00-2.22 s (32x-99x faster than warm vLLM/SGLang restarts) and 4-GPU graph reloads in a 5.18 s median. Across 4-12 h autonomous campaigns on three 27B-1.0T models (1-4 GPUs), it blocks 12 silent-corrupting kernels, reverts regressions with zero HBM residue, and catches a warm-masked cold-start bug. All three evolved engines outperform SGLang and prefix-cached DeepInfer, reaching 19.0%-31.8% higher output throughput on unseen 256K AgentX traces and 1.74x higher peak throughput on colocated 1.0T MoE traffic.

Create a lesson

Metadata

Categories
cs.DC, cs.AI
Comments
33 pages, 10 figures