atlas

Research map / Image generation / Editing and style transfer

Contrastive Denoising Score for Text-guided Latent Diffusion Image Editing

CVPR 2024 · Image generation › Editing and style transfer · approach: Inversion-based diffusion editing · 29 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Adds a patch-wise contrastive (CUT-style) loss computed on latent self-attention features to Delta Denoising Score, enabling training-free, structure-preserving text-guided image editing with Stable Diffusion and NeRF.

Problem

Delta Denoising Score (DDS) edits images with text prompts but fails to preserve structural details of the source image, and prior CUT-based structure preservation requires auxiliary encoders or has not been applied to latent diffusion models.

Approach

Integrates a CUT patchNCE loss into the DDS framework for Stable Diffusion, computing it on intermediate self-attention features of the denoising U-Net (no auxiliary network, no fine-tuning), with random patches at the same spatial locations as positives and other patches as negatives.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2dogDist: 0.023 -> 0.020Helped
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2dogLPIPS: 0.080 -> 0.079Helped
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2dogCLIP Acc: 97.9% -> 97.5%Hurt
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2cowDist: 0.040 -> 0.033Helped
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2cowLPIPS: 0.116 -> 0.112Helped
Replace DDS with CDS by adding self-attention CUT lossDDS · cat2cowCLIP Acc: 99.6% -> 97.9%Hurt
Add self-attention CUT loss to vanilla DDS (ablation)CDS · image editingstructural consistencyHelped
Apply CUT loss to self-attention features rather than score output or cross-attention features (ablation)CDS · image editingstructural consistencyHelped
Vary the contrastive loss weight (ablation)CDS · image editingstructural consistencyMixed
Add feature injection following the PnP approach to DDS (ablation)DDS · image editingstructural consistencyMixed
Add self-attention CUT loss to DDS for NeRF editing (ablation)CDS · NeRF editingstructural consistencyHelped

Surprising findings

Limitations

Experimental setup

Datasets: LAION 5B (250 cat images)

Benchmarks: cat2dog cat2cow cat2pig

Metrics: CLIP accuracy DINO-ViT structure distance LPIPS user study score (text match, structure, quality)

Baselines: SDEdit + word swap DiffuseIT DDPM inv + P2P DDPM inv + PnP DDS ED-NeRF

Builds on: Delta Denoising Score Score Distillation Sampling Contrastive Unpaired Translation Plug-and-Play Prompt-to-Prompt

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy