- Rating
- 4
- Clarity
- 3
- Confidence
- 2
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The authors propos CompilerKV, an offline-compiled policy for prefill-only KV-cache compression. The central motivation is that prefill-only retention decisions are irreversible, while existing methods estimate token importance, head reliability, and prompt sensitivity from noisy statistics of a single prompt. CompilerKV instead estimates reusable priors from a held-out calibration corpus. The method consists of three components: (1) a window-aggregated, value-norm-normalized token utility; (2) an offline-compiled table of continuous per-head reliability weights; and (3) a risk-adaptive threshold table indexed by attention entropy and local perplexity.
Strengths and weaknesses
Strengths:
-
Treating head reliability and prompt-compression risk as cross-prompt quantities is an interesting and practically relevant perspective. It directly addresses the irreversibility of prefill-only compression.
-
Good component-level ablations. Removing stabilized utility, head reliability, or the risk gate produces consistent degradation. The comparison between independent and coupled compilation also helps support the proposed design.
Questions
-
Offline compilation cost is missing. Compiling per-head weights by marginally perturbing each head, alternating the two tables, and evaluating continuation losses could require a very large number of model executions over 50K prompts. The paper reports inference efficiency but not compilation GPU hours, number of reward evaluations, convergence criteria, or storage cost. These quantities are necessary to judge whether “compile once” is practically viable.
-
It would be better to label CompilerKV as "Ours" in Figure 3.
Limitations
see questions
Paper formatting concerns
None
We thank the reviewer for highlighting the practical cost of the offline stage. Since "compile once" is central to our deployment argument, quantifying this cost is essential, and we have now measured it at both 8B and 72B scale.
R3-Q1: Offline compilation cost, convergence, and storage
For LLaMA-3-8B on A100-80GB, the complete compilation pipeline requires approximately 20 GPU-hours:
The reviewer's concern about repeatedly executing the model over 50K prompts is well taken, but the implementation avoids doing so for every table update. The calibration corpus is processed once to collect attention, value-norm, entropy, and perplexity statistics, which E2 and E3 then reuse. Additional frozen-model computation is required for continuation-loss reward generation, but full prefill over all 50K prompts is not repeated for each candidate update. Overall, the vast majority of the measured compute is frozen-model forward/reward computation; fitting the two compiled objects takes only 0.7 GPU-h.
Larger backbones. Rather than rely on extrapolation, we ran the full pipeline on a 72B-class backbone during the rebuttal period:
The measured 8.45× increase over the 8B pipeline is slightly below the 9× parameter ratio, confirming that compilation cost tracks backbone forward cost. Notably, the fitting cost remains negligible (≈3 GPU-h, under 2% of the total) even at 72B: what scales is the frozen-LLM forward pass over the calibration corpus, not the compilation machinery itself.
Convergence. The alternating optimization stabilizes after approximately 2,000 table updates at 8B (roughly 1,000 for E2 and 1,000 for E3, including coupled refinement) and approximately 4,100 updates at 72B. We report this growth explicitly rather than treating the update budget as scale-independent.
Amortization. Compilation is a one-time cost paid before serving. Using our measured 2.45× decode throughput gain at 32K + 8K, a compilation cost of 169 GPU-h is recovered after roughly a few hundred GPU-hours of serving on the same backbone — on the order of days rather than months for a continuously served deployment. We state this as an order-of-magnitude argument, since the exact break-even depends on the workload's context-length distribution.
Storage. The compiled artifacts are very small. For the 32-layer configuration, the risk table contains only 32×20×4=2560 entries, and the head table is similarly small; together they occupy less than 100 KB. At 72B the artifacts grow only with layer and head counts and remain in the same order of magnitude (well under 1 MB), since the table size is independent of parameter count.
We will add the stage-wise GPU-hour measurements at both scales, the convergence information, and the storage footprint to the revision.
R3-Q2: Figure 3 labeling
Thank you for catching this presentation issue. We will relabel COMPILERKV as "Ours" in Figure 3 for consistency with the other figures.