RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement
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…