arXiv:2410.21638cs.CV2024-10NeurIPS被引 5

提出因子图扩散模型,让AI图像生成更听懂提示,还能自动修细节。

Adapting Diffusion Models for Improved Prompt Compliance and Controllable Image Synthesis

  • 用因子图建模图像与提示的联合分布,支持高效可控生成
  • 在COCO数据集上实现15%更高的物体召回率,保持原模型泛化能力
  • 可自动标注数据、支持添加新条件,适合需要精细控制的场景

基于扩散过程的生成模型在图像合成上取得突破,但存在提示遵循性差的问题,如多物体生成召回率低、图像文字生成困难、位置姿态约束难以满足。现有方法通过推理时添加损失函数提升提示遵循性,但耗时且不适用于复杂场景。为此,本文提出因子图扩散模型(FG-DMs),通过因子图分解建模图像与语义、草图、深度或法线图等条件变量的联合分布。该结构支持高效采样提示遵循策略,实现更高物体召回率、半自动化细粒度编辑、基于噪声反演的文本编辑、中间层可解释性,以及生成下游任务(如分割或深度估计)所需的标注数据,支持缺失数据训练和持续学习。我们基于预训练的Stable Diffusion模型实现所有因子,仅使用COCO数据集,实验表明其生成图像的物体召回率比原模型高15%,同时保持良好泛化能力。引入注意力蒸馏损失,增强各因子间注意力图的一致性,提升生成条件与图像的保真度。

原文摘要 · Abstract (English)

Recent advances in generative modeling with diffusion processes (DPs) enabled breakthroughs in image synthesis. Despite impressive image quality, these models have various prompt compliance problems, including low recall in generating multiple objects, difficulty in generating text in images, and meeting constraints like object locations and pose. For fine-grained editing and manipulation, they also require fine-grained semantic or instance maps that are tedious to produce manually. While prompt compliance can be enhanced by addition of loss functions at inference, this is time consuming and does not scale to complex scenes. To overcome these limitations, this work introduces a new family of \textit{Factor Graph Diffusion Models} (FG-DMs) that models the joint distribution of images and conditioning variables, such as semantic, sketch, depth or normal maps via a factor graph decomposition. This joint structure has several advantages, including support for efficient sampling based prompt compliance schemes, which produce images of high object recall, semi-automated fine-grained editing, text-based editing of conditions with noise inversion, explainability at intermediate levels, ability to produce labeled datasets for the training of downstream models such as segmentation or depth, training with missing data, and continual learning where new conditioning variables can be added with minimal or no modifications to the existing structure. We propose an implementation of FG-DMs by adapting a pre-trained Stable Diffusion (SD) model to implement all FG-DM factors, using only COCO dataset, and show that it is effective in generating images with 15\% higher recall than SD while retaining its generalization ability. We introduce an attention distillation loss that encourages consistency among the attention maps of all factors, improving the fidelity of the generated conditions and image.

扩散模型可控生成提示遵循图像编辑

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。