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

> RSInfer lets coding agents change a live LLM-serving engine by preserving GPU state and transactionally reloading logic. On unseen 256K AgentX traces, output throughput rose 19.0%–31.8% over tested baselines; colocated MiMo2.6 peak output throughput reached 1.74× SGLang's.

- arXiv: https://arxiv.org/abs/2612.05815
- Authors: Tianyuan Wu, Wei Gao, Ruibo Fan, Chaokun Chang, Hanfeng Lu, Yuechen Tao, Yinghao Yu, Wei Wang
- Published: 2026-12-04
- Topic: Inference & systems
- Visual carousel: https://instaxiv.com/p/2612.05815
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## How can a live LLM engine improve without restarting?

**5.18 s** 4-GPU median graph reload vs. 325.9s warm boot

## The agent's loop outruns restart-based serving

**The RSI pressure:** 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.

**RSInfer's response:** 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

![Figure 3](https://cdn.instaxiv.com/figures/2612.05815/figure3.webp)

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. (Figure 3)

## 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

**Warm server:** A Qwen3.8 candidate passed every warm test over buffers left populated by earlier traffic.

**Cold verifier:** 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

**Baseline restarts:** 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.

**RSInfer edits:** 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

![Figure 7](https://cdn.instaxiv.com/figures/2612.05815/figure7.webp)

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. (Figure 7)

## 4-GPU DS4.1 gains held on unseen AgentX traffic

![Figure 8](https://cdn.instaxiv.com/figures/2612.05815/figure8.webp)

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. (Figure 8)

## At 1.0T scale, throughput and latency both shifted

![Figure 9](https://cdn.instaxiv.com/figures/2612.05815/figure9.webp)

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. (Figure 9)

## 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.

## Key takeaways

- 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.

## Links

- arXiv: https://arxiv.org/abs/2612.05815
- PDF: https://arxiv.org/pdf/2612.05815

## Citation

```bibtex
@article{wu2026rsinfer,
  title   = {RSInfer: Re-architecting LLM Serving Engines for Fast, Safe, and Accountable Self-Improvement},
  author  = {Wu, Tianyuan and Gao, Wei and Fan, Ruibo and Chang, Chaokun and Lu, Hanfeng and Tao, Yuechen and Yu, Yinghao and Wang, Wei},
  journal = {arXiv preprint arXiv:2612.05815},
  year    = {2026},
  url     = {https://arxiv.org/abs/2612.05815}
}
```
