DreamSampler: Unifying Diffusion Sampling and Score Distillation for Image Manipulation
Jeongsol Kim, Geon Yeong Park, Jong Chul Ye
TL;DR
DreamSampler unifies reverse diffusion and score distillation through regularized latent optimization, enabling model-agnostic image manipulation within latent diffusion models. By reinterpretating DDIM as a proximal update and linking the resulting objective to score-distillation losses, the framework jointly supports distillation-based editing and stochastic reverse sampling. The approach accommodates external generators and regularization terms to tackle inverse problems, image restoration, editing, vectorization, and even 3D representations, with demonstrated gains over strong baselines in SVG restoration, real image editing, and text-guided inpainting. This unified design expands the design space for diffusion-based editing and offers practical tools for diverse, text-guided image and 3D tasks, with open-source code available.
Abstract
Reverse sampling and score-distillation have emerged as main workhorses in recent years for image manipulation using latent diffusion models (LDMs). While reverse diffusion sampling often requires adjustments of LDM architecture or feature engineering, score distillation offers a simple yet powerful model-agnostic approach, but it is often prone to mode-collapsing. To address these limitations and leverage the strengths of both approaches, here we introduce a novel framework called {\em DreamSampler}, which seamlessly integrates these two distinct approaches through the lens of regularized latent optimization. Similar to score-distillation, DreamSampler is a model-agnostic approach applicable to any LDM architecture, but it allows both distillation and reverse sampling with additional guidance for image editing and reconstruction. Through experiments involving image editing, SVG reconstruction and etc, we demonstrate the competitive performance of DreamSampler compared to existing approaches, while providing new applications. Code: https://github.com/DreamSampler/dream-sampler
