阐明用于图像生成的语言模型设计空间
Elucidating the design space of language models for image generation
AI总结:
本文首次系统分析语言模型在图像生成中的优化行为与设计空间,涵盖tokenizer、模型规模、词汇表和采样策略,并提出ELM模型在ImageNet 256×256上取得最优性能。
摘要:
自回归(AR)语言模型在文本生成中的成功,激励了计算机视觉社区采用大语言模型(LLMs)进行图像生成。然而,考虑到文本与图像模态之间的本质差异,用于图像生成的语言模型设计空间仍未得到充分探索。我们观察到,与文本token相比,图像token表现出更大的随机性,这在使用token预测进行训练时带来了挑战。尽管如此,AR模型通过有效学习模式,即使是从一个看似次优的优化问题中,也展示了其潜力。我们的分析还揭示,虽然所有模型都成功掌握了局部信息在图像生成中的重要性,但较小的模型难以捕捉全局上下文。相比之下,较大的模型在这一方面展现出更强的能力,这有助于解释模型规模扩大时所取得的性能提升。我们进一步通过广泛的对比实验阐明了用于视觉生成的语言模型设计空间,包括tokenizer选择、模型选择、模型可扩展性、词汇表设计和采样策略。我们的工作是首次分析语言模型在视觉生成中的优化行为,我们相信这可以在将语言模型应用于其他领域时启发更有效的设计。最后,我们阐明的用于图像生成的语言模型,称为ELM,在ImageNet 256*256基准上取得了最先进的性能。代码可在 https://github.com/Pepperlll/LMforImageGeneration.git 获取。
英文摘要:
The success of autoregressive (AR) language models in text generation has inspired the computer vision community to adopt Large Language Models (LLMs) for image generation. However, considering the essential differences between text and image modalities, the design space of language models for image generation remains underexplored. We observe that image tokens exhibit greater randomness compared to text tokens, which presents challenges when training with token prediction. Nevertheless, AR models demonstrate their potential by effectively learning patterns even from a seemingly suboptimal optimization problem. Our analysis also reveals that while all models successfully grasp the importance of local information in image generation, smaller models struggle to capture the global context. In contrast, larger models showcase improved capabilities in this area, helping to explain the performance gains achieved when scaling up model size. We further elucidate the design space of language models for vision generation, including tokenizer choice, model choice, model scalability, vocabulary design, and sampling strategy through extensive comparative experiments. Our work is the first to analyze the optimization behavior of language models in vision generation, and we believe it can inspire more effective designs when applying LMs to other domains. Finally, our elucidated language model for image generation, termed as ELM, achieves state-of-the-art performance on the ImageNet 256*256 benchmark. The code is available at https://github.com/Pepperlll/LMforImageGeneration.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。