A Diffusion-Based Framework for Occluded Object Movement

Zheng-Peng Duan, Jiawei Zhang, Siyu Liu, Zheng Lin, Chun-Le Guo, Dongqing Zou, Jimmy S. J. Ren, Chongyi Li

Abstract

Moving objects within digital images is a common editing task, yet it becomes significantly more complex when the target object is partially occluded. Traditional methods often fail to reconstruct hidden regions realistically or leave visible artifacts at the original location. We introduce DiffOOM, a novel diffusion-based framework designed to handle the "triple threat" of occluded object movement: de-occlusion, movement, and background inpainting. By utilizing a dual-branch architecture, DiffOOM leverages the inherent shape priors of pre-trained diffusion models to hallucinate missing parts and integrate the completed object into a new user-specified location. Our evaluations on the COCOA dataset show that DiffOOM achieves superior realism and movement accuracy compared to existing state-of-the-art tools.

What Problem Does This Paper Address?

Moving an object in an image is not a simple pixel-shift when that object is partially blocked (e.g., a person standing behind a desk or a child behind a suitcase). This scenario presents three distinct sub-tasks that must be solved simultaneously:

  1. De-occlusion: Reconstructing the parts of the object that were never visible in the original image.
  2. Movement: Placing the reconstructed object in a new location while preserving its identity and texture.
  3. Inpainting: Filling the void left at the original location to ensure the background remains consistent.
Specifying the movement of an occluded object via a 'drag' interface.

Existing solutions often fall short. Discriminative networks like PCNet struggle with high-quality generation, while standard Stable Diffusion inpainting lacks the necessary constraints to maintain object identity, often creating hallucinated artifacts. Even advanced "drag-style" editing tools like DragDiffusion, which are excellent at shifting visible pixels, frequently fail to reconstruct entirely missing sections or limbs.

Methods: The Dual-Branch Architecture

DiffOOM addresses these challenges through two parallel branches based on Stable Diffusion.

1. The De-occlusion Branch

The primary goal of this branch is to complete the object. To focus the model's attention, the authors employ a Color-Fill strategy, where the area outside the visible object is initialized with a uniform color.

  • Latent Hold: To preserve the original visible pixels, their latents are "held" constant throughout the denoising process.
  • Shape Priors from Attention: The model extracts shape information from cross-attention maps. By analyzing the attention focused on specific text tokens (e.g., "child"), it generates a progressively updated mask that guides the reconstruction of missing parts.
  • LoRA Tuning: A Low-Rank Adaptation (LoRA) module is fine-tuned on the visible portions to ensure the newly generated parts match the original's style and texture perfectly.

2. The Movement Branch

Once the object is completed, this branch handles its relocation.

  • Latent Optimization: The branch minimizes the L2 distance between the completed object's latents and the target region in the latent space, ensuring a faithful transfer.
  • Local Guidance: To ensure the object integrates naturally into its new environment (accounting for lighting and shadows), text-conditioned guidance is applied specifically to the target region.
  • Noise Fill Inpainting: The original site is filled with noise and inpainted using surrounding background information to eliminate any residual "ghosting" effects.

Key Insights

  • Diffusion Models as Shape Priors: A key discovery is that pre-trained models already possess internal knowledge of complete object shapes. Tapping into cross-attention maps allows the system to extract a "ghost" of the full object to guide reconstruction.
  • Grounded Generation: Starting the diffusion process at a midway point ($T_m$) rather than total noise prevents the model from over-generating or distorting the object's scale.
  • Pixel-Space Resizing: The authors found that resizing objects in the latent space degrades quality. Their solution—decoding to pixel space, resizing, and re-encoding—is crucial for maintaining visual fidelity.

Key Results

DiffOOM was evaluated using a specialized dataset derived from COCOA (COCO amodal), consisting of 120 images and 1200 testing cases.

Visualization of the de-occlusion and movement process.
  • De-occlusion Quality: DiffOOM achieved a KID score of 0.0142, significantly lower than PCNet's 0.0186, indicating higher realism.
  • Movement Accuracy: On the DINO-TP metric, DiffOOM scored 0.742, outperforming most "drag" and "edit" baselines.
  • User Preference: In a study with 60 volunteers, DiffOOM was preferred approximately 80% of the time for its lack of artifacts and overall image realism.

Limitations and Future Work

Despite its success, DiffOOM faces challenges with extremely complex or semantic-heavy backgrounds during the inpainting phase. Additionally, the quality of de-occlusion depends on the base model's familiarity with the object type via text prompts. Future research may focus on deeper integration with interactive image suites and improving background consistency in highly intricate scenes.

Summary updated

BibTeX
@inproceedings{duan2025diffusion,
  author = {Zheng-Peng Duan and Jiawei Zhang and Siyu Liu and Zheng Lin and Chun-Le Guo and Dongqing Zou and Jimmy S. J. Ren and Chongyi Li},
  title = {{A Diffusion-Based Framework for Occluded Object Movement}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i3.32287},
}
Figure