Differential Diffusion: Giving Each Pixel Its Strength
Eran Levin, Ohad Fried
TL;DR
This work introduces Differential Diffusion, an inference-time framework that enables per-pixel control over edit strength in diffusion-based image editing through a change map. By decomposing the map into nested masks and injecting region-specific content at varying timesteps, it achieves fine-grained, text-guided edits without any model fine-tuning. The approach supports soft-inpainting, introduces the Strength Fan visualization, and provides new metrics (CAM/DAM, LPIPS-based edit strength) to quantify adherence and quality. It demonstrates compatibility with multiple diffusion models, extends to various architectures (SDXL, Kandinsky, DeepFloyd IF), and includes automatic change-map generation and a comprehensive user study, highlighting significant practical impact for precise, region-specific image editing. Overall, it broadens the scope of diffusion-based editing to nuanced, location-dependent transformations with minimal overhead and broad applicability.
Abstract
Diffusion models have revolutionized image generation and editing, producing state-of-the-art results in conditioned and unconditioned image synthesis. While current techniques enable user control over the degree of change in an image edit, the controllability is limited to global changes over an entire edited region. This paper introduces a novel framework that enables customization of the amount of change per pixel or per image region. Our framework can be integrated into any existing diffusion model, enhancing it with this capability. Such granular control on the quantity of change opens up a diverse array of new editing capabilities, such as control of the extent to which individual objects are modified, or the ability to introduce gradual spatial changes. Furthermore, we showcase the framework's effectiveness in soft-inpainting -- the completion of portions of an image while subtly adjusting the surrounding areas to ensure seamless integration. Additionally, we introduce a new tool for exploring the effects of different change quantities. Our framework operates solely during inference, requiring no model training or fine-tuning. We demonstrate our method with the current open state-of-the-art models, and validate it via both quantitative and qualitative comparisons, and a user study. Our code is available at: https://github.com/exx8/differential-diffusion
