{"id":"98cbc488-6299-4ca6-8e58-c373d8a140b8","arxiv_id":"2609.34663","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":6.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":5,"one_line_summary":"Tool waiting and re-arrival raise compile-time-static LLM serving cost through batch alignment, KV cache survival, and prefill interference, so configurations should be selected by diagnosing KV reuse loss.","lead":"This paper measures what happens to LLM serving cost when a session calls an external tool, waits for it, and then resumes inference on an NPU server whose batch sizes and KV cache capacity are fixed at compile time. It identifies three cost mechanisms and shows that selecting a server configuration by diagnosing KV reuse loss, validated by measurement, cuts execution cost by up to about 10%.","discovery_kind":"new_application","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"Prefill model Eq. 5 is extrapolated 65–384 tokens below its 500-token fit range; the sole below-range check underestimates by ~6 ms, and this bias affects the cost ratios and configuration ranking that drive the selection claim.","rationale":"The reader's weakest-assumption choice matches my assessment: the prefill elapsed-time model is the most load-bearing piece of the paper's quantitative argument because it feeds directly into the simulator's cost predictions and thus into the ranking of the 2,077 candidate configurations. The single below-range check at 88 tokens shows a ~6 ms underestimate, and the direction of the systematic prediction error in Table IX (positive e in all comparisons) is consistent with this bias. The paper's own limitations (b301, b334) explicitly acknowledge the extrapolation but leave the gap open. I agree with the reader that this warrants a CONDITIONAL rather than ACCEPT verdict. The measured savings themselves are robust—channel B, which is independent of the cost model, gives similar figures (8.17% vs 8.25% for the more-slots case, 10.07% vs 9.72% for the grid+slots case)—so the qualitative conclusion about priority of reuse-loss diagnosis stands. But the selection procedure's predictive accuracy, and hence its generalizability, remains unconfirmed because the prefill cost model's behavior below 500 tokens is unknown. The dummy-block rule and the feedback-through-re-arrival issue are also acknowledged concerns, but they are secondary: the dummy rule's unexplained effect is puzzling but the default simulator already predicts reuse accurately in the confirmatory range, and the feedback mechanism's lack of improvement is a null result rather than a source of bias. The prefill extrapolation is the one weakness that directly biases the ranking of configurations and the claimed cost ratios, so it is the single most load-bearing concern. The proposed test—collecting additional low-token prefill measurements—would settle whether the extrapolation introduces a material error.","tokens_in":36227,"tokens_out":7130,"duration_ms":46416,"concrete_test":"Measure server-side prefill elapsed time for q = 65, 128, 200, 300, and 384 tokens (the observed L−C range) in the same controlled sequential setup used in Section III-B, with server restarts and several replicates, and compare these to Eq. 5. If the mean absolute error exceeds the fitting-range residual (2.4 ms) or shows a monotone bias, the extrapolation is unreliable and the simulator's cost-ratio predictions in the confirmatory range (N=6,8) may be biased, requiring re-parameterization of Eq. 5 with a lower-range fit.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The central claim—that compile-time configurations should be selected by diagnosing KV reuse loss and its execution effect—depends on the simulator's cost predictions for candidate configurations. The simulator's prefill cost term uses Eq. 5, which is fitted to four observations (500, 2,000, 6,000, 2,008 tokens; Section III-C-d) and then applied below the 500-token fitting range to q = L−C. In this workload, L−C lies between 65 and 384 tokens (Section III-B-e), exactly that below-range region. The only below-range validation point (88 tokens) measured 27.2–27.5 ms versus a predicted ~21.3 ms, a ~6 ms underestimate that exceeds the maximum in-range residual of 2.4 ms. Because the model is not linear, and because the systematic prediction error e in Table IX is positive in every comparison (simulator overestimates savings), the extrapolation is a plausible contributor to that bias: underestimating residual prefill cost in high-reuse configurations makes added slots or buckets look more beneficial than they are. This could misrank the 2,077 candidates and change which configuration is selected, even though the headline savings at N=8 and N=6 are measured directly and cross-validated by channel B. The paper acknowledges the extrapolation (b301, b334) but does not close the gap; the limitation statement in Section VI-A-c also lists it. This is the weakest load-bearing assumption because it touches the quantitative core of the selection procedure, not just the qualitative mechanisms.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"On a single four-device Rebellions CA25 NPU instance running vLLM with the eager KV path, the paper measures how tool waiting and session re-arrival translate into execution cost in a compile-time-static serving substrate (fixed bucket set, fixed maximum batch size, fixed KV slot count). It identifies three mechanisms — discrete batch alignment (active request counts mapped to a compiled bucket grid), KV-cache survival (FIFO eviction of sequence-level slots during tool waiting), and prefill interference (exclusive prefill/decode scheduling delaying background sessions) — and supports each with paired intervention experiments: adding a bucket 6 reverses the padding difference at N=6 with identical step distributions; raising batch_size to 16 restores reuse (9/24 to 24/24 at N=8) with prefill work falling by exactly the restored token count; an injected-prefill experiment lengthens background response intervals.","tokens_in":36531,"tokens_out":11184,"duration_ms":67675,"significance":"If the claims hold, this is a solid systems measurement paper: it provides a systematic account of how tool waiting and re-arrival cost a compile-time-static serving substrate, with a selection procedure validated out-of-sample. The methodological discipline is a genuine strength: decision criteria preregistered before measurement, two cross-checking cost channels (model-based channel A and client-observed channel B), a bucket-6 intervention that isolates the grid as the cause of the padding difference with identical step distributions, a KV-slot intervention whose reuse restoration matches the prefill reduction token-for-token, and validation on new seeds not used in any earlier measurement. The paper also reports its own limitations honestly: the unexplained positive prediction residual, the unconfirmed value of recomputing re-arrival times, the unconfirmed reduction of background-session delay, and the acknowledged extrapolation of the prefill cost model.","major_comments":[{"comment":"The prefill elapsed-time model in Eq. (5) is fitted to four observations covering 500-6,000 tokens and is then applied, inside the simulator, to residual prefill work q = L - C of 65-384 tokens, below the fitting range (Section III-B-e; Section IV-A). The single below-range check (88 tokens) measured 27.2-27.5 ms against a prediction of about 21.3 ms, a roughly 6 ms underestimate that exceeds the maximum in-range residual of 2.4 ms (Section III-C-d). The authors acknowledge this extrapolation (Section IV-E; Section VI-A-c) but do not close the gap: no additional sub-500-token calibration points are provided, and no analysis shows that the ranking of the 2,077 candidates, or of the top-20 set that spans 0.5 percentage points, is robust to a perturbation of the prefill coefficients within the observed error envelope. Because the same cost expression appears on both sides of the cost ratio, the error enters the residual primarily through event-composition differences, as the paper itself notes in Section IV-E; a concrete test would be to re-run the search with a re-fitted sub-500-token model or with the coefficients perturbed within the +/-6 ms envelope and report whether the selected configuration and the top-20 set change. Without such a check, the quantitative core of the configuration-selection procedure (contribution four) rests on an extrapolation that is acknowledged but unvalidated at the operating point.","section":"III-C-d, Eq. (5); IV-A; IV-E; VI-A-c","authors_acknowledge":"The processing order of simultaneous arrivals, re-tokenization length differences, cost approximation for unmeasured buckets, extrapolation of the prefill cost model, unmodeled eviction events, and execution variation may act together.","authors_acknowledge_p":0.77},{"comment":"The reported selected configuration (batch_size=16, buckets {1,4,6,8,10,16}) depends on the concurrency levels included in the search. Restricting the search to the confirmatory range N in {6,8} selects {1,4,5,6,8,16}, ranks the reported configuration 11th, and shares only four configurations with the top-20 of the full search (S8); the authors state this in Section V-A and VI-A-a. The measured N=8 savings of 9.72% for the selected configuration stand regardless of how the configuration was chosen, but the abstract and the Conclusion present 'the selected configuration' without this caveat, and the 8.25%/9.72% contrast is thereby implicitly tied to a choice made partly on exploratory-range data. I recommend presenting the confirmatory-range search as the primary selection and the N=10-inclusive results as exploratory, or adding one sentence in the abstract and in Section V-B noting that the specific bucket set chosen is not robust to the inclusion of the exploratory concurrency level and is not claimed to be optimal.","section":"V-A; S8; VI-A-a","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"Section IV-E and Table XI show that the full simulator, which recomputes re-arrival times from completion times, was not confirmed to be more accurate than a fixed-arrival simulator (4-of-8 comparisons closer; mean absolute errors 0.0169 vs 0.0172). The paper reports this honestly in IV-E, but the Conclusion (VI-B) credits the event-order recomputation without this caveat; a sentence noting that the feedback recomputation did not measurably improve prediction accuracy would keep the summary aligned with the evidence.","section":"IV-E; VI-B","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The reproducibility note that --max-buckets 5 must be specified (instead of the default 6) to enumerate the same 2,077 candidates is easy to miss; I suggest stating the exact invocation in the public repository's README and referencing it explicitly in the text, since the discrepancy between the documented candidate count and the default flag value could trip up readers attempting to reproduce the search.","section":"V-A","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The confirmatory range N in {6,8} and the exploratory range N=10 are introduced in Section II-C but the confirmatory/exploratory split is only justified later, in Section IV-C, when the simulator validation range is defined; a forward reference in Section II-C would clarify for the reader why these particular N values carry different evidential weight throughout the paper.","section":"II-C; IV-C","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"This paper deserves a real referee despite its soft underbelly. What's genuinely new: the intersection of tool-waiting re-arrivals with a compile-time-static NPU serving stack, where bucket sets, batch size, and KV slots are fixed at compile time. The three mechanisms—discrete batch alignment, KV survival, prefill interference—are well motivated and supported by interventions that actually manipulate the suspected cause. The bucket-6 intervention confirming that the padding change comes from the grid, with identical step distributions, is a clean piece of experimental design. The padding-versus-cost decoupling (padding ratio down, decode time up 1.51x at N=6) corrects a real misreading of padding metrics. The single-compile-parameter story (batch_size changing both KV slots and the execution limit) is honestly laid out, and the headline savings at N=8 (8.25% and 9.72%) are cross-validated by channel B, which doesn't use the cost model. That's a strong point.\n\nThe weak spot is exactly what the stress test flags: the prefill elapsed-time model (Eq. 5) is fitted to four observations between 500 and 6,000 tokens and then extrapolated down to the 65–384 token region where this workload's residual prefill work lives. The single below-range check (88 tokens) is underestimated by about 6 ms, and the model's non-linearity means that bias propagates asymmetrically into the reuse-restoring configurations. Since the configuration ranking among 2,077 candidates flows through these predicted ratios, the quantitative selection claim is not as solid as the qualitative mechanism claims. The authors acknowledge the extrapolation (b301, b334) and report the 6 ms number transparently, but acknowledging a gap is not closing it. The same applies to the dummy-block rule: adding an observed behavior makes the simulator worse in 6 of 8 comparisons, reason unisolated. And the feedback-through-re-arrival mechanism, presented as structural, doesn't improve prediction over a fixed-arrival simulator in these data. These are not fatal—they don't touch the causal structure of the padding or reuse mechanisms—but they do mean the paper's central prescription ('select by diagnosing KV reuse loss') is supported in spirit, not in precise numbers.\n\nOverall: a genuinely useful, methodologically careful paper that is honest about its limits. The quantitative core needs another validation pass—more below-range prefill measurements, a reasoned handling of the dummy-block path, and a dissociation of the batch_size confound—before I'd trust the configuration-ranking numbers outside this exact stack and workload. But the mechanisms and the measurement craft are real. I'd send it to review.","headline":"Careful NPU serving study with a real quantitative weakness in the prefill extrapolation; qualitative mechanisms hold, but configuration-ranking is softer than the headline suggests.","tokens_in":37211,"tokens_out":1206,"duration_ms":10759},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"Tool-wait cost on fixed-shape NPUs comes from KV reuse loss, not padding","keywords":["compile-time-static serving","tool waiting","KV cache eviction","batch bucketing","NPU serving","agentic LLM","prefill interference","configuration selection"],"falsifier":"Measure server-side prefill elapsed time over many re-arrival requests whose residual computation $q = L - C$ falls in the 65-384 token range and compare each against the fitted model; if the roughly 6 ms underestimate seen at 88 tokens is larger or more variable elsewhere, the predicted cost ratios and the selected configuration would shift. Concretely, in the N=8 validation the configuration change reduces total recomputation by 17,024 tokens, so the model error's contribution to the 8.25-9.72 percent savings claim can be bounded by summing the model-versus-actual difference at each residual q.","tokens_in":39334,"feed_emoji":"⏱️","tokens_out":1787,"duration_ms":37262,"temperature":0.7,"pith_summary":"The paper asks what execution-time cost arises when agentic LLM sessions pause for external tool calls and then re-arrive on a serving stack whose decode bucket set, maximum batch size, and number of KV cache slots are all fixed at compile time. On a single Qwen3-4B instance running on an NPU server, it identifies three mechanisms through which tool waiting and re-arrival cost money: the discrete bucket grid forces padding and extra decode steps, evicted KV caches force full recomputation on re-arrival, and exclusive prefill scheduling delays other sessions decoding. The central practical claim is that compile-time configuration selection should be driven by diagnosing how much KV reuse is lost on re-arrival and what change in execution results, rather than by padding ratios, which can move opposite to cost. Where reuse was substantially lost, enlarging the maximum batch size alone cut execution cost by 8.25 percent at a concurrency of 8 (9.72 percent for the configuration that also adjusted the bucket set), while where reuse was already retained the effect was 0.59 percent.","feed_headline":"Raising one compile flag cut LLM serving cost 8.25 percent","feed_subtitle":"When tool waits evict the KV cache, reuse loss — not padding — decides the savings from new serving settings.","key_machinery":"The central object is the compile-time-static serving substrate, in which the decode bucket set, the maximum batch size, and the number of KV cache slots are all fixed at compile time (here {1,2,4,8}, 8, and 8). Three mechanisms carry the argument: discrete batch alignment, KV cache survival, and prefill interference. Survival is governed by the reuse formula $C = 128 \\lfloor \\min(p_0,p_1-1)/128 \\rfloor$ tokens, an all-or-nothing outcome under FIFO eviction with one 8,192-token sequence per slot. An event-driven simulator replays request processing in time order, recomputing completion and re-arrival times, KV eviction and reuse, and prefill and decode steps, and predicts cost ratios between configurations using measured step costs and a prefill elapsed-time model fitted to four observations.","core_discovery":"On a compile-time-static substrate, tool waiting and re-arrival affect execution cost through three measured mechanisms that couple through the arrival process: discrete batch alignment, in which the actual request count runs in the smallest compiled bucket so the bucket, not the request count, sets step cost and padding can fall while cost rises; KV cache survival, in which FIFO eviction with one sequence per slot makes reuse all-or-nothing and failure forces full recomputation; and prefill interference, in which exclusive prefill execution delays the decode of other sessions. The load-bearing result is the selection principle: compile-time configurations should be selected by diagnosing KV reuse loss and the resulting change in execution. Quantitatively, at concurrency 8 where the baseline reused KV in 9 of 24 re-arrivals, raising batch_size from 8 to 16, which also doubles the KV slots, cut execution cost by 8.25 percent, the same change plus a reworked bucket grid cut it by 9.72 percent, whereas on inputs where 17 of 18 re-arrivals already reused, the gain was 0.59 percent.","pith_inferences":["The diagnosis-reuse-loss procedure should transfer to other static-shape serving stacks, including GPU paths that fix execution shapes at capture time, provided their KV eviction unit, FIFO order, and exclusive prefill scheduling behave similarly; the paper notes the same bucket-selection rule appears in a GPU serving code path.","Because each added slot reserves 1.125 GiB and each recompilation takes 7-8 minutes, the paper leaves open the natural question of the break-even point for slot additions under repeated tool calls and accumulating context.","The all-or-nothing reuse outcome implies that workloads with partial prefix overlap or variable re-arrival ordering would stress the model differently; a testable extension is measuring multi-tool-call sessions, which the paper explicitly excludes.","The simulator's consistent overestimate of savings (positive error in every comparison) suggests that treating its predicted cost ratio as an upper bound on achievable improvement may be a safer planning heuristic than the raw number."],"forward_implications":["Where the baseline loses substantial reuse, changing only the compile parameter batch_size, which sets both the KV slot count and the execution limit, captures most of the gain of an improved configuration.","Where reuse is largely retained, adding KV slots yields little gain, and a bucket set matched to actual request counts (not slot count) is the more relevant lever.","Padding ratio and cost can move in opposite directions: at concurrency 6, tool waiting lowered the padding ratio from 0.235 to 0.120 while raising decode execution time 1.51-fold.","The simulator predicts cost ratios between configurations on new inputs within the confirmatory range with errors of 0.58-0.76 percentage points.","Compile-time configuration selection should begin by diagnosing reuse loss in the workload and should validate the chosen configuration on new inputs before adoption.","Once reuse losses are resolved, the gain from additional slots stops, so memory reservation and compile time should be weighed before adding capacity."],"supporting_citations":[{"why":"Supplies the measured tool waiting time distribution from real coding-agent usage that drives the synthetic workload and the re-arrival timing.","marker":"[13]"},{"why":"Supports the prefill interference mechanism by documenting generation stalls from prefill in GPU serving that exclusive prefill scheduling reproduces here.","marker":"[14]"},{"why":"Frames the KV survival question as a prior approach to keeping idle KV during tool waiting, which the compile-time-static setting constrains.","marker":"[5]"},{"why":"Provides the context of nonlinear latency across batch buckets on NPU systems used to reason about step cost with bucket size.","marker":"[9]"},{"why":"Offers the alternative of exploiting tool-call idle windows by offloading KV, the run-time-management contrast to the compile-time constraint studied here.","marker":"[6]"}],"fun_headline_variants":["KV reuse loss, not padding, decides LLM serving cost","Tool waits evict KV cache: batch-size fix cuts cost 8.25%","Diagnosing KV reuse loss picks better compile-time configs","Static NPU serving: reuse loss drives 9.72% cost savings","Tool re-arrival cost hinges on KV cache survival, not padding"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The load-bearing premise is the prefill elapsed-time model, fitted to only four observations and extrapolated below its 500-token fitting range precisely where the residual recomputation work of re-arrivals after reuse lies, with the single below-range check underestimated by about 6 ms, so an inaccurate extrapolation would change the cost ratios that drive configuration ranking.","fun_headline_variants_meta":{"raw":{"variants":["KV reuse loss, not padding, decides LLM serving cost","Tool waits evict KV cache: batch-size fix cuts cost 8.25%","Diagnosing KV reuse loss picks better compile-time configs","Static NPU serving: reuse loss drives 9.72% cost savings","Tool re-arrival cost hinges on KV cache survival, not padding"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000167,"raw_usage":{"cost":0.000166628,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000166628,"upstream_inference_prompt_cost":0.000127708,"upstream_inference_completions_cost":3.892e-05},"total_tokens":1256,"prompt_tokens":1117,"completion_tokens":139,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":256,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":41}},"tokens_in":1117,"tokens_out":139,"cost_source":"openrouter_usage","duration_ms":2357,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":41,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-29T20:12:42.832673+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":"Measure server-side prefill elapsed time over many re-arrival requests whose residual computation $q = L - C$ falls in the 65-384 token range and compare each against the fitted model; if the roughly 6 ms underestimate seen at 88 tokens is larger or more variable elsewhere, the predicted cost ratios and the selected configuration would shift. Concretely, in the N=8 validation the configuration change reduces total recomputation by 17,024 tokens, so the model error's contribution to the 8.25-9.72 percent savings claim can be bounded by summing the model-versus-actual difference at each residual q.","supporting_citations":[{"cited_title":"TraceLab: Characterizing Coding Agent Workloads for LLM Serving","cited_arxiv_id":"2606.30560","evidence_quote":"Supplies the measured tool waiting time distribution from real coding-agent usage that drives the synthetic workload and the re-arrival timing."},{"cited_title":"Taming throughput-latency tradeoff in LLM inference with Sarathi-Serve,","cited_arxiv_id":null,"evidence_quote":"Supports the prefill interference mechanism by documenting generation stalls from prefill in GPU serving that exclusive prefill scheduling reproduces here."},{"cited_title":"Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live","cited_arxiv_id":"2511.02230","evidence_quote":"Frames the KV survival question as a prior approach to keeping idle KV during tool waiting, which the compile-time-static setting constrains."},{"cited_title":"Latency Prediction for LLM Inference on NPU Systems","cited_arxiv_id":"2606.18042","evidence_quote":"Provides the context of nonlinear latency across batch buckets on NPU systems used to reason about step cost with bucket size."},{"cited_title":"Idleness is Relative: Exploiting Tool-Call Idle Windows for Offloading in Agentic Systems with MORI","cited_arxiv_id":"2606.00866","evidence_quote":"Offers the alternative of exploiting tool-call idle windows by offloading KV, the run-time-management contrast to the compile-time constraint studied here."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}