atlas

Research map / Image generation / Editing and style transfer

Towards Efficient Diffusion-Based Image Editing with Instant Attention Masks

AAAI 2024 · Image generation › Editing and style transfer · approach: Inversion-based diffusion editing · 11 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.

Proposes InstDiffEdit, a training-free method that derives attention-based editing masks at each denoising step of Stable Diffusion for instant, automatic, mask-guided image editing, and introduces the Editing-Mask benchmark.

Problem

Diffusion-based image editing typically needs manual or offline semantic masks, which makes it slow and labor-intensive; fully automatic mask generation (e.g., DiffEdit) is also time-consuming.

Approach

Use the cross-attention maps of a text-to-image diffusion model at each denoising step to produce masks on the fly: the start-token attention is used to locate the target token, similar tokens are aggregated with thresholded cosine weights, and the resulting mask guides denoising and a final inpainting pass, with no training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · Editing-MaskIOU: 33.0 -> 56.2Helped
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · Editing-Masktime: 64.0 -> 10.8Helped
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · ImageNetLPIPS: 27.9 -> 28.6Hurt
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · ImageNetCSFID: 70.9 -> 65.1Helped
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · ImagenLPIPS: 29.7 -> 17.0Helped
replace DiffEdit with InstDiffEditStable Diffusion v1.4 image editing · ImagenCLIPScore: 0.247 -> 0.249Helped
add mask guidance instead of editing without a mask (ablation)InstDiffEdit · Editing-Maskediting performanceHelped
increase noise strength r from 0.4 to 0.6 (ablation)InstDiffEdit · Editing-MaskIOU: 52.9 -> 49.6 (φ=0.1); 55.7 -> 54.6 (φ=0.2); 52.0 -> 54.2 (φ=0.3)Mixed
increase threshold φ from 0.1 to 0.3 (ablation)InstDiffEdit · Editing-MaskIOU: 51.9 -> 54.3 (r=0.5)Mixed

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Imagen-generated images

Benchmarks: Editing-Mask ImageNet (FlexIT setting) Imagen-generated editing set

Metrics: IOU C_m C_non changing rate LPIPS CSFID FID CLIPScore editing time

Baselines: SDEdit CycleDiffusion PtP PnP DiffEdit

Builds on: Stable Diffusion DiffEdit Prompt-to-Prompt Blended Diffusion RePaint

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