{"id":"b72add1c-0990-4a1d-8345-1c800e7985a8","arxiv_id":"2609.27746","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":4.0,"correctness_risk":"low","formal_verification":"none","parameter_count":0,"one_line_summary":"KVSET applies classical stack-distance analysis to LLM KV prefix caches to derive all-capacity hit rates and the minimum capacity for a target hit rate in a single pass, validated on production coding-agent traces.","lead":"This paper presents KVSET, an online analyzer that computes, from a single pass over the request stream, how much KV cache capacity an LLM serving system needs to reach a target cache hit rate. It matters for sizing prefix-cache storage in agentic workloads with long conversation histories, and the authors validate it against real SGLang and Mooncake deployments.","discovery_kind":"new_application","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The exact stack-distance derivation is sound, but the Section 3 validation never establishes that the reference stream KVSET replays and the page-LRU eviction semantics it assumes reproduce what the deployed Mooncake/SGLang caches actually served; the core claim therefore rests on an unquantified…","rationale":"The reader's weakest_assumption is the load-bearing premise that real deployments behave as a single page-granular LRU cache with a faithfully captured page-reference stream. I agree that is the central risk, and I credit the reader for also noting the thin evaluation (selected capacities, no error bars, no quantitative deviations, no baseline). My stress test sharpens the premise into two concrete, separately testable sub-assumptions: (a) stream fidelity — KVSET must replay the exact interleaved, concurrent access order that the deployed cache served, not a per-request sequential order; and (b) eviction granularity — SGLang's radix cache and Mooncake's tiered store evict at prefix/block granularity, which is not identical to per-page LRU, so the exact stack-distance computation (b37) may compute exactness for a model that does not match the deployment. The paper's derivation is internally sound — this is not an error in the math, and there is no parameter-fitting circularity (parameter_count 0). Because the math is exact given the stream, the empirical Section 3 comparison is the only evidence connecting the model to reality, and it is too thin: one workload, selected capacities, qualitative 'closely match' with no number (b66, b111), and no description of how the reference stream was obtained. The authors do acknowledge the LRU-only scope (b117) and selected capacities (b69), so I do not treat those as new findings; the unresolved gap is the absence of any quantitative, protocol-backed demonstration that the replayed stream and eviction semantics match the deployment. My concrete test — feeding the actual logged per-page access stream and toggling eviction granularity — would settle whether the modeling premise holds. This supports, rather than changes, the reader's CONDITIONAL verdict: the paper should be accepted only with a rigorous quantitative validation (deviation numbers with error bars, multiple workloads, stream-fidelity protocol, and a direct comparison against kvcache-simulator). I do not see grounds to move the verdict to REJECT or ACCEPT without those conditions, so UNCHANGED is appropriate. Agreement is partial because the reader frames the gap as recoverable via better testing (error bars, trace diversity, baseline), whereas I locate the decisive unresolved element specifically in stream/ordering fidelity and eviction granularity, which only a protocol that pins the reference stream to the deployed cache's true access log can test.","tokens_in":8074,"tokens_out":6419,"duration_ms":44311,"concrete_test":"Instrument the deployed Mooncake/SGLang cache to log every page access in true interleaved temporal order at production concurrency, feed that exact byte-level stream to KVSET, and report per-capacity predicted-vs-measured hit-rate deviation for at least five capacities with error bars across at least three distinct workloads, with a pre-stated tolerance (e.g., within 2% hit-rate points). Independently, force the deployed eviction granularity to radix-subtree/prefix-chain eviction rather than per-page LRU and repeat; if KVSET's prediction error exceeds the tolerance under either condition, the page-stream modeling premise is not validated and the exactness claim (b37) must be restricted. Report the deviation number that the paper's 'closely match' (b66) actually corresponds to.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The central claim (b37: 'exact hit-rate estimates'; abstract: minimum capacity follows from the maximum LRU depth among the prefix pages) is a correct repackaging of the classical Mattson stack algorithm. Its correctness is conditional on two premises: (1) the reference stream KVSET processes is the stream the deployed cache actually saw, in true interleaved temporal order at production concurrency; and (2) the deployed cache evicts at per-page LRU granularity, not at radix-subtree/prefix-chain granularity as in SGLang's radix cache and Mooncake's tiered store. The paper does not describe the protocol that produced the reference stream for Figure 3, nor whether the deployed caches' per-page access log was used. Since stack distances are exact only given the stream, the whole loading sits on stream fidelity and eviction-semantics match. The validation is too thin to discharge it: a single internal coding-agent workload, only 'selected capacities' (b69), no error bars, no quantitative deviation figures, and no baseline against the kvcache-simulator (b30) that KVSET claims to improve. The authors do acknowledge the LRU-only scope (b117) and the selected-capacity measurement (b69), so those are not new findings; what remains unresolved is that the paper's 'closely match' (b66, b111) is asserted without a number or a protocol, and the exactness claim (b37) cannot be extended to the deployment unless the stream and eviction granularity are shown to match. If the replayed stream differs in ordering or concurrency from what the real cache served, or if eviction is radix-prefix-subtree-based rather than per-page, prediction and measurement will diverge precisely at the capacities that matter for provisioning.","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"KVSET is an online analyzer that estimates the KV cache working set for LLM serving workloads. It applies the classical Mattson stack algorithm to a stream of KV page references, using a Fenwick tree to compute LRU stack distances, and derives hit rates for many cache capacities in a single pass together with the minimum capacity required to meet a target hit rate. The paper validates the method against Mooncake and SGLang deployments on NVIDIA H20 hardware with GLM-5.2, using an internal production coding-agent trace, and reports online capacity-growth results for 99.9%, 99%, and 95% coverage targets.","tokens_in":8592,"tokens_out":6015,"duration_ms":57577,"significance":"The core algorithmic contribution is a direct and sound application of Mattson stack-distance analysis to page-granular LRU prefix caches; the computation is parameter-free and exact relative to the input reference stream. If the validation were solid, KVSET would be a practically useful and inexpensive tool for provisioning hierarchical KV cache tiers. The paper has real strengths: it ships an open-source implementation, gives a self-contained derivation of the stack-distance method, and explicitly acknowledges the LRU-only scope and the full-attention-only scope of the analysis. However, the novelty beyond classical stack-distance analysis is limited, and the empirical support is thin: one internal workload, only selected capacities measured, no quantitative error reporting, and no comparison against the kvcache-simulator baseline that motivates the work. The load-bearing assumptions about stream fidelity and deployed eviction semantics are not independently verified.","major_comments":[{"comment":"The validation never specifies how the reference stream replayed by KVSET was obtained from the production coding-agent workload, in particular whether it is the actual per-page access stream observed by the deployed Mooncake and SGLang caches or a stream reconstructed from request logs. The exactness claim in Section 1 is exact only relative to the stream KVSET consumes; if the replayed stream differs from the stream the deployed caches served, then the agreement in Figure 3 is not evidence for the deployment claim. The paper should describe the trace-collection protocol, including concurrency and interleaving, request boundaries, and the token-to-KV-page mapping, or restrict the claim accordingly.","section":"Section 3, Figure 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The paper asserts that predictions 'closely match' measurements (Section 3 and Section 5), but it reports no numerical error, no per-capacity table of predicted versus measured hit rates, and no variance information; the statement in Section 3 that only selected capacities were measured is acknowledged but does not discharge the need for quantitative error reporting. This is load-bearing because accurate estimation is the paper's central claim. I request absolute and relative hit-rate differences for every measured capacity, and preferably repeated deployments or multiple traces to indicate run-to-run stability.","section":"Section 3, Figure 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The exact stack-distance computation assumes a single page-granular LRU cache, but SGLang's radix cache and Mooncake's tiered store manage reuse at prefix, subtree, or tier granularity rather than as one LRU list of KV pages. The paper acknowledges the LRU-only scope in the conclusion, yet it validates against those deployed systems as ground truth. The paper should either provide evidence that the deployed caches' eviction decisions coincide with page-granular LRU on the measured stream (for example, by inspecting eviction logs or by comparing against an LRU-managed pool), or weaken the deployment claim to caches that implement page-granular LRU.","section":"Section 2; Section 3","authors_acknowledge":"KVSET currently applies only to caches that use LRU eviction, which is the policy adopted by the mainstream inference engines and KV cache storage systems.","authors_acknowledge_p":0.68},{"comment":"The motivation states that existing simulators such as kvcache-simulator require replaying dozens of candidate cache sizes and that KVSET substantially reduces computational and memory overhead, but no baseline comparison against kvcache-simulator or any independent capacity-by-capacity simulator is reported, and no runtime or memory numbers for KVSET are given. The online-analysis contribution therefore lacks its quantitative justification. The paper should report wall-clock and memory usage for KVSET versus independent simulation of the candidate capacities on the same traces, including the per-request online latency if applicable.","section":"Section 1; Section 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The 'theoretical hit rate' and the coverage-based capacity estimator are under-specified. A request's theoretical hit rate is defined only as the rate achievable with unlimited KV cache capacity, and the manuscript never gives the formula that maps per-page stack distances to the minimum capacity needed for a request at a target hit rate, nor how per-request requirements are aggregated into the 99.9%, 99%, and 95% coverage curves in Figure 4 or the 5 TiB and 1 TiB recommendations. This mapping is load-bearing for the online capacity-planning conclusions and should be stated precisely so that Figure 4 is reproducible.","section":"Online KV Cache Capacity Analysis, Figure 4","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"The sentence 'pages 0 and 1 hit with a capacity 1' is confusing: under a capacity-1 LRU cache, only one page can be resident at a time, so the intended example should be stated more carefully or the figure caption should spell out the access sequence.","section":"Figure 2","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The symbol for zero-hit prefill throughput appears as a placeholder in the submitted text, and the variables in Equation 1 are not all defined in the surrounding prose. Please fix the notation and define every symbol.","section":"Equation 1","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"There is a typo, 'SGLang infernce engine', and several subject-verb agreement errors such as 'KVSET identify' in the contributions and conclusion.","section":"Section 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"Several references lack venue information or are formatted inconsistently (for example, references [4], [12], and [15]); a cleanup of the bibliography would improve the paper.","section":"References","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"What's actually new here is the domain adaptation, not the math. The core is the 1970 Mattson stack algorithm plus a Fenwick tree, and the authors cite that honestly (refs 1, 2, 8). What's new is converting token-prefix reuse into a KV-page reference stream, the coverage-target capacity framing, and the open-source implementation. The empirical findings are genuinely new and useful: for a production coding-agent workload, roughly 1 TiB at 95% request coverage, 5 TiB at 99%, and no convergence at 99.9%. Those numbers are the kind of thing designers of tiered KV cache stores actually need.\n\nThe method is mathematically exact under its stated model: stack distances computed once give exact hit rates at every capacity, parameter-free. The paper does well to keep the model simple and to acknowledge the LRU-only scope (b117) and the full-attention-only limitation (b115). The coverage-target framing is a sensible, practical answer to the over-provisioning problem.\n\nThe soft spots are in the validation, and they are the load-bearing ones. Section 3 says predictions \"closely match\" measurements (b66, b111) but gives no quantitative deviation, no error bars, no variance, and no protocol describing how the reference stream for Figure 3 was collected. That matters because stack distances are exact only given the stream and the eviction semantics. The paper never establishes that the replayed stream is what the deployed Mooncake and SGLang caches actually saw in true interleaved temporal order, nor that those caches evict at per-page LRU granularity rather than radix-prefix-subtree granularity (SGLang's radix cache, for one). If eviction granularity differs, prediction and measurement diverge precisely at the capacities that matter for provisioning. The authors acknowledge they measured only selected capacities (b69), which is honest but does not resolve the missing protocol. They also never compare against the kvcache-simulator (b30) they claim to improve, so the efficiency claim is asserted rather than demonstrated.\n\nThese are addressable evaluation gaps, not errors in the derivation. The core argument holds up. A serious referee would ask for numbers and a trace-collection protocol, not a new method.\n\nFor whom: systems engineers and capacity planners at serving providers who need to size CPU memory and disk tiers for prefix caches. The workload findings alone justify a read. It deserves peer review, conditional on the evaluation being strengthened.\n\nRecommendation: send it, with conditions. Require quantitative hit-rate deviation against deployed caches, error bars and at least one more trace source, a direct comparison against kvcache-simulator, and a description of how the reference stream was captured. That's a solid, citable systems paper after those fixes.","headline":"Sound packaging of a classical algorithm for a real provisioning problem, but the evaluation is too thin to back the 'closely match' claim.","tokens_in":9107,"tokens_out":1754,"duration_ms":11733},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"KVSET estimates the KV cache working set of an LLM workload in a single pass over requests, deriving hit rates at many cache capacities at once and naming the minimum capacity for a target hit rate.","keywords":["KV cache","prefix caching","working set","LRU","Mattson stack algorithm","capacity planning","LLM inference","cache hit rate"],"falsifier":"Deploy a cache where eviction deviates from pure LRU—for example, with pinned pages or priority-based eviction—or feed a multi-tenant stream whose page references interleave differently than the modeled single-page stream, and check whether KVSET's predicted hit-rate curve still matches the measured curve at each tested capacity.","tokens_in":9589,"feed_emoji":"💾","tokens_out":2811,"duration_ms":21791,"temperature":0.7,"pith_summary":"This paper argues that the capacity question for KV cache provisioning—how much storage a workload needs to hit a target hit rate—can be answered exactly and online without simulating each candidate capacity separately. The trick is to treat the served traffic as a page-granular LRU reference stream, compute each page's LRU stack distance once in a pass over requests, and then read off hit outcomes for every capacity from those distances. KVSET is the resulting analyzer: it reports a full capacity-to-hit-rate curve per request and the minimum capacity that meets the target, using a Fenwick tree to keep stack-distance computation cheap. Validated against real deployments of Mooncake and SGLang on NVIDIA H20 with GLM-5.2, the estimates closely match measured hit rates, and the authors report that provisioning roughly 1 TiB and 5 TiB would preserve the theoretical hit rates of 95% and 99% of requests in their production coding-agent workload, while 99.9% coverage did not converge within the trace.","feed_headline":"One pass over traffic sizes the KV cache","feed_subtitle":"A single replay gives hit rates at every cache capacity, so LLM storage planning goes online with no per-size simulation.","key_machinery":"The Mattson stack algorithm is the load-bearing mechanism: under LRU, a page is retained in a cache of capacity C exactly when its stack distance is smaller than C, so recording each page's most recent access position in a Fenwick tree yields its stack distance and, with it, the hit or miss outcome at every candidate capacity from one pass. The minimum-capacity result follows because the required capacity is the maximum LRU depth among the pages that must be present to reach the target hit rate.","core_discovery":"For a page-granular LRU prefix cache, KVSET shows that a single replay of the request stream yields exact hit-rate estimates for every cache capacity: the LRU stack distance of each KV page determines, for any capacity, whether that page would have been resident, so aggregating these outcomes produces the entire capacity-to-hit-rate curve without maintaining one simulated cache per size. The minimum capacity meeting a target hit rate is then the maximum LRU depth among the prefix pages that must be retained for that hit rate. KVSET validates these estimates against measurements from deployed caches and reports that predictions closely match experiments, while reducing the compute and memory overhead that capacity-by-capacity simulation incurs, making real-time capacity analysis of production request streams practical.","pith_inferences":["The single-pass stack-distance computation implies capacity planning becomes a query over the reuse-distance distribution: any future 'what if capacity were X' question can be answered from the recorded stack distances rather than by re-running the trace, which is a stronger property than the paper's reported experiments exercise.","The coverage-based provisioning numbers (1 TiB, 5 TiB) are specific to one internal coding-agent workload, so a practitioner should re-derive them per workload; the durable result is the method, not the terabyte figures.","Because the exactness rests on pure LRU, a deployment that pins pages, uses priority eviction, or interleaves multi-tenant streams differently than the modeled page reference stream could break the predicted curve; a targeted check at unpinned, single-tenant pages would isolate where the model holds.","The stated exclusion of hybrid full-attention-plus-linear/SWA architectures invites a direct extension: the same stack-distance machinery applied to those page streams, calibrated with the suggested per-model ratio, would extend capacity planning to the newer model classes."],"forward_implications":["Capacity planning becomes an online query: operators can see, as requests arrive, how much KV storage a workload needs to preserve a chosen fraction of request hit rates, instead of deploying multiple physical cache pools or running dozens of simulated capacities.","Provisioning guidance shifts from storing all historical KV states to an explicit coverage target; for the evaluated coding-agent workload, roughly 1 TiB and 5 TiB sufficed for 95% and 99% request coverage, respectively, while 99.9% coverage did not converge within the trace.","A two-tier hierarchy can be sized directly from the analysis, e.g. roughly 1 TiB of CPU memory for 95% coverage and 5 TiB of disk for 99% coverage in the reported workload.","Because spatial locality in the low-capacity regime yields large hit-rate gains that diminish sharply beyond a point, the tool makes the storage-versus-throughput trade-off explicit instead of over-provisioning for the full history.","The same infrastructure, with its small online footprint, can serve both live request streams and offline trace replay, giving capacity analysis and runtime optimizations a shared basis."],"supporting_citations":[{"why":"Mattson et al. 1970 supplies the stack-distance algorithm that makes a single replay yield hit rates at all capacities.","marker":"[8]"},{"why":"Bennett and Kruskal 1975 formalizes LRU stack processing, the eviction model the method presumes.","marker":"[1]"},{"why":"Fenwick 1994 provides the cumulative-frequency data structure used to compute stack distances efficiently.","marker":"[2]"},{"why":"Mooncake is one of the deployed caches against which KVSET's hit-rate estimates are validated.","marker":"[10]"},{"why":"SGLang is the inference engine whose physical cache pools supply the measured hit-rate baselines.","marker":"[17]"},{"why":"kvcache-simulator represents the conventional per-capacity replay approach that KVSET is designed to replace.","marker":"[19]"}],"fun_headline_variants":["One pass sizes KV cache at every capacity","Single replay plots all KV cache hit rates","KV cache working set from one LRU stack pass","One scan finds min cache for target hit rate","KVSET: exact hit-rate curve from one replay"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The real serving system must behave as a single page-granular LRU cache whose access pattern is faithfully captured by mapping token-prefix reuse to KV-page revisits, so that a stack distance computed on that modeled stream matches what the deployed eviction actually does.","fun_headline_variants_meta":{"raw":{"variants":["One pass sizes KV cache at every capacity","Single replay plots all KV cache hit rates","KV cache working set from one LRU stack pass","One scan finds min cache for target hit rate","KVSET: exact hit-rate curve from one replay"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000143,"raw_usage":{"cost":0.000142968,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000142968,"upstream_inference_prompt_cost":0.000109368,"upstream_inference_completions_cost":3.36e-05},"total_tokens":1106,"prompt_tokens":986,"completion_tokens":120,"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":61}},"tokens_in":986,"tokens_out":120,"cost_source":"openrouter_usage","duration_ms":2217,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":61,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-24T07:31:51.441136+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":"Deploy a cache where eviction deviates from pure LRU—for example, with pinned pages or priority-based eviction—or feed a multi-tenant stream whose page references interleave differently than the modeled single-page stream, and check whether KVSET's predicted hit-rate curve still matches the measured curve at each tested capacity.","supporting_citations":[{"cited_title":"Mattson, Jan Gecsei, Donald R","cited_arxiv_id":null,"evidence_quote":"Mattson et al. 1970 supplies the stack-distance algorithm that makes a single replay yield hit rates at all capacities."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Bennett and Kruskal 1975 formalizes LRU stack processing, the eviction model the method presumes."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Fenwick 1994 provides the cumulative-frequency data structure used to compute stack distances efficiently."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Mooncake is one of the deployed caches against which KVSET's hit-rate estimates are validated."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"SGLang is the inference engine whose physical cache pools supply the measured hit-rate baselines."},{"cited_title":"Retrieved from https://github.com/kvcache-ai/kvcache-blog/tree/main/packages/kvcache-simulator","cited_arxiv_id":null,"evidence_quote":"kvcache-simulator represents the conventional per-capacity replay approach that KVSET is designed to replace."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}