Memory-Efficient Visual Autoregressive Modeling with Scale-Aware KV Cache Compression

Kunjun Li, Zigeng Chen, Cheng-Yen Yang, Jenq-Neng Hwang
5/1/2025
25 citations
transformer-attention

Official code: StargazerX0/ScaleKV (53 stars, Python, MIT, last commit 2026-03-13).

Abstract

Visual Autoregressive (VAR) modeling has garnered significant attention for its innovative next-scale prediction approach, which yields substantial improvements in efficiency, scalability, and zero-shot generalization. Nevertheless, the coarse-to-fine methodology inherent in VAR results in exponential growth of the KV cache during inference, causing considerable memory consumption and computational redundancy.

Show full abstract

To address these bottlenecks, we introduce ScaleKV, a novel KV cache compression framework tailored for VAR architectures. ScaleKV leverages two critical observations: varying cache demands across transformer layers and distinct attention patterns at different scales. Based on these insights, ScaleKV categorizes transformer layers into two functional groups: drafters and refiners. Drafters exhibit dispersed attention across multiple scales, thereby requiring greater cache capacity. Conversely, refiners focus attention on the current token map to process local details, consequently necessitating substantially reduced cache capacity. ScaleKV optimizes the multi-scale inference pipeline by identifying scale-specific drafters and refiners, facilitating differentiated cache management tailored to each scale. Evaluation on the state-of-the-art text-to-image VAR model family, Infinity, demonstrates that our approach effectively reduces the required KV cache memory to 10% while preserving pixel-level fidelity.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2025] ScaleKV: Memory-Efficient Visual Autoregressive Modeling with Scale-Aware KV Cache Compression

532Python, Jupyter NotebookMay 26, 20258 months agoMIT
auto-regressive-modelefficient-image-generationmodel-accelerationtransformers

Similar Papers

Cite this paper

@article{li2025memoryefficient,
  title  = {Memory-Efficient Visual Autoregressive Modeling with Scale-Aware KV Cache Compression},
  author = {Kunjun Li and Zigeng Chen and Cheng-Yen Yang and Jenq-Neng Hwang},
  year   = {2025},
  eprint = {2505.19602},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.19602},
  url    = {https://doi.org/10.48550/arXiv.2505.19602},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.19602.svg)](https://codeofpaper.com/paper/2505.19602)

Discussion