通过词元洗牌提升自回归模型生成超高清图像的效率
Token-Shuffle: Towards High-Resolution Image Generation with Autoregressive Models
- 用词元洗牌合并局部视觉令牌,减少输入量
- 实现2048x2048分辨率图像生成,性能超越同类自回归模型
- 适合追求高效高分辨率图像生成的研究者与开发者
自回归(AR)模型在图像生成中因所需图像令牌数量庞大而效率受限,难以支持高分辨率。为此,本文提出Token-Shuffle方法,利用多模态大模型中视觉编码器低维码与高维语言词汇间的维度冗余特性,引入两个关键操作:词元洗牌(token-shuffle)将空间邻近的令牌沿通道维度合并以减少输入数量;词元还原(token-unshuffle)在变换器块后重新拆解预测结果以恢复空间结构。该方法无需额外预训练文本编码器,联合训练文本提示,实现统一的下一个词元预测机制。首次将自回归文生图模型推进至2048x2048分辨率,2.7B参数模型在GenAI-benchmark上对困难提示获得0.77总体得分,优于LlamaGen 0.18,超过LDM 0.15。大规模人工评估也证实其在文本对齐、视觉瑕疵和视觉外观方面表现优异。
原文摘要 · Abstract (English)
Autoregressive (AR) models, long dominant in language generation, are increasingly applied to image synthesis but are often considered less competitive than Diffusion-based models. A primary limitation is the substantial number of image tokens required for AR models, which constrains both training and inference efficiency, as well as image resolution. To address this, we present Token-Shuffle, a novel yet simple method that reduces the number of image tokens in Transformer. Our key insight is the dimensional redundancy of visual vocabularies in Multimodal Large Language Models (MLLMs), where low-dimensional visual codes from visual encoder are directly mapped to high-dimensional language vocabularies. Leveraging this, we consider two key operations: token-shuffle, which merges spatially local tokens along channel dimension to decrease the input token number, and token-unshuffle, which untangles the inferred tokens after Transformer blocks to restore the spatial arrangement for output. Jointly training with textual prompts, our strategy requires no additional pretrained text-encoder and enables MLLMs to support extremely high-resolution image synthesis in a unified next-token prediction way while maintaining efficient training and inference. For the first time, we push the boundary of AR text-to-image generation to a resolution of 2048x2048 with gratifying generation performance. In GenAI-benchmark, our 2.7B model achieves 0.77 overall score on hard prompts, outperforming AR models LlamaGen by 0.18 and diffusion models LDM by 0.15. Exhaustive large-scale human evaluations also demonstrate our prominent image generation ability in terms of text-alignment, visual flaw, and visual appearance. We hope that Token-Shuffle can serve as a foundational design for efficient high-resolution image generation within MLLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。