Zero-Shot Object Removal via Attention Masking, Latent Anchoring, and Refinement

Arman Taghizadeh, Ulf Krumnack, Kai-Uwe Kühnberger
9/23/2026
cs.CV
diffusion-flow

No confident code implementation found for this paper.

Abstract

Removing an object from a real image requires more than synthesizing plausible content within a mask: the method must suppress residual object features, preserve the unedited scene, and generate replacement content that is consistent with the surrounding background. This paper approaches object removal from a stage-based perspective and proposes a zero-shot framework for constrained latent inpainting with a frozen pretrained Stable Diffusion model, requiring no task-specific training or model fine-tuning.

Show full abstract

The method integrates SAM-based mask construction, BLIP image-caption conditioning, DDIM inversion, background-weighted masked null-text optimization, decoder self-attention masking, hard outside-mask latent anchoring, and localized renoise--denoise refinement into a unified pipeline. The method is evaluated through qualitative examples, quantitative local-consistency metrics, and ablation studies. The results demonstrate effective object removal and context-consistent replacement content. The ablations indicate that background-weighted masked NTI is particularly beneficial for structurally complex backgrounds, whereas the no-NTI variant is sufficient in other evaluated examples. Repeated refinement further reduces object remnants and boundary artifacts remaining after the primary editing pass.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{taghizadeh2026zeroshot,
  title  = {Zero-Shot Object Removal via Attention Masking, Latent Anchoring, and Refinement},
  author = {Arman Taghizadeh and Ulf Krumnack and Kai-Uwe Kühnberger},
  year   = {2026},
  eprint = {2609.28342},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.28342v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.28342.svg)](https://codeofpaper.com/paper/2609.28342)

Discussion