arXiv cs.AI· Zekun Li, Ning Wang, Tongxin Bai, Changwang Mei, Peisong Wang, Shuang Qiu, Jian Cheng·· 2 小时前AI 评分39
SparVAR:利用视觉自回归建模中的稀疏性实现免训练加速
SparVAR: Exploring Sparsity in Visual AutoRegressive Modeling for Training-Free Acceleration
AI 导读
SparVAR 是一种免训练的视觉自回归(VAR)模型加速框架,利用注意力汇聚、跨尺度激活相似性和局部性三种特性实现稀疏注意力。其块状稀疏内核前向速度比 FlashAttention 快 5 倍以上,可将 8B 模型生成 1024×1024 图像的时间降至 1 秒;相比 FlashAttention 加速的 VAR 基线提速 1.57 倍,结合尺度跳过策略最高加速 2.28 倍,且保留高频细节。
正文 · 原文
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 SparVAR 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, SparVAR attains up to a $\mathbf{2.28\times}$ acceleration, while maintaining competitive visual generation quality. Code is available at this https URL
| Comments: | CVPR 2026 |
| Subjects: | Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2602.04361 [cs.CV] |
| (or arXiv:2602.04361v3 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2602.04361 arXiv-issued DOI via DataCite |
Submission history
From: Zekun Li [view email]
[v1]
Wed, 4 Feb 2026 09:34:06 UTC (39,108 KB)
[v2]
Sun, 29 Mar 2026 03:01:17 UTC (33,999 KB)
[v3]
Tue, 24 Nov 2026 09:40:43 UTC (34,001 KB)
来源:arXiv cs.AI · arxiv.org