acceptodds
Published as a conference paper at NeurIPS 2026

AsdaKV: Attention-Overlap Driven Semantic KV Retrieval for Long-Context LLMs

Tianming Yan, Kun Yang, Tingwang You, Kui Ren

Abstract

Long-context inference with large language models is bottlenecked by the linear growth of the KV cache. Existing eviction-based methods reduce memory overhead by irreversibly discarding historical states, while retrieval-based methods preserve the full context but rely on retrieval units defined by tokens, fixed pages, or proxy signals including query-key similarity, clustering, and linguistic rules. Such externally defined units often misalign with the model's actual contextual dependencies during generation. We propose AsdaKV, an adaptive semantic drift-aware KV cache retrieval framework that defines semantic continuity directly from the model's inherent attention behavior. AsdaKV detects semantic drift by measuring the overlap between high-attention historical regions across decoding steps: stable overlap indicates that the active cache still covers the relevant contextual evidence, whereas a sharp overlap drop triggers cache refresh. Guided by this drift signal, AsdaKV organizes historical KV states into variable-length semantic windows, offloads full window KV states to CPU memory, and maintains only lightweight window anchors plus a fixed-budget active KV cache on GPU. During decoding, the current query retrieves relevant windows via anchor matching, while adaptive-stride drift detection and deferred page recall reduce redundant detection, retrieval, and KV reloading overhead. Extensive experiments across diverse tasks and model families demonstrate that under the same KV budget, AsdaKV achieves higher accuracy than state-of-the-art KV retrieval methods, maintains comparable decoding efficiency in long-input settings, and further outperforms existing retrieval systems for long-output generation.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_5PoWOpenReview ↗
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:

  1. 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.

  2. 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:

  1. 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.

  2. 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

1 comment

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}b_{low}=\tau+0.15,\qquad b_{high}=\min\{b_{low}+0.15,1\}

ThresholdLongBenchDecode latency
0.4040.031.17ms
0.4540.271.22ms
0.5040.371.26ms
0.5541.341.32ms
0.6042.431.38ms
Workload-specific42.401.21ms

A shared τ=0.60\tau=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:

CalibrationLongBenchMATH500Throughput
Automatic binary classifier41.2693.255.38 tok/s
Online request-local42.3592.851.76 tok/s
Workload-specific42.4093.255.58 tok/s

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)\min(128,L_{prefill}) queries and sets τinit=Q0.05(Ω2,…,ΩP)\tau_{init} = Q_{0.05}(\Omega_2, \ldots, \Omega_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,…,CmC_1,\ldots,C_m. For token logit zt(j)z_t(j) and mean-key anchor aia_i,

zt(j)=qt⊤kjd,ai=1∣Ci∣∑j∈Cikjz_t(j)=\frac{q_t^\top k_j}{\sqrt d},\qquad a_i=\frac{1}{|C_i|}\sum_{j\in C_i}k_j

The implemented anchor score is exactly the mean token logit in that window:

st(i)=qt⊤aid=1∣Ci∣∑j∈Cizt(j)s_t(i)=\frac{q_t^\top a_i}{\sqrt d}=\frac{1}{|C_i|}\sum_{j\in C_i}z_t(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)=log⁡Pt(i)P_t(i)=\sum_{j\in C_i}\exp(z_t(j)),\qquad g_t(i)=\log P_t(i)

Ranking by gt(i)g_t(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|z_t(j)-s_t(i)|\leq\delta_t,\qquad j\in C_i

Then Jensen's inequality and Hoeffding's lemma give

gt(i)=st(i)+log⁡∣Ci∣+ξt(i),0≤ξt(i)≤δt22g_t(i)=s_t(i)+\log|C_i|+\xi_t(i),\qquad 0\leq\xi_t(i)\leq\frac{\delta_t^2}{2}

If Lmin≤∣Ci∣≤LmaxL_{min}\leq|C_i|\leq L_{max} and κ=Lmax/Lmin\kappa=L_{max}/L_{min}, the difference between anchor-score and true-mass pairwise rankings is bounded by

βt=log⁡κ+δt22\beta_t=\log\kappa+\frac{\delta_t^2}{2}

Consequently, if the anchor-score gap between the MM-th and (M+1)(M+1)-th windows exceeds βt\beta_t, anchor Top-MM exactly matches true-mass Top-MM; otherwise mismatches are confined to the boundary ambiguity band. Window-length constraints control κ\kappa, while attention-continuity segmentation is intended to keep δt\delta_t small.

Now let token support be TtT_t; let the true top-MM window set be Wt∗W_t^* and expanded token set Ut∗U_t^*; and let anchor selection produce W^t\widehat W_t and U^t\widehat U_t. For

dJ(A,B)=1−∣A∩B∣∣A∪B∣d_J(A,B)=1-\frac{|A\cap B|}{|A\cup B|}

define ηt=dJ(Tt,Ut∗)\eta_t=d_J(T_t,U_t^*) as token-to-window coarse-graining error and ht=∣Wt∗∖W^t∣h_t=|W_t^*\setminus\widehat W_t| as the number of misselected windows. The token-to-selected-window approximation obeys

dJ(Tt,U^t)≤ϵtd_J(T_t,\widehat U_t)\leq\epsilon_t

ϵt=ηt+min⁡(1,2κhtM)\epsilon_t=\eta_t+\min\left(1,\frac{2\kappa h_t}{M}\right)

The three terms have direct design controls: attention-driven segmentation reduces ηt\eta_t, a clear anchor-ranking margin reduces hth_t, and window-length constraints reduce κ\kappa. Using the triangle inequality and the relation between window-ID and expanded-token overlap gives

∣Ωttok−Ωtwin∣≤Et,r|\Omega_t^{tok}-\Omega_t^{win}|\leq E_{t,r}

Et,r=ϵt+ϵr+κ−1κ+1E_{t,r}=\epsilon_t+\epsilon_r+\frac{\sqrt\kappa-1}{\sqrt\kappa+1}

The last term follows from the variable window lengths. If x=Ωtwinx=\Omega_t^{win} and Ωtexp\Omega_t^{exp} is overlap after expanding selected windows to tokens, then

xκ−(κ−1)x≤Ωtexp≤κx1+(κ−1)x\frac{x}{\kappa-(\kappa-1)x}\leq\Omega_t^{exp}\leq\frac{\kappa x}{1+(\kappa-1)x}

and therefore

∣Ωtexp−Ωtwin∣≤κ−1κ+1|\Omega_t^{exp}-\Omega_t^{win}|\leq\frac{\sqrt\kappa-1}{\sqrt\kappa+1}

Hence a window-level decision is guaranteed to agree away from a narrow band around the token-level threshold:

Ωtwin<τ−Et,r⇒Ωttok<τ\Omega_t^{win}<\tau-E_{t,r}\Rightarrow\Omega_t^{tok}<\tau

Ωtwin>τ+Et,r⇒Ωttok>τ\Omega_t^{win}>\tau+E_{t,r}\Rightarrow\Omega_t^{tok}>\tau

Only values in [τ−Et,r,τ+Et,r][\tau-E_{t,r},\tau+E_{t,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)\underline\Omega_t=\max(0,\Omega_t^{win}-E_{t,r})

Then

∣Tt∖Tr∣≤k(1−Ω‾t)1+Ω‾t|T_t\setminus T_r|\leq\frac{k(1-\underline\Omega_t)}{1+\underline\Omega_t}

and the output-error bound becomes

∥ot−o^t(St)∥2≤2Vm(ρtk+αtk(1−ωt)1+ωt)\|o_t - \hat{o}_t(S_t)\|_2 \le 2 V_m \Big( \rho_t^k + \alpha_t \frac{k(1 - \omega_t)}{1 + \omega_t} \Big)

Thus window overlap is a bounded approximation to the error-relevant token-support change. Exact token detection would require NN query-key dot products and O(Nd)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 LL, anchor detection uses about N/LN/L dot products, O(Nd/L)O(Nd/L) GPU metadata, and O(Nd/(LS))O(Nd/(LS)) amortized work under average stride SS. It reduces detection compute/reads by approximately LSLS and metadata by LL.

We also compared both detectors using Llama-3.1-8B-Instruct and a 1,024-token budget:

DetectorNQAQasperMusiqueTriviaQAP.CountLCCAvg.
Per-token Top-k29.3443.8830.3788.368.7561.0343.62
Window anchor30.0544.0831.0888.658.7560.7443.89
Drift-point overlap0.580.690.660.690.780.710.685

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:

ComponentValue
Average detection time1.632ms/detection
Query-anchor scoring + top-k + overlap1.352ms/detection
Detection trigger fraction58.18%
Exposed detection wait0.0031ms/detection
Recall page-plan construction0.358ms/recall
Actual KV page transfer0.568ms/recall
Recall trigger fraction6.89%
Exposed recall wait0.0224ms/recall
Deferred transfer hidden ratio96.32%
TPOT27.90ms

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.

Reviewer_3PqpOpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
2
Read review
Summary

The author proposed AsdaKV, an attention-overlap-driven KV cache retrieval framework that uses the model's own attention dynamics to detect semantic drift and refresh the active cache only when retrieved evidence changes. The method achieves the best average accuracy across long-context tasks.

Strengths and weaknesses

Strengths

  • The proposed method AsdaKV is novel, and the system design is thoughtful
  • AsdaKV achieves the best accuracy among various baselines, although the improvements in Table1 are within 1% on average
  • Solid experiments that cover different tasks and models. Throughput and Latency are benchmarked.

Weaknesses

My main complaints concern the writing and method performance. I may have misunderstood the latter, and I'm willing to increase my score if the authors can clarify it. Writing: While I appreciate the authors' hard work, there are many equations and designs that are not well defined or motivated:

  • In Figure 1(b), what do "attention-overlap refresh," "retrieval error," and "fixed page" mean? It seems "attention-overlap" is defined in lines 42–46? Maybe reorganize the order in the intro to make it clear.
  • Eq. 3 and 4: Are \kappa_{r(t)} and q_{r(t)} a single key/value state at a single step r(t)? Please define them explicitly and give their dimensions to make things clear. After reading through the "Three refresh signals" paragraph, I still don't understand how to decide when to refresh based on (3), (4), and (5). Are these omega scores computed at each step t? How is the next r(t) decided? What are the additional things you need to cache, and what are their sizes (e.g., query states and T_{r(t)})?
  • Lines 184–196 are hard to understand: twarm in Eq. (14) is not defined, and is i the prompt index? What do "overlap samples" and "retrieval pressure" mean? Can you also clarify the motivation for the calibration? How do you obtain this calibration set and group them into profiles? Performance:
  • The overall accuracy improvements over the baselines, LouisKV and FreeKV, are within 1% in both Table 1 and Table 2. While AsdaKV achieves the best average accuracy, it has higher latency scores than FreeKV in many cases.
  • The accuracy scores in Table 2 seem too low. The Pass@1 numbers reported by Gao et al. 2026 [1] are more than 10 points higher on the same model under Full KV. I understand that different eval scripts often yield different scores, but the differences here seem huge.
  • The throughput numbers in Figure 5 also seem too low (60 tokens/s at 16K). Based on the paper, the authors run an 8B model on a single A100 80G. I have personally conducted similar experiments before, and even for the Full KV baseline, this setting often yields 3x more tokens per second.

[1] https://github.com/microsoft/SeerAttention/tree/main/eval/reasoning_tasks

Questions
  • line 124: What's the difference between the notation k and B? Why not k = B?
  • line 127: While eq 2 is a common selection approach, if your objective is to minimize error on o_t, isn't there a gap between o_t and a_t (v_t is not considered in eq 2)?
Limitations

yes

Paper formatting concerns

no concerns

Final justification

The paper's clarity can be improved. My main concern is that the proposed method does not provide a clear advantage over existing baselines. While the authors' response doesn't fully clear my concern, I believe the contribution of the paper is solid enough; therefore, I changed my score from 3 to 4 accordingly.

1 comment

Response to Reviewer 3Pqp

We thank the reviewer for identifying several unclear definitions and evaluation issues. We agree that the original presentation obscured parts of the method, and the comments led us to run additional experiments and correct the reasoning evaluation.

W1. Definitions and protocol for Figure 1(b)

Retrieval error is measured on a fixed FullKV teacher trajectory. For layer/head output oto_t and the output using active cache StS_t, it is the head-averaged L2 distance between oto_t and o~t(St)\tilde{o}_t(S_t). Attention-overlap refresh compares the Jaccard overlap of adjacent top-k attention supports and refreshes when it falls below a threshold. "Fixed page" was poorly named: it means fixed-interval refresh with period PP, independent of semantic signals. "Oracle top-k" uses the current true top-k attention tokens at every step.

Protocol: we sample 40 LongBench examples, truncate inputs to 16K, and generate 512 steps with Llama-3.1-8B-Instruct. We first record FullKV tokens, attention, and oto_t, then replay the same trajectory without regenerating tokens. All variants use B=512, sink=32, recent=64, and the same top-k=12 cache construction; only the trigger changes. Thresholds are selected so attention/query/key triggers have approximately the same number of refreshes as the fixed-period baseline.

(a) Number of refreshes

LayerAttnQueryKeyFixed
816.015.616.216.0
1215.816.015.416.0
1616.416.215.616.0
2016.415.016.616.0
2416.415.815.816.0
2816.015.816.416.0
Avg16.1715.7316.0016.00

(b) Approximation error

LayerAttnQueryKeyFixed
898.98104.26108.19113.01
1239.4040.2640.2957.42
1674.3478.4484.43101.99
2075.7781.3082.74110.44
2463.3064.6765.5089.15
2868.6872.0873.8773.21
Avg70.0873.5075.8490.87

Thus the advantage is not caused by more frequent refreshes. We will define these terms before Figure 1 and rename "fixed page."

W2. Eqs. (3)-(5), refresh decisions, and cache cost

Eqs. (3)-(5) are defined for one layer ll and one KV head hh. Both qr(t)q_{r(t)} and κr(t)\kappa_{r(t)} are single dd-dimensional(head-dim) vectors at step r(t)r(t), not sets of states. Under GQA, KV head hh is shared by query-head group GhG_h:

qt=1∣Gh∣∑g∈Ghqt(g)∈Rdq_t = \frac{1}{|G_h|}\sum_{g \in G_h}q_t^{(g)} \in R^d

κt∈Rd\kappa_t \in R^d is the generated token's key for that KV head. The subscript r(t)r(t) denotes copies frozen at the latest refresh. TtT_t is the set of position IDs of the top-k historical attention tokens.

For all three signals, r(t)r(t) is the latest refresh step, a scalar continuity score Ωt\Omega_t is computed, and the cache refreshes if Ωt<τ\Omega_t<\tau; otherwise it reuses Tr(t)T_{r(t)}. The signals differ only in whether Ωt\Omega_t is query similarity, key similarity, or attention-support overlap. Section 3.1 analyzes all signals at every step. The implementation adds adaptive stride and evaluates them only when t−tlast≥δtt-t_{last}\geq\delta_t. The query/key ablations use the same stride, isolating the signal itself. Eq. (5) refers to the previous refresh, whereas implementation Eq. (19) refers to the previous detection after refresh and tlast=r(t)t_{last}=r(t), so they coincide near transitions. We will eliminate the inconsistency between these two expressions in the revised manuscript.

The active cache is exactly the KV sets with token budget BB. The additional GPU state is mainly anchor keys. Considering mean window length 12, 8 semantic heads out of 32, and keys only rather than KV pairs, anchors occupy 112×832×12≈0.01\frac{1}{12}\times\frac{8}{32}\times\frac{1}{2}\approx0.01 of FullKV: about 160 MB versus 16 GB at 128K. Drift state stores TtlastT_{t_{last}} plus (δ,tlast)(\delta,t_{last}), about 14 KB for 32 layers, 8 KV heads, and k=12k=12. Query/key proxies instead retain one dd-vector per layer/head, about 64 KB.

W3. Offline calibration

ii indexes calibration prompts. twarm=8t_{warm}=8 removes steps before the decode page, anchors, and stride state stabilize. This is separate from ∣Ht(i)∣>B|H_t^{(i)}|>B, which retains only steps where the historical cache exceeds the active budget and retrieval is actually needed.

An overlap sample is one scalar Ωt(i)∈[0,1]\Omega_t^{(i)}\in[0,1], the IoU of semantic-window sets selected at adjacent detection steps. A prompt contributes at most 512 contiguous valid samples. Their empirical distribution for profile cc is OcO_c, and

τc=Qαc(Oc)\tau_c = Q_{\alpha_c}(O_c)

Using a quantile makes calibration robust to scale changes across layers, top-k, window lengths, and workloads; αc\alpha_c approximately controls the fraction of detection steps that refresh.

The four profiles are evidence seeking, aggregation, generation-dominant reasoning, and code. Each uses 64 unlabeled prompts from evaluation-disjoint PG-19, Wikipedia, MATH-train, or The Stack data. We retain steps satisfying ∣Ht(i)∣>B|H_t^{(i)}|>B and t>16t>16, collect at most 512 samples, compute τc\tau_c, and scan stride boundaries. No answers or evaluation accuracy are used; the offline table adds no TTFT. For more details regarding calibration, please refer to our response to Reviewer q3dQ and Reviewer W2.

W4. Accuracy gains and latency

We do not claim a large average gain. At 128K on RULER, AsdaKV exceeds FreeKV by 13.81 points (70.07 vs. 56.26); on Llama-3.1-70B, it leads by 0.45 (62.23 vs. 61.78). FreeKV's advantage is mainly prefill-side TTFT, while AsdaKV has comparable or lower TPOT, which dominates long outputs.

W5. Low reasoning scores in Table 2

This was an evaluation-setting error, not a scoring-script difference. We set max_new_tokens=2048 and did not enable thinking mode in Qwen3-8b model. Qwen3-8B and DeepSeek-R1-Distill-Llama-8B often require longer reasoning traces; truncated samples produced no final answer and were scored as incorrect, depressing every method including FullKV. We reran MATH500 with max_new_tokens=12800, keeping the KV budget and other settings fixed:

MethodQwen3-8BDeepSeek-R1
FullKV94.479.8
ShadowKV92.877.6
LouisKV93.277.4
FreeKV92.475.8
AsdaKV93.278.0

The corrected FullKV results now match the expected range, while AsdaKV remains tied with or better than the strongest retrieval baseline on both backbones. We will replace Table 2 and specify generation limits, thinking mode, and truncation scoring.

W6. Throughput

All open-source retrieval implementations, including AsdaKV, use HuggingFace model to run inference. The apparently low number reflects this framework plus KV retrieval/communication overhead. We measured common raw throughput:

Method16K32K64K128K
vLLM-FullKV172.69157.77134.65104.82
HF-FullKV56.5439.5029.8525.28
InfiniGen-CPU58.1130.0414.807.59
FreeKV-CPU38.3540.6435.6027.16
AsdaKV-CPU59.8048.3443.3532.75

vLLM-FullKV is over 3x faster than HF-FullKV at 16K, confirming that framework choice explains the reviewer's expectation. Comparisons among retrieval methods use the same HF setting; AsdaKV is fastest from 32K to 128K.

Q1. Why are kk and BB different?

BB is the hard capacity for historical KV tokens/pages in the GPU active cache; kk is the size of the top-k attention support used for detection and comparison. They have the same unit in the token-level abstraction, so k=Bk=B is valid, while k≤Bk\leq B also covers cases where the support occupies only part of the cache. In AsdaKV, kk is much smaller because detection cost grows sharply with support size:

kk8123264128256
Avg. detection latency0.175ms0.201ms0.509ms1.526ms5.219ms21.003ms

Thus kk compactly captures dominant evidence, while BB can store all tokens/pages in the selected semantic windows.

Q2. Does Eq. (2) ignore value states?

The reviewer is correct: Eq. (2) does not exactly minimize output-vector error, whose optimum depends jointly on attention weights and value vectors, including possible directional cancellation. It defines an attention-mass-optimal, value-agnostic reference. Under the bounded-value assumption ∥vj∥2≤V\|v_j\|_2 \le V top-kk selection maximizes retained attention mass and minimizes the corresponding value-agnostic worst-case error bound. Lemma 3.1 incorporates the values through the bound VV, and decomposes the error into two terms: the missed attention mass and the support change. Exact value-aware subset selection would be combinatorial and require reading the full historical value cache, defeating retrieval's purpose. We will replace "ideal refreshed support" with "top-k attention-support reference" and clarify that our claim concerns controlling this worst-case bound, not the exact error for fixed values.

Revision commitments

We will reorganize the definitions, document calibration and cache costs, correct Table 2, add common-backend performance, narrow the latency claim, and clarify both theoretical questions. We appreciate the reviewer for prompting these corrections.

Reviewer_q3dQOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes AsdaKV, a retrieval-based KV cache management method for long-context LLM inference. The key idea is to decide when to refresh the KV cache by directly measuring the overlap of the model’s own high-attention regions across adjacent decoding steps. System-wise, AsdaKV stores historical KV states on the CPU while keeping lightweight window anchors and a fixed-budget active cache on the GPU. During prefill, it constructs variable-length semantic windows based on attention behavior. During decoding, it retrieves the top-k windows through query-anchor matching. It further uses adaptive stride to reduce the frequency of drift checks and deferred recall to overlap CPU-GPU KV transfers with subsequent computation.

Strengths and weaknesses

Strengths

  1. The proposed approach is reasonable and novel: it uses attention-overlap dynamics to decide KV refresh timing, rather than relying on fixed pages, sentence boundaries, or query/key similarity as external proxies.

  2. The paper also has substantial engineering contributions. It is not only an algorithmic proposal, but a full system design with multiple mechanisms for efficient KV retrieval and transfer.

  3. The experiments are solid, covering many baselines and multiple benchmarks.

Weakness

  1. The paper normalizes latency against each method’s own FullKV baseline because different methods use different backends. This helps reduce backend bias, but it also weakens direct cross-method comparison. It remains unclear how much of AsdaKV’s absolute latency advantage comes from the algorithm itself versus implementation details, kernels, backend differences, or baseline quality.

  2. AsdaKV depends on workload profiles, threshold quantiles, and stride boundaries. Although the authors state that these are calibrated using held-out traces rather than tuned on LongBench, deployment remains a concern. In practice, it is unclear how workloads would be automatically classified and how robust the method is under profile mismatch. The single-profile ablation shows a noticeable performance drop, suggesting that calibration is important for the method’s effectiveness.

Questions

AsdaKV still uses the old active cache for the current step after detecting drift, and the new KV only takes effect in the next step. In tasks that require immediate access to new evidence, could this one-step delay cause errors?

Limitations

Yes

Paper formatting concerns

I did not notice any major issues in this paper with respect to violation of formatting.

Final justification

The rebuttal resolves my major concern, and I raise my score to 5.

1 comment

Response to Reviewer q3dQ

We thank the reviewer for the constructive comments and for identifying important gaps in our latency attribution, workload-profile evaluation, and discussion of deferred recall. These comments prompted the following additional controlled experiments and clarifications.

W1. Absolute latency and algorithm/implementation attribution

We re-ran KV retrieval methods in the same HuggingFace runtime with Llama-3.1-8B-Instruct, one A100-80GB GPU over PCIe 4.0, a 1,024-token KV budget, batch size 1, and 128 output tokens (5 warm-ups + mean of 5 runs). HF-FullKV is the common baseline; vLLM-FullKV is only an optimized-backend reference.

Method16K E2E / TTFT / TPOT128K E2E / TTFT / TPOT
vLLM-FullKV1.26s / 0.53s / 5.79ms12.64s / 11.43s / 9.54ms
HF-FullKV3.43s / 0.70s / 21.49ms24.07s / 17.81s / 49.30ms
ShadowKV9.59s / 7.47s / 16.66ms34.06s / 31.91s / 16.97ms
FreeKV4.43s / 1.12s / 26.07ms27.46s / 22.79s / 36.82ms
InfiniGen7.34s / 2.48s / 38.30ms32.43s / 27.26s / 40.67ms
AsdaKV5.09s / 3.00s / 16.55ms33.43s / 30.99s / 23.44ms

AsdaKV's advantage is decode-side scaling, not TTFT: its TPOT changes only from 16.55 to 23.44 ms from 16K to 128K, versus 21.49 to 49.30 for HF-FullKV and 26.07 to 36.82 for FreeKV.

Decode-path profiling further separates scheduling from kernel effects:

MethodInputRaw transferExposed communicationHidden ratioAttention
ShadowKV16K / 128K0.75 / 0.41ms0.746 / 0.411ms0% / 0%1.18 / 1.23ms
FreeKV16K / 128K4.17 / 4.59ms3.357 / 2.196ms19% / 52%2.53 / 1.25ms
InfiniGen16K / 128K12.76 / 13.71ms12.756 / 13.711ms0% / 0%1.53 / 1.77ms
AsdaKV16K / 128K0.04 / 0.33ms0.001 / 0.007ms98% / 98%5.29 / 5.29ms

AsdaKV exposes almost no communication because deferred recall overlaps transfer with decoding; this is a scheduling property, not a faster copy kernel. Its raw transfer is also lower because attention-overlap triggering, adaptive stride, and page-level recall reduce refresh frequency and transferred pages. Conversely, AsdaKV's attention kernel (5.29 ms) is slower than ShadowKV's and FreeKV's, so kernel optimization cannot explain the gain. Due to time and engineering constraints, we have not yet integrated FlashInfer or FlashAttention as our backend attention kernels. Consequently, our current attention computation is slower than that of ShadowKV and FreeKV. Optimizing this with advanced kernels is a key priority for our future work.

AsdaKV also has a 5.10-5.21 ms backend residual, versus 11.92-13.97 ms for HF-FullKV and 15.57-18.65 ms for FreeKV. We do not count this difference as an algorithmic gain: it comes from a preallocated static cache and fused metadata kernels.

We then changed one component at a time inside the same AsdaKV runtime, keeping kernels and memory layout identical (Qwen3-8B; latency is per layer):

VariantDecodeExtra computeCommunicationLongBench
Detect every step1.34ms0.54ms0.57ms42.46
Synchronous recall2.26ms0.52ms0.94ms42.37
Window-level transfer1.96ms0.48ms0.68ms42.30
AsdaKV1.11ms0.31ms0.03ms42.40

Thus deferred recall, adaptive stride, and page-level transfer reduce decode latency without relying on implementation differences. This demonstrates that the performance and accuracy advantages of ASDAKV stem primarily from our proposed algorithm, rather than from backend or system-level implementations.

W2. Workload profiles and unseen workloads

The four profiles represent retrieval-pressure regimes, not benchmark-specific tuning: evidence seeking (narrativeqa, qasper, multifieldqa_en, passage_retrieval_en), aggregation (hotpotqa, 2wikimqa, musique, gov_report, qmsum, multi_news, trec, triviaqa, samsum, passage_count), code (lcc, repobench_p), and generation-dominant reasoning (MATH500/GSM8K). Each uses 64 unlabeled, evaluation-disjoint samples from PG-19, concatenated Wikipedia documents, MATH train, and The Stack, respectively. Calibration uses only forward-pass attention-overlap traces, never answers or evaluation accuracy.

The original "Single Profile" ablation was actually a C4-only mismatched profile, not a fairly constructed universal profile. A shared threshold remains effective using blow=τ+0.15,  bhigh=min⁡(blow+0.15,1)b_{low} = \tau + 0.15, \; b_{high} = \min(b_{low} + 0.15, 1)

ThresholdLongBenchDecode latency
0.4040.031.17ms
0.4540.271.22ms
0.5040.371.26ms
0.5541.341.32ms
0.6042.431.38ms
Workload-specific42.401.21ms

Since refresh occurs when overlap is below τ\tau, higher thresholds improve accuracy through more frequent refreshes but increase latency. A shared τ=0.60\tau=0.60 slightly exceeds workload-specific accuracy. Task-specific profiles improve the accuracy-latency trade-off but are not required.

We also tested two profile-light deployment options:

CalibrationLongBenchMATH500Throughput
Automatic binary classifier41.2693.055.18 tok/s
Online request-local42.2592.851.76 tok/s
Workload-specific42.4093.255.58 tok/s

The automatic classifier distinguishes only context-dominant from generation-dominant requests using prompt length characteristics, without task names. In our experiments, we use a sequence length of 4k as the threshold to distinguish between short and long inputs. Online calibration requires no classification: after prefill, it uses the latest min⁡(128,Lprefill)\min(128,L_{\mathrm{prefill}}) queries, computes overlap between adjacent top-12 window sets, and sets τinit=Q0.05({Ω2,…,ΩP})\tau_{init} = Q_{0.05}(\{\Omega_2, \ldots, \Omega_P\}).

It nearly matches workload-specific accuracy (42.25 vs. 42.40) with 6.9% lower throughput. Unknown workloads can therefore use a shared threshold, coarse automatic binary classification with its prompt length, or request-local calibration.

Q1. One-step delay from deferred recall

The proposed failure can occur when one token both switches evidence and requires an immediate answer. We constructed a 5,125-token case with distant facts Alpha -> orange (region A) and Beta -> purple (region B). The initial cache contains A; after producing orange, the next token introduces Beta and must immediately predict purple. Both variants retrieve the same eight B windows at this step; only their visibility differs.

MethodTop-1 after BetaProbability of purpleRank
FullKVpurple68.01%1
Immediate recallpurple17.59%1
Deferred recallalpha0.45%24

At the following step, deferred pages are active: the probability of the token purple becomes 24.75% and its rank becomes 1. The error is therefore possible at the transition token but does not persist.

On realistic LongBench tasks, the effect is small:

VariantNQAQasperHotpotQAMusiqueGovReportTRECP.CountLCC
Deferred30.0544.0855.1231.0831.2872.58.7560.74
Immediate30.1644.2455.2031.0831.5872.58.7560.70
Token agreement98.5%96.5%99.0%100%96%100%100%99%

The performance benefit is substantial in a 32K-input/128-output test:

MetricDeferredImmediate
Throughput35.514 tok/s10.497 tok/s
TPOT28.158ms95.266ms
Decode time3.576s12.099s
Transfer hidden96.3%0%

Deferred recall therefore trades a rare transition-token error for 3.38x throughput and 70.4% lower TPOT in performance.

Revision commitments

We will revise the paper to: (1) replace the normalized-only latency presentation with absolute latency and module-level attribution, restrict the efficiency claim to decode-side overhead/scaling, and distinguish algorithmic scheduling gains from backend optimizations; (2) document the profile data sources and deployment procedure, rename "Single Profile" to "C4-only mismatched profile," and add the shared-threshold and profile-free calibration results; and (3) explicitly describe the transition-token failure case of deferred recall and its measured accuracy-latency trade-off. We appreciate the reviewer for prompting these clarifications and strengthening the scope and presentation of the paper.

Comments on the paper

1 comment
Meta-review

This paper proposes AsdaKV, a retrieval-based KV cache management framework: it measures the overlap of high-attention regions across adjacent decoding steps to decide whether to refresh the GPU-resident KV cache, organizes historical KV into semantic windows offloaded to CPU, and uses adaptive-stride drift detection with deferred page recall. It is evaluated on LongBench, Math500, and efficiency benchmarks.

All reviewers recognize the value of using attention-overlap dynamics to decide KV refresh timing and the completeness of the system design. The core pre-rebuttal concerns: (1) evaluation credibility—Table 2 accuracy and throughput numbers appeared low, and latency normalization obscured absolute comparison; (2) marginal accuracy improvements (~1%) over baselines; (3) unclear generalization of the workload profiles; (4) an unanalyzed theory-implementation gap and a missing runtime breakdown.

The rebuttal effectively addresses the core concerns: the low Table 2 scores were an evaluation-setting error and have been corrected, the low throughput is explained by the HuggingFace backend, and unified-backend attribution shows the gains come from algorithmic scheduling rather than kernel differences; the operating regime of the advantage is clarified—modest average gains on LongBench, but clear advantages on RULER-128K (70.07 vs. 56.26/67.83) and in long-output scenarios, while acknowledging ShadowKV is stronger for large-batch serving. Post-rebuttal, R-q3dQ raised from 4 to 5; R-3Pqp raised from 3 to 4 (still not fully convinced of a clear advantage, but finding the contribution solid); R-5PoW maintained 4. The remaining limitations are not technical flaws. I give a recommendation of Accept, expecting the camera-ready to incorporate the corrected Table 2 and absolute latency presentation.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.