LoMOE: Localized Multi-Object Editing via Multi-Diffusion

Goirik Chakrabarty, Aditya Chandrasekar, Ramya Hebbalaguppe, Prathosh Ap · DOI

Introduction

While text-to-image diffusion models have achieved remarkable success in generating high-fidelity imagery, the task of precisely editing existing images remains a significant challenge. Most current diffusion-based editing tools operate globally; a textual prompt intended to modify a specific subject often inadvertently alters the background or unrelated objects. This issue is compounded in multi-object editing scenarios. Traditional workflows require an iterative approach—editing one object at a time, saving the result, and proceeding to the next. This sequential process is not only computationally expensive but also prone to "generation drift," where the cumulative effect of multiple passes degrades the structural integrity and background consistency of the original scene.

To address these challenges, we present LoMOE (Localized Multi-Object Editing), a novel zero-shot framework designed for simultaneous, mask-based editing of multiple objects in a single diffusion pass. By leveraging a multi-diffusion process combined with specialized preservation losses, LoMOE enables precise local surgery while maintaining global coherence.

Methodology

LoMOE operates through a unified pipeline that integrates four key technical pillars:

1. Deterministic Inversion

To ensure the edited image remains faithful to the original, LoMOE utilizes DDIM inversion. This process maps the source image back into the latent noise space, providing a deterministic starting point that preserves the original image's spatial and textural "DNA."

2. Multi-Diffusion Process

Rather than applying a single denoising path to the entire latent space, LoMOE executes multiple denoising processes in parallel. Each user-defined mask—and the background—is assigned its own denoising path governed by a specific text prompt. These paths are fused at each timestep, allowing different regions of the image to evolve according to distinct instructions simultaneously.

3. Dual Preservation Losses

To prevent the "sticker-like" appearance common in localized edits and to ensure background stability, the framework employs two loss functions:

  • Cross-Attention Preservation ($\mathcal{L}_{xa}$): This loss anchors the model's cross-attention maps to those of the original image. Since attention maps serve as the structural blueprint for generation, this ensures the edited object retains the original's layout and pose.
  • Background Preservation ($\mathcal{L}_b$): This loss explicitly penalizes changes to latent pixels in non-masked regions, ensuring the background remains untouched throughout the diffusion process.

4. Bootstrapping

LoMOE incorporates a "bootstrap" phase ($T_b$) during the early stages of denoising. In this phase, the model focuses heavily on the mask-specific prompts to establish the identity and features of the new objects before blending them into the global context during the later stages of the process.

Experimental Evaluation

Datasets and Benchmarking

The framework was evaluated using standard single-object editing datasets, including PIE-Bench, AFHQ, COCO, and Imagen. However, to specifically address the lack of multi-object benchmarks, the authors introduced LoMOE-Bench. This new dataset consists of 64 images featuring 2 to 7 masks each, providing a rigorous testing ground for simultaneous multi-attribute and multi-object modifications.

Quantitative and Qualitative Results

LoMOE demonstrates significant improvements over existing baselines such as SDEdit, InstructP2P, and DiffEdit:

  • Fidelity and Alignment: LoMOE achieved higher Target CLIP Scores, indicating superior alignment with edit prompts, and lower Structural Distance, confirming better preservation of the original scene's layout.
  • Efficiency: In multi-object scenarios, LoMOE offers a substantial speedup. For an image requiring seven distinct edits, LoMOE completed the task in approximately 76 seconds, compared to 163 seconds for iterative methods—a reduction in inference time of over 50%.
  • Visual Quality: Qualitative results show that LoMOE can handle intricate details—such as adding jewelry to a subject or changing the color of small held objects—without the hallucinations or background blurring that often plague global editing methods.

Discussion and Limitations

LoMOE represents a significant step forward in making image editing more efficient and precise. By treating the background as its own mask and fusing parallel denoising paths, the model maintains global coherence while performing complex local modifications.

However, some limitations remain. The framework can occasionally struggle with photorealism when adding elements to extreme lighting conditions (e.g., adding clouds to a dark night sky). Additionally, as it relies on a pre-trained Stable Diffusion model, it inherits certain generative biases. Currently, the framework is optimized for adding or modifying attributes and does not yet support the effective deletion or spatial swapping of objects within a frame.

Conclusion

LoMOE provides a robust, zero-shot solution for localized multi-object editing. By replacing iterative workflows with a single-pass multi-diffusion process, it eliminates generation drift and significantly reduces computational overhead. Future research will focus on improving lighting integration and expanding the framework to support a wider range of spatial manipulations.

Summary updated

BibTeX
@inproceedings{chakrabarty2024lomoe,
  author = {Goirik Chakrabarty and Aditya Chandrasekar and Ramya Hebbalaguppe and Prathosh AP},
  title = {{LoMOE: Localized Multi-Object Editing via Multi-Diffusion}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=v4RnEVediE},
}
Figure