SparVAR: Exploring Sparsity in Visual AutoRegressive Modeling for Training-Free Acceleration

Zekun Li, Ning Wang, Tongxin Bai, Changwang Mei, Peisong Wang +2 more
2/4/2026
cs.CVcs.AIcs.LG

Official code: CAS-CLab/SparVAR (1 star, MIT, last commit 2026-02-04).

Abstract

Visual AutoRegressive (VAR) modeling has garnered significant attention for its innovative next-scale prediction paradigm. However, mainstream VAR paradigms attend to all tokens across historical scales at each autoregressive step. As the next scale resolution grows, the computational complexity of attention increases quartically with resolution, causing substantial latency. Prior accelerations often skip high-resolution scales, which speeds up inference but discards high-frequency details and harms image quality. To address these problems, we present SparVAR, a training-free acceleration framework that exploits three properties of VAR attention: (i) strong attention sinks, (ii) cross-scale activation similarity, and (iii) pronounced locality. Specifically, we dynamically predict the sparse attention pattern of later high-resolution scales from a sparse decision scale, and construct scale self-similar sparse attention via an efficient index-mapping mechanism, enabling high-efficiency sparse attention computation at large scales. Furthermore, we propose cross-scale local sparse attention and implement an efficient block-wise sparse kernel, which achieves $\mathbf{> 5\times}$ faster forward speed than FlashAttention. Extensive experiments demonstrate that the proposed SparseVAR can reduce the generation time of an 8B model producing $1024\times1024$ high-resolution images to the 1s, without skipping the last scales. Compared with the VAR baseline accelerated by FlashAttention, our method achieves a $\mathbf{1.57\times}$ speed-up while preserving almost all high-frequency details. When combined with existing scale-skipping strategies, SparseVAR attains up to a $\mathbf{2.28\times}$ acceleration, while maintaining competitive visual generation quality. Code is available at https://github.com/CAS-CLab/SparVAR.

View on arXivView PDF

Code Implementations(1)

CAS-CLab/SparVAROfficial100%
MIT

Exploring Sparsity in Visual AutoRegressive Modeling for Training-Free Acceleration

10Feb 4, 20268 months agoMIT

Similar Papers

Cite this paper

@article{li2026sparvar,
  title  = {SparVAR: Exploring Sparsity in Visual AutoRegressive Modeling for Training-Free Acceleration},
  author = {Zekun Li and Ning Wang and Tongxin Bai and Changwang Mei and Peisong Wang and Shuang Qiu and Jian Cheng},
  year   = {2026},
  eprint = {2602.04361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.04361v1}
}

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

Discussion