MiniPIC: Flexible Position-Independent Caching in <100LOC
Nathan Ordonez, Thomas Parnell
NeurIPS 2026
TL;DR. We implement a position-free KV cache and user-controlled special tokens in vLLM to enable position-independent caching with fewer than 100 lines of core code changes, improving prefill throughput by up to 49%.
Abstract. Retrieval-augmented and agentic workloads repeatedly prefill recurring predictable structured inputs (which we call "spans") such as documents and code files. Yet, prefix caching in engines such as vLLM cannot reuse their KV entries unless they share identical prefixes with another request, while Position-Independent Caching (PIC) implementations within production-grade inference servers typically either require substantial server code changes or keep KV state outside the server, incurring host-to-device transfer overhead. We present Minimalistic PIC (MiniPIC): a minimal, flexible and fast vLLM design built from two ingredients: a positional-encoding-free KV cache and user-controlled cache-reuse primitives. MiniPIC stores unrotated K vectors in the KV cache, applies RoPE to K tiles inside attention using per-request logical positions, and exposes three user-facing and token-level primitives: block-aligned padding, SSep, and PDep, that modify hashing behavior and effective block-level causal attention structure. With fewer than 100 lines of core-engine changes plus a custom attention backend, these primitives are sufficient to realize multiple PIC methods, including Block-Attention, EPIC, and Prompt Cache, within the same running vLLM instance, while natively integrating with KV cache CPU offload implementations. On 2WikiMultihopQA, MiniPIC with interleaved scheduling improves prefill throughput by 49% over baseline vLLM, reduces cached-span time-to-first-token by up to two orders of magnitude, and incurs only a 5.7% reduction in no-span throughput.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers generally agree that the paper addresses an important systems problem and presents a technically plausible, unusually simple implementation of position-independent caching. The minimal integration with vLLM, avoidance of KV repositioning, and encouraging performance results are meaningful strengths. However, several issues require clarification before the paper can be strongly considered for acceptance.
Please prioritize the following points in the rebuttal:
- Clarify the novelty relative to MEPIC. MEPIC also stores position-free keys and applies RoPE inside attention. Please clearly distinguish the technical contributions of MiniPIC, including which components are shared with prior work and which aspects—such as the user-controlled primitives, integration model, implementation footprint, or scheduling—are genuinely new.
- Explain the user-facing contract and its practical correctness. Please specify who implements padding, SSEP, and PDEP, how these operations interact with tokenizer and block-size details, whether padding tokens are fully masked, and how incorrect placement is detected or prevented. This is important for determining whether the small server-side implementation reflects genuine simplification or primarily moves complexity outside the engine.
- Clarify the operating regimes and trade-offs against SPNL and related systems. In particular, is there a concurrency or cache-pressure regime where SPNL performs better because it provides stronger residency or dependency guarantees? A focused analysis using existing measurements, or limited additional evidence if readily available, would be useful.
- Explain cache effectiveness and scheduling correctness. Please report or discuss cache-hit/reuse behavior, eviction risks, and how max_num_seqs should be selected to ensure that span-prefill requests complete before dependent requests are scheduled.
Broad evaluations across many additional models or datasets are not essential for the rebuttal. The most important issue is whether the authors can convincingly establish that MiniPIC provides a novel and practically usable systems abstraction rather than merely relocating implementation complexity. A satisfactory response to these questions would be an important consideration in favor of acceptance.
Final justification
I have read the authors’ rebuttal and the subsequent reviewer discussion, and I believe the response satisfactorily addressed the main concerns raised in the initial meta-review.
In particular, the authors clarified the novelty relative to prior work, explained the intended division of responsibility with the orchestration layer, and provided substantial additional experiments on concurrency, cache effectiveness, and scheduling. Two reviewers explicitly raised their scores after the rebuttal, while the remaining reviewer maintained a positive score after considering the new evidence. Although one reviewer still notes a practical limitation regarding safeguards against malformed inputs, I do not consider this concern sufficient to outweigh the paper’s technical contributions and empirical evidence.
I therefore maintain my original recommendation of Accept.
Read meta-review
Meta-review
The reviewers generally agree that the paper addresses an important systems problem and presents a technically plausible, unusually simple implementation of position-independent caching. The minimal integration with vLLM, avoidance of KV repositioning, and encouraging performance results are meaningful strengths. However, several issues require clarification before the paper can be strongly considered for acceptance.
Please prioritize the following points in the rebuttal:
- Clarify the novelty relative to MEPIC. MEPIC also stores position-free keys and applies RoPE inside attention. Please clearly distinguish the technical contributions of MiniPIC, including which components are shared with prior work and which aspects—such as the user-controlled primitives, integration model, implementation footprint, or scheduling—are genuinely new.
- Explain the user-facing contract and its practical correctness. Please specify who implements padding, SSEP, and PDEP, how these operations interact with tokenizer and block-size details, whether padding tokens are fully masked, and how incorrect placement is detected or prevented. This is important for determining whether the small server-side implementation reflects genuine simplification or primarily moves complexity outside the engine.
- Clarify the operating regimes and trade-offs against SPNL and related systems. In particular, is there a concurrency or cache-pressure regime where SPNL performs better because it provides stronger residency or dependency guarantees? A focused analysis using existing measurements, or limited additional evidence if readily available, would be useful.
- Explain cache effectiveness and scheduling correctness. Please report or discuss cache-hit/reuse behavior, eviction risks, and how max_num_seqs should be selected to ensure that span-prefill requests complete before dependent requests are scheduled.
Broad evaluations across many additional models or datasets are not essential for the rebuttal. The most important issue is whether the authors can convincingly establish that MiniPIC provides a novel and practically usable systems abstraction rather than merely relocating implementation complexity. A satisfactory response to these questions would be an important consideration in favor of acceptance.
Final justification
I have read the authors’ rebuttal and the subsequent reviewer discussion, and I believe the response satisfactorily addressed the main concerns raised in the initial meta-review.
In particular, the authors clarified the novelty relative to prior work, explained the intended division of responsibility with the orchestration layer, and provided substantial additional experiments on concurrency, cache effectiveness, and scheduling. Two reviewers explicitly raised their scores after the rebuttal, while the remaining reviewer maintained a positive score after considering the new evidence. Although one reviewer still notes a practical limitation regarding safeguards against malformed inputs, I do not consider this concern sufficient to outweigh the paper’s technical contributions and empirical evidence.
I therefore maintain my original recommendation of Accept.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
KV Caches encode a history of KV pairs, however, they do so in a positional encoding. Due to the positional encoding, reuse of elements in the KV cache is limited strictly to common prefixes. Position-Independent Cacheing aims to allow higher amounts of reuse in the KV cache. They break the prompt sequence / context up in spans where spans (subsets of tokens) can be independently cached, and reused among prompts. This is particularly promising in the case of RAG, where a span may correspond to a document. Several PIC methods have been proposed, however, they have fairly high complexity and require intrusive changes in the LLM inference server. MiniPIC defines a PIC approach with small code changes in the server (<100 lines) and a custom attention backend. Experimental evaluation demonstrates that MiniPIC achieves a speedup over state-of-the-art approaches.
Strengths and weaknesses
The contribution is clearly explained at an appropriate level of detail. To the best of my knowledge, it is technically sound.
Designing a solution that is simple and effective is important. Moreover, the simplification reduces computation which contributes to speedup. This should be meaningful to the community.
Some minor points: The theoretical analysis of throughput adds a term "barrier idle time", as if it is a part of the computation. This mixture between an equation of computational complexity and an informally defined idle time lacks rigour. Moreover, the idle time isn't fully idle time but a period of poor GPU utilisation.
Section 3.1.1 contains a broken link to a figure.
The authors mention a few times that max_num_seqs should be set such that the ordering is guaranteed correct, however, it is not explained what that value should be.
Questions
Q1. The experimental evaluation does not assess the effectiveness of caching, i.e., is MiniPIC as effective in using the KV cache space as other approaches? What is the cache hit rate? What fraction of cached spans is reused before eviction?
Q2. The authors assume a fixed span-attention mask. What modifications would be required to support varivable span-attention masks?
Q3. How would you set max_num_seqs such that correct ordering in the scheduler is guaranteed?
Limitations
yes
Final justification
Useful additional discussion; score retained.
Formatting concerns
N/A
4 comments
Thank you for the responses.
Q1: Cache hits I truly believe that collecting detailed statistics is essential to validate that your assumptions on how/why performance is affected are true. Please collect necessary statistics.
Q2: you may ignore the question.
Q3: max_num_seqs It is fair that there is an optimum value for this configuration parameter and that it needs to be determined experimentally. Such tuning of parameters however becomes problematic when the optimal value depends strongly on the data set. Results are shown for only one data set. Moreover, only 3 values for the parameter are evaluated. Please provide validation that performance is robust to a reasonable choice of max_num_seqs and that the optimum value is not strongly dependent on the data set.
Rebuttal to Reviewer dgxU Comment (1/2)
We thank the reviewer for insisting on both points; we think the below measurements will make a good addition to the paper, in the revision.
Q1: "Please collect necessary statistics."
We measure across our existing dataset, and the Natural Questions dataset (NQ) [1], while taking only the first 3'200 samples from each due to time constraints, and explain the results: With output tokens disabled (max_tokens=1, i.e. the prefill-node regime of a disaggregated setup, which the paper focused on for simplicity), the cache-hit rate remains at its expected maximum, 100% of document-span tokens, at every max_num_seqs (Table R1). In this regime max_num_seqs mostly balances quantities internal to vLLM that are not directly related to PIC (such as available concurrency), so its throughput optimum is deployment-dependent rather than a PIC correctness/caching constraint, and defer to inference server defaults (128 in vLLM). Table R1 shows PIC cache effectiveness is insensitive to the choice here. We therefore focus the rest of this answer on the more interesting case where output tokens are non-zero.
Table R1: prefill regime (max_tokens=1), ISPS, gpu_memory_utilization=0.9. Doc-span cache hit and throughput.
| max_num_seqs | 2Wiki hit | 2Wiki samp/s | NQ hit | NQ samp/s |
|---|---|---|---|---|
| 16 | 1.00 | 38.30 | 1.00 | 23.21 |
| 64 | 1.00 | 40.71 | 1.00 | 22.71 |
| 256 | 1.00 | 41.14 | 1.00 | 25.37 |
| 1024 | 1.00 | 44.52 | 1.00 | 22.79 |
| 2048 | 1.00 | 41.67 | 1.00 | 25.31 |
Once output tokens are involved: requests stay resident much longer, and if max_num_seqs does not constrain the spread of running requests over the batch stream, spans prefilled for later batches are evicted before their parent span queries are scheduled. To show this, we ran a sweep over 14 values of max_num_seqs values with non-zero output token generation (up to 512 allowed output tokens) and two datasets (2Wiki: mean prompt 1,179 and mean output length 80 tokens; NQ: 1,657 and 99), using the paper's gpu_memory_utilization=0.9 (90% of the available VRAM is allocated to the KV cache). The hit rate indeed drops when max_num_seqs is set larger than a dataset-specific point, and throughput drops with it (Table R2).
Table R2: decode regime (max_tokens=512), ISPS, gpu_memory_utilization=0.9.
| max_num_seqs | 2Wiki samp/s | 2Wiki hit | NQ samp/s | NQ hit |
|---|---|---|---|---|
| 8 | 8.25 | 1.00 | 6.73 | 1.00 |
| 16 | 14.95 | 1.00 | 10.33 | 1.00 |
| 32 | 19.42 | 1.00 | 13.23 | 1.00 |
| 48 | 24.25 | 1.00 | 15.73 | 1.00 |
| 64 | 27.01 | 1.00 | 16.91 | 1.00 |
| 96 | 29.08 | 1.00 | 17.46 | 1.00 |
| 128 | 31.40 | 1.00 | 18.62 | 1.00 |
| 192 | 31.43 | 1.00 | 18.31 | 1.00 |
| 256 | 33.32 | 1.00 | 14.76 | 0.65 |
| 384 | 34.06 | 1.00 | 10.13 | 0.086 |
| 512 | 17.18 | 0.14 | 10.86 | 0.086 |
| 768 | 18.18 | 0.14 | 10.05 | 0.086 |
| 1024 | 17.04 | 0.14 | 10.86 | 0.086 |
| 2048 | 17.85 | 0.12 | 9.94 | 0.066 |
To illustrate that this 'spreading effect' grows over time, we split the ordered final-query stream into ten consecutive chunks: chunk 0 is the first 10% of final queries, chunk 1 is the next 10%, and so on. When max_num_seqs is safe, every chunk has 100% doc-span hits. When it is too large, the first chunk still hits because not enough previous batch requests are generating tokens and allocating new KV cache blocks, but during later chunks we see that once the number of concurrent requests generating output tokens has reached a certain level, they start overwriting blocks allocated to spans from later batches (Table R3).
Table R3: doc-span hit by consecutive chunk of the final-query stream (chunk 0 = first 10%).
| final-query chunk | 2Wiki @384 | 2Wiki @512 | 2Wiki @1024 | NQ @192 | NQ @256 | NQ @384 |
|---|---|---|---|---|---|---|
| 0 | 1.00 | 1.00 | 1.00 | 1.00 | 0.95 | 0.80 |
| 1 | 1.00 | 0.40 | 0.40 | 1.00 | 0.54 | 0.00 |
| 2 | 1.00 | 0.00 | 0.00 | 1.00 | 0.53 | 0.00 |
| 3 to 9 | 1.00 | 0.01 | 0.01 | 1.00 | 0.62 | 0.01 |
We further demonstrate the effect is a KV-cache-capacity issue by changing only the KV cache size (gpu_memory_utilization). The "predicted capacity" below is measured in concurrent sequences: KV cache tokens divided by the average resident tokens per 2Wiki sequence (prompt + output ≈ 1,259). Enlarging the KV cache size moves the failure point to larger max_num_seqs and flips the identical max_num_seqs=384 from collapsed to healthy (Table R4). To show this point further, we enable vLLM's native CPU KV cache offload feature, which effectively increases the available KV cache space and restores cache hits to cover all spans. While this plausibly could affect request throughput, we in fact measure 33.5 samples/s, close to non-collapse throughput, so this is not the case.
Rebuttal to Reviewer dgxU Comment (2/2)
Table R4: 2Wiki decode doc-span hit when only KV cache size changes.
| setting | GPU KV cache tokens | CPU KV offload | predicted GPU-only safe max_num_seqs | hit @256 | hit @384 | hit @512 | hit @1024 |
|---|---|---|---|---|---|---|---|
| util 0.7 | 316,096 | 0 GB | 251 | 1.00 | 0.10 | ||
| util 0.8 | 380,960 | 0 GB | 303 | 1.00 | 0.32 | 0.12 | 0.12 |
| util 0.9 | 445,824 | 0 GB | 354 | 1.00 | 1.00 | 0.14 | 0.14 |
| util 0.9 + native CPU offload | 420,400 | 40 GB | — | 1.00 |
In conclusion, for disaggregated prefill nodes, no special action is needed: Table R1 shows the cache hit rate stays at 1.00 even at high max_num_seqs. For mixed or decode-heavy nodes, one can keep max_num_seqs below the KV-capacity limit, but CPU offloading is the recommended solution.
Q3: "Please provide validation that performance is robust to a reasonable choice of max_num_seqs and that the optimum value is not strongly dependent on the data set."
We see the choice as balancing two objectives: (1) max_num_seqs large enough that concurrency saturates GPU utilisation (the rising part of the curve), and (2) small enough that the KV pool can hold that many sequences at their maximum sequence lengths. The optimum is therefore data-dependent: NQ's longer resident sequences shift both the peak and the collapse to lower values than 2Wiki (Table R2).
From a dataset-independent perspective however, we still recommend the bound discussed earlier: max_num_seqs × max_model_len ≤ kv_cache_size. We do not propose this as a practical setting for 256'000-token context models however; it is only a simple worst-case bound. In these experiments, max_model_len was set to 8,192 to match the 2Wiki/NQ evaluation setup, whose prompts are much shorter than the model's possible context length. With kv_cache_size = 445,824 tokens, the worst-case bound gives max_num_seqs ≤ ~54. This can be extended however, by enabling KV cache offloading.
For a practical setting, using the workload's observed resident footprint instead: average prompt length plus average output length. In our runs this is about 1,259 tokens for 2Wiki and 1,755 for NQ, giving estimated ceilings of ~354 and ~254. These estimates match the observed onset regions in Table R2 (2Wiki last healthy 384, first collapsed 512; NQ last healthy 192, partial at 256 and full collapse by 384), and the same rule tracks the boundary movement in Table R4. In the vLLM V1 scheduler configuration, the default max_num_seqs is 128, which falls inside the healthy plateau on both datasets.
In the revision, we will report hit rates next to the sweep, label each sweep's regime, and include the earlier committed fixes ("barrier idle time" reformulation, figure link). We will also include the above tables.
Q2: noted, thank you.
We thank the reviewer again, these were the right experiments to ask for.
[1] Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. 2019. Natural Questions: A Benchmark for Question Answering Research. Transactions of the Association for Computational Linguistics, 7:452–466.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a modular position-independent caching algorithm that LLMs can easily integrate and that spans can easily use. The approach is solid, and the algorithm is sound. The work needs some key clarifications and can benefit from an improved presentation and evaluation.
Strengths and weaknesses
Thank you for submitting to NeurIPS26. I think your work is great, yet it needs clarification in a few key points.
Strengths:
S1. Great problem.
S2. Great solution.
Weaknesses:
W1. The proposed method needs clarification.
a. Section 3.1.2: I am not sure about pushing the complexity to the user (Line 168, 169). This is one of my main criticisms of the (great) work. Where are the implementations of padding, ssep, and pdep? Does the user have to implement them? I am a bit confused on that. Is there an extra complexity that your system does not handle, and is this partly the reason that you can go below 100 LOC? This is critical.
W2. Related work comparison can get deeper.
a. Section 2.3: CIDRA’s cost seems very high. How does it pay off its own cost then? I suspect it’s when under high concurrency.
b. Section 3, intro: How is your PE-free KV cache implementation different than vanilla RoPE implementation? Have you saved anything in terms of LOC within that?
c. My second biggest comment is that SPNL, despite all its overhead, should be better or equivalent to your method under the condition that works best for SPNL. You have a great solution to the modularity problem. Yet, when a system is vertically integrated specifically for a workload, it is often higher performing than the modular solution. It is a trade-off. This trade-off is not quantified right now. Where do you lose? What is the cost of having the modularity you have? In the limitations, you touch on this issue (“under high concurrency”), which is great, but one experiment quantifying this trade-off would be great. Perhaps, you keep pace with SPNL despite the high concurrency, at least to some degree? Or, you lose against SPNL under high concurrency, which is also fine, because your implementation is cheaper. You win big on the LOC metric. This quantification wouldn’t reduce the quality of your work; it would increase it. There is no free lunch.
W3. Further clarifications:
a. Section 3.1.1: Figure ?? missing the figure number.
b. Section 3.2.1, line 181, 182: I think it would be valuable to show the algebraic equivalence mathematically.
c. Figure 1 is not referred to in the text. Please simply put (Figure 1) in the related part, so we can go and look while reading.
d. Paragraph starting at Line 296: Can we quantify the LOC for SPNL? It would be useful to estimate your achievement.
Questions
Q1. Where are the implementations of padding, ssep, and pdep? Does the user have to implement them? Is there an extra complexity that your system does not handle and pushes the complexity to the user, and is this partly the reason that you can go below 100 LOC?
Q2. Is there any scenario in which SPNL outperforms your method? If so, what is this scenario, and why does SPNL outperform your method?
Limitations
Yes.
Final justification
I thank the authors for their responses. My comments are well addressed. I raised my score accordingly.
I ask the authors to please include the experiments we worked on in their last response, the clarifications around the behavior/placement distinction, CIDRA’s high cost, the LOC results from my W3d, and other minor fixes in my W3.
Formatting concerns
N/A.
5 comments
Rebuttal to Reviewer W2oQ (1/2)
We thank Reviewer W2oQ for the generous and detailed review. We are glad the reviewer sees a "great problem" and a "great solution," and we hope the clarifications below close the remaining gaps.
Q1 / W1a: "Where are the implementations of padding, ssep, and pdep? Does the user have to implement them? … is this partly the reason that you can go below 100 LOC?"
We would like to separate two things. The behaviour is server-side: SSEP/PDEP modify block hashing (33 LOC in the block hasher), but only when they are at the beginning of a block (group of 16 consecutive tokens), and the position-free kernel applies RoPE in attention. The placement sits above the engine: stateless token manipulation (tokenise, prepend marker, pad to a block multiple) following §3.3.1 and ISPS steps 1–4, is performed by a programmatic layer (orchestrator or agentic harness) that already owns tokenisation and already models server behaviour for cache-hit purposes. This division of labor matches the ecosystem's own direction: For example, vLLM RFC #22817 introduces a token-in/token-out API explicitly motivated by disaggregated tokenisation and "custom frontends around vLLM". Also worth noting is that Claude Code developers state Claude Code is: "built around prompt caching from day one", and Manus (Meta) developers state: "the KV-cache hit rate is the single most important metric for a production-stage AI agent". Thus, we believe there is motivation for layers above the inference server to further manually exploit control over caching mechanisms. We also view SPNL's front-end (parsing span queries into requests sent to a backend) as the closest example of such a layer above vLLM that already manages PIC mechanisms, special token placement, and padding.
W2a: "CIDRA's cost seems very high. How does it pay off its own cost then? I suspect it's when under high concurrency."
The reviewer's suspicion is right: on a cache hit, repositioning (≤500 tokens/ms, their Fig. 13a) is far faster than prefilling, and this is best amortised when many blocks need to be repositioned at the same time, so CIDRA pays off on hits. But with multi-position concurrency (the same span is used in multiple positions at the same time), there is also a memory cost: each concurrent position requires its own copy in the KV cache (memory amplification), potentially overwriting past cached spans, and copy operations are unfused with LLM forward passes, consuming memory bandwidth without interleaving with compute (§2.3, App. A). MEPIC solves this in most cases by allowing span re-use, but because they introduce a span-level caching subsystem, they lose the ability to share prefix blocks between spans, meaning if two long spans have a shared prefix, no matter how long, MEPIC will keep two copies of the identical KV prefixes in memory, thus causing unnecessary memory consumption that further reduces maximum concurrency.
W2b: "How is your PE-free KV cache implementation different than vanilla RoPE implementation? Have you saved anything in terms of LOC?"
Regarding the PE-free KV cache: the K-rotation operation is typically applied before writing to the KV cache, which we skip. Instead we route the cos/sin cache, necessary for RoPE application, to the attention kernel, causing 5 LOC changes in the rotary layer plus routing lines (Table 2). This allows the modified Triton kernel (251 LOC changes) to apply RoPE on K vectors at every forward pass.
But the important LOC reduction is that this makes SPNL's CIDRA unnecessary. One could say that the LOC change count has been 'moved' to the attention backend, and this was a goal of ours because attention backends are modular in vLLM and it is much easier to propose a new backend than a modification to the scheduler. But it's important to note that even then, our implementation is smaller (see W3d response).
Rebuttal to Reviewer W2oQ (2/2)
W2c / Q2: "SPNL … should be better or equivalent to your method under the condition that works best for SPNL … This trade-off is not quantified right now."
We agree the trade-off should be quantified, and we believe existing measurements already bracket it. Whenever a request triggers a forward pass rather than a cache hit, i.e. long decode phases, or prefill of long non-cached sequences, MiniPIC pays the RoPE-in-kernel cost on every attention call while SPNL's path is stock vLLM: Figure 2 (left/middle) and Table 1's PIC-disabled row (where our custom RoPE implementation is still enabled) bound this at ≤5.7%. When cache hits do occur, SPNL's CIDRA incurs time and memory overhead on every hit at a new position (depicted in the right plot of Figure 2), while MiniPIC's marginal cost per reuse is ≈0, so SPNL wins exactly when reuse is low, and loses where reuse is high. We also concede that SPNL's bulk-execution heuristic is uniquely advantageous when heavy span reuse is expected across a query corpus; our proposed ISPS is however complementary, so both techniques could be implemented within SPNL's front-end. There is indeed no free lunch; our claim is that the cost we pay is small and is offset as soon as any PIC cache-hits are involved. We agree this should be made more clear in the paper, and are open to discussion on which additional experiment would be most informative to you. For example, measuring TTFT vs. number of concurrent requests reusing the same spans at different offsets, in MiniPIC vs. SPNL, would showcase the contrast between the two methods.
W3: figure reference (W3a), algebraic equivalence (W3b), Figure 1 citation (W3c), SPNL LOC (W3d)
- W3a, W3c: both will be fixed, thank you for catching them.
- W3b: We will add the equivalence. A sketch of it is: MiniPIC stores unrotated key vectors , whereas vLLM typically stores pre-rotated in the KV cache; MiniPIC applies the same to the same inside the kernel. Scores, softmax, and outputs are identical, only the site of rotation differs (shared HBM blocks vs. in-kernel tiles), which is what makes the KV cache hold no positional encodings. Thus, we can show both are equivalent by simply applying the substitution rule.
- W3d: SPNL reports 492 LOC (their Table 2), so taking our LOC counts, this constitutes an ~30% reduction even when including our entire attention backend (344 vs. 492), and ~84% on core engine logic (78 vs. 492). We agree this should be included as a result in the paper to quantify the achievement. It may be of interest to note that the EPIC paper reports "2K lines of code" but since they do not break down how many are inside vLLM we cannot directly make a LOC change count comparison.
We thank the reviewer again, as we found the "no free lunch" framing genuinely useful for sharpening our claims, and are happy to continue the discussion.
Thank you for your responses.
Yes, I agree. Let’s please have the experiment that measures TTFT vs. the number of concurrent requests reusing the same spans at different offsets (W2c / Q2).
Let’s also please have:
- The ecosystem’s own direction on division of labor, perhaps as a footnote (W1a / Q1).
- A few lines of comments on how CIDRA’s cost pays off, again perhaps as a footnote (W2a).
- SPNL vs. MiniPIC vs. what EPIC paper reports as a separate sub-section, or just with a new table comparing them within the same section (W3d).
- Rating
- 3/6
- Confidence
- 2/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Authors propose a simple modification (<100 LOC) to enable Position-Independent Caching with an existing inference engine (vllm) based on asking the user to pad spans to KV-block boundaries, and the introduction of two new tokens (span separator, prompt depend).
Strengths and weaknesses
Strengths
- The approach is significantly simpler to implement than prior work but offloads responsibility to the user.
Weaknesses
- There is no mechanism to ensure that the user follows the correct padding strategy, nor do any of the existing harnesses used by users have any support to dynamically introduce padding tokens based on opaque inference engine hyperparameters (block size).
- One of the claimed contributions "MiniPIC removes the root cause by storing unrotated K vectors and applying RoPE inside attention using per-request logical positions" is not novel and already part of the MEPIC paper cited at various points in MiniPIC paper.
Questions
- MiniPIC utilizes applies RoPE to KV vectors within the attention kernel, seemingly similar to MEPIC. However you do not cite MEPIC in Section 3.2.1 describing your approach. Please help me and readers understand how the two approaches differ (if they differ) and add citation.
- It is unclear if the padding tokens you ask the user to append / introduce will be fully masked by the serving engine
Limitations
- Authors do not consider the real world implication of asking all serving engine users to take up responsibility to pad their inputs to align with the block boundaries.
Final justification
Authors have clarified that their paper referred to a "programmatic layer above the inference server" when talking about "user", providing a clearer path to programmatically address the stringent requirements on inputs that their work introduces. This is indeed a conceivable path forward. llm-d makes the proposed division of labor plausible, but we lack an implementation and mechanism to prevent incorrect MiniPIC inputs.
I am thus raising my score from reject to weak reject.
Formatting concerns
- "Figure ??" in L159
2 comments
Rebuttal to Reviewer vUpY (1/2)
We thank Reviewer vUpY for the time spent on our paper. We are glad the reviewer finds the approach "significantly simpler to implement than prior work". The follow-up concern ("but offloads responsibility to the user") is precisely the crux we would like to clarify, together with the relationship to MEPIC and our specific claimed novelties.
"One of the claimed contributions … storing unrotated K vectors and applying RoPE inside attention … is not novel and already part of the MEPIC paper ... and add citation"
The reviewer is right about the attribution, we apologise for the missing citation: the position-free K vectors are shared with MEPIC, and we will cite it explicitly in §3.2.1. We would like to emphasise that the contribution is not the KV representation itself but how it makes use of existing subsystems of the inference server (its minimality and flexibility, as stated in the contributions).
Q1: "Please help me and readers understand how the two approaches differ (if they differ)..."
We hope to clarify what we claim to be novel, the differences to MEPIC, and the benefits of our approach. Specifically:
(1) MiniPIC is the first in-engine PIC implementation with no PIC-dedicated subsystems. PIC functionality is realised through a single modification to a core inference server component (the hashing function), along with generic modifications that are either small or considered modular (such as our attention backend). In contrast, MEPIC implements PIC as an engine-managed stack: a chunk cache coordinator with its own eviction policy, a hybrid KV manager, and a selective-recomputation path. In more detail: MiniPIC realises the same class of benefits (up to two orders of magnitude TTFT reduction on cached spans) with 61 LOC of new features: one PIC-specific modification (block-hash logic, 33 LOC), one configuration block (env-var declarations, 23 LOC), and one switch (skipping K-rotation outside attention, 5 LOC) (Table 2), while a layer above the inference server is required to take care of correct hashing through padding and span-boundary placement. This is by design: it gives that layer freedom over (a) the PIC method to run (Block-Attention, EPIC), and (b) scheduling and request-submission optimisations (our ISPS, or SPNL's bulk span-query heuristic).
(2) MiniPIC treats span and non-span blocks uniformly. In MEPIC, two spans that share the same prefix, however long, store that prefix's KV vectors twice in chunk memory (even though the KV vectors are identical), while our single block pool reuses those KV blocks through vLLM's existing prefix-caching mechanism.
(3) ISPS (§3.4) contributes a batch-level scheduling strategy for span queries, answering a question prior work leaves open: given an ordered list of span queries, how should they be submitted? In contrast, MEPIC's scheduler optimisations work at the single-request level, while batch composition is left to vLLM's default FIFO; SPNL's bulk-execution heuristic determines the ordering of a set of span requests.
Overall, MiniPIC solves two important groups of problems common in PIC prior work, which we claim have not been solved simultaneously by prior work:
- PIC-specific issues: positional-encoding conflicts are avoided, and block-level alignment and boundaries between spans can be defined by a layer above the inference server.
- Open-source integration issues: significant PIC-dedicated subsystems represent dead code when PIC is disabled, and are placed in contentious core parts of the codebase, which causes difficulties when integrating with large-scale open-source projects such as vLLM.
Edit: Minor restructuring and formatting changes were made to improve readability.
Rebuttal to Reviewer vUpY (2/2)
"There is no mechanism to ensure that the user follows the correct padding strategy …"; and "Authors do not consider the real world implication of asking all serving engine users to take up responsibility to pad their inputs."
A clarification we will make prominent in the revision: by "user" we mean a programmatic layer above the inference server, an orchestration layer such as llm-d or SPNL's front-end, or an agentic harness, not a human end user. This layer already performs tokenisation, interacts with chat templates, and models server behaviour in ways more dynamic than reading a configured block size: llm-d manages prefix-cache locality cluster-wide, Claude Code developers state it is: "built around prompt caching from day one", and Manus (Meta) developers state: "the KV-cache hit rate is the single most important metric for a production-stage AI agent", and SPNL's (open-source) front-end already implements correct token placement and block-aligned padding. Placement by this upper layer is therefore mechanical (prepend a marker, pad to a block multiple), and incorrect placement can be prevented in a way analogous to how a lexer avoids matching keywords inside string literals: the layer would escape special tokens occurring in natural content. Which tokens are special is set per deployment via environment variables. This division of labor matches the ecosystem's own direction: vLLM RFC #22817 introduces a token-in/token-out API explicitly motivated by disaggregated tokenisation and "custom frontends around vLLM". We bring all of this up as context to motivate our argument that the benefits of PIC are sufficient to motivate software layers above the inference server to implement this additional level of complexity.
We thank the reviewer for raising this issue.
Q2: "It is unclear if the padding tokens you ask the user to append / introduce will be fully masked by the serving engine."
To be clear: they are not masked, and we will state this explicitly in the revision. Padding and marker tokens remain in the sequence and are visible to the model. This is in line with prior work: CacheBlend uses textual markers (according to codebase documentation, termed special strings), SPNL uses special tokens; both are visible to the model. MEPIC mentions 'segment markers' and token-level padding but does not specify visibility to the model. So we rely on prior work evaluations and do not independently ablate marker visibility.
We also wish to highlight that engine-side masking (zeroing special tokens' K vectors) was considered and deferred (see App. C).
We again thank the reviewer; we agree that the concerns raised are important, and we hope the clarifications hold up. We also commit to fixing the broken figure reference (L159).
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal to Reviewer dgxU
We thank Reviewer dgxU for the careful reading, and we are glad the contribution was found "clearly explained at an appropriate level of detail" and "technically sound." The presentation points are all well taken; answers below.
Unfortunately, due to time limitations and as a consequence of working through vLLM's Python API, we did not collect cache-hit statistics. We commit to instrumenting hit rate, recompute fraction, and potentially eviction counts for the revision, all of which we are currently working on.
Yet, we can report what our existing measurements support: the 1.49× end-to-end gain at 12,576 samples reflects improvements in cache-hits despite the overhead of our RoPE-fused attention backend.
We are intrigued by the question and would like to ask for clarification on what the reviewer means by a variable span-attention mask. What exactly would the variable span-attention mask be dependent on, and in what way would it vary?
It may be worth clarifying that the SSEP/PDEP special tokens give a layer above vLLM control over when KV vectors are loaded from the cache or not, and could potentially be used to implement other attention masks.
At the level of a single batch, ordering is correctly handled by vLLM's FIFO policy. As long as span prefill requests are submitted before their parent span query, they will be prefilled before the parent span query is computed, so it can re-use those KV blocks.
max_num_seqsrather helps with interactions between batches, as it can help manage a failure mode where parent spans from previous batches (which can execute for a long time while generating output tokens) can cause spans from later batches to be overwritten before their parent span can be scheduled and perform cache lookups. A smallermax_num_seqsstops requests from too far forward in the list of batches from running at the same time as the currently running batch's.Regarding a recommendation: Since cross-batch cache-reuse varies per pair of batches, and output token counts can be stochastic, we recommend tuning this variable for a given workload. Thus, we recommend that
max_num_seqsbe initially set to approximately fit the number of requests of a single batch:max_num_seqs=average_unique_span_count_per_batch+batch_size. Then, one can tunemax_num_seqsand the batch size to achieve different latency/throughput tradeoffs. Table 1 shows the expected concave response when tuningmax_num_seqs: (64 starves concurrency, 2048 induces memory pressure, 1024 being optimal on 2Wiki).To be clear, a cache miss costs speed and compute time, but we do not expect it to have a negative effect on correctness: a missed span is simply recomputed under the standard causal mask, bringing the request closer to a standard causal prefill, the PIC literature's accuracy reference. Since prefix cache hits are not always guaranteed in production deployments (vLLM for example, by default, offers no such guarantees, as prefixes can always be overwritten before they're reused in the future, if they're not currently being used), we consider PIC cache misses likewise acceptable, if undesirable.
Agreed on both counts: the issue of barriers is better described as a period of poor GPU utilisation while the GPU is still busy computing a (smaller) batch size forward pass, and we will reformulate accordingly. The figure link (and the missing Figure 1 citation) will be fixed.
Thank you again, we welcome any further suggestions.