arXiv cs.AI· Tianyuan Wu, Wei Gao, Ruibo Fan, Chaokun Chang, Hanfeng Lu, Yuechen Tao, Yinghao Yu, Wei Wang·· 2 天前AI 评分45
RSInfer:面向快速、安全、可审计自我改进重新设计的 LLM 推理引擎
RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement
AI 导读
RSInfer 是一款为智能体驱动的递归自我改进(RSI)重新架构的 LLM 推理引擎,通过控制平面契约与微内核设计实现秒级原地代码重载。它在 1 GPU 上提交代码与配置修改仅需 1.00-2.22 秒(比 vLLM/SGLang 热重启快 32x-99x),4 GPU 图重载中位耗时 5.18 秒。
正文 · 原文
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.
| Comments: | 33 pages, 10 figures |
| Subjects: | Distributed, Parallel, and Cluster Computing (cs.DC); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2612.05815 [cs.DC] |
| (or arXiv:2612.05815v1 [cs.DC] for this version) | |
| https://doi.org/10.48550/arXiv.2612.05815 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Tianyuan Wu [view email]
[v1]
Thu, 3 Dec 2026 14:33:49 UTC (536 KB)
来源:arXiv cs.AI · arxiv.org