The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
AgentKVShift reproduction β partial results (2/10 LoCoMo conversations)
Reproduction of Table 1 (p. 6) of "AgentKVShift: Efficient KV Cache Reuse for Agentic Memory Systems" (arXiv:2607.21604): on LoCoMo with A-Mem memories and Qwen2.5-3B-Instruct at recompute ratio r=0.1, the paper reports token-F1 0.339 (full recompute), 0.178 (CacheBlend), 0.125 (ProphetKV), 0.319 (AgentKVShift), i.e. AKS retains ~94% of full recompute and beats CacheBlend by ~0.14.
Verdict (partial run, n=40/233 questions): the claim is NOT reproduced on this evidence β formally inconclusive at partial scale
| Arm | F1 (this repro, n=40) | F1 (paper, full set) |
|---|---|---|
| Full recompute | 0.232 | 0.339 |
| No reuse (r=0) | 0.145 | β |
| CacheBlend r=0.1 | 0.146 | 0.178 |
| ProphetKV r=0.1 | 0.187 | 0.125 |
| AgentKVShift w/o correction r=0.1 | 0.143 | β |
| AgentKVShift r=0.1 | 0.143 | 0.319 |
- AKS β CacheBlend: β0.003 F1, 95% paired-bootstrap CI [β0.042, +0.039] β the claimed ~+0.14 advantage is absent in this partial sample.
- AKS / full retention: 0.62, CI [0.39, 0.96] β the claimed ~0.94 is not observed (point estimate far below, CI barely touching it).
- Full-recompute anchor lands at 0.232 vs the paper's 0.339 (different question subset, local note generation β expected to shift absolutes).
- Status: job cancelled at user request after 40/233 questions; machinery verified healthy before these numbers (r=1.0 reuse β‘ full recompute byte-identical; first-token consistency MATCH; all arms distinct β the earlier flat-0.04 gibberish regime was a confirmed implementation bug, fixed in the committed
code/kv_reuse_eval.py). - A complete 233-question run with the same script is needed for a formal verdict; everything required is in this repo.
What's in this repo
code/kv_reuse_eval.pyβ 6-arm evaluator: AgentKVShift Alg. 1 verbatim (check layer βc=1, b=βrnβ per K/V set, w=min(d,1), per-layer probe-estimated mean correction), CacheBlend, ProphetKV (single-layer query-attention utility β approximation noted), no-reuse r=0, full recompute; standalone block-KV caching with exact RoPE re-rotation; metrics replicate the A-Mem harness (WujiangXu/AgenticMemoryutils.py: set-token F1, rouge1 fmeasure w/ stemmer, nltk BLEU-1 method1).code/ingest_locomo.pyβ A-Mem ingestion (authors' unmodified pipeline) of LoCoMo conversations 1β2 with vLLM-served Qwen2.5-3B-Instruct: 1,188 notes, 2,221 evolution calls, 39 invalid-link failures.code/diag_rotation.py,code/diag3_rsweep.pyβ the diagnostics that validated the RoPE re-rotation (0.04% error) and exposed the per-layer aliasing bug.memories/β the built A-Mem memory stores (per-conversation pickles + retriever caches).results/predictions.jsonl,results/aggregate.jsonβ per-question predictions and the aggregate above (with 10k-resample bootstrap CIs).
Protocol & deviations
- Categories 1β4 only; category 5 (adversarial) excluded entirely, not scored (no gold answers).
- 2/10 conversations (budget-limited); ~233 non-adversarial questions total, 40 scored in this partial run.
- A-Mem note generation used Qwen2.5-3B-Instruct locally (paper/A-Mem used GPT-4o-mini) β shifts absolute F1; the reuse-method ordering is the target.
- ProphetKV implemented from arXiv:2602.02579 with a single-check-layer utility (its dual-stage layer fusion reduced to βc=1, matching this paper's own βc=1 protocol).
- Oracle-cost evaluation: KV substitution in-cache (attention sees exactly what an efficient selective-recompute server would produce); FLOPs are not reduced and no speedup is claimed.
- Greedy decoding, 32 new tokens, chat-templated prompts identical to the harness's chat format; k=10 retrieval per the paper's appendix.
- Hardware: a10g-small 24 GB (paper: A100-80GB) β accuracy-equivalent.
Reproduce
hf jobs uv --script code/kv_reuse_eval.py \
--with-deps torch==2.10.0 transformers==5.25.1 sentence-transformers rouge-score nltk \
rank-bm25 litellm accelerate huggingface_hub \
--flavor a10g-small --timeout 60m --secrets HF_TOKEN
The script self-fetches memories/ from this repo; delete results/ checkpoints to start clean. For all 10 conversations, first run code/ingest_locomo.py with --n_samples 10.
- Downloads last month
- -