Diffusion-Based Conditional Image Editing through Optimized Inference with Guidance
Hyunsoo Lee, Minsoo Kang, Bohyung Han
TL;DR
The paper tackles text-driven image-to-image translation with diffusion models by eliminating fine-tuning and introducing a training-free Optimized Inference with Guidance (OIG) framework. OIG augments the diffusion model's reverse process with a representation-guidance loss $L^{\text{dist}}_t$ that combines CLIP-based semantic alignment to the target prompt with a structural constraint derived from intermediate diffusion features, formulated as a triplet-based objective. Through seconds-level optimization of the target latent trajectory during sampling, OIG achieves improved fidelity to the target description while preserving the source image's structure and background. Empirical results on LAION-5B-based tasks against several training-free baselines show strong quantitative and qualitative performance, with ablations confirming the efficacy of the triplet-based guidance and its robustness across settings.
Abstract
We present a simple but effective training-free approach for text-driven image-to-image translation based on a pretrained text-to-image diffusion model. Our goal is to generate an image that aligns with the target task while preserving the structure and background of a source image. To this end, we derive the representation guidance with a combination of two objectives: maximizing the similarity to the target prompt based on the CLIP score and minimizing the structural distance to the source latent variable. This guidance improves the fidelity of the generated target image to the given target prompt while maintaining the structure integrity of the source image. To incorporate the representation guidance component, we optimize the target latent variable of diffusion model's reverse process with the guidance. Experimental results demonstrate that our method achieves outstanding image-to-image translation performance on various tasks when combined with the pretrained Stable Diffusion model.
