Abstract
SceneDiffusion is a training-free framework designed to provide "drag-and-drop" spatial control within diffusion-based image generation. By optimizing a layered scene representation during the sampling process, it enables users to move, resize, and clone objects in both generated and real-world images. This approach achieves high visual quality and content consistency by forcing spatial disentanglement through a novel joint denoising strategy.
Introduction
While modern text-to-image diffusion models produce high-fidelity visuals, they often lack precise spatial control. A common limitation is the lack of "spatial disentanglement": the inability to change an object's location without altering its identity or the surrounding scene. Standard models typically regenerate the entire image when prompted for a layout change, leading to inconsistencies in object appearance and background details. SceneDiffusion addresses this by introducing a method to separate an object's semantic content from its spatial coordinates.
Methodology
SceneDiffusion operates without the need for additional training or fine-tuning of existing models. It relies on two core components:
1. Layered Scene Representation
The framework treats an image as a composition of layers. Each layer is defined by a binary mask (shape), a text prompt (description), and a feature map (visual content). This structured approach allows for independent manipulation of different scene elements.
2. Joint Denoising Optimization
To achieve spatial disentanglement, the model employs a joint denoising process. During the initial 50-75% of the diffusion steps, the model optimizes the feature map by denoising multiple potential layouts in parallel. By requiring a single feature map to satisfy the denoising requirements of various spatial configurations (e.g., an object appearing in different positions), the model learns to represent the object independently of its location.
Following the optimization stage, the process enters an inference or rendering stage. Here, standard diffusion acts as a neural renderer, seamlessly blending the optimized layers and adding fine-grained details to the final output.
Experimental Results
The authors evaluated SceneDiffusion using a new benchmark of 1,000 prompts and 5,000 images. The results demonstrate significant improvements over existing methods like MultiDiffusion and RePaint:
- Layout Accuracy: SceneDiffusion achieved a Mask IoU of 0.522, surpassing MultiDiffusion's 0.466, indicating better alignment with user-defined masks.
- Visual Consistency: The method maintained higher structural and perceptual consistency (measured via SSIM and LPIPS) when objects were moved or resized.
- Real-World Editing: In image editing tasks, SceneDiffusion reached an FID of 5.289, nearly doubling the performance of the RePaint baseline (FID 10.267).
Discussion and Conclusion
SceneDiffusion provides a powerful, training-free solution for interactive image design. By leveraging joint denoising, it forces the model to learn spatially disentangled representations, enabling efficient object manipulation. While the method faces some challenges regarding the precision of object boundaries (tightness of fit) and memory overhead due to parallel denoising, it represents a significant step toward making diffusion models truly "playable." Future work may focus on optimizing memory usage and implementing soft-masking techniques for even more complex multi-object scenes.
Summary updated