{"id":"e428f910-3791-4c0c-b693-564145f72de0","arxiv_id":"2611.04807","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":6.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":6,"one_line_summary":"A memory-aware cμ priority rule minimizes holding cost, minimizes completion time, and maximizes throughput in the fluid limit of LLM inference with KV-cache constraints.","lead":"This paper proves that a classic scheduling rule, the cμ rule, is asymptotically optimal for serving large language models when GPU memory is the bottleneck. The authors show that prioritizing requests by how fast they clear memory reduces average latency on a real NVIDIA H800 while keeping throughput flat.","discovery_kind":"new_application","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"Exact linear step-time model (1) is the least-supported link: if real step time is nonlinear in KV-cache occupancy, the effective-rate reduction (18) and all three theorems apply to a model the hardware does not realize.","rationale":"The reader's weakest_assumption correctly identifies Eq. (1) as the point where the chain from theorem to hardware is least secure. I checked the central derivation rather than the appendix line-by-line in full, and found no internal inconsistency: the state-space collapse in §3.4 is justified by the fixed memory capacity; the lower-bound proof via prefix workloads and Skorokhod reflection in Appendix C is standard and the algebra leading to (18) is correct; the smoothed policy in Definition 5 is admissible (Proposition 1) and the tightness/reflection argument in Appendix G identifies every subsequential limit with the deterministic cμ path. The stated theorems are therefore best read as theorems about the linear model, and the paper is careful to phrase Theorem 3 as convergence of scaled dynamics rather than as a cost-regret guarantee. The only step I would want settled before relying on the practical conclusion is the fidelity of (1) in exactly the regime the optimal policy produces. The high in-sample and held-out R² is real evidence, but the calibration strata were not chosen by the cμ policy, and nonlinearities from bandwidth saturation or prefill-decode interference typically appear precisely at high occupancy. A targeted calibration/test on cμ-generated batches would settle this. Because the reader's verdict is already CONDITIONAL and this concern does not reveal an internal error, no verdict change is needed; if the proposed calibration showed significant nonlinearity and a changed priority order, the real-system claim would need to be weakened.","tokens_in":50932,"tokens_out":28077,"duration_ms":210050,"concrete_test":"Re-run the H800 calibration with additional terms: step_time = a_pf n_pf + a_kv n_kv + b + β n_kv^2 + γ n_pf n_kv + δ·occupancy, stratified over the high-occupancy, single-class region that the cμ policy creates, and test whether β, γ, or δ are significantly nonzero and whether RMSE degrades on batches generated by the cμ policy. If nonlinearity is significant, compute μ_j from the fitted nonlinear clock and check whether the cμ priority order and the latency rankings in Tables 3–4 persist in a simulator; if the order changes, the real-system claim is not supported.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The paper's theorems are internally coherent, but they are all conditional on the exact linear step-time model (1): step time = a_pf n_pf + a_kv n_kv + b. The effective service rate (18) and the reduction to a multiclass single-server queue follow algebraically from (1) together with the differential memory constraint m̃_j dX_j ≤ M dξ; if real step time is convex in n_kv or depends on occupancy and batch composition beyond these two linear terms, the clock decomposition (16) no longer holds and the cμ optimality results apply to a model the hardware does not realize. The paper acknowledges the model is only 'approximately linear' and reports R²≈0.9999 on its calibration strata, which is good evidence but does not cover the operating regime that the optimal policy drives the system into: memory-saturated, often single-class batches. The experiments also assume known output lengths (exact-length replay, nonpreemptive policies), acknowledged in the experiment section and deferred in [b367], so the unknown-length production transfer is a separate acknowledged limitation. The linearity assumption is thus the load-bearing external assumption: if it fails in the cμ operating region, the theoretically optimal ordering may not be the right one on the H800.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"The paper studies single-GPU LLM inference as a multiclass queue with prefill/decode phases and a hard KV-cache memory constraint. Under a fluid scaling in which arrival rates and processing speeds grow while memory capacity stays fixed, it derives an effective service rate μ_j = (a_pf s_j + (a_kv + b/M) m̃_j)^{-1}, defines a cμ priority rule, and proves fluid holding-cost optimality (Theorem 1), completion-time and full-run throughput optimality (Theorem 2), and uniform-on-compact convergence in probability of a smoothed cμ-inspired prelimit policy to the optimal fluid trajectory (Theorem 3). The paper then evaluates practical variants of the rule on a single H800 with vLLM, using semi-synthetic and production traces.","tokens_in":51313,"tokens_out":9110,"duration_ms":89416,"significance":"The theoretical core is substantial and mostly self-contained: the fluid policy is constructed via Skorokhod reflection, its admissibility is verified, the holding-cost proof is a genuine lower-bound argument, and the convergence proof follows a tightness-plus-reflection structure. A notable strength is that μ_j is derived from the model parameters rather than fitted to the objective, and the finite-scale policy does not require arrival-rate knowledge. If the linear step-time model (1) is accurate in the operating regime reached by the cμ policy, the paper provides an elegant asymptotic optimality result for a memory-constrained LLM inference model. The experimental results support the proposed ordering as a practical heuristic, but they are conditional on exact output-length knowledge and on the calibrated linear step-time model; these conditions are acknowledged in the paper but should be carried into the paper's scope statements.","major_comments":[{"comment":"The exact linear step-time model in Eq. (1) is the load-bearing link between Theorems 1–3 and the H800 system. Table 1 reports an excellent overall fit, but the calibration strata are mixed-batch strata; the optimal fluid policy saturates the memory constraint and often serves a single class (Remark 2 and the no-arrival closed form (25)), and that regime is not shown to be covered by the fit. If real step time is nonlinear in KV-cache occupancy or batch composition in memory-saturated, single-class operation, the clock decomposition (16) and the effective service rate (18) fail, and the cμ ordering need not be the right ordering on the hardware. Please add a validation of Eq. (1) in the cμ operating regime, for example residual plots against KV-cache occupancy at capacity saturation, or explicitly restrict the optimality claims to the model rather than to the H800 system.","section":"§2, Eq. (1); §4, Eq. (18)","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The finite-scale policy and the prelimit model are fractional-request systems: Definition 5 allows y_rj(t) and ΔU_rj,L_j(t) to take noninteger values, and the abstract describes this as a policy for the original finite system. No rounding or integer-recovery argument is supplied, and because per-step admission counts are O(1), naive rounding errors could accumulate over O(r) steps and need not vanish in the fluid limit. Please either state clearly that Theorem 3 concerns the fractional prelimit model, or add an integerization argument that preserves the stated uniform convergence.","section":"§5, Definition 5; Theorem 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The experimental claim in the abstract, that practical implementations 'substantially reduce average latency' on a real engine, should be scoped to the assumptions stated in §6.2: known output lengths via exact-length replay, nonpreemptive service, and, for the production traces, a single run per policy. The authors acknowledge the exact-length assumption, but it is also the main route from Theorem 3 to practice, so the concluding sentence of the abstract should not suggest an unconditional production transfer; either add an experiment with predicted output lengths or restrict the claim explicitly.","section":"§6, Tables 3–4","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"The choice T_WAIT = 120 ms is described as ad hoc because the parameter formula in [4] does not apply under the paper's step-time model; please label WAIT-frac as a heuristic baseline rather than a faithful implementation of WAIT, so that the comparison in Tables 3–4 is not over-read.","section":"§6.2, WAIT-frac","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The phrase 'traffic intensity of approximately 0.95' is never defined; please specify how it is computed from the calibrated effective service rates and trace length distributions, since this determines the load used in every experiment.","section":"§6.3–6.4","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The calibration description is terse: please state the ranges of prefill tokens and KV-cache I/O volumes covered by the training and held-out strata, and whether memory saturation was included in the calibration data.","section":"Figure 3 and Table 1","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The production-trace results report one run per policy; please add a sentence indicating whether repetitions were infeasible for cost reasons, or report a small number of repetitions so the reader can assess run-to-run variability.","section":"§6.4, Table 4","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"Colleague, read this one. It is a genuine queueing-theory paper, not another heuristic-plus-sweep. The new content is the reduction: under a linear GPU step-time model and a hard KV-cache capacity, the fluid limit collapses to a multiclass single-server queue with effective rate μ_j = (a_pf s_j + (a_kv + b/M) m̃_j)^(-1), and the cμ ordering in that rate is optimal for holding cost and for completion time. The proofs in Appendices C, D, and G are real: workload lower bound via Skorokhod reflection, admissibility of the constructed policy, and tightness-plus-reflection to identify the fluid limit. I found no internal gap in the central derivation. The smoothed cμ-inspired prelimit policy is implementable and does not require arrival-rate knowledge, which is a real plus. The citation pattern is honest; the classical cμ antecedents are cited and the relation to WAIT and bin-packing work is discussed fairly.\n\nThe soft spots are proportionate. The load-bearing external assumption is Eq. (1), exact linearity of step time in prefill tokens, KV-cache I/O, and a fixed overhead. The effective rate (18), and hence every theorem, is an algebraic consequence of that linearity plus the differential memory constraint. The paper acknowledges the model is only approximately linear and reports R² ≈ 0.9999 on its calibration strata, which is good evidence. But the calibration strata may not cover the regime the optimal policy drives the system into—memory-saturated, often single-class batches—and if real step time is convex or occupancy-dependent there, the clock decomposition no longer holds and the optimal ordering may not be the right one on the H800. That is a domain mismatch, not a proof flaw. The experiments are honest but limited: exact output-length replay, nonpreemptive policies, one run per real trace, and a hand-set WAIT baseline parameter. The paper says these limitations in Section 7; they cap the strength of the empirical claims but do not undermine the math. The fluid-limit theorem is standard in structure, so the novelty is bounded, but the model and the effective-rate formula are new enough to matter for the LLM serving subfield.\n\nThis paper deserves a serious referee. I would send it to review rather than desk reject, and I would cite it if I work on serving-scheduling theory. The authors should be asked for artifact release and more experimental runs, and the referee should push on whether the linear step-time model holds in the saturated operating regime. Otherwise, the central argument holds up.","headline":"A serious queueing paper with complete proofs that cμ with memory-aware effective rates is optimal in a fluid model of LLM serving; the main open question is whether the linear step-time assumption covers the regime the optimal policy drives the hardware into.","tokens_in":51888,"tokens_out":2343,"duration_ms":20884},"pith_extraction":{"msc":["90B22","60K25","60F17"],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"The paper claims a memory-aware cμ priority rule is asymptotically optimal for single-GPU LLM inference with a fixed KV-cache capacity, and that its implementable version converges to the optimal fluid policy while cutting real-engine…","keywords":["LLM inference","KV-cache memory","queueing theory","cμ rule","fluid limit","asymptotic optimality","GPU scheduling","state-space collapse"],"falsifier":"Run the paper's own step-time microbenchmark on an accelerator or batch regime where the H800-style linear fit breaks down, for example a GPU where decode-step time grows nonlinearly once KV-cache occupancy crosses a bandwidth-saturation threshold, or where mixed prefill-decode batches show interaction effects beyond additive a_pf and a_kv terms; if the fit of Δ to a_pf n_pf + a_kv n_kv + b shows systematic curvature, the effective-rate reduction (18) is not realized and the cμ ordering loses its optimality guarantee on that hardware. A second check is to run cμ-backfill against the baselines at traffic intensities far from 0.95, or with predicted rather than known output lengths, since the paper's guarantees and comparisons assume intensity near 0.95 and exact lengths; a large latency reversal there would show the rule's advantage is narrower than the fluid theorem suggests.","tokens_in":52367,"feed_emoji":"⚡","tokens_out":8876,"duration_ms":57171,"temperature":0.7,"pith_summary":"The paper argues that a classical queueing construction, the cμ priority rule, is the right way to schedule LLM inference on a single GPU when the key-value (KV) cache is the bottleneck. Requests with different prompt and output lengths arrive stochastically, pass through prefill and autoregressive decode, and compete for a fixed memory capacity. The authors show that under a fluid rescaling, where arrivals and processing speed up together while memory stays fixed, the system collapses to a multiclass single-server queue with a per-class effective service rate that folds in computation speed, memory bandwidth, and memory capacity. They prove that serving classes in decreasing order of c-sub-j times mu-sub-j minimizes cumulative holding cost in this fluid model, and also minimizes completion time and maximizes full-run output-token throughput for a finite workload. A smoothed, implementable version of the rule converges to the optimal fluid policy, and on a real H800 engine it cuts average latency versus the default scheduler while keeping throughput.","feed_headline":"cμ rule proven optimal for memory-constrained LLM serving","feed_subtitle":"The proof folds GPU compute, KV-cache I/O, and memory capacity into one service rate; H800 tests show latency gains.","key_machinery":"The argument runs on three linked objects. First, the linear GPU step-time model $\\Delta$ = a_pf times the number of prefill tokens plus a_kv times the KV-cache I/O volume plus b, calibrated on an NVIDIA H800, which turns each GPU step into a clock increment that depends on what is batched. Second, the fluid regime in which token-processing rates and arrival rates scale together while memory capacity M stays fixed; this forces every intermediate prefill and decode stage to collapse, because their scaled occupancy vanishes, leaving only the waiting queues and one cumulative completion process X_j per class. Third, the effective service rate μ_j, obtained by saturating the differential memory constraint m-tilde_j dX_j ≤ M dξ against the clock equation; substituting it makes the reduced model have the same service-effort representation as a classical single-server queue. The fluid cμ policy is then built by a Skorokhod reflection recursion on the cumulative service budget passed down the priority list, which is exactly what makes the optimality proof go through, while the prelimit counterpart is the smoothed cμ policy whose moving-average admissions wash out at fluid scale.","core_discovery":"The central claim is that the memory constraint and the linear step-time model together produce a clean effective service rate for each request class, mu_j = (a_pf s_j + (a_kv + b/M) m-tilde_j)^(-1), where a_pf is the per-token prefill compute cost, a_kv the per-token KV-cache I/O cost, b the fixed per-step overhead, M the KV-cache capacity in tokens, s_j the prompt length, and m-tilde_j the total KV-cache occupancy a class-j request generates over its lifetime. With this definition, the fluid limit of the memory-constrained inference system becomes algebraically identical to a classical multiclass single-server queue, so the classical cμ rule applies: prioritize classes by c_j μ_j, with c_j the holding-cost rate per waiting request. Theorem 1 establishes that this order minimizes cumulative holding cost among all admissible fluid policies, and Theorem 2 adds that for a finite workload it also minimizes the time to complete all requests, hence maximizes full-run output-token throughput. Theorem 3 constructs a feasible prelimit policy, a smoothed cμ rule that spreads admission plans over a short window to respect the memory constraint, and proves that its scaled dynamics converge uniformly on compacts in probability to the optimal fluid trajectory. The experiments then report that practical cμ and cμ-backfill implementations reduce average latency substantially relative to the default vLLM scheduler, WAIT-frac, MC-SF, and SVF on semi-synthetic and real production traces.","pith_inferences":["Extension I would test first: treat a multi-GPU cluster as a shared memory pool and rerun the reduction with $M$ the pool capacity and $\\tilde{m}_j$ the peak concurrent occupancy per request; the paper lists multi-GPU serving as future work, and the cμ order surviving that step is not guaranteed by anything here.","The experiments assume each request's output length is known; ranking by $c_i \\hat{\\mu}_i$ computed from predicted lengths and sweeping prediction error would show how fast the latency gain erodes, a sensitivity the paper leaves open.","The effective-rate formula separates prefill compute cost from KV-memory cost, so the theory predicts the cμ rule's edge shrinks as $a_{\\mathrm{pf}}/a_{\\mathrm{kv}}$ falls (toward pure volume-based ordering) and grows as memory I/O dominates; a coefficient sweep in simulation would isolate where the gains come from."],"forward_implications":["Continuous-batching engines can adopt the rule by re-sorting waiting requests by $c_i \\hat{\\mu}_i$ with a future KV-feasibility check; the experiments show this near-free change cuts average latency sharply while holding output-token throughput roughly constant.","The smoothed policy is constructed without using the arrival rates $\\lambda_j(\\cdot)$, so the cμ ordering applies online when arrival rates are unknown or time-varying.","For a finite set of requests with known output lengths, the rule doubles as a completion-time minimizer, so the same priority order maximizes full-run output-token throughput.","Because the fluid regime fixes memory capacity $M$ while traffic grows, the optimality claim targets exactly the memory-bound operating point created by long-prompt, long-output workloads."],"supporting_citations":[{"why":"Supplies the classical cμ-rule optimality result for a single-server queue with linear holding costs that the paper adapts to the memory-constrained two-phase model.","marker":"[8]"},{"why":"Provides the generalized cμ-rule framework for convex delay costs that motivates the priority ordering used here.","marker":"[38]"},{"why":"The heavy-traffic cμ-optimality template with heterogeneous servers that the paper's asymptotic-optimality claim extends.","marker":"[28]"},{"why":"Orca's continuous batching is the scheduling primitive that the queueing model formalizes.","marker":"[47]"},{"why":"PagedAttention and vLLM provide both the KV-cache memory-management abstraction the model builds on and the engine used in the experiments.","marker":"[25]"},{"why":"The closest prior approach (WAIT) to memory-constrained LLM scheduling, serving as the main baseline and the contrast for why cμ avoids unnecessary idling.","marker":"[4]"},{"why":"The Skorokhod reflection characterization used to identify the limiting residual-budget processes with the fluid cμ policy in the convergence proof.","marker":"[42]"},{"why":"The resource-requiring-queues model that shares the resource-constraint structure but differs in growing resource usage and order-one memory capacity.","marker":"[48]"},{"why":"Provides the production traces that are replayed in the semi-synthetic and real-data experiments.","marker":"[40]"}],"fun_headline_variants":["cμ rule proven optimal for memory-constrained LLM inference","KV-cache limit makes cμ scheduling optimal for LLM serving","Memory-aware cμ rule minimizes LLM serving cost with proof","Single effective service rate makes cμ rule optimal for LLM queues","Proof plus H800 tests: cμ rule lowers memory-bound LLM latency"],"cache_read_input_tokens":0,"weakest_assumption_plain":"Everything rests on the linear step-time model (1) with coefficients scaling as in (2): if a real GPU's step time is not linear in KV-cache I/O volume and prefill token count, say because bandwidth saturation or interference among mixed batches adds curvature, then the clock identity f(ξ) = Σ_j (a_pf s_j + a_kv m-tilde_j) X_j(ξ) + bξ fails, the effective rate μ_j is no longer a constant per class, and the optimality theorems govern a model the hardware does not implement.","fun_headline_variants_meta":{"raw":{"variants":["cμ rule proven optimal for memory-constrained LLM inference","KV-cache limit makes cμ scheduling optimal for LLM serving","Memory-aware cμ rule minimizes LLM serving cost with proof","Single effective service rate makes cμ rule optimal for LLM queues","Proof plus H800 tests: cμ rule lowers memory-bound LLM latency"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000158,"raw_usage":{"cost":0.000158431,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000158431,"upstream_inference_prompt_cost":3.6491e-05,"upstream_inference_completions_cost":0.00012194},"total_tokens":1923,"prompt_tokens":1253,"completion_tokens":670,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":1065,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":591}},"tokens_in":1253,"tokens_out":670,"cost_source":"openrouter_usage","duration_ms":8591,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":591,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-11-04T13:01:20.325732+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-daily-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Run the paper's own step-time microbenchmark on an accelerator or batch regime where the H800-style linear fit breaks down, for example a GPU where decode-step time grows nonlinearly once KV-cache occupancy crosses a bandwidth-saturation threshold, or where mixed prefill-decode batches show interaction effects beyond additive a_pf and a_kv terms; if the fit of Δ to a_pf n_pf + a_kv n_kv + b shows systematic curvature, the effective-rate reduction (18) is not realized and the cμ ordering loses its optimality guarantee on that hardware. A second check is to run cμ-backfill against the baselines at traffic intensities far from 0.95, or with predicted rather than known output lengths, since the paper's guarantees and comparisons assume intensity near 0.95 and exact lengths; a large latency reversal there would show the rule's advantage is narrower than the fluid theorem suggests.","supporting_citations":[{"cited_title":"KVCache cache in the wild: Characterizing and optimizing KVCache cache at a large cloud provider","cited_arxiv_id":null,"evidence_quote":"Provides the production traces that are replayed in the semi-synthetic and real-data experiments."},{"cited_title":"The <i>c</i> μ rule revisited","cited_arxiv_id":null,"evidence_quote":"Supplies the classical cμ-rule optimality result for a single-server queue with linear holding costs that the paper adapts to the memory-constrained two-phase model."},{"cited_title":"Dynamic Scheduling with Convex Delay Costs: The Generalized $c|mu$ Rule","cited_arxiv_id":null,"evidence_quote":"Provides the generalized cμ-rule framework for convex delay costs that motivates the priority ordering used here."},{"cited_title":"Scheduling Flexible Servers with Convex Delay Costs: Heavy-Traffic Optimality of the Generalized cμ-Rule","cited_arxiv_id":null,"evidence_quote":"The heavy-traffic cμ-optimality template with heterogeneous servers that the paper's asymptotic-optimality claim extends."},{"cited_title":"Orca: A distributed serving system for Transformer-Based generative models","cited_arxiv_id":null,"evidence_quote":"Orca's continuous batching is the scheduling primitive that the queueing model formalizes."},{"cited_title":"Gonzalez, Hao Zhang, and Ion Sto- ica","cited_arxiv_id":null,"evidence_quote":"PagedAttention and vLLM provide both the KV-cache memory-management abstraction the model builds on and the engine used in the experiments."},{"cited_title":"Optimizing LLM inference: Fluid- Guided online scheduling with memory constraints, 2026","cited_arxiv_id":null,"evidence_quote":"The closest prior approach (WAIT) to memory-constrained LLM scheduling, serving as the main baseline and the contrast for why cμ avoids unnecessary idling."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"The Skorokhod reflection characterization used to identify the limiting residual-budget processes with the fluid cμ policy in the convergence proof."},{"cited_title":"Managing Queues with Different Resource Requirements","cited_arxiv_id":null,"evidence_quote":"The resource-requiring-queues model that shares the resource-constraint structure but differs in growing resource usage and order-one memory capacity."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}