potentialpaper

HeatKV: Head-tuned KV-cache Compression for Visual Autoregressive Modeling

Jonathan Cederlund, Axel Berg, Durmus Alp Emre Acar, Chuteng Zhou, Pontus Giselsson

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. HeatKV compresses VAR KV-cache by ranking and pruning head-scale attention, decreasing memory usage while preserving image quality.

Abstract. Visual Autoregressive (VAR) models have recently demonstrated impressive image generation quality while maintaining low latency. However, they suffer from severe KV-cache memory constraints, often requiring gigabytes of memory per generated image. We introduce HeatKV, a novel compression method that adapts cache allocation in each head based on its attention to previously generated scales. Using a small offline calibration set, the attention heads are ranked according to their attention scores over prior scales. Based on this ranking, we construct a static pruning schedule tailored to a given memory budget. Applied to the Infinity-2B model, HeatKV achieves 2×2 \times higher compression ratio in memory allocation for KV cache compared to existing methods, while maintaining similar or better image fidelity, prompt alignment and human perception score. Our method achieves a new state-of-the-art (SOTA) for VAR model KV-cache compression, showcasing the effectiveness of fine-grained, head-specific cache allocation. Code and calibration script available at https://github.com/arm-research/heatkv.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary

The paper proposes HeatKV, a KV-cache compression method for Visual Autoregressive (VAR) image generation models. Instead of uniform cache allocation across attention heads, HeatKV uses a small offline calibration set to rank each head-scale pair by a scale-dependent cumulative attention score (S-CAS), then constructs a static pruning schedule under a given memory budget. A greedy early-pruning algorithm keeps the cache within budget at all times, with a claimed optimality proof for the binary case.

Main Strengths

  • The paper tackles a real deployment bottleneck. All three reviewers agree that KV-cache memory is a serious constraint for high-resolution VAR generation.
  • The head-scale allocation is well matched to the structure of VAR models, where different heads depend on previous scales in different ways.
  • The empirical evaluation is fairly comprehensive, covering multiple models, datasets, metrics, and baselines, with strong image-quality preservation.
  • The idea is simple yet effective, and the paper is clearly written.

Main Weaknesses

  • Originality remains disputed. Some reviewer considers the method more incremental than the empirical gains suggest.
  • Failure cases under aggressive compression are not deeply analyzed.
  • A memory comparison against state-of-the-art diffusion models would better position the work.

Assessment of the Authors' Response

The response successfully addressed the concerns raised in my initial meta-review. After the rebuttal, all three reviewers are now positive.

Final justification

The paper addresses a practically important problem with a well-motivated, simple method and strong empirical results across several VAR models, budgets, and metrics. The rebuttal was thorough and data-driven, and it resolved the central concerns about generalization, evaluation protocol, and missing baselines for all three reviewers. The remaining weaknesses are real but not disqualifying. I recommend acceptance.

Area Chair g8xj · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary

The paper proposes HeatKV, a KV-cache compression method for Visual Autoregressive (VAR) image generation models. Instead of uniform cache allocation across attention heads, HeatKV uses a small offline calibration set to rank each head-scale pair by a scale-dependent cumulative attention score (S-CAS), then constructs a static pruning schedule under a given memory budget. A greedy early-pruning algorithm keeps the cache within budget at all times, with a claimed optimality proof for the binary case.

Main Strengths

  • The paper tackles a real deployment bottleneck. All three reviewers agree that KV-cache memory is a serious constraint for high-resolution VAR generation.
  • The head-scale allocation is well matched to the structure of VAR models, where different heads depend on previous scales in different ways.
  • The empirical evaluation is fairly comprehensive, covering multiple models, datasets, metrics, and baselines, with strong image-quality preservation.
  • The idea is simple yet effective, and the paper is clearly written.

Main Weaknesses

  • Originality remains disputed. Some reviewer considers the method more incremental than the empirical gains suggest.
  • Failure cases under aggressive compression are not deeply analyzed.
  • A memory comparison against state-of-the-art diffusion models would better position the work.

Assessment of the Authors' Response

The response successfully addressed the concerns raised in my initial meta-review. After the rebuttal, all three reviewers are now positive.

Final justification

The paper addresses a practically important problem with a well-motivated, simple method and strong empirical results across several VAR models, budgets, and metrics. The rebuttal was thorough and data-driven, and it resolved the central concerns about generalization, evaluation protocol, and missing baselines for all three reviewers. The remaining weaknesses are real but not disqualifying. I recommend acceptance.

Reviewer Zgx7OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces HeatKV, a head-level KV-cache compression method for visual autoregressive (VAR) models. In VAR, images are represented as a sequence of multi-scale token maps, and generation proceeds autoregressively from low-resolution scales to higher-resolution scales. As generation progresses, each attention head stores K/V entries for previously generated scales, leading to large KV-cache memory usage. Given a memory budget, HeatKV estimates the importance of each head-scale pair using the proposed S-CAS metric, then applies a greedy pruning strategy to remove less important KV-cache entries. Experimental results show that HeatKV achieves better image quality and fidelity, measured by metrics such as FID, LPIPS, PSNR, GenEval, and HPSv2.1, under the same memory budget compared with prior VAR KV-cache compression methods such as ScaleKV, HACK, SnapKV, and StreamingLLM, especially on Infinity-2B and Infinity-8B.

Strengths and weaknesses

The paper presents a well-motivated method for KV-cache compression in visual autoregressive models. The assumption that head-scale attention patterns are relatively stable across different inputs is reasonable, as it is supported by prior work and further validated through the paper’s ablation studies. The empirical evaluation is fairly comprehensive, including multiple models, datasets, metrics, and comparisons with prior KV-cache compression methods. The proposed method shows strong image-quality preservation compared with existing approaches.

The paper also provides sufficient background and related work, which makes the motivation for fine-grained head-scale KV-cache compression easy to follow. In addition, the visualizations of generated images from Infinity-2B and Infinity-8B using HeatKV help qualitatively verify that image quality is maintained even under reduced KV-cache budgets.

On the other hand, there are some unclear details and possible inconsistencies in the experimental results. For example, the original ScaleKV paper reports an FID of 1.82 on Infinity-2B with a 20% KV-cache budget, whereas Table 1 in this manuscript reports 1.94 under what appears to be the same setting. The paper should clarify whether the baselines were reproduced using the original code and settings or reimplemented under a unified evaluation protocol.

In addition, despite the high KV-cache compression ratio, the latency reported in Figure 5 appears to be close to that of full-cache inference for some batch sizes. This somewhat limits the practical speedup benefit of the method, even though the memory reduction is substantial. The paper would benefit from a clearer explanation of whether latency is measured per batch or per image, and why the memory reduction does not lead to a larger latency improvement.

AMS-KV is cited but not evaluated. The AMS-KV is directly about multi-scale VAR KV caching, lack of experimental comparison with this method weakens significance of the proposed method.

Finally, there are some minor things need to be check:

  • There is a notation inconsistency: fpassedf_{\text{passed}} vs. fpastf_{\text{past}}.
  • Algorithm 1 appears to mix the binary and scale-dependent cases, which is confusing
Questions
  1. In Table 1, the reported performance of some prior methods appears to differ slightly from the numbers reported in the original papers. For example, ScaleKV reports an FID of 1.82 on Infinity-2B with a 20% KV-cache budget, whereas this manuscript reports 1.94 under the same setting. Could the authors clarify the reason for this discrepancy? Were the baselines reproduced using the original code and settings, or reimplemented under a unified evaluation protocol?

  2. Figure 5 shows an interesting result: although the KV cache is compressed, the latency of HeatKV appears higher than that of some baselines, which seems counterintuitive. Could the authors explain why this happens? Also, does “latency” refer to the total latency for a given batch, or the latency per generated image/input?

  3. Could you provide comparison result with AMS-KV ?

Limitations

yes

Final justification

During the rebuttal period, my concerns regarding the performance gap between the cited paper's reported numbers and this work were resolved, and the additional experimental results demonstrated the comparative performance against other baselines. However, in terms of throughput—a key metric for compression—the accuracy of the representation remains a concern. Generally, compression papers report either throughput or batch latency. Even if accept the authors' assumption that 1/latency equals throughput, both the full KV and the proposed method show the same throughput for batch sizes 1 to 4. Nevertheless, considering its potential for significant gains at batch sizes of 8 or larger, as well as the meaningful results in terms of compression ratio, I decided to raise my final score.

Formatting concerns

N/A

1 comment
Authors · CommentOpenReview ↗

Rebuttal comments

We thank reviewer Zgx7 for the feedback and comments. Here we address the questions and concerns mentioned in the review:

Question 1

In Table 1, the reported performance of some prior methods appears to differ slightly from the numbers reported in the original papers. For example, ScaleKV reports an FID of 1.82 on Infinity-2B with a 20% KV-cache budget, whereas this manuscript reports 1.94 under the same setting. Could the authors clarify the reason for this discrepancy? Were the baselines reproduced using the original code and settings, or reimplemented under a unified evaluation protocol?

Answer: Thank you for pointing out the discrepancy. For ScaleKV in particular, we used publicly available implementation on GitHub, which is referenced in their paper. We ran the experiments using the same parameters and dataset as in their code and evaluated with the same evaluation script. The configuration for 10% is the one given in the public GitHub repo. For the 4 and 20% budgets we got the budget configurations directly from the authors via email. The only difference is the generation script and seeds. We wrote our own generation script to generate a full dataset in order to better adjust to the hardware used. Importantly, the conclusion does not depend on the discrepancy: HeatKV outperforms ScaleKV under both our reproduction (1.94) and their published number (1.82).

Question 2

Figure 5 shows an interesting result: although the KV cache is compressed, the latency of HeatKV appears higher than that of some baselines, which seems counterintuitive. Could the authors explain why this happens? Also, does “latency” refer to the total latency for a given batch, or the latency per generated image/input?

Answer:

We thank the reviewer for the careful reading. The latency in Fig. 5 is the per-image latency. We will state this explicitly in the caption.

The observation is correct, and applies only at batch size 1 (parity at batch size 2–4, faster at batch size >8). At batch 1 there is a 6% overhead and the workload is launch-bound: roughly half of the runtime is host-side overhead for both methods, with the GPU largely idle. HeatKV's additional cache management contributes a small fixed cost in exactly this regime, while the savings from compression, which affect only the cache-dependent part of the computation, are at their smallest. Because this cost is constant in batch size, it amortizes as the batch grows.

Finally, the practical benefit of compression is memory: comparing throughputs (i.e. the inverse of per-image latency) from Fig. 5, HeatKV's best achievable throughput exceeds the baseline's by around 18%, which is memory-capped. We agree this comparison deserves to be explicit.

Question 3

Could you provide comparison result with AMS-KV ?

Answer:

Thank you for raising this issue. Note that AMS-KV cannot be compared to HeatKV across all budgets, since AMS-KV does not allow the user to specify a global KV-cache budget (e.g. 20%, 10%, etc). This is the main reason for why it was not included in our comparisons. For completeness we here provide a comparison at the 21.3 % budget used by AMS-KV in their paper.

Since AMS-KV does not provide publicly accessible code, we recreate their test setup as specified in their paper. The evaluation protocol uses VAR-d30 (Tian et al., 2024) on ImageNet 256x256. The table below shows the relative difference compared to the baseline VAR-d30 model in FID, Inception score (IS), precision and recall when applying AMS-KV and HeatKV at a 21.3 % cache budget.

Method FID IS Prec Rec
+AMS-KV +0.02 -5.65 +0.00 +0.00
+HeatKV 21.3% +0.002 +0.10 +0.002 +0.000

The differences between the baseline and HeatKV are comparable to AMS-KV or better at the same budget levels.

We hope this answers your questions. Please let us know if more clarifications are needed.

Reviewer kxjsOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary
  • The authors propose the method called HeatKV that uses a small offline calibration set to compute S-CAS, ranking each head-scale cache block. Instead of assigning a uniform or binary cache budget per layer/head, HeatKV allocates cache retention per attention head and per generated scale, pruning low-importance head-scale pairs.
  • The method constructs a static pruning schedule for a user-specified memory budget and includes a greedy removal-order algorithm intended to avoid temporary cache-budget violations during generation.
  • For the binary version of the pruning problem, the greedy early-pruning algorithm is claimed to be optimal under the stated assumptions.
  • On Infinity-2B and Infinity-8B, HeatKV reportedly outperforms prior KV-cache compression methods such as StreamingLLM, SnapKV, HACK, and ScaleKV on fidelity metrics including FID, LPIPS, and PSNR. On Infinity-2B, HeatKV at 10% KV-cache budget is claimed to outperform the strongest baseline at 20% budget, implying roughly 2× better compression at similar or better fidelity.
Strengths and weaknesses

Pros:

  • Since KV cache size becomes a bottleneck as context length increases, the issue addressed in this paper is crucial for efficient operation.
  • Table 1 demonstrates that the proposed method improves accuracy compared to other approaches within the same budget, thereby substantiating its effectiveness.
  • The idea behind the proposed method is simple yet effective.
  • The paper is written in a clear and accessible manner.

Cons:

  • Regarding the experimental conditions, the specific image resolution settings used for each evaluation were not identified.
  • Since the proposed method generates images by increasing the scale size, it is likely that the effectiveness varies depending on the final image resolution; therefore, it would be beneficial to discuss the impact of size on performance.
  • Comparing the required memory usage with other state-of-the-art image generation models (such as diffusion models) in addition to VAR would help clarify the position and value of this paper.
Questions
  • Table 1 demonstrates that the proposed method achieves higher accuracy than other methods (such as ScaleKV and SnapKV) within the same memory budget, which I find valuable. On the other hand, how does the computational overhead of the proposed method compare to that of the other methods?
  • What is the resolution of the images generated in the experiments shown in Table 1? How does that resolution affect the effectiveness of the proposed method?
Limitations

yes

Final justification

Since KV cache size becomes a bottleneck as context length increases, the issue addressed in this paper is crucial for efficient operation. The experimental results for each resolution and the experimental conditions added by the authors have dispelled my concerns. Furthermore, comparing with other state-of-the-art image generation models (such as diffusion models) in addition to VAR would help clarify the position and value of this paper.

Formatting concerns

None

2 comments
Authors · CommentOpenReview ↗

Rebuttal comments

We thank reviewer kxjs for the feedback and comments. Here we address the questions and concerns mentioned in the review:

Question 1

Table 1 demonstrates that the proposed method achieves higher accuracy than other methods (such as ScaleKV and SnapKV) within the same memory budget, which I find valuable. On the other hand, how does the computational overhead of the proposed method compare to that of the other methods?

Answer: HeatKV adds only minimal computational overhead during inference. Unlike previous methods such as SnapKV or ScaleKV that use dynamic token-level pruning, HeatKV does not perform any dynamic scoring or compute a secondary attention mask to determine which tokens to store. As a result, the runtime overhead is minimal.

Our method achieves higher throughput, as shown in Figure 5. HeatKV utilizes a custom kernel to take full advantage of offline calibration. There is a slight latency overhead at batch size one which is explained further in the answer to Q2 by Zgx7.

Question 2

What is the resolution of the images generated in the experiments shown in Table 1? How does that resolution affect the effectiveness of the proposed method?

Answer: Thank you for pointing out that this was missing. It will be added to the final version. The resolution of the images is 1024 by 1024 pixels. The token map schedule by Infinity is the default 1,2,4,6,8,12,16,20,24,32,40,48,64 and the same for the 2B and 8B models.

To answer the second part of the question we tested our proposed method on STAR (another VAR model). We chose to test on STAR (Ma et al, 2024) as it is natively trained on multiple different resolutions (256, 512, 1024). Below is a table of the results on 3 different resolutions.

20%

Resolution HeatKV (PSNR↑ / LPIPS↓) SnapKV (PSNR↑ / LPIPS↓) StreamingLLM (PSNR↑ / LPIPS↓)
STAR-256 18.24 / 0.165 16.98 / 0.210 15.96 / 0.257
STAR-512 20.59 / 0.133 18.87 / 0.182 17.38 / 0.278
STAR-1024 21.43 / 0.119 19.83 / 0.159 17.62 / 0.348

10%

Resolution HeatKV (PSNR↑ / LPIPS↓) SnapKV (PSNR↑ / LPIPS↓) StreamingLLM (PSNR↑ / LPIPS↓)
STAR-256 15.95 / 0.249 14.94 / 0.302 14.55 / 0.334
STAR-512 18.58 / 0.190 17.36 / 0.249 16.45 / 0.335
STAR-1024 19.03 / 0.182 17.88 / 0.230 16.60 / 0.401

4%

Resolution HeatKV (PSNR↑ / LPIPS↓) SnapKV (PSNR↑ / LPIPS↓) StreamingLLM (PSNR↑ / LPIPS↓)
STAR-256 13.84 / 0.362 13.59 / 0.378 13.44 / 0.406
STAR-512 16.64 / 0.266 15.93 / 0.369 15.37 / 0.416
STAR-1024 17.18 / 0.257 16.36 / 0.334 15.21 / 0.548

Our proposed method outperforms the other 2 baselines on all metrics. There is a loss in performance as the resolution reduces. This is likely due to less redundant information in the images. The lower resolution images are generated through fewer intermediate scales which leaves fewer redundant cache tokens for heatkv to prune. Higher-resultion images also have a higher memory footprint, so it is useful that compression gets easier where memory pressure gets worse.

We hope this adresses your questions and we look forward to hearing your response.

Reviewer kxjs · CommentOpenReview ↗

Thank you very much for your response. The experimental results for each resolution and the experimental conditions added by the authors have dispelled my concerns. I will maintain my positive score.

Reviewer 9m85OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes HeatKV, a KV-cache compression method for visual autoregressive image generation models. Instead of applying a uniform cache allocation or pruning strategy across all heads, the method uses a small offline calibration set to estimate the importance of each head-scale pair via a scale-dependent cumulative attention score. HeatKV constructs a static pruning schedule under a given memory budget, retaining KV entries that are more important for cross-scale generation and pruning less important ones. Experiments are mainly conducted on Infinity-2B. HeatKV achieves substantially higher KV-cache compression than prior methods while preserving image fidelity.

Strengths and weaknesses

Strengths:

  1. This paper tackles a real deployment bottleneck. KV-cache memory is a serious issue for high-resolution VAR generation.
  2. Different attention heads depend on previous image scales in different ways. This method is well matched to the structure of VAR models.

Weaknesses:

  1. It is still unclear whether the same head-scale importance patterns hold for other VAR architectures. Experiments should be conducted on more VAR models.
  2. The effects of head-aware allocation, scale-aware allocation, S-CAS ranking, and strict budget enforcement should be separated analyses.
  3. The static pruning schedule depends on an offline calibration set and may fail on distribution-shifted prompts.
Questions
  1. Can the authors further isolate the contribution of head-scale allocation from the effects of strict budget enforcement?
  2. How robust is HeatKV under prompt or domain shift? It would be useful to test calibration on one domain and evaluation on another.
  3. Could token-level or region-level importance improve HeatKV further? In many images, some regions may require long-range historical context while others are easy to reconstruct locally.
Limitations
  1. The method treats all tokens within the same scale as equally important. A token-level or region-aware strategy could use the same memory budget more efficiently.
  2. Failure cases under aggressive compression are not deeply analyzed.
Final justification

The rebuttal addressed most of my main concerns. The additional results on VAR-d30 and STAR provide useful evidence that HeatKV generalizes beyond Infinity, and the strict-versus-soft budget ablation clearly separates the effect of head-scale allocation from strict peak-memory enforcement. I still have some reservations. The new cross-model comparisons are not fully unified across the strongest baselines, and failure cases under aggressive compression are still not analyzed. I also think the method is more incremental in originality than the empirical gains might suggest. Overall, I believe the strengths now outweigh these remaining limitations. The method is practically relevant and the rebuttal substantially improved the experimental support. I therefore raise my score from 3 to 3.5.

Formatting concerns

No

4 comments
Authors · CommentOpenReview ↗

Rebuttal comments

We thank reviewer 9m85 for the feedback and comments. Here we address the questions and concerns mentioned in the review:

Weakness 1

In order to show that our method can be adapted to other VAR models, we evaluated HeatKV using VAR-d30 (Tian et al., 2024) on ImageNet (256x256). We use the evaluation protocol and budget calculations from the HACK paper at 30% equivalent cache budget. The results for the other methods are taken from the HACK paper. The table below shows that our method outperforms the other methods on this model as well.

Method Cache Budget FID↓ IS↑ Precision↑ Recall↑
+Streaming 30% +2.88 -73.80 -0.07 +0.02
+SnapKV 30% +5.35 -105.61 -0.11 +0.02
+HACK 30% +0.88 -33.54 -0.03 +0.02
+HeatKV 30% +0.014 -0.60 -0.002 +0.008

We also provide additional results using STAR (Ma et al, 2024) (another VAR model). For STAR we show that HeatKV performs better than SnapKV and StreamingLLM across the board at 20%, 10% and 4% budgets respectively, at three different resolutions (256, 512, 1024). The table can be found in response to Q2 from kxjs. In conclusion, we have shown that our method generalizes well to two other VAR models on which our proposed method outperforms the baselines.

Question 1

Can the authors further isolate the contribution of head-scale allocation from the effects of strict budget enforcement?

Answer: Yes, we can isolate the contributions of head-scale allocation and strict budget enforcement. We provide more ablations below. However, we should mention that the strict budget enforcement is only an extra constraint applied to HeatKV to ensure that the KV-cache memory requirement never exceeds the hardware memory capacity. As such, it is not a feature of our proposed method, but rather a feature of our evaluation protocol which makes sure that we never allocate more memory than what the budget allows. Furthermore, note that an ablation that isolates the contributions between the pruning methods and head-scale budget allocation is already provided in Table 3c in the paper. Our improved pruning method decreases FID from 2.21 to 1.78. With head-scale budget allocation, FID is further decreased to 1.67. In the final version of our paper, we will clarify the meaning of strict budget enforcement in more detail.

We here provide an additional table with three scores in order to also isolate the effects of strict budget enforcement: 1) with hard budget constraint but naive pruning. This method ensures the budget is never broken, but leaves a significant part of the budget unused. 2) HeatKV, our greedy pruning schedule applied ensuring that the budget is never exceeded while utilizing more memory (for Binary-HeatKV, this is optimal by the proof in Appendix B). 3) Head-scale allocation with soft budget constraint. Here the budget is only enforced between each scale. This allows temporary over-allocations exceeding the memory budget.

pruning FID LPIPS PSNR
Naive (strict) 2.21 0.101 23.50
Greedy (strict) 1.67 0.073 25.40
Soft (non-strict) 1.65 0.072 25.50

As can be seen in the table, the soft budget outperforms HeatKV (Greedy) which is to be expected as it uses a higher peak budget. This soft budget threshold is what the methods we have compared to in Table 1 and 2 in the paper have used. Therefore it only adds an extra constraint on our proposed method when comparing to the previous methods. Below is a table over the maximal amount of tokens in the cache at any point during the generation of each scale.

Scale Tokens in Scale Naive Greedy Soft 10% budget tokens
7 256 187252 266752 266752 328960
8 400 204492 328452 328452 328960
9 576 217704 328092 346716 328960
10 1024 209288 328252 347240 328960
11 1600 217984 326452 341928 328960
12 2304 324548 324548 360768 328960

This visualizes how the Naive version stays far below the threshold up until the last scale. At the last scale it is equivalent to greedy as there are no early prunings. It is also clear how the soft constraint version over-allocates slightly in later scales. Our contribution is a way to stay below the budget at all times while maximizing budget utilization.

Note that the over-allocation only happens in methods that have an asymmetric budget allocation. KV-cache compression methods that have uniform allocation are not susceptible to any over-allocation, since they never move capacity between layers.

Please let us know if this answers your concerns. Otherwise let us know how we can provide more clarification.

Authors · CommentOpenReview ↗

Rebuttal comments

Question 2

How robust is HeatKV under prompt or domain shift? It would be useful to test calibration on one domain and evaluation on another.

Answer: To show the robustness to a domain shift between the calibration set and test set, we provide some extra experiments on 3 different datasets. Car model, portrait, and landscape prompts. We calculate the S-CAS score with a set of 10 prompts from each dataset. Each calibration is tested on each of the 3 new distribution shifted datasets as well as the Coco2017 dataset used in the paper. All experiments are conducted using Infinity-2b at 10% budget. The results show that HeatKV is robust to a domain shift. The results when calibrating on one domain and testing on another have close to no difference to when using the same domain.

FID

Calibration \ Test set Car Portrait Landscape Coco2017
Car 0.9435 0.9865 2.4861 1.6985
Portrait 0.9496 0.9658 2.4641 1.6773
Landscape 0.9425 0.9855 2.4749 1.6841
Coco2017 0.9335 0.9057 2.4590 1.67

LPIPS

Calibration \ Test set Car Portrait Landscape Coco2017
Car 0.0829 0.0751 0.1007 0.0744
Portrait 0.0824 0.0740 0.1000 0.0739
Landscape 0.0827 0.0751 0.0998 0.0741
Coco2017 0.0816 0.0733 0.0988 0.073

PSNR

Calibration \ Test set Car Portrait Landscape Coco2017
Car 21.6135 29.5351 25.1246 25.3075
Portrait 21.4616 29.6191 25.1464 25.3409
Landscape 21.3132 29.5351 25.1611 25.3312
Coco2017 21.6816 29.6892 25.4146 25.40

One note is that the FID score for Car and portrait is considerably lower which is likely due to the test set having a tight distribution leading to the similar representation in the Inception model used to calculate FID. Likewise PSNR for the Car dataset is notably lower due to the high level of detail in the cars dataset. Any small shift in between the images therefore results in a high pixel difference.

Question 3

Could token-level or region-level importance improve HeatKV further? In many images, some regions may require long-range historical context while others are easy to reconstruct locally.

Answer: Thank you for raising this question. As you correctly point out, HeatKV does not utilize token or region-level discarding. This is an intentional design choice that we made for two reasons: the stable VAR attention patterns and fast inference speed.

In Figure 3, we present a subset of attention patterns. These patterns show large differences in attention scores between scales, while having little to no difference in attention within a scale, which supports the scale level granularity being sufficient. Furthermore, we compare HeatKV with two other methods that use token-level granularity (ScaleKV and SnapKV), yet our method outperforms both these methods at the same budget. Also lower level granularity would be dependent on the location of the foreground/background, resulting in offline calibration not being a viable option. One of the core strengths of HeatKV is the offline calibration which leads to higher utilization of the hardware through custom kernels. Finally, the region-level methods add inference-time overhead when sorting each individual token/region by its attention score, as can be seen by the slower inference speed of ScaleKV in Figure 5 in the paper.

In theory, it should be possible to make a modified version of HeatKV with finer pruning granularity and the hypothesis that some regions require longer context seems plausible, but it would require substantial effort. Given the time constraint of the rebuttal process, we leave this work to future research.

We hope this adresses your concerns and we look forward to hearing your response.

Reviewer 9m85 · CommentOpenReview ↗

Thank you for the detailed response. The additional experiments address my main concerns regarding architectural generalization and the source of the performance gains. The cross-domain calibration results are also encouraging.

I would still encourage the authors to clarify the sizes and construction of the domain-shift test sets, the evaluation seeds/variance, and how FID is computed for these narrowly distributed datasets. The discussion of token-level pruning is reasonable, although the evidence remains somewhat qualitative, and failure cases under the most aggressive compression setting remain underexplored. Overall, the rebuttal has made me more positive about the submission, and I will update my assessment accordingly.

Authors · CommentOpenReview ↗

Thank you for the feedback. We are glad that we answered your main concerns. Here are some details you asked for.

  1. Construction of dataset and their size. The datasets are open source HuggingFace dataset available at the following links: https://huggingface.co/datasets/Falah/cars_model_prompts_SDXL, https://huggingface.co/datasets/Falah/landscape_prompts, https://huggingface.co/datasets/Falah/portrait_best_prompts. From these datasets we construct test sets consisting of the first 5000 unique prompts. The calibration sets are constructed from 10 prompts after the test set.

  2. FID discussion. As in the experimental results, we follow the same evaluation protocol (Section 4.1 Table 1). We generate 2 images with the same seed for every prompt. One with full cache budget and one with 10% budget. The FID score is calculated between the two sets of 5000 images. We follow the standard FID definition.

  3. Do we have seed variance by any chance? We redid all the experiments on the portrait dataset using 2 new seeds. Our variance is reported in the table below for a total of 3 different seed rounds.

Calibration set FID LPIPS PSNR
Car 7.938e-5 1.556e-8 1.178e-4
Portrait 1.038e-5 1.556e-8 9.400e-5
Landscape 5.174e-5 2.467e-7 1.090e-3
Coco2017 1.626e-5 8.889e-9 6.718e-5

Based on the variance we do not see any change in our conclusion about the transferability across domains. The seeds are set to the index of the generated image.

  1. Token-level discussion. We agree token level pruning needs to be explored quantitavly which is outside this papers scope. It is an interesting future direction but we leave that for future work.

We will incorporate these discussions in the final version.

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

Rebuttal discussion

We have provided detailed response and clarifications. We welcome any feedback before the discussion period deadline.

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

Missing a submission?

Loading the discussion…