| ID | 名称 | 关联理由 |
|---|---|---|
| 2602.22603 | SideQuest | Model-driven KV cache eviction for agentic reasoning; semantic understanding of token importance vs CodeComp's static analysis |
| 2412.19442 | KV Cache Survey | Comprehensive taxonomy of KV cache management; CodeComp fills the "structure-aware compression" gap this survey identifies as unexplored |
| 2605.18071 | KVDrive | Multi-tier KV cache offloading with attention-aware management; complementary approach to CodeComp's compression |
| 2511.02230 | Continuum | Multi-turn agent KV scheduling; CodeComp's per-prefill compression + Continuum's cross-turn retention are complementary lifecycle stages |
CodeComp vs SideQuest [2602.22603]:SideQuest 用一个 parallel auxiliary LRM thread 做 semantic reasoning 决定哪些 tool response 已 stale——本质上是 runtime, model-driven, dynamic eviction。CodeComp 用 Joern CPG 做 compile-time, static-analysis-driven, structural protection。
核心区别:SideQuest 的 eviction 决策是 context-dependent (当前推理状态决定什么该删),适合 multi-turn agentic reasoning 中的 stale response 回收。CodeComp 的 protection 决策是 structure-determined (code semantics 决定什么不可删),适合 single-shot code understanding where structural tokens are unconditionally critical。
互补性:一个 agentic coding workflow 可以同时使用两者——CodeComp 在 prefill 时保护 structurally critical tokens from initial compression,SideQuest 在 multi-turn execution 时 semantically evict stale tool outputs。两者作用于 KV lifecycle 的不同阶段。
CodeComp vs KV Cache Survey [2412.19442]:Survey 的三层 taxonomy (token/model/system) 将 token-level 方法分为 Selection、Budget Allocation、Merging。CodeComp 横跨 Selection (span protection) 和 Budget Allocation (structure-aware inter-chunk allocation)——但引入了 survey 未预见的第四维度:domain-specific structural signal。Survey 中所有 selection 方法都基于 attention statistics;CodeComp 首次引入 program analysis 作为 orthogonal importance signal。
这填补了 survey 的一个系统性空白:所有现有方法假设 "attention score ≈ token importance"——CodeComp 证明在 code domain 中 Jaccard overlap 仅 0.0944 [2604.10235],即两个 signal 近乎正交。
CodeComp vs KVDrive [2605.18071]:KVDrive 通过 multi-tier offloading (HBM/DRAM/SSD) 扩展 KV cache 的物理容量。CodeComp 通过 compression 减少 KV cache 的逻辑大小。两者是 orthogonal solutions to the same problem:
组合使用:CodeComp 先压缩到 40–60% retention,compressed KV 再用 KVDrive 的 2D MCKP 窗口分配跨层管理。CodeComp 减少 total KV volume → KVDrive 的 I/O 负载也相应减少。
CodeComp vs Continuum [2511.02230]:Continuum 解决 multi-turn agent 的 KV 保留决策——当 tool call 返回时,是否保留 KV cache in GPU memory。CodeComp 解决 initial prefill 时的 KV 压缩决策——在 context 首次进入时决定保留哪些 tokens。两者是 lifecycle 的前后阶段:CodeComp 管理 "入口"(prefill compression),Continuum 管理 "生存"(cross-turn retention)。
CodeComp 开创了 domain-specific KV cache compression 的新范式:利用 domain-specific structural signal (code → CPG) 指导 compression,而非仅靠 model-internal attention scores。其学术贡献在于证明了 attention 和 structural importance 在 code 上是近乎正交的 (Jaccard = 0.0944)。
定位:适合 agentic coding pipelines (SWE-bench style agent, Cursor/Devin) 中 prefill-time KV compression。不适合 general NL tasks (structure signal 不存在)。
扩展潜力:同样的 "domain-specific structural signal" 思路可推广到 SQL (schema graph)、legal docs (clause dependency)、scientific papers (citation graph)。