{"id":"8f6f2618-2610-4fc7-ace0-1266223246c4","arxiv_id":"2610.30791","paper_version":1,"verdict":"ACCEPT","confidence":"HIGH","novelty_score":8.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":2,"one_line_summary":"Gandalf extends SSD lifetime by 7.3x on average with negligible hit-rate impact by admitting only full-attention KV caches to SSD and keeping short-lived linear-attention states in DRAM.","lead":"Gandalf is a system for storing LLM key-value caches on SSDs that uses the type of attention layer to decide which caches get written to the SSD, cutting writes and extending SSD life without hurting cache hit rates. Operators running production LLM workloads, especially multi-round conversations and agent flows, can read this to reduce hardware cost from SSD wear.","discovery_kind":"new_method","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"No significant objection identified.","rationale":"The reader's weakest assumption (generalizability of reuse heterogeneity) is a fair description of the paper's reliance, but the paper provides empirical evidence across three traces and two models, and the trend is consistent. The WAF=1 simplification is a limitation but does not threaten the relative improvement because the write reduction is massive (e.g., 73x on TraceA). Even with higher WAF for Gandalf, the effective lifetime improvement remains large. The evaluation is thorough, baselines are compared fairly, and the system's practical benefits are demonstrable within the stated scope. No internal inconsistency or unaddressed flaw undermines the central claim.","tokens_in":25842,"tokens_out":3937,"duration_ms":48187,"concrete_test":"Re-run the ClaudeCode trace with a FEMU-based simulation that reports actual WAF for both Gandalf (alpha=1) and LRU-K (K=1). If the effective lifetime improvement (accounting for measured WAF) remains above 2x across traces, the central claim holds; if it drops below 1.5x, the WAF assumption may require revisiting.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The paper's central claim—that Gandalf extends SSD lifetime by 7.3x on average with negligible hit-rate impact—is well supported by its evaluation. The key assumption (reuse heterogeneity by attention type) is empirically validated for the evaluated models and traces. Known limitations (WAF=1, trace representativeness, DRAM sizing) are acknowledged and do not undermine the internal validity of the results. The cost–benefit analysis and sensitivity study provide convergent evidence. No load-bearing concern remains unaddressed within the stated scope.","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"This paper addresses the problem of SSD wear-out in LLM serving systems that offload KV caches to SSDs. The key insight is that in hybrid attention models (combining full and linear/sparse attention), the KV caches from different attention types have vastly different reuse patterns: full-attention KV caches are reused many times across conversation rounds, while linear-attention states are used at most once. Based on this, the authors propose Gandalf, a cache placement policy that preferentially keeps linear states in DRAM and only admits full-attention KV caches to the SSD, filtering writes by expected future reuse and SSD write cost. The evaluation uses three real-world traces (Claude Code, Qwen Bailian, AIPerf), two hybrid models (Kimi-K3, Qwen3.5-27B), and six baselines. Results show that Gandalf extends SSD lifetime by 7.3× on average (range 2–7.3× across traces) while maintaining cache hit rate comparable to the best baseline at similar hit rate. Sensitivity analysis on DRAM/SSD ratio, hyperparameter α, and model linear-to-full ratio demonstrates robustness.","tokens_in":26033,"tokens_out":2015,"duration_ms":28732,"significance":"If the results hold, Gandalf makes a significant contribution to the practical deployment of LLM serving with SSD-based KV cache offloading. The central observation that attention type correlates with reuse pattern is novel and actionable. The paper provides a clean cost-model-driven admission policy, thorough evaluation across traces and models, and explicit acknowledgment of limitations (WAF=1, DRAM sizing, workload dependency). The 7.3× average SSD lifetime improvement with negligible hit-rate impact addresses a real operational concern for production systems. The design is extendable to other flash-based storage and complementary to existing techniques.","major_comments":[{"comment":"The abstract claims 'negligible impact on cache hit rate', but in Figure 7 on ClaudeCode, Gandalf at α=1 has a miss ratio of ~0.052 versus LRU at ~0.047 (a relative increase of ~10%). The paper should quantify 'negligible' with a concrete bound (e.g., ≤0.01 increase in miss ratio) and state whether this holds across all traces, or rephrase to 'similar cache hit rate' as used in the main text.","section":"Abstract and §5.2","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The core insight—reuse heterogeneity by attention type—is empirically validated only for append-only multi-round/agentic workloads with two specific hybrid models (Kimi-K3, Qwen3.5-27B). The paper should more prominently state that the benefit depends on this workload characteristic and model architecture, and that the improvement may diminish for dense models or non-append-only access patterns. This condition is already implicit in the motivation but should be listed as an explicit scope limitation.","section":"§2.6","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The simulator assumes WAF=1, which the authors acknowledge may overestimate SSD lifetime for all techniques. However, Gandalf reduces write volume, which could reduce WAF disproportionately compared to baselines, potentially making the relative improvement even larger. The authors note this qualitatively but should provide a short quantitative discussion or reference to WAF models to bound the effect.","section":"§4, Known limitation","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"Gandalf's lines in Figure 7 are shown as a curve through α values, but the plot points for α=0 and α=64 are not labeled. Adding markers or a table with exact (miss ratio, lifetime) pairs for the endpoints and α=1 would improve reproducibility and clarify the trade-off.","section":"§5.2, Figure 7","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"Typo: 'increasingly exceeds' should be 'increasingly exceed' to agree with 'footprint'.","section":"Abstract","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"In the text 'Gandalfprioritize' and 'Gandalfextends' are concatenated; insert a space before 'prioritize' and 'extends'.","section":"§1, Introduction","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The x-axis label 'Cache Hit Rate (%)' is ambiguous: it is likely the miss ratio (since values go from 0 to 100% with lower being better). Clarify in caption or axis label whether this is hit rate or miss ratio.","section":"§2.5, Figure 3","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"The metric 'Cache miss ratio' is defined as 'the fraction of requests that are served from the cache without needing to recompute'. This seems to be the hit ratio; the term 'miss ratio' should correspond to requests that are not served from cache. Please correct the definition or rename the metric to avoid confusion.","section":"§5.1, Metrics","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"In the left panel of Figure 12, the bar for Gandalf shows 0.54 TB of SSD writes; the text says '0.58' in one place. Check consistency between figure and text.","section":"§5.7","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"minor_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"Here's my take on Gandalf. The reader has it right.\n\nWhat's new: the insight that attention type (full vs. linear) is a strong predictor of future reuse for KV caches in hybrid models. Prior cache policies treat all entries homogeneously, so they either waste SSD writes on short-lived linear states or sacrifice hit rate. Gandalf exploits this heterogeneity to gate SSD admission. That's a clean, practically useful idea, and the paper validates it on three real-world traces and multiple hybrid models. The 7.3x average SSD lifetime improvement at comparable hit rate is credible given the evaluation.\n\nThe evaluation is thorough: six baselines with swept hyperparameters, sensitivity on DRAM/SSD ratio, model linear-to-full ratio, and the alpha trade-off. The cost analysis in Figure 14 is a nice touch—it shows that SSD wear dominates cost for baselines, so Gandalf's write reduction directly lowers total cost.\n\nSoft spots, in proportion:\n- The WAF=1 assumption (§4) is acknowledged. It likely overestimates absolute lifetime for all methods, but since the comparison is relative, the improvement ratio is probably conservative: fewer writes should reduce WAF, so the real gain may be larger. Not a load-bearing flaw.\n- The central assumption—reuse heterogeneity by attention type—is validated for current hybrid models and append-only workloads. It may not hold for future architectures or non-append workloads (e.g., batch processing). The authors acknowledge this indirectly by scoping to multi-round and agentic workloads. Fair enough.\n- DRAM sizing: strict separation requires enough DRAM to hold one live linear state per session. The capacity-aware policy mitigates spills, but operators need to provision accordingly.\n- The simulator is the main evaluation vehicle. They cross-checked with a small-scale FEMU emulator, but we don't have a full-scale hardware validation. Given the cost of killing SSDs, simulation is reasonable.\n\nWho this is for: systems practitioners and researchers working on LLM serving infrastructure. The paper is well-written and the design is practical enough to adopt.\n\nRecommendation: Accept. The work is novel, sound within its stated scope, and addresses a real and growing problem. It deserves a serious referee.","headline":"Solid systems paper: well-motivated, novel insight (attention type predicts KV cache reuse), thorough evaluation. The WAF=1 assumption is a known limitation but does not undermine the central result. Recommend acceptance.","tokens_in":26570,"tokens_out":884,"duration_ms":12505},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"The paper claims that by leveraging attention-type differences in hybrid LLMs, Gandalf extends SSD lifetime by 7.3x on average without sacrificing cache hit rate.","keywords":["KV cache offloading","SSD lifetime","attention-type-aware caching","hybrid LLM","cache admission policy","flash storage endurance","LLM serving","tiered memory"],"falsifier":"If a workload trace or a new hybrid model is found in which linear-attention states are reused multiple times (e.g., in agentic loops that re-read an unchanged linear state), or in which full-attention KV caches are rarely reused (e.g., short-lived sessions with few turns), then Gandalf's placement policy would under-serve linear caches or over-provision full-attention caches, reducing or eliminating its lifetime advantage over baselines like LRU-K.","tokens_in":27364,"feed_emoji":"💾","tokens_out":3225,"duration_ms":34451,"temperature":0.7,"pith_summary":"KV cache offloading to SSD is essential for serving long-context LLMs, but production workloads quickly exhaust SSD write endurance, shortening device lifetime from years to months. Gandalf is built on the observation that hybrid LLMs contain two kinds of attention layers—full-attention and linear-attention—whose KV caches have dramatically different reuse patterns under append-only workloads like multi-round conversation and agentic workflows. Full-attention KV caches are reused across every subsequent round, whereas linear-attention states are typically reused only once or never. By placing short-lived linear states in DRAM and writing only reusable full-attention caches to SSD, Gandalf reduces write volume without harming cache hit rate. Evaluated on three real-world traces with the Kimi-K3 model, Gandalf extends SSD lifetime by 2–7.3× (7.3× on average) and achieves the lowest cache miss ratio among baselines on two of the three traces.","feed_headline":"Flash SSD lifetime boosted 7x by attention-aware KV caching","feed_subtitle":"Gandalf keeps short-lived linear caches in DRAM and writes only full-attention KV to flash, preserving hit rates while saving wear.","key_machinery":"The paper proposes a two-tier (DRAM + SSD) cache hierarchy with an attention-type-aware placement policy. The key object is the KV cache fragment, tagged by its attention layer type. A cost model computes a drop_cost (recomputation cost if dropped) and a move_cost (SSD write cost plus replacement cost from evicting lower-value entries). When DRAM is full, the system compares the ratio of drop_cost to move_cost against a tunable hyperparameter α to decide whether to write a cache to SSD or drop it. Future reuse probability is estimated from historical idle-time observations, with linear states treated as having near-zero future reuse. Lazy min-heap data structures keep decision overhead low.","core_discovery":"Gandalf is the first SSD lifetime-aware KV cache offloading system for LLM serving. Its central discovery is that attention-type information—specifically whether a KV object originates from a full-attention or linear-attention layer—serves as a reliable proxy for future reuse under append-only workloads. Using this signal, Gandalf applies an attention-type-aware placement policy that preferentially retains full-attention caches on SSD and keeps linear states in DRAM, supplemented by a capacity- and wear-cost-aware admission gate that decides whether to write a DRAM eviction to SSD based on the expected recomputation savings versus the SSD write cost. This design breaks the conventional trade-off between SSD lifetime and cache hit rate, achieving both simultaneously.","pith_inferences":["If future LLM architectures move toward uniform (full-only or linear-only) attention, the reuse heterogeneity that Gandalf exploits would disappear, forcing the system back to the traditional one-for-one trade-off between write volume and hit rate.","Gandalf's filtering strategy is complementary to device-level wear reduction techniques (e.g., retention relaxation): combining both could yield multiplicative endurance improvements beyond what either achieves alone.","The paper's oracle analysis (§3.2) implies that an optimal policy could be approximated by learning session-level reuse histories, which suggests a potential research direction for model-predictive admission that works even when attention-type signals are unavailable.","For cloud providers, the cost model (recompute vs SSD wear) used in §5.8 quantifies the hidden TCO of KV cache offloading; adopting Gandalf-like policies could rebalance resource provisioning decisions across GPU and storage budgets."],"forward_implications":["Deployments of hybrid LLMs can significantly reduce SSD replacement costs and operational overhead while maintaining inference efficiency, as SSD wear is cut by an order of magnitude.","The lifetime gains grow with the ratio of linear-state size to full-attention KV chunk size, making Gandalf especially valuable for models like Kimi-K3 that have large linear states.","The attention-type-aware placement principle is model-agnostic and can be extended to other flash-based storage tiers such as High-Bandwidth Flash (HBF), amplifying its impact.","Operators can tune the α parameter to smoothly trade SSD lifetime for cache hit rate, enabling adaptive policies under different cost and performance objectives.","For non-append-only workloads (e.g., random retrieval), the reuse asymmetry between attention types may be less pronounced, so Gandalf's benefit is workload-dependent and may require re-evaluation."],"supporting_citations":[{"why":"Provides the real-world Claude Code serving traces that are used to evaluate Gandalf and baselines.","marker":"[40]"},{"why":"Marconi is a baseline prefix caching policy for hybrid LLMs that Gandalf is compared against.","marker":"[33]"},{"why":"LRU-K is a baseline selective admission policy (writes only after K references) that Gandalf is compared against.","marker":"[35]"},{"why":"NVIDIA Dynamo's KVBM uses frequency threshold filtering, a key baseline that Gandalf improves upon.","marker":"[30]"},{"why":"LMCache provides the KV cache storage layer that Gandalf builds on and integrates with vLLM.","marker":"[7]"}],"fun_headline_variants":["Attention-aware KV caching extends flash SSD lifetime 7x","Gandalf: 7x longer SSD life by gating KV writes with attention type","SSD lifetime up 7x for LLM KV cache via attention-aware admission","Writing only full-attention KV to flash extends SSD life 7x","Intelligent KV cache offloading extends SSD lifetime 7x in LLM serving"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The paper assumes that under append-only workloads (multi-round conversation, agentic workflows), linear-attention states are reused at most once while full-attention KV caches are reused across all future rounds, a pattern empirically validated for two hybrid models on three traces but not guaranteed for all future hybrid architectures, non-append-only workloads, or models with different attention mixing ratios.","fun_headline_variants_meta":{"raw":{"variants":["Attention-aware KV caching extends flash SSD lifetime 7x","Gandalf: 7x longer SSD life by gating KV writes with attention type","SSD lifetime up 7x for LLM KV cache via attention-aware admission","Writing only full-attention KV to flash extends SSD life 7x","Intelligent KV cache offloading extends SSD lifetime 7x in LLM serving"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000156,"raw_usage":{"cost":0.000155847636,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000155847636,"upstream_inference_prompt_cost":3.9094356e-05,"upstream_inference_completions_cost":0.00011675328},"total_tokens":2155,"prompt_tokens":987,"completion_tokens":1168,"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":1066}},"tokens_in":987,"tokens_out":1168,"cost_source":"openrouter_usage","duration_ms":10846,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":1066,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-10-23T13:47:00.232015+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":"If a workload trace or a new hybrid model is found in which linear-attention states are reused multiple times (e.g., in agentic loops that re-read an unchanged linear state), or in which full-attention KV caches are rarely reused (e.g., short-lived sessions with few turns), then Gandalf's placement policy would under-serve linear caches or over-provision full-attention caches, reducing or eliminating its lifetime advantage over baselines like LRU-K.","supporting_citations":[{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Provides the real-world Claude Code serving traces that are used to evaluate Gandalf and baselines."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Marconi is a baseline prefix caching policy for hybrid LLMs that Gandalf is compared against."},{"cited_title":"Enabling High-Bandwidth Flash for Generative Recommendation Serving with Write-Aware KV Cache Policy","cited_arxiv_id":"2609.07175","evidence_quote":"LRU-K is a baseline selective admission policy (writes only after K references) that Gandalf is compared against."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"NVIDIA Dynamo's KVBM uses frequency threshold filtering, a key baseline that Gandalf improves upon."},{"cited_title":"LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference","cited_arxiv_id":null,"evidence_quote":"LMCache provides the KV cache storage layer that Gandalf builds on and integrates with vLLM."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}