Seedlabs

DocWarm: a shared-document prefill cache for document-grounded LLM apps

A caching system that makes AI document Q&A faster by remembering the first time a file was read.

DocWarm is a caching layer for document-Q&A products that runs a long document's expensive prefill pass once, stores the resulting KV blocks on the serving cluster's spare DRAM and SSDs, and lets every later question about that document skip prefill — so the hundredth analyst asking about the same filing gets a fast, cheap answer. New evidence both strengthens and bounds the idea: production traces confirm document reuse is skewed and predictable, and KV compression makes the storage tier far denser, but measurements also show that naively transferring whole KV caches over the network can be slower than recomputing prefill — so DocWarm must load cached blocks via selective, compressed, pipelined paths, with a break-even fallback to plain prefill.

Computer ScienceParallel Computing and Optimization Techniques
Multimodal Machine Learning ApplicationsA financial-research platform serving thousands of analysts deploys DocWarm in front of its vLLM cluster: each new SEC filing is prefilled once, its compressed KV cached on spare DRAM/SSD and shared across tenants, and every subsequent analyst question loads it through selective, compressed transfer instead of re-running prefill — cutting time-to-first-token and GPU cost on the long-document queries that dominate its bill.
Explainer video — the idea and its research foundation. Scripted and voiced by GLM and Piper · 21 Nov 2026.
Watch with transcript →

Concept

DocWarm is a cache layer for document-grounded LLM products — contract review, filings analysis, codebase Q&A, enterprise search. Today every user question about a long document re-runs prefill over the whole document, dominating time-to-first-token and GPU cost. DocWarm changes the unit of cost and latency from 'the query' to 'the document':

  • Each document (or chunk) is fingerprinted by content hash. On the first query, prefill runs once and the resulting KV blocks are written to a cluster-global, tiered store — hot entries in the host DRAM of the GPU servers, warm entries on their SSDs — the idle DRAM/SSD/NIC resources Mooncake [0] demonstrated can host a disaggregated KVCache.
  • Every subsequent query referencing the same document pulls the cached KV blocks and skips prefill, paying only decode cost. A new SEC filing, a trending repository, or a standard contract template is prefilled once and amortized across thousands of queries and across tenants.
  • Because user questions differ, queries are not strict prefixes of each other; DocWarm anchors reuse on the document prefix and applies partial/non-prefix reuse techniques (adaptive non-prefix reuse, heterogeneous multi-turn sharing) so a new question still reuses the document's cached KV, while multi-turn follow-ups additionally reuse the conversation prefix.
  • Exposed as a drop-in proxy in front of any OpenAI-compatible endpoint or self-hosted vLLM cluster, reporting per-document hit rates, prefill tokens saved, and load-time-vs-recompute break-even per hit.

The wedge is a single measurable unit: prefill computation amortized per popular document — with a load path engineered to provably beat recompute.

What the new evidence changes

1. Naive KV transfer can lose to recompute — the load path is now a first-class design constraint. SmartGen measured that on rented cloud instances with 25 Gbps RDMA, transferring a full 48K-token KV cache takes 6.5x longer than recomputing its prefill, and the gap widens with input size (up to 4.7x at 25 Gbps, 7.1x at 15 Gbps). So 'pull the cached blocks over the NIC' is not automatically a win; DocWarm's cache-hit path must be assembled from the techniques the new systems literature validates:

  • Selective fetch — move only the KV entries attention actually needs: profile-based essential-entry push (SmartGen cuts time-to-second-token up to 4.3x vs. full transfer) and, for sparse-attention models, cache-line-granular top-k on-demand fetch over CXL (SAC: 9.7x lower TTFT than RDMA baselines).
  • Compression in transit and at rest — GPU-friendly lossless KV compression (SplitZip) and computing directly on quantized KV to skip dequantization overhead (HACK cuts job completion time up to 70.9% vs. a disaggregated baseline).
  • Better substrates and paths — rack-scale CXL shared memory removes the NIC hop entirely (TraCT); dual-path loading pulls KV from storage into decode engines and relays it over the compute network so prefill-side storage NICs don't saturate (DualPath, up to 1.87x throughput); pipelined layer-by-layer migration overlaps transfer with the start of decode (PiKV-Serve).
  • A break-even guard — before serving a hit, DocWarm compares estimated load time (tier, path, compression) against measured recompute time for that document length and model, and falls back to plain prefill when transfer would lose. This bounds the downside: the cache can help, never hurt.

2. The demand side is validated — and eviction must be workload-aware. The first production-trace characterization of KV caching at a large cloud provider (KVCache Cache in the Wild) found that reuse is heavily skewed across requests, that single-turn reuse is as important as multi-turn reuse (exactly the many-analysts, different-first-questions pattern), that reuse is predictable within a request category, and that the cache size needed for an ideal hit ratio is moderate. This de-risks DocWarm's core 'document hit rate' question. The same study shows eviction policy is a real lever but not a headline one: a workload-aware policy cut queued TTFT by 28.3–41.9% and beat LRU/FIFO/LFU/S3-FIFO on hit rate by 8.1–23.9%, but only 1.5–3.9% over the best single baseline. DocWarm therefore ships eviction tuned per workload (document popularity plus category-level reuse timing) and reports it as a tuning knob, not a differentiator.

3. KV compression shifts the storage economics in DocWarm's favor — with two honest bounds. DeepSeek-V4.1-Flash demonstrates ~890 bytes/token global KV footprints and roughly 1/8 the persistent SSD/host-memory footprint of its predecessor, so the SSD tier holds far more documents per TB; DocWarm caches the compressed form the serving stack natively produces rather than a parallel format. The bounds: (a) cached KV is model- and architecture-specific — a model upgrade invalidates the entire document cache, compounding the document-versioning invalidation risk; (b) architectures that activate fewer parameters at prefill (8B vs. 16B at decode) make prefill itself cheaper, narrowing the per-skip saving. DocWarm's value therefore concentrates where it is largest: long documents, expensive-to-prefill models, and high query-multiplicity documents.

Why now

Mooncake [0] proves a global KVCache spanning the idle DRAM/SSD/NIC of a GPU cluster is production-viable — thousands of nodes, over 100 billion tokens per day — with gains concentrated in long-context scenarios (59%–498% more effective request capacity under SLOs; +20%/+40% throughput over vLLM on ArXiv Summarization and L-Eval). The new systems work supplies what Mooncake left open for a document-keyed cache: how to make the load path beat recompute (SmartGen, SplitZip, HACK, DualPath, TraCT, SAC, PiKV-Serve), what real reuse distributions look like (KVCache Cache in the Wild), and how dense the cached bytes can get (DeepSeek-V4.1-Flash). What no one has yet packaged is the document-keyed composition: content-hash-indexed prefill amortized across users, sessions, and tenants.

Open questions — updated

  • I/O vs. recompute (was open): largely answered — naive transfer loses (SmartGen's 6.5x penalty at 48K tokens), engineered transfer wins. Remaining: quantify break-even per tier and model for <32k-token documents.
  • Document hit rate (was open): partially answered — production traces show skewed, category-predictable reuse and moderate ideal cache size. Remaining: enterprise-specific measurement.
  • Non-prefix reuse quality: still open; no new evidence.
  • Cache-cluster cost vs. GPU savings for mid-sized deployments: still open; compression shifts it favorably, cheaper prefill narrows it.
  • Data residency / multi-tenancy regulation of cross-session KV sharing: still open.
  • Document versioning / invalidation storms: still open, now compounded by model-version invalidation (every model upgrade flushes the cache).

Written by GLM · 21 Nov 2026 · revised 1× with new research (latest 22 Nov 2026, Gemma 4 and GLM)

AI assessment

Backed by 12 papers85

A highly evidence-backed systems optimization that transforms LLM cost structures for document-heavy workloads by treating the document, not the query, as the unit of caching.

Evidence strength
5/5
The idea is exceptionally well-supported by a convergence of recent papers covering the hardware substrate (Mooncake), the demand patterns (KVCache in the Wild), and the critical I/O bottlenecks (SmartGen, TraCT, SplitZip).
Market pull
5/5
High-volume document Q&A (financial filings, legal review) has a clear economic incentive to reduce TTFT and GPU costs, and the named beneficiaries are prime targets.
Novelty & moat
3/5
While similar to 'Disaggregation Retrofit' and 'Resident Repo', DocWarm differentiates by focusing specifically on the document-keyed shared cache across different users/tenants and integrating the specific 'load-vs-recompute' break-even logic.
Feasibility
3/5
Building a proxy is straightforward, but implementing the high-performance selective fetch and compressed transfer paths requires deep systems engineering and specific hardware (RDMA/CXL) to be viable.
Wedge clarity
5/5
The wedge is sharp: a drop-in proxy that provides a measurable 'prefill tokens saved' metric for popular documents.
Simplicity / focus
4/5
The product is focused on a single mechanism (KV caching for documents) rather than an over-scoped platform, though the internal implementation is complex.

Scored by Gemma 4 · 22 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Business model & case

DocWarm makes money by selling a drop-in cache proxy to operators of self-hosted vLLM/SGLang clusters: a per-cluster subscription for the tiered KV store and orchestration layer, plus a usage component metered on prefill tokens actually saved. The one thing that must be true: on real customer workloads, the engineered load path (selective, compressed, pipelined KV transfer with a break-even fallback to recompute) must beat plain prefill often enough — and the same documents must be queried by enough different users — that measured GPU savings exceed the cache's own infrastructure and license cost.

Makes money from
Month 23
likely 22–25
Funding needed
€2.88M
Scale ceiling
87.5
self-hosted LLM inference cluster (enterprise deployment)s · €35.4M/yr
Model
Hybrid
4 organizations to approach
Assumed 83

Riskiest assumptions

  1. Customers will pay the assumed subscription of EUR 3k-20k per cluster per month, roughly 30-50% of the GPU cost DocWarm eliminates.
  2. The named beneficiaries (Bloomberg, Harvey, Glean, Sourcegraph) will actively engage as design partners — sharing workloads, hosting pilots, and eventually paying.
  3. Free automatic prefix reuse (SGLang RadixAttention, vLLM prefix caching) captures only a minority of long-document prefill savings, leaving enough value to justify paying for DocWarm.

Business analysis

The SWOT analysis reveals that DocWarm's viability hinges entirely on the engineering of the load path; while demand for document-reuse is validated by production traces, naive transfer is slower than recompute. The idea transforms a compute problem into a data-orchestration problem, shifting the value proposition toward high-multiplicity, long-document workloads where selective fetch and compression can beat the prefill clock.

Strengths4

Weaknesses3

Opportunities3

Threats3

Essential for balancing the technical strengths of the engineered load path against the weakness of model-version invalidation risks. · Generated 2026-11-22 by Gemma 4AI-generatedFull SWOT Analysis →

Who benefits

  • Harveycompany

    Many attorneys query the same long contracts and filings; caching each document's prefill once turns a 100-page-document wait into near-instant follow-up answers and directly cuts per-query GPU cost.

  • Gleancompany

    Its enterprise search answers employee questions over a stable corpus of internal documents, with popular docs getting heavy repeated traffic; per-document prefill amortization measurably reduces serving cost.

  • Code Q&A re-prefills long repository context for many developers asking about the same repos; a shared document-keyed KV cache removes that redundant computation.

  • Bloombergcompany

    Analysts across the firm query the same filings and research documents; deduplicating prefill across users cuts cost and time-to-answer on long financial documents.

Research it builds on

  1. Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving
    Ruoyu Qin, Zheming Li, Weiran He et al. · 2026 · 346 citations
    All ideas from this paper →
  2. DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression
    DeepSeek-AI, :, Anyi Xu et al. · 2026 · 119 citations
    All ideas from this paper →
  3. KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider
    Jiahao Wang, Han, Jinbo, Xingda Wei et al. · 2025 · 87 citations
    All ideas from this paper →
  4. DualPath: Accelerating Agentic LLM Inference by Harvesting Disaggregated KV-Cache Storage I/O
    Yongtong Wu, Shaoyuan Chen, Rilin Huang et al. · 2026 · 23 citations
    All ideas from this paper →
  5. TraCT: Disaggregated LLM Serving with CXL Shared Memory KV Cache at Rack-Scale
    Dongha Yoon, Younghoon Min, Hoshik Kim et al. · 2025 · 22 citations
    All ideas from this paper →
  6. HACK: Homomorphic Acceleration via Compression of the Key-Value Cache for Disaggregated LLM Inference
    Zeyu Zhang, Haiying Shen, Shay Vargaftik et al. · 2025 · 16 citations
    All ideas from this paper →
  7. SplitZip: Ultra Fast Lossless KV Compression for Disaggregated LLM Serving
    Yipin Guo, Siddharth Joshi · 2026 · 12 citations
    All ideas from this paper →
  8. Pipelined KV Cache Migration for Disaggregated LLM Serving on Heterogeneous Edge-Cloud Testbeds
    Bo Zhang, Sirui Wang, Chuan He et al. · 2026 · 7 citations
    All ideas from this paper →
  9. SAC: Disaggregated KV Cache System for Sparse Attention LLMs with CXL
    Ruiyang Ma, Teng Ma, Junru Li et al. · 2026 · 5 citations
    All ideas from this paper →
  10. SmartGen: Seamless Disaggregated LLM Inference with Selective KV Cache Transfer
    Xuchuan Luo, Jiacheng Shen, Xin Wang et al. · 2026 · 4 citations
    All ideas from this paper →
  11. SwiftCache: Efficient LLM Serving for Multi-turn Conversations with Heterogeneous KV Cache Sharing
    Jianmin Hu, Minxian Xu, Sa Wang et al. · 2026 · 2 citations
    All ideas from this paper →
  12. Adaptive KV Cache Reuse for Fast Long-Context LLM Serving
    Fei li, Song Liu, Yan Liu et al. · 2026 · 2 citations
    All ideas from this paper →
Leave feedback
feasibility