ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: He, Yefei, Chen, Feng, He, Yuanyu, He, Shaoxuan, Zhou, Hong, Zhang, Kaipeng, Zhuang, Bohan
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911026888310784
author He, Yefei
Chen, Feng
He, Yuanyu
He, Shaoxuan
Zhou, Hong
Zhang, Kaipeng
Zhuang, Bohan
author_facet He, Yefei
Chen, Feng
He, Yuanyu
He, Shaoxuan
Zhou, Hong
Zhang, Kaipeng
Zhuang, Bohan
contents In this paper, we propose ZipAR, a training-free, plug-and-play parallel decoding framework for accelerating auto-regressive (AR) visual generation. The motivation stems from the observation that images exhibit local structures, and spatially distant regions tend to have minimal interdependence. Given a partially decoded set of visual tokens, in addition to the original next-token prediction scheme in the row dimension, the tokens corresponding to spatially adjacent regions in the column dimension can be decoded in parallel, enabling the ``next-set prediction'' paradigm. By decoding multiple tokens simultaneously in a single forward pass, the number of forward passes required to generate an image is significantly reduced, resulting in a substantial improvement in generation efficiency. Experiments demonstrate that ZipAR can reduce the number of model forward passes by up to 91% on the Emu3-Gen model without requiring any additional retraining. Code is available here: https://github.com/ThisisBillhe/ZipAR.
format Preprint
id arxiv_https___arxiv_org_abs_2412_04062
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality
He, Yefei
Chen, Feng
He, Yuanyu
He, Shaoxuan
Zhou, Hong
Zhang, Kaipeng
Zhuang, Bohan
Computer Vision and Pattern Recognition
Artificial Intelligence
In this paper, we propose ZipAR, a training-free, plug-and-play parallel decoding framework for accelerating auto-regressive (AR) visual generation. The motivation stems from the observation that images exhibit local structures, and spatially distant regions tend to have minimal interdependence. Given a partially decoded set of visual tokens, in addition to the original next-token prediction scheme in the row dimension, the tokens corresponding to spatially adjacent regions in the column dimension can be decoded in parallel, enabling the ``next-set prediction'' paradigm. By decoding multiple tokens simultaneously in a single forward pass, the number of forward passes required to generate an image is significantly reduced, resulting in a substantial improvement in generation efficiency. Experiments demonstrate that ZipAR can reduce the number of model forward passes by up to 91% on the Emu3-Gen model without requiring any additional retraining. Code is available here: https://github.com/ThisisBillhe/ZipAR.
title ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2412.04062