Search arXiv⌕ Search

arXiv · 2612.05815

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Tianyuan Wu, Wei Gao, Ruibo Fan, Chaokun Chang, Hanfeng Lu, Yuechen Tao, Yinghao Yu, Wei Wang. 2026-12-03. RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement. https://searcharxiv.org/abs/2612.05815

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SP-MoE: Speculative Decoding and Prefetching for Accelerating MoE-based Model Inference

The Mixture-of-Experts (MoE) architecture has been widely adopted in large language models (LLMs) to reduce computation cost through model sparsity. Employing speculative decoding (SD) can further accelerate MoE inference by drafting multiple tokens per step and verifying them in parallel. However, combining MoE with SD inflates GPU memory and aggravates CPU-GPU bandwidth contention during multi-token verification. Existing MoE offloading systems are SD-agnostic and do not address this bottleneck. We present SP-MoE, the first SD-aware expert-offloading and compute-communication pipelining framework. SP-MoE introduces: (1) speculative expert prefetching that exploits structural correspondence between the draft and target models to prefetch likely experts ahead of verification; (2) a cutoff-layer policy that bounds per-layer prefetch depth based on empirical profiles and an analytical latency model, guaranteeing just-in-time availability without overfetch; and (3) a pipelined runtime with asynchronous prefetch threads and batched I/O to hide loading latency. Extensive experiments demonstrate that SP-MoE achieves a 1.07-3.5 times TPOT speedup over state-of-the-art methods across diverse datasets, environments, and MoE-based models.

cs.DC↗

An Online Fragmentation-Aware GPU Scheduler for Multi-Tenant MIG-based Clouds

The explosive growth of AI applications has created unprecedented demand for GPU resources. In this context, the sharing of GPU resources between different tenants is essential to maximize the number of scheduled workloads. Among the various GPU sharing technologies, NVIDIA's Multi-Instance GPU (MIG) stands out by partitioning GPUs at the hardware level into isolated slices with dedicated compute and memory, ensuring strong tenant isolation, preventing resource contention, and enhancing security. Despite these advantages, MIG's fixed partitioning introduces scheduling rigidity, leading to severe GPU fragmentation in multi-tenant environments, where workloads are continuously deployed and terminated. Fragmentation leaves GPUs underutilized, limiting the number of workloads that can be accommodated. To overcome this challenge, we propose a novel scheduling algorithm for MIG-based clouds that maximizes workload acceptance while mitigating fragmentation in an online, workload-agnostic setting. We introduce a fragmentation metric to quantify resource inefficiency and guide allocation decisions. We compare our approach with several baseline strategies across a range of workloads, including both synthetic workloads and real-world traces of the Alibaba GPU cluster. Results demonstrate that our method consistently achieves higher workload acceptance rates and better GPU utilization.

cs.DC↗

Generative Markov Modeling Framework for Distributed Computing Systems

Emerging distributed computing paradigms, such as the computing continuum, are inherently heterogeneous, stochastic, and complex. Efficiently and effectively utilizing all available resources across the continuum demands a unified formal model of the system. To address this gap, we propose a general framework for modeling distributed computing systems as a generative Markov model, factorized over a structured system state. In our model, the state decomposes into high-dimensional variables, each further factorized over its elements, reflecting the sparse dependency structure inherent to distributed systems. This yields a tractable model that enables simulation, inference, and policy learning over otherwise intractable system states, bridging distributed computing, Markov chain theory, and reinforcement learning (RL). We demonstrate our framework through a case study of collaborative artificial intelligence (AI) inference, in which a dedicated server combines resources with those volunteered by service users. Our results show that centralized scheduling becomes a bottleneck at scale, while distributing computation across user devices reduces both latency and server resource consumption. These findings demonstrate the framework's utility for modeling, simulation, and optimization and highlight the value of adaptive decision-making in distributed computing systems.

cs.DC↗