arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00880cs.CV
收藏

通过面向聚类的 Token 预测改进自回归视觉生成

Improving Autoregressive Visual Generation with Cluster-Oriented Token Prediction

Shanghai Jiao Tong University(上海交通大学);Tencent(腾讯);Zhejiang University(浙江大学)

Teng Hu, Jiangning Zhang, Ran Yi, Jieyu Weng, Yabiao Wang, Xianfang Zeng, Zhucun Xue, Lizhuang Ma

AI总结:

本文提出 IAR,通过 balanced k-means 码本重排和面向聚类的交叉熵损失增强自回归视觉生成,在 100M–1.4B 规模上实现同等 FID 下训练时间减半。

摘要:

近来,将 LLM 用于视觉生成已成为研究热点。然而,现有方法主要是把 LLM 架构迁移到视觉生成,却很少研究语言与视觉之间的根本差异。这一忽视可能导致 LLM 框架中的视觉生成能力未得到充分利用。本文探讨了 LLM 框架下视觉嵌入空间的特性,并发现视觉嵌入之间的相关性有助于获得更稳定、更鲁棒的生成结果。我们提出 IAR,这是一种改进的自回归视觉生成方法(Improved AutoRegressive Visual Generation Method),可提升基于 LLM 的视觉生成模型的训练效率和生成质量。首先,我们提出 Codebook Rearrangement(码本重排)策略,使用 balanced k-means 聚类算法将视觉码本重排为多个簇,确保每个簇内的视觉特征具有高相似性。借助重排后的码本,我们提出 Cluster-oriented Cross-entropy Loss(面向聚类的交叉熵损失),引导模型正确预测 token 所在的簇。该方法确保即使模型预测了错误的 token 索引,所预测的 token 也有很高概率位于正确的簇中,从而显著提升生成质量和鲁棒性。大量实验表明,我们的方法在 100M 到 1.4B 的规模上持续提升模型训练效率和性能,在达到相同 FID 的同时将训练时间减少一半。此外,我们的方法可应用于多种基于 LLM 的视觉生成模型,并遵循 scaling law,为未来基于 LLM 的视觉生成研究提供了有前景的方向。代码位于:https://github.com/sjtuplayer/IAR。

英文摘要:

Employing LLMs for visual generation has recently become a research focus. However, the existing methods primarily transfer the LLM architecture to visual generation but rarely investigate the fundamental differences between language and vision. This oversight may lead to suboptimal utilization of visual generation capabilities within the LLM framework. In this paper, we explore the characteristics of visual embedding space under the LLM framework and discover that the correlation between visual embeddings can help achieve more stable and robust generation results. We present IAR, an Improved AutoRegressive Visual Generation Method that enhances the training efficiency and generation quality of LLM-based visual generation models. Firstly, we propose a Codebook Rearrangement strategy that uses balanced k-means clustering algorithm to rearrange the visual codebook into clusters, ensuring high similarity among visual features within each cluster. Leveraging the rearranged codebook, we propose a Cluster-oriented Cross-entropy Loss that guides the model to correctly predict the cluster where the token is located. This approach ensures that even if the model predicts the wrong token index, there is a high probability the predicted token is located in the correct cluster, which significantly enhances the generation quality and robustness. Extensive experiments demonstrate that our method consistently enhances the model training efficiency and performance from 100M to 1.4B, reducing the training time by half while achieving the same FID. Additionally, our approach can be applied to various LLM-based visual generation models and adheres to the scaling law, providing a promising direction for future research in LLM-based visual generation. The code is available at: https://github.com/sjtuplayer/IAR.

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

↑