- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper proposes AsdaKV, a retrieval-based KV cache management method for efficient long-context LLM inference. The main idea is to decide when to refresh the active GPU KV cache by measuring attention-overlap across decoding steps. High overlap indicates that the currently loaded cache still covers the relevant historical evidence, while a sharp overlap drop indicates semantic drift and triggers cache refresh.
Strengths and weaknesses
Strength:
-
The paper proposes a useful efficiency-oriented method for retrieval-based KV cache management. The main idea is to use attention-overlap as a refresh signal, so the system does not need to reload historical KV states from CPU to GPU at every decoding step. This is a meaningful problem because long-context inference is often bottlenecked by KV memory and CPU-GPU transfer. By detecting whether the currently selected historical windows are still similar to the previously active ones, AsdaKV can reuse the active cache when the contextual demand is stable and only trigger KV recall when a semantic drift is detected. This makes the method practically useful for reducing decoding overhead while preserving most of the FullKV accuracy.
-
The system design is relatively complete. The paper does not only introduce a drift score, but also builds a full retrieval pipeline with semantic windows, GPU-resident anchors, CPU-resident full KV storage, page-level recall, adaptive stride, and deferred KV recall. This makes the method more convincing as a practical long-context inference system. The distinction between semantic windows as the retrieval unit and fixed-size pages as the physical transfer unit is also reasonable. The evaluation covers both accuracy and efficiency, including LongBench, Math500, throughput, TTFT, and TPOT, and compares against several relevant KV cache baselines.
Weakness:
-
The offline profile calibration appears somewhat engineering-heavy. The method relies on workload profiles to choose the drift threshold and stride boundaries. Although the authors state that these profiles are calibrated offline rather than tuned directly on the evaluation benchmarks, it is still unclear how well the calibrated thresholds generalize to unseen tasks, new prompt formats, different generation lengths, or different model families. This raises a concern that part of the gain may depend on choosing a suitable workload profile. The paper would be stronger if it reported more results under profile mismatch, a single shared profile, or unseen workload types.
-
There is a gap between the theoretical analysis and the actual system implementation. The theoretical part is based on token-level top-k attention support (T_t), where attention-overlap directly measures the change in the model’s high-attention historical positions. However, the practical decoding system mainly uses query-anchor matching to select semantic windows, and then computes overlap between selected window sets. This window-level anchor selection is not exactly the same as token-level attention support. Therefore, the theory supports the general intuition, but does not fully justify the implemented detection rule. The paper would benefit from an analysis or experiment showing that selected-window overlap reliably tracks the true token-level attention-support overlap.
Questions
The paper argues that drift detection is lightweight and that deferred recall hides CPU-GPU transfer latency. However, the evaluation does not seem to separately report the cost of query-anchor scoring/top-k/overlap computation and the cost of actual KV page recall. Please provide a runtime breakdown, including average detection time, average recall transfer time, percentage of recall hidden by asynchronous execution, and the fraction of decoding steps that trigger detection and recall. This would clarify whether the efficiency gain mainly comes from fewer detections, fewer recalls, deferred transfer, or custom kernels.
Limitations
See Weakness and Questions.
Paper formatting concerns
N/A
Response to Reviewer 5PoW
We thank the reviewer for recognizing the usefulness of attention-overlap retrieval and the completeness of the system. The concerns about profile generalization, the token/window abstraction gap, and runtime attribution prompted the following analyses and experiments.
W1. Profile generalization
The four profiles represent retrieval-pressure regimes, not benchmark-specific tuning: evidence seeking, aggregation, generation-dominant reasoning, and code. Each uses 64 unlabeled, evaluation-disjoint samples from PG-19, concatenated Wikipedia documents, MATH train, and The Stack, respectively. Calibration uses only forward-pass overlap traces, never answers or evaluation accuracy.
The original "Single Profile" was actually a C4-only mismatched profile, not a fairly calibrated universal profile; we will rename it. We tested shared thresholds using
blow=τ+0.15,bhigh=min{blow+0.15,1}
A shared τ=0.60 slightly exceeds workload-specific accuracy, at higher latency. Thus profiles improve the accuracy-latency trade-off but are not required. We also tested two deployment alternatives:
The binary classifier only separates context-dominant from generation-dominant requests using length characteristics. Online calibration needs no workload label: after prefill, it uses the latest min(128,Lprefill) queries and sets τinit=Q0.05(Ω2,…,ΩP) It nearly matches workload-specific accuracy with 6.9% lower throughput. Unknown workloads can therefore use a shared threshold, coarse classification, or request-local calibration. Profile construction, mismatch analysis, and data sources are detailed in our R1 W2 response.
W2. Bridging token-level theory and window-level detection
We agree that the original paper did not analyze this coarse-graining step. Let the historical tokens be partitioned into disjoint semantic windows C1,…,Cm. For token logit zt(j) and mean-key anchor ai,
zt(j)=dqt⊤kj,ai=∣Ci∣1∑j∈Cikj
The implemented anchor score is exactly the mean token logit in that window:
st(i)=dqt⊤ai=∣Ci∣1∑j∈Cizt(j)
It is therefore an aggregation of the theoretical signal, not an unrelated external proxy. To relate it to true window attention, define unnormalized mass and log-relevance:
Pt(i)=∑j∈Ciexp(zt(j)),gt(i)=logPt(i)
Ranking by gt(i) is equivalent to ranking by true window attention mass because all windows share the same softmax denominator. Suppose logits are locally smooth inside a semantic window,
∣zt(j)−st(i)∣≤δt,j∈Ci
Then Jensen's inequality and Hoeffding's lemma give
gt(i)=st(i)+log∣Ci∣+ξt(i),0≤ξt(i)≤2δt2
If Lmin≤∣Ci∣≤Lmax and κ=Lmax/Lmin, the difference between anchor-score and true-mass pairwise rankings is bounded by
βt=logκ+2δt2
Consequently, if the anchor-score gap between the M-th and (M+1)-th windows exceeds βt, anchor Top-M exactly matches true-mass Top-M; otherwise mismatches are confined to the boundary ambiguity band. Window-length constraints control κ, while attention-continuity segmentation is intended to keep δt small.
Now let token support be Tt; let the true top-M window set be Wt∗ and expanded token set Ut∗; and let anchor selection produce Wt and Ut. For
dJ(A,B)=1−∣A∪B∣∣A∩B∣
define ηt=dJ(Tt,Ut∗) as token-to-window coarse-graining error and ht=∣Wt∗∖Wt∣ as the number of misselected windows. The token-to-selected-window approximation obeys
dJ(Tt,Ut)≤ϵt
ϵt=ηt+min(1,M2κht)
The three terms have direct design controls: attention-driven segmentation reduces ηt, a clear anchor-ranking margin reduces ht, and window-length constraints reduce κ. Using the triangle inequality and the relation between window-ID and expanded-token overlap gives
∣Ωttok−Ωtwin∣≤Et,r
Et,r=ϵt+ϵr+κ+1κ−1
The last term follows from the variable window lengths. If x=Ωtwin and Ωtexp is overlap after expanding selected windows to tokens, then
κ−(κ−1)xx≤Ωtexp≤1+(κ−1)xκx
and therefore
∣Ωtexp−Ωtwin∣≤κ+1κ−1
Hence a window-level decision is guaranteed to agree away from a narrow band around the token-level threshold:
Ωtwin<τ−Et,r⇒Ωttok<τ
Ωtwin>τ+Et,r⇒Ωttok>τ
Only values in [τ−Et,r,τ+Et,r] can produce different decisions. Thus coarse window aggregation may smooth small token-rank swaps near the threshold, but cannot systematically miss a drift whose magnitude exceeds the approximation residual.
The original support-change bound also transfers to the implementation. Let
Ωt=max(0,Ωtwin−Et,r)
Then
∣Tt∖Tr∣≤1+Ωtk(1−Ωt)
and the output-error bound becomes
∥ot−o^t(St)∥2≤2Vm(ρtk+αt1+ωtk(1−ωt))
Thus window overlap is a bounded approximation to the error-relevant token-support change. Exact token detection would require N query-key dot products and O(Nd) historical-key reads at each event. Since full historical KV is CPU-resident, this would require either keeping all keys on GPU or repeatedly scanning CPU keys, reintroducing the full-history bottleneck. With average window length L, anchor detection uses about N/L dot products, O(Nd/L) GPU metadata, and O(Nd/(LS)) amortized work under average stride S. It reduces detection compute/reads by approximately LS and metadata by L.
We also compared both detectors using Llama-3.1-8B-Instruct and a 1,024-token budget:
The detectors share 0.58-0.78 of drift points (0.685 average), while window detection matches or improves five of six task scores and raises the average from 43.62 to 43.89. Exact agreement is unnecessary: token Top-k is sensitive to rank swaps near the cutoff even when swapped tokens remain in the same loaded window. Such swaps reduce token overlap but create no KV miss. Window aggregation filters this harmless intra-window jitter while retaining cross-window transitions, consistent with the bound above.
Q1. Runtime breakdown
We profiled Llama-3.1-8B-Instruct with 32K input, 128 output tokens, a 1,024-token KV budget, A100-80GB, and PCIe 4.0:
The sources are separable. Adaptive stride eliminates 41.82% of detection events; the 1.632-ms event cost therefore is not paid every step. The exposed detection wait is only 0.0031 ms because detection runs asynchronously. Attention-overlap triggering reduces actual recalls to 6.89% of steps, directly reducing PCIe traffic. Deferred execution then hides 96.32% of each 0.568-ms transfer, leaving 0.0224 ms exposed per recall. Finally, fused scoring/top-k/overlap (1.352 ms/event), page-plan construction (0.358 ms/recall), and page-level layout reduce constant costs. Thus the gain combines fewer detections, fewer recalls, asynchronous transfer, and kernels; custom kernels alone do not explain the near-zero exposed waits. Detailed cross-method absolute latency and module attribution are in R1.