[论文解读] Scaling Autoregressive Models for Content-Rich Text-to-Image Generation
这篇论文提出 Parti,一个 Pathways 自回归文本到图像模型,规模可达到 20B 参数,采用基于 Transformer 的图像分词器(ViT-VQGAN)和一个编码器-解码器架构,在 MS-COCO 和 Localized Narratives 上实现零样本与微调 FID 的最先进水平,并引入一个新的开放域评测基准 PartiPrompts。
We present the Pathways Autoregressive Text-to-Image (Parti) model, which generates high-fidelity photorealistic images and supports content-rich synthesis involving complex compositions and world knowledge. Parti treats text-to-image generation as a sequence-to-sequence modeling problem, akin to machine translation, with sequences of image tokens as the target outputs rather than text tokens in another language. This strategy can naturally tap into the rich body of prior work on large language models, which have seen continued advances in capabilities and performance through scaling data and model sizes. Our approach is simple: First, Parti uses a Transformer-based image tokenizer, ViT-VQGAN, to encode images as sequences of discrete tokens. Second, we achieve consistent quality improvements by scaling the encoder-decoder Transformer model up to 20B parameters, with a new state-of-the-art zero-shot FID score of 7.23 and finetuned FID score of 3.22 on MS-COCO. Our detailed analysis on Localized Narratives as well as PartiPrompts (P2), a new holistic benchmark of over 1600 English prompts, demonstrate the effectiveness of Parti across a wide variety of categories and difficulty aspects. We also explore and highlight limitations of our models in order to define and exemplify key areas of focus for further improvements. See https://parti.research.google/ for high-resolution images.
研究动机与目标
- 将自回归文本到图像模型扩展到 20B 参数,并在开放域提示上进行评估。
- 在零样本和微调设定下展示最先进的图像质量和文本-图像对齐。
- 引入全面的基准测试(PartiPrompts)并对模型局限性进行分析,以指导未来工作。
提出的方法
- 将文本到图像生成视为序列到序列学习,图像令牌由基于 Transformer 的 ViT-VQGAN 分词器生成。
- 训练编码器-解码器 Transformer 将文本令牌序列映射到图像令牌序列,图像令牌由 ViT-VQGAN 解码为像素。
- 在大规模语言数据上预训练文本编码器并联合微调以进行文本到图像的生成。
- 应用无分类器引导和对比重排(CoCa)以提高样本质量和图像-文本对齐。
- 在 CloudTPUv4 上使用 GSPMD 的分布式训练,包括层内模型并行和数据并行,以及针对大型模型的4x 编码器/解码器设计。
- 可选地在图像分词器之上加入一个超分辨率模块,以产生更高分辨率的输出。
实验结果
研究问题
- RQ1将规模扩展到 20B 参数的自回归编码器-解码器文本到图像模型,是否能够在标准描述和长文本描述上超越现有基线?
- RQ2在大规模下,ViT-VQGAN 图像分词器如何影响重建质量和代码本的使用?
- RQ3文本编码器的预训练对下游文本到图像生成性能有何影响?
- RQ4无分类器引导和重新排序是否能改善大型 Parti 模型的文本到图像对齐和样本多样性?
- RQ5开放域提示和更长的描述如何在 Parti 中超越 MS-COCO 风格的字幕进行泛化?
主要发现
- 20B Parti 模型在 MS-COCO 上实现零样本 FID 7.23,微调 FID 3.22。
- Parti 在 Localized Narratives 上达到零样本 FID 15.97,微调 FID 8.39。
- 将参数规模扩大到 20B 在各数据集上持续提升文本-图像对齐和图像保真度。
- PartiPrompts (P2) 提供一个全面的 1600 提示基准,涵盖 12 个类别和 11 个挑战方面,用于评估开放域生成。
- 无分类器引导和对比重排是互补的,能够提升样本质量与对齐。
- 该方法对更长、更加详细的提示具有强烈的零样本泛化能力,并支持内容丰富的综合生成。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。