FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning

Hang Guo, Yawei Li, Taolin Zhang, Jiangshan Wang, Tao Dai +2 more
3/30/2025
cs.CV

Official code: csguoh/FastVAR (88 stars, MIT, last commit 2025-09-08).

Abstract

Visual Autoregressive (VAR) modeling has gained popularity for its shift towards next-scale prediction. However, existing VAR paradigms process the entire token map at each scale step, leading to the complexity and runtime scaling dramatically with image resolution. To address this challenge, we propose FastVAR, a post-training acceleration method for efficient resolution scaling with VARs. Our key finding is that the majority of latency arises from the large-scale step where most tokens have already converged. Leveraging this observation, we develop the cached token pruning strategy that only forwards pivotal tokens for scale-specific modeling while using cached tokens from previous scale steps to restore the pruned slots. This significantly reduces the number of forwarded tokens and improves the efficiency at larger resolutions. Experiments show the proposed FastVAR can further speedup FlashAttention-accelerated VAR by 2.7$\times$ with negligible performance drop of <1%. We further extend FastVAR to zero-shot generation of higher resolution images. In particular, FastVAR can generate one 2K image with 15GB memory footprints in 1.5s on a single NVIDIA 3090 GPU. Code is available at https://github.com/csguoh/FastVAR.

View on arXivView PDF

Code Implementations(1)

csguoh/FastVAROfficial100%
MIT

[ICCV2025]Generate one 2K image on single 24GB 3090 GPU!

882C, C++Mar 30, 20251 years agoMIT

Similar Papers

Cite this paper

@article{guo2025fastvar,
  title  = {FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning},
  author = {Hang Guo and Yawei Li and Taolin Zhang and Jiangshan Wang and Tao Dai and Shu-Tao Xia and Luca Benini},
  year   = {2025},
  eprint = {2503.23367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.23367v3}
}

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/2503.23367.svg)](https://codeofpaper.com/paper/2503.23367)

Discussion