arXiv:2610.02732cs.PFOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02732

ServeTwin: A Benchmark-Validated Simulator for Distributed LLM Architecture Exploration

Sungjoon Park, Changue Jung, Kyungno Joo, Mincheol Kang, Jaehyung Ahn, Sehwan Lee, Sangjoon Kim

Abstract

Evaluating distributed LLM serving designs on physical clusters is costly. Yet existing simulators provide only subsets of the capabilities needed for realistic design exploration: stateful closed-loop execution, timing prediction without profiling target hardware, and direct execution of unmodified serving benchmarks. We present ServeTwin, a closed-loop simulator that couples specification-driven analytical timing with a stateful serving loop. This coupling captures feedback among request completion, scheduling, queue state, and KV-cache evolution, including prefill-decode disaggregation and multi-turn agent workloads.

ServeTwin avoids target-hardware operator profiling through iSTAGE, an analytical trace generator that derives per-iteration traces from model and engine specifications while representing ragged batches and discrete engine mechanisms such as CUDA-graph batch padding. It further decomposes execution time into component-owned throughput, scheduler, and runtime costs. This ownership lets unaffected parameters transfer across platforms and confines recalibration to changed hardware or software components. ServeTwin implements a vLLM-compatible interface and runs unmodified serving benchmarks. Against real deployments, it reproduces InferenceX's steady-state throughput–interactivity frontier with a 3.6% mean error and predicts LMBenchmark's multi-turn performance with a 9.9% error while tracking KV-cache evolution. Pre-silicon sweeps reveal that the preferred HBM bandwidth–capacity tradeoff reverses across workload states and that increasing concurrency shifts the bottleneck from memory bandwidth to scheduler and runtime overheads. Together, these capabilities enable practical exploration of distributed LLM serving systems before target hardware is available.

1 Introduction

Large Language Model (LLM) serving extends far beyond accelerating isolated tensor operations; it has evolved into a highly dynamic systems engineering challenge. Fundamentally, the autoregressive nature of LLMs dictates a strict two-phase execution for every request: a prefill phase that processes the prompt to generate a KV cache, followed by an

Table 1. Comparison of prior tools against ServeTwin's key simulation capabilities. ServeTwin uniquely combines stateful closed-loop execution, profiling-free timing prediction, and compatibility with unmodified serving benchmarks. (○ full, △ partial, × absent.)

Stateful serving loopProfiling freeUnmodified benchmarks
LLMServingSim 2.0 [3]△××
Vidur [1]△××
AgentServeSim [14]△×△
GenZ [2] / LLMCompass [20]×○×
ServeTwin○○○

iterative decode phase. While modern engines like vLLM [6] and SGLang [21] employ continuous batching [19] to dynamically mix these phases and maximize throughput, the differing compute profiles of prefill and decode have driven a recent architectural shift. Today, modern deployments physically disaggregate these two phases onto separate workers, coupling them via KV cache transfer [11]. This architectural complexity is further amplified by agentic workloads. Unlike simple pass-through queries, agentic clients introduce a strict multi-turn dependency, issuing subsequent requests only after receiving the previous response. This shift transforms LLM serving into a highly interactive, stateful system loop, demanding sophisticated evaluation.

Production metrics like TTFT and queue transients emerge from a continuous feedback loop: serving state dictates each iteration's batch, while hardware execution time updates the subsequent state (e.g., queue depth and KV-cache occupancy). Consequently, faster hardware inherently alters the batches themselves, rendering fixed-batch models inadequate. While evaluating architectural improvements under these dynamic conditions is critical, the prohibitive scale and cost of LLM infrastructure drives an urgent demand for high-fidelity simulators that capture this end-to-end dynamic environment. Rapidly evolving agentic workloads compound that demand.

Existing simulators fail to capture this continuous loop. Analytical models (e.g., GenZ [2], LLMCompass [20]) evaluate static workloads without queueing feedback, while serving simulators (e.g., LLMServingSim [4], Vidur [1]) reproduce scheduling but rely on rigid physical hardware profiles.

∗^{*}The first two authors contributed equally to this work.

Figure

Figure 1. Capacity failure under a deployment-equivalent KV budget. LLMServingSim aborts the multi-turn workload without a staged-KV waiting state. The 33 GiB KV budget is derived from an 80 GB H100.

Crucially, current tools fundamentally fail at dynamic state management, particularly in prefill/decode disaggregation. For example, LLMServingSim treats prefill/decode disaggregation as a simple pipeline cut. It lacks a way for the prefill worker to temporarily hold the KV cache if the decode worker is busy. As Figure 1 shows, this creates a fundamental simulation failure, not just a timing inaccuracy. Multi-turn workloads simply crash because requests attempt to enter the decode phase without any queue to safely wait in.

ServeTwin reconnects this severed feedback loop and resolves these state failures, as illustrated in Figure 2. Running unmodified multi-turn benchmarks, it completes execution under deployment-equivalent KV budgets by properly staging the waiting path. Each iteration, it constructs a batch mirroring production LLM engines (e.g., vLLM, SGLang), strictly enforcing admission control, cross-worker KV transfers, and multi-turn states. To process this without empirical profiles, we introduce iSTAGE—extending STAGE [9] to translate the batch into a symbolic trace, calculating latency directly from hardware specifications. Feeding this precise timing back to advance the system state naturally dictates the next batch composition.

Integrating an analytical model within a dynamic serving loop poses profound challenges. First, serving batches are inherently ragged; naively padding them to maximum dimensions for analytical graphs overestimates execution time by up to 146×146\times. Second, theoretical FLOPs and memory bandwidth cannot capture discrete runtime mechanisms (e.g., KV page walks, kernel launches) that heavily skew step latency. Finally, continuous end-to-end simulation demands exceptionally lightweight trace generation. iSTAGE overcomes these hurdles through (1) statistics-preserving batch binding, (2) first-order modeling of discrete engine mechanisms, and (3) aggressive trace reuse.

Figure

Figure 2. The closed-loop simulation architecture of ServeTwin. Simulated execution times from iSTAGE and ASTRA-sim dynamically dictate subsequent scheduling decisions in a continuous feedback loop.

We validate ServeTwin across two distinct evaluation paradigms. For steady-state performance, InferenceX [15] evaluates system throughput and interactivity frontiers. Because it largely operates without the unpredictability of prefix-cache hits, ServeTwin easily tracks physical performance with just a 3.6% mean error. In contrast, LMBenchmark [8] introduces the chaotic dynamics of multi-turn serving. In this environment, real-time prefix-cache hits constantly shift the execution timing balance between prefill and decode (P/D) phases, dynamically cascading into admission control and queueing variations. Despite this extreme runtime complexity where prior methods simply crash, ServeTwin successfully captures these transient dynamics within a 10% error margin.

This paper makes the following contributions:

  1. Stateful Serving Model: A dynamic serving model that explicitly tracks request scheduling, multi-turn sessions, and KV-cache lifecycles, featuring occupancy-coupled admission for prefill/decode disaggregation rather than simplistic fixed-delay handoffs ( §3.2−§3.4§3.2-§3.4).

  2. Spec-Driven Execution (iSTAGE): An analytical trace generator that derives execution timings directly from hardware and model specifications, eliminating the need for empirical profiles while remaining lightweight enough to operate inside the serving loop ( §3.5§3.5).

  3. Component-Owned Cost Decomposition: A mechanism-attributed cost ledger that separates specification-driven throughput from host-control and runtime-mechanism costs. Each term family is assigned an observable ablation footprint and an owning component, enabling selective recalibration only when that component changes instead of global overhead fitting or per-point retuning ( §3.6§3.6, §4.2–§4.4§4.2–§4.4).

  4. Benchmark-Validated Architectural Exploration: Validation against unmodified public benchmarks across hardware generations, serving stacks, and deployment scales, followed by spec-driven hardware sweeps that reveal a workload-dependent trade-off between HBM bandwidth and capacity and a bottleneck shift from memory physics toward runtime control overheads ( §4.5–§4.8§4.5–§4.8).