NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PixelMan: Consistent Object Editing with Diffusion Models via Pixel Manipulation and Generation

Liyao Jiang, Negar Hassanpour, Mohammad Salameh, Mohammadreza Samadi, Jiao He, Fengyu Sun, Di Niu

Introduction

Consistent object editing—tasks such as moving, resizing, or duplicating objects within an image—remains a significant challenge for diffusion-based generative models. Ideally, an edited image should preserve the exact identity and fine details of the target object, seamlessly repair the background where the object was originally located (inpainting), and generate natural interactions like shadows and lighting at the new location (harmonization).

Current state-of-the-art methods typically rely on DDIM inversion to map an image back to its initial noise representation. However, this process is computationally intensive and prone to "drift," where accumulated errors lead to a loss of fidelity in the reconstructed image. Alternative approaches using Energy Guidance often struggle to maintain the original object's appearance or fail to cleanly remove "ghost" artifacts from the source location. PixelMan addresses these issues with a training-free, inversion-free framework that achieves high-quality results in significantly fewer inference steps.

Methodology

PixelMan shifts the paradigm from noise inversion to direct pixel and latent manipulation. The framework is built upon three core innovations:

1. Pixel Manipulation and Anchoring

Instead of relying on complex inversion, PixelMan begins by performing a simple copy-paste of the source object to the target location in pixel space. This "pixel-manipulated image" ($I_{man}$) serves as a spatial anchor. By encoding this image into the latent space, the model gains a strong prior for the object's identity and the background's structure, bypassing the need for DDIM inversion entirely.

2. Three-Branched Sampling Strategy

The core of the inference process involves a single weight-sharing UNet operating across three parallel branches:

  • Source Branch: Processes the original image to extract and save key ($K$) and value ($V$) matrices from self-attention layers, preserving the original context.
  • Pixel-Manipulated Branch: Uses the anchored latents to maintain the object's identity throughout the diffusion process.
  • Target Branch: Generates the final edited image. It injects the $K, V$ features from the source branch and uses a "Leak-Proof Self-Attention" mechanism to ensure clean inpainting.
Overview of the PixelMan architecture showing the three-branched sampling and anchoring process.

3. Leak-Proof Self-Attention and Latent Optimization

A common failure mode in object repositioning is "ghosting," where remnants of the original object appear in the vacated area. PixelMan identifies that this is caused by information leakage through the self-attention mechanism. By strategically resetting attention scores in the source region to $-\infty$, the model effectively blocks this leakage. Furthermore, rather than updating predicted noise, PixelMan optimizes the latent representations ($z_t$) directly via gradient descent, enabling convergence in just 16 steps.

Experimental Results

The performance of PixelMan was evaluated on the COCOEE and ReS (Repositioning the Subject) benchmarks.

Efficiency and Speed

PixelMan demonstrates remarkable efficiency, producing high-quality edits in 16 inference steps, whereas competing methods like DiffEditor or DragonDiffusion typically require 50 steps. On the COCOEE dataset, PixelMan reduces the average processing time per image by approximately 15 seconds compared to DiffEditor, without sacrificing quality.

Visual and Quantitative Quality

Qualitative analysis reveals that PixelMan excels at maintaining object consistency and producing artifact-free backgrounds. As shown in comparative evaluations, it avoids the "ghosting" effects seen in SelfGuidance and provides more realistic harmonization than DragonDiffusion.

Visual comparisons showing PixelMan's superior inpainting and object consistency compared to other SOTA methods.

Quantitatively, PixelMan outperforms existing methods across multiple metrics. In evaluations involving PSNR (for consistency), TOPIQ (for image quality), and LPIPS, PixelMan consistently achieves superior scores, often represented as the outermost boundary in multi-metric radar plots.

Conclusion

PixelMan provides a robust and efficient solution for consistent object editing. By replacing slow DDIM inversion with pixel-space anchoring and introducing surgical fixes for attention leakage, it enables high-fidelity image manipulation that is both faster and more reliable than previous techniques. While currently focused on rigid transformations like repositioning, the framework's success with direct latent optimization opens new avenues for training-free image editing.

Summary updated

BibTeX
@inproceedings{jiang2025pixelman,
  author = {Liyao Jiang and Negar Hassanpour and Mohammad Salameh and Mohammadreza Samadi and Jiao He and Fengyu Sun and Di Niu},
  title = {{PixelMan: Consistent Object Editing with Diffusion Models via Pixel Manipulation and Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i4.32420},
}
Figure