Skip to main content
QUICK REVIEW

[论文解读] PixArt-$α$: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesis

Jun Song Chen, Jincheng Yu|arXiv (Cornell University)|Sep 30, 2023
Advanced Image and Video Retrieval TechniquesComputer Science被引用 8
一句话总结

PixArt-α 通过三阶段策略、跨注意力整合和高信息数据,实现竞争性质量,且训练成本只是原有方法的一小部分。

ABSTRACT

The most advanced text-to-image (T2I) models require significant training costs (e.g., millions of GPU hours), seriously hindering the fundamental innovation for the AIGC community while increasing CO2 emissions. This paper introduces PIXART-$α$, a Transformer-based T2I diffusion model whose image generation quality is competitive with state-of-the-art image generators (e.g., Imagen, SDXL, and even Midjourney), reaching near-commercial application standards. Additionally, it supports high-resolution image synthesis up to 1024px resolution with low training cost, as shown in Figure 1 and 2. To achieve this goal, three core designs are proposed: (1) Training strategy decomposition: We devise three distinct training steps that separately optimize pixel dependency, text-image alignment, and image aesthetic quality; (2) Efficient T2I Transformer: We incorporate cross-attention modules into Diffusion Transformer (DiT) to inject text conditions and streamline the computation-intensive class-condition branch; (3) High-informative data: We emphasize the significance of concept density in text-image pairs and leverage a large Vision-Language model to auto-label dense pseudo-captions to assist text-image alignment learning. As a result, PIXART-$α$'s training speed markedly surpasses existing large-scale T2I models, e.g., PIXART-$α$ only takes 10.8% of Stable Diffusion v1.5's training time (675 vs. 6,250 A100 GPU days), saving nearly \$300,000 (\$26,000 vs. \$320,000) and reducing 90% CO2 emissions. Moreover, compared with a larger SOTA model, RAPHAEL, our training cost is merely 1%. Extensive experiments demonstrate that PIXART-$α$ excels in image quality, artistry, and semantic control. We hope PIXART-$α$ will provide new insights to the AIGC community and startups to accelerate building their own high-quality yet low-cost generative models from scratch.

研究动机与目标

  • 将 T2I 训练分解为像素依赖、文本-图像对齐和图像美学阶段。
  • 在扩散 Transformer 中加入跨注意力以实现高效条件化。
  • 利用高信息密度的自动标注数据改善文本-图像对齐。
  • 从轻量级基线初始化并微调以降低训练成本与时间。
  • 在低资源下展示具竞争力的图像质量与语义控制。

提出的方法

  • 三阶段训练策略:像素依赖学习、文本-图像对齐学习,以及高美学、高分辨率微调。
  • 通过在 Diffusion Transformer 中添加跨注意力块并采用 adaLN-single 实现参数高效的高效 T2I Transformer 设计。
  • 重新参数化以复用预训练权重并加速收敛。
  • 使用 LLaVA 的自动标注管道,在基于 SAM 的数据上生成高密度字幕以改善文本-图像对齐。
  • 数据澄清强调高信息密度(SAM-LLaVA、LAION-LLaVA、内部 HQ 数据)以提高学习效率。
  • 训练细节包括 256×256 基线、LDM 的 VAE、T5-XXL 文本编码器,以及 DiT-XL/2 主干;多尺度训练和 DPM-Solver 采样。

实验结果

研究问题

  • RQ1PixArt-α 是否能在显著降低训练成本的情况下达到与最先进模型相近的图像质量?
  • RQ2训练阶段的分解与数据质量如何影响文本-图像对齐效率与图像美学?
  • RQ3引入跨注意力和 adaLN-single 是否在保持生成保真度的同时降低计算需求?
  • RQ4自动标注的高信息字幕在多大程度上提升 T2I 模型的语义控制?
  • RQ5在训练数据量与 CO2 排放方面的取舍与图像质量之间的关系如何?

主要发现

  • PixArt-α 在零样本 COCO 上实现 FID 7.32,仅使用 Stable Diffusion v1.5 训练时间的 12%。
  • 训练成本约为 753 个 A100 GPU 天和 28400 美元,约为 RAPHAEL 成本的 1%、SDv1.5 数据/时间 footprint 的 2%。
  • 与 RAPHAEL 相比,PixArt-α 使用大约 1% 的训练资源,同时在 FID 和语义对齐方面达到具竞争力的水平。
  • 在 T2I-CompBench 上的对齐性能在多项属性与关系上表现强劲,表明文本-图像条件化有效。
  • 用户研究显示 PixArt-α 在图像质量与对齐方面优于若干 SOTA 模型(如 DALL-E 2、SDv2、SDXL)。
  • 消融研究证实重新参数化和 adaLN-single 对内存/参数效率和图像保真度的必要性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。