arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12490cs.CVcs.AI
收藏

稳定图像自回归建模的潜在空间:一个统一视角

Stabilize the Latent Space for Image Autoregressive Modeling: A Unified Perspective

School of Data Science, University of Science and Technology of China(中国科学技术大学数据科学学院);State Key Laboratory of Cognitive Intelligence(认知智能国家重点实验室);School of Computer Science and Technology, University of Science and Technology of China(中国科学技术大学计算机科学与技术学院);Zhejiang University(浙江大学)

Yongxin Zhu, Bocheng Li, Hang Zhang, Xin Li, Linli Xu, Lidong Bing

AI总结:

该研究针对图像自回归模型性能落后于扩散、掩码模型的问题,从潜在空间稳定性视角出发,提出基于自监督特征K-Means的离散分词器DiGIT,首次让GPT风格图像自回归模型超越LDMs,且具备规模扩展提升特性。

摘要:

基于潜在空间的图像生成模型,例如潜在扩散模型(Latent Diffusion Models, LDMs)和掩码图像模型(Mask Image Models, MIMs),已在图像生成任务中取得了显著成功。这类模型通常利用VQGAN或VAE等重构式自编码器将像素编码为更紧凑的潜在空间表示,并在潜在空间中学习数据分布,而非直接从像素学习。然而,这种做法引出了一个关键问题:这真的是最优选择吗?\n对此,我们首先提出一个有趣的观察:尽管共享相同的潜在空间,自回归模型在图像生成效果上却显著落后于LDMs和MIMs。这一发现与NLP领域的情况形成鲜明对比——在NLP中,自回归模型GPT已占据主导地位。为解释这一差异,我们提出了一个关于潜在空间与生成模型关系的统一视角,强调潜在空间稳定性在图像生成建模中的重要性。\n此外,我们提出了一种简单但有效的离散图像分词器(DiGIT),通过对自监督学习模型的潜在特征应用K-Means算法,来稳定图像生成建模的潜在空间。实验结果表明,采用我们的分词器DiGIT的图像自回归建模,凭借下一词元预测原则同时提升了图像理解和图像生成性能——该原则对GPT模型而言天然简单,但对其他生成模型却颇具挑战。值得注意的是,面向图像的GPT风格自回归模型首次性能超越了LDMs,并且在模型规模扩大时,也展现出与GPT类似的显著性能提升。我们的研究结果凸显了优化潜在空间以及整合离散分词技术在提升图像生成模型能力方面的潜力。代码可在https://github.com/DAMO-NLP-SG/DiGIT获取。

英文摘要:

Latent-based image generative models, such as Latent Diffusion Models (LDMs) and Mask Image Models (MIMs), have achieved notable success in image generation tasks. These models typically leverage reconstructive autoencoders like VQGAN or VAE to encode pixels into a more compact latent space and learn the data distribution in the latent space instead of directly from pixels. However, this practice raises a pertinent question: Is it truly the optimal choice? In response, we begin with an intriguing observation: despite sharing the same latent space, autoregressive models significantly lag behind LDMs and MIMs in image generation. This finding contrasts sharply with the field of NLP, where the autoregressive model GPT has established a commanding presence. To address this discrepancy, we introduce a unified perspective on the relationship between latent space and generative models, emphasizing the stability of latent space in image generative modeling. Furthermore, we propose a simple but effective discrete image tokenizer to stabilize the latent space for image generative modeling by applying K-Means on the latent features of self-supervised learning models. Experimental results show that image autoregressive modeling with our tokenizer (DiGIT) benefits both image understanding and image generation with the next token prediction principle, which is inherently straightforward for GPT models but challenging for other generative models. Remarkably, for the first time, a GPT-style autoregressive model for images outperforms LDMs, which also exhibits substantial improvement akin to GPT when scaling up model size. Our findings underscore the potential of an optimized latent space and the integration of discrete tokenization in advancing the capabilities of image generative models. The code is available at \url{https://github.com/DAMO-NLP-SG/DiGIT}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑