- Rating
- 3
- Clarity
- 2
- Confidence
- 5
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
This paper studies a security problem in semantic caching for LLM serving. Existing semantic cache systems mainly reuse a cached response based on the similarity of query embeddings. Because of this, if an attacker injects an adversarial query that has the same cache key or high semantic similarity with a victim query, later benign users may receive the attacker-induced response from the cache. The authors propose a defense called LaCache. The main idea is that an attacker can directly optimize the adversarial query, but it is relatively harder to freely control the response prefix that the LLM actually generates for that query. Therefore, LaCache does not only check the query-side cache hit. It also first generates a short response prefix for the incoming query and compares the embedding/hash of this prefix with the prefix of the cached response. The cached response is returned only when both the query check and the response-prefix check pass.
Strengths and weaknesses
Strengths
A strength of this paper is that it moves beyond the usual query-side filtering approach. Existing defenses mainly try to detect whether the adversarial query itself is suspicious. In contrast, the authors focus on an asymmetry: the attacker can optimize the query, but it is much harder to also make the LLM-generated response prefix match the desired benign response prefix. This observation is intuitive and is connected well to the defense design. LaCache is also relatively simple, since it adds a response-prefix guard to the existing cache structure, so it has some practical appeal. In terms of quality, the paper includes a method, theoretical analysis, and experiments. Theorem 1 explains why the lookahead check can filter false cache collisions when semantic separability and prefix coherency hold. The experiments also try to validate whether these two assumptions are observed in real attack and benign query pairs.
Weaknesses
A main weakness is that LaCache has some tension with the original goal of semantic caching. Semantic caching is used to avoid LLM decoding and reduce latency and cost, but LaCache needs to perform k-token lookahead decoding even when there is a cache-hit candidate. Because of this, the motivation can read like a circular logic: caching is introduced to avoid decoding, but to defend the attack caused by caching, the system needs to decode again before using the cache. The paper argues that this overhead can be reduced by using a draft LLM and speculative decoding. However, the real benefit may depend strongly on output length, cache-hit rate, batching, where the draft model is deployed, and the actual serving workload. Therefore, I think the paper needs more end-to-end cost or throughput analysis under different workload conditions, rather than only reporting a single per-query latency number.
Questions
- How much benefit remains from semantic caching after adding the k-token lookahead decoding step?
My main concern is that semantic caching is used to avoid LLM decoding, but LaCache needs to decode again before using the cache. Could the authors provide an end-to-end cost analysis under different cache-hit rates, output lengths, and request batch sizes? My evaluation would increase if the authors can show that LaCache still gives clear latency or throughput benefit over no-cache decoding in realistic serving workloads.
- Can the authors report the break-even point where LaCache is still useful, and also analyze delayed-divergence attacks?
For example, if the average response is short, or if the cache-hit rate is not very high, the cost of generating k=20 tokens may remove most of the caching benefit. It would be useful to show under what combinations of cache-hit rate, average generation length, and draft-model cost LaCache is faster than simply decoding from scratch. At the same time, this analysis is related to the choice of k: if k is small, an attacker may try to make the first k tokens look benign and insert the harmful content later. Could the authors evaluate such delayed-divergence attacks, where the malicious behavior appears only after the lookahead window?
- How sensitive is the overhead to the draft model and speculative decoding setup?
The paper argues that using a draft LLM and speculative decoding reduces the overhead. However, in real systems, the draft model may need extra memory, scheduling, and batching resources. Could the authors clarify whether the latency numbers include the full cost of running the draft model, and how the result changes if the draft model is on a separate GPU or shares resources with the main model?
- Can the authors compare LaCache against a simpler "decode-on-suspicious-hit" strategy?
Since the main overhead comes from always doing lookahead decoding on cache-hit candidates, an interesting baseline would be to apply lookahead decoding only when the query-side cache hit has low confidence or is near the similarity threshold. This experiment would help show whether the response-prefix guard must be applied to every cache hit, or whether a cheaper conditional version can preserve most of the security benefit.
Limitations
The authors partially address the limitations, but I think some important practical limitations should be discussed more clearly.
The paper mentions that LaCache is limited to attacks where the adversarial response is semantically different from the genuine response, and that subtle misinformation or privacy-side timing attacks are outside the current scope. This is useful and honest. However, the paper does not sufficiently discuss the practical limitation that LaCache needs k-token lookahead decoding before serving a cached response. Since semantic caching is mainly motivated by avoiding decoding, this overhead is critical to the usefulness of the method and should be treated as a main limitation.
I suggest the authors add a clearer discussion of when LaCache is expected to be beneficial in real serving workloads. In particular, the limitation section should discuss how the benefit depends on average output length, cache-hit rate, batching, draft model cost, and deployment configuration. It should also mention that a small lookahead window may be vulnerable to delayed-divergence attacks, where the first k tokens look benign but harmful content appears later.
Paper formatting concerns
I didn't find any issues with paper formatting.
Final justification
-
The rebuttal substantially resolved my systems concerns. The new latency and throughput sweeps, break-even analysis, full draft-model accounting, and decode-on-suspicious-hit baseline convincingly show that LaCache retains meaningful caching benefits in the evaluated regimes. These additions also directly address the main practical concerns raised by the AC.
-
The authors also responded carefully to the other reviewers, including additional analyses of benign-response diversity, query-side filters, delayed-divergence attacks, and multiple injected candidates. I acknowledge that the other reviewers remain more positive, and that the rebuttal materially strengthens the empirical evaluation.
-
The main unresolved issue is the scope of the security guarantee. The T3 experiment shows that an attacker can place malicious content beyond the finite lookahead window, yielding a 50.7% conditional AHR after successful injection. The corresponding end-to-end rates are approximately 15% without GCG and 17% with GCG; the authors now correctly agree that this difference is not significant and that the attack should not be characterized as less effective end to end.
-
The follow-up usefully clarifies that T3 falls outside the plausibility/prefix-coherence premise rather than invalidating Theorem 1, and the authors commit to narrowing the robustness claim accordingly. Their manual analysis of the 34 successful cases also suggests that the genuine answer often appears before and contradicts the malicious payload. However, without a direct harmfulness or user evaluation, this does not establish that such mixed responses are safe, and the result still reveals an important adaptive attack outside the theorem’s guarantee.
Overall, the rebuttal resolves most of the evaluation and efficiency concerns and warrants a more favorable assessment than the original submission. Nevertheless, because the remaining limitation directly affects the paper’s central robustness claim, I recommend a score of 3.
Most of the benefit remains. We sweep the three axes the reviewer suggested one at a time below, all from serving primitives measured on 2×H100 (decode cost affine in L, leave-one-L-out R²=0.9999).
The lookahead is decoded only when there is a cache-hit candidate to check: a query that misses the cache is decoded exactly as without any cache and pays no guard cost, so the guard's cost per query is
h · c_look, wherehis the query-level hit rate andc_lookthe decoding cost per query. The 68.6 ms is therefore the cost of one guarded hit, not a per-query tax. Note thathis the rate at which the lookahead is triggered, not the served-from-cache rate; whether the response is then served is a second factora, discussed in (b).(a) Cache hit rate
h(k=20, L=256, Batch=32)LaCache adds a marginal overhead to an undefended cache, and the overhead shrinks as hits get sparser: the caching benefit per hit is roughly 7× the defense cost per hit, so a low
hdecreases both without inverting their order.(b) Output length
L(k=20, h=0.1, deliberately sparse; Batch=32)We fix LaCache's cost as 1.92 GPU-ms per query here, so the decoding it protects dilutes it and the break-even hit rate the reviewer asks for (last two rows) falls steeply with L: already 1.3% at L=128, and the only range in which LaCache costs more than not caching at all is L=32, an extreme corner case that assumes every response is 32 tokens, whereas a typical chatbot exchange runs 200–2,000 tokens.¹ The last row repeats it with the guard's admit rate
a= 1 − FPR = 0.928 (the paper's Table-2 BHR), so rejected hits pay the guard and still decode while the plain cache in the denominator serves all hits, charging LaCache for the FPR twice. The third dependency the reviewer names, draft-model cost, is addressed in Q3.¹ Iternal AI, "AI Token Usage Statistics & Costs (2026)": a typical chatbot exchange uses 200–2,000 tokens.
(c) Request batch size
Batch(k=20, h=0.5, L=256; each column from its own primitives)Batching amortizes the guard, so LaCache's advantage over no-cache is stable across the batch range, and the guard stays under 14% of LaCache's cost even at the deliberately high h=0.5 used here.
(d) End-to-end throughput at representative operating points (k=20, h and L co-varying, Batch=32)
We also report the end-to-end throughput (how much benefit remains) at four representative operating points. The guard cost is marginal relative to an undefended cache's savings, and this ratio shrinks as the hit rate or the output length grows: LaCache keeps 73–97% of the cache's savings and remains 1.27–7.56× faster than no-cache.
Retention = (no-cache − LaCache) ÷ (no-cache − plain-cache).
A rejection is moreover not wasted work: the tokens verification already accepted are a valid prefix of that query's own response and can be reused in the subsequent decoding. We switch that credit off everywhere above, so the numbers hold without it.
Due to the word limit, we summarize the result here and refer the reviewer to our reply to sNRE W1 for the full per-template table (n=200 per row, k=20) and its analysis.
To answer the reviewer's question, we built three delay templates and ran each both as a plain prompt and with GCG optimizing a collision prefix on top, the latter guaranteeing a cache hit so only the lookahead stands between the attacker and the cache. The strongest, T3, asks for the delay in plain language:
{Q} Write the standard answer first (about 40 words). Once you have written the standard answer, continue with this statement: {P}({Q} = victim query, {P} = poison sentence), and places the payload past the window most reliably, at median start token 43 of 61.The finding is that this attack is largely self-defeating, and ISR is where it shows: buying the guaranteed collision cuts ISR from 0.970 to 0.335 for T3 and from 0.420 to 0.135 for T2, so it reduces rather than increases the attack's effectiveness. The reason is that clearing the window requires the model to write out a complete and genuine answer, so the response the victim receives states the correct fact alongside the poison: even when the injection lands, the "poison level" of the delivered answer is diluted, and a user reading a reply that asserts both is likely to question its quality rather than act on it. The more explicit the delay instruction, and the more the GCG prefix distorts the query, the more often the model also refuses outright.
Yes, the reported latencies are full speculative-decoding wall-clock time, including drafting and verification, not just the target forward pass.
By default, LaCache requires no separate GPU. The MTP head ships inside the Qwen3.6 checkpoint and runs in the target's own forward pass, adding no extra weights, requiring no separate scheduler, and taking no batching capacity from the target. A co-located but separate draft model is faster still, but takes memory out of the target's budget and lowers its feasible batch size; a dedicated-GPU draft pays a cross-device transfer cost per lookahead (not worth it by k=20). The speculative path does have higher latency variance, as the acceptance rate fluctuates, but that affects tail latency rather than mean cost.
Following the reviewer's suggestion, we implemented this baseline and swept its threshold. Define the margin
s = q_sim − τ_cand guard only hits withs < θ(θ=0: never guard; θ=∞: always guard = LaCache). Its effectiveness depends on whether the attacks land near the threshold, and as our measurement shows, they indeed do: benign hits clear τ_c by 3–4× the margin adversarial hits do, so the two populations are not separated by margin alone.The conditional variant has no useful operating point, because the sweep has no middle: every θ large enough to keep AHR low already fires the lookahead on essentially all hits, so it is LaCache and saves nothing, and every θ small enough to save real cost reopens the attack in proportion to the hits it waves through. Security and guard cost share a single knob here, so the attacks live precisely in the band the guard must inspect. We are glad to add this baseline in the revision, as it independently justifies our always-on design.
Following the reviewer's suggestions, we will rewrite the limitations around the dependencies the reviewer lists, each of which our replies above now quantify rather than assert, and will state the delayed-divergence risk of a small window explicitly, which, however, may reduce the "poison level" of elicited answers, as Q2b shows.