[论文解读] FuseDream: Training-Free Text-to-Image Generation with Improved CLIP+GAN Space Optimization
FuseDream 通过 AugCLIP、初始化/过度参数化策略以及组合生成方法,在不训练生成器的情况下实现了强大的 MS COCO 指标的文本到图像生成。
Generating images from natural language instructions is an intriguing yet highly challenging task. We approach text-to-image generation by combining the power of the retrained CLIP representation with an off-the-shelf image generator (GANs), optimizing in the latent space of GAN to find images that achieve maximum CLIP score with the given input text. Compared to traditional methods that train generative models from text to image starting from scratch, the CLIP+GAN approach is training-free, zero shot and can be easily customized with different generators. However, optimizing CLIP score in the GAN space casts a highly challenging optimization problem and off-the-shelf optimizers such as Adam fail to yield satisfying results. In this work, we propose a FuseDream pipeline, which improves the CLIP+GAN approach with three key techniques: 1) an AugCLIP score which robustifies the CLIP objective by introducing random augmentation on image. 2) a novel initialization and over-parameterization strategy for optimization which allows us to efficiently navigate the non-convex landscape in GAN space. 3) a composed generation technique which, by leveraging a novel bi-level optimization formulation, can compose multiple images to extend the GAN space and overcome the data-bias. When promoted by different input text, FuseDream can generate high-quality images with varying objects, backgrounds, artistic styles, even novel counterfactual concepts that do not appear in the training data of the GAN we use. Quantitatively, the images generated by FuseDream yield top-level Inception score and FID score on MS COCO dataset, without additional architecture design or training. Our code is publicly available at \url{https://github.com/gnobitab/FuseDream}.
研究动机与目标
- 推动使用 CLIP+GAN 的无训练文本到图像生成的动机与意义。
- 应对 CLIP 在 GAN 潜在空间中的对抗性优化脆弱性。
- 提出 AugCLIP,一种对数据增强鲁棒的评分函数,以改善语义对齐。
- 引入初始化/过度参数化以更有效地在非凸 GAN 潜在空间中导航。
- 开发一个组合生成框架,以创建分布外图像并减少数据偏差。
提出的方法
- 通过对随机图像增广取平均来定义 AugCLIP,从而对对抗性攻击具有鲁棒性。
- 采用一个过度参数化、多重初始化的优化,其中前 k 个初始潜在编码线性组合后再联合优化。
- 为组合生成制定一个双层优化,使其在动态障碍梯度下降中联合最大化 AugCLIP 与最小化感知损失。
- 实现两图像的组合(前景/背景),包含空间布局和尺寸缩放,然后进行泊松混合以产生融合图像。
- 对离散组合参数进行穷举并用增强目标函数优化连续潜在编码。
- 与基线 CLIP+GAN 方法进行对比,并报告 MS COCO 指标(IS、FID、CLIP R-prec、R-prec)。
实验结果
研究问题
- RQ1AugCLIP 是否能对基于 CLIP 的对抗性最大化在 GAN 潜在空间中提供鲁棒性?
- RQ2初始化/过度参数化策略是否改善 CLIP+GAN 文本到图像生成的优化结果?
- RQ3组合生成是否能扩展 GAN 空间以生成连贯的多对象图像并减少数据偏差伪影?
- RQ4与以往方法相比,FuseDream 在 MS COCO 上的定量表现如何?
- RQ5该组合框架是否能够在保持语义相关性的同时生成反事实或分布外图像?
主要发现
- AugCLIP 显著减少对抗性驱动的伪影,并产生比标准 CLIP 分数更语义一致的图像。
- 以前 k 个潜在编码和过度参数化的初始化能够提升优化,帮助从局部极值中逃逸。
- 带有双层优化的组合生成实现了前景/背景对象的连贯融合并减少边界不连续性。
- FuseDream 在 MS COCO 上实现了近似最先进的 Inception Score,同时在无需训练新生成器的情况下具备竞争性的 FID 和基于 CLIP 的指标。
- 在 MS COCO 上的定量结果显示 FuseDream(k=5/256)IS=34.26、FID=21.16、CLIP R-prec=96.43、R-prec=65.56;(k=10/256)IS=34.67、FID=21.89、CLIP R-prec=98.46、R-prec=66.06;(k=5/512)IS=34.19、FID=21.52、CLIP R-prec=98.38、R-prec=63.67;(k=10/512)IS=32.88、FID=25.24、CLIP R-prec=98.44、R-prec=63.80。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。