Contrastive Denoising Score for Text-guided Latent Diffusion Image Editing

📄 arXiv: 2311.18608v2 📥 PDF

作者: Hyelin Nam, Gihyun Kwon, Geon Yeong Park, Jong Chul Ye

分类: cs.CV, cs.AI, cs.LG

发布日期: 2023-11-30 (更新: 2024-04-01)

备注: CVPR 2024 (poster); Project page: https://hyelinnam.github.io/CDS/

🔗 代码/项目: PROJECT_PAGE


💡 一句话要点

提出对比去噪评分以解决图像编辑中的结构保留问题

🎯 匹配领域: 支柱二:RL算法与架构 (RL & Architecture) 支柱三:空间感知与语义 (Perception & Semantics)

关键词: 图像编辑 去噪评分 对比学习 潜在扩散模型 神经辐射场 结构保留 文本到图像

📋 核心要点

  1. 现有的图像编辑方法在保留原始图像结构方面存在不足,尤其是在使用评分函数进行编辑时。
  2. 本文提出的对比去噪评分(CDS)方法,通过在DDS框架中引入对比学习损失,利用LDM的中间特征来增强结构保留能力。
  3. 实验结果表明,CDS在零-shot图像转换和NeRF编辑中表现出色,显著提高了结构对应性和内容可控性。

📝 摘要(中文)

随着文本到图像扩散模型的显著发展,图像编辑方法变得更加多样化并持续演进。近期一种有前景的方法是基于评分蒸馏采样框架的Delta去噪评分(DDS),但仅依赖评分函数的差异不足以保留原始图像的特定结构元素。为了解决这一问题,本文提出了一种简单而强大的DDS修改方法,称为对比去噪评分(CDS),用于潜在扩散模型(LDM)。我们通过在DDS框架中引入对比学习的CUT损失,利用LDM自注意力层的中间特征,达成零-shot图像到图像的转换和神经辐射场(NeRF)编辑,确保输入与输出之间的结构对应,同时保持内容的可控性。定性结果和比较展示了我们方法的有效性。

🔬 方法详解

问题定义:本文旨在解决现有图像编辑方法在保留原始图像结构方面的不足,特别是仅依赖评分函数差异时的局限性。

核心思路:提出对比去噪评分(CDS),通过引入对比学习损失,利用潜在扩散模型的中间特征来增强图像编辑的结构保留能力。

技术框架:整体架构包括利用LDM的自注意力层提取中间特征,并在此基础上应用对比学习损失,形成新的图像编辑流程。

关键创新:CDS的核心创新在于将对比学习与去噪评分结合,避免了原CUT方法中使用辅助网络的复杂性,直接利用LDM的特征进行编辑。

关键设计:在损失函数中引入CUT损失,确保在图像转换过程中保持结构对应性,同时通过自注意力层的特征提取增强了模型的表现。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果显示,CDS方法在零-shot图像转换任务中,相较于传统DDS方法,结构对应性提升了显著的百分比,且在NeRF编辑任务中也表现出更高的内容可控性,验证了其有效性和实用性。

🎯 应用场景

该研究具有广泛的应用潜力,尤其在艺术创作、游戏设计和虚拟现实等领域,能够实现高质量的图像编辑和生成。未来,CDS方法可能推动更多基于文本的图像生成技术的发展,提升用户在创作过程中的体验和效率。

📄 摘要(原文)

With the remarkable advent of text-to-image diffusion models, image editing methods have become more diverse and continue to evolve. A promising recent approach in this realm is Delta Denoising Score (DDS) - an image editing technique based on Score Distillation Sampling (SDS) framework that leverages the rich generative prior of text-to-image diffusion models. However, relying solely on the difference between scoring functions is insufficient for preserving specific structural elements from the original image, a crucial aspect of image editing. To address this, here we present an embarrassingly simple yet very powerful modification of DDS, called Contrastive Denoising Score (CDS), for latent diffusion models (LDM). Inspired by the similarities and differences between DDS and the contrastive learning for unpaired image-to-image translation(CUT), we introduce a straightforward approach using CUT loss within the DDS framework. Rather than employing auxiliary networks as in the original CUT approach, we leverage the intermediate features of LDM, specifically those from the self-attention layers, which possesses rich spatial information. Our approach enables zero-shot image-to-image translation and neural radiance field (NeRF) editing, achieving structural correspondence between the input and output while maintaining content controllability. Qualitative results and comparisons demonstrates the effectiveness of our proposed method. Project page: https://hyelinnam.github.io/CDS/