ZipAR:通过空间局部性实现并行自回归图像生成
ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality
AI总结:
本文提出免训练的即插即用并行解码框架ZipAR,利用图像空间局部性实现下一集合预测,在Emu3-Gen模型上将前向传递次数减少高达91%,显著加速自回归视觉生成。
摘要:
本文提出ZipAR,一种用于加速自回归(AR)视觉生成的免训练、即插即用并行解码框架。其动机源于图像呈现局部结构,且空间距离较远的区域往往相互依赖极小。给定部分已解码的视觉token集合,除行维度原有的下一token预测方案外,列维度上对应空间相邻区域的token可被并行解码,从而实现“下一集合预测”范式。通过在单次前向传递中同时解码多个token,生成图像所需的前向传递次数显著减少,大幅提升了生成效率。实验表明,在Emu3-Gen模型上,ZipAR无需任何额外重训练即可将模型前向传递次数减少高达91%。代码见:https://github.com/ThisisBillhe/ZipAR。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。