arXiv(opens in a new tab)cs.CVSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.00956

PredErase: Training-Free Object-and-Effect Removal with Predictive Latent Guidance

Waikit Xiu, Qiang Lu, Junbiao Chen, Xiying Li

Abstract

Removing an object is not the same as filling its mask. Cast shadows and contact shading usually lie outside the user-provided instance mask MobjM_{obj}, so a frozen Fill model that edits only that mask leaves the object's photometric footprint on nearby surfaces. Supervised removers learn this joint erasure from paired clean plates. Training-free editors freeze pretrained weights, yet most still treat MobjM_{obj} as the entire editable support and steer sampling with CLIP or DINO energies that do not predict the occluded scene. We present PredErase, a training-free inference procedure on frozen FLUX.2 and I-JEPA. The method separates where

Fill may rewrite pixels from what structure should occupy the hole. A contact-band expansion Mflux⊇MobjM_{flux} \supseteq M_{obj} exposes local residuals on the supporting plane. I-JEPA, pretrained for masked token prediction, supplies a context-conditioned hole target in representation space; sparse projected gradients align decoded Fill completions with that target inside the instance, while coordinates outside the packed support stay locked. Under instance-only masks on RemovalBench, RORD-Val, and DEFACTO-Val, PredErase improves the native FLUX.2 backbone. Supervised removers remain stronger on several full-image appearance metrics; the supported claim is training-free object-and-effect editing of frozen Fill, not replacement of paired-data erasers.

∗^{*}Corresponding author.

Code: https://github.com/xiuwk0820-collab/PredErase

1. Introduction

Object removal is a fundamental task in image editing, with broad applications in photo retouching, content creation, and scene manipulation [5, 27, 33, 38, 39]. Recent advances in diffusion and flow-matching generative models have substantially improved image inpainting, allowing user-specified object instances to be removed from complex scenes with increasingly plausible visual results [4, 24, 29]. However, removing an object is not equivalent to removing its presence. Objects interact with nearby surfaces and leave photometric traces, including cast shadows and contact shading [3, 12, 23, 30, 34, 37]. We study object-and-effect removal under instance-only masks: erase the specified object together with local, geometry-coupled residuals on adjacent support, while leaving unrelated content unchanged. Mirror reflections, refraction, and global illumination are outside this setting.

A frozen Fill model restricted to MobjM_{obj} may complete the masked region while leaving those traces unchanged (Fig. 1). Scores computed only inside MobjM_{obj} miss this failure. RemovalBench and RORD-Val therefore measure full-image agreement with clean-plate ground truth under the OmniEraser protocol [37] (Technical Appendix: Metrics).

Within this scope, supervised effect-aware removers close the gap with object-clean-plate pairs [17, 18, 20, 35, 37, 42], typically at the cost of paired supervision and backbone-specific adaptation [15]. Training-free editors instead freeze pretrained weights and steer sampling [6, 7, 9, 10, 25, 32, 40]. On object removal they almost always keep MobjM_{obj} as the editable support: self-attention surgery or CLIP energies suppress the instance inside the mask, while shadows and reflections encoded in unmasked tokens are left untouched unless the user dilates the mask by hand. Semantic objectives (CLIP/DINO) further do not predict the scene hidden by the object.

We therefore treat training-free object-and-effect removal as constrained trajectory steering of a frozen Fill model [8, 19, 22], factored into where the sampler may rewrite pixels and what should occupy the hole (Fig. 2). Visible residuals that still depend on the instance after it is hidden must enter the editable support; we instantiate that support with a contact-band expansion Mflux⊇MobjM_{flux} \supseteq M_{obj} for upright, ground-contact shadows. For the hole, frozen I-JEPA [1, 21] provides a predictive representation target: it is pretrained to infer masked tokens from context. Alignment back-propagates through the decoder into Fill latents in the manner of measurement guidance [6]. Projection onto the packed support PP leaves visible coordinates unchanged.

We evaluate PredErase on RemovalBench and RORD-Val under the OmniEraser protocol [37] and on DEFACTO-Val under the SmartEraser protocol [17], using frozen FLUX.2-klein-4B [4, 11]. Relative to native FLUX.2, Pred-Erase improves CMMD and PSNR on RemovalBench and

FID, CMMD, LPIPS, and PSNR on RORD-Val (Tables 1–2). On RemovalBench, supervised OmniEraser retains lower FID and LPIPS.

Our contributions are:

  • A training-free object-and-effect procedure that edits frozen Fill latents under instance-only masks, with no paired clean plates and no weight updates.

  • A factorization of editable support MfluxM_{flux} from I-JEPA hole prediction, with projected decoder-side updates confined to the packed latent mask.

  • Protocol-aligned comparisons against frozen Fill and training-free removers, with supervised erasers reported on the same splits, plus component and prior-swap ablations.

References (37)

  • Self-supervised learning from images with a joint-embedding predictive architecture
  • Revisiting feature prediction for learning visual representations from video (opens arXiv in a new tab)
  • Shape, albedo, and illumination from a single image of an unknown object
  • ZITS++: Image inpainting by improving the incremental transformer on structural priors
  • Diffusion posterior sampling for general noisy inverse problems
  • Diffedit: Diffusion-based semantic image editing with mask guidance
  • Diffusion models beat GANs on image synthesis
  • CLIP-Away: Harmonizing focused embeddings for removing objects via diffusion models
  • Diffusion self-guidance for controllable image generation
  • Shadowformer: Global context helps shadow removal
  • Masked autoencoders are scalable vision learners
  • GANs trained by a two time-scale update rule converge to a local nash equilibrium
  • LoRA: Low-rank adaptation of large language models
  • Re-thinking FID: Towards a better evaluation metric for image generation
  • SmartEraser: Remove anything from images using masked-region guidance
  • Brushnet: A plug-and-play image inpainting model with decomposed dual-branch diffusion
  • Elucidating the design space of diffusion-based generative models
  • Harmonizer: Learning to perform white-box image and video harmonization
  • Flow matching for generative modeling
  • From shadow generation to shadow removal
  • RePaint: Inpainting using denoising diffusion probabilistic models
  • SDEdit: Guided image synthesis and editing with stochastic differential equations
  • Transactions on Machine Learning Research, 2024
  • Context encoders: Feature learning by inpainting
  • High-resolution image synthesis with latent diffusion models
  • Shadow detection: A survey and comparative evaluation of recent methods
  • An open large-scale dataset for training next generation image-text models
  • Attentive eraser: Unleashing diffusion model's object removal potential via self-attention redirection guidance
  • Instance shadow detection
  • Metashadow: Object-centered shadow detection, removal, and synthesis
  • Image quality assessment: From error visibility to structural similarity
  • Omnieraser: Remove objects and their effects in images with paired video-frame data (opens arXiv in a new tab)
  • Generative image inpainting with contextual attention
  • Free-form image inpainting with gated convolution
  • FreeDoM: Training-free energy-guided conditional diffusion model
  • The unreasonable effectiveness of deep features as a perceptual metric
  • Precise object and effect removal with adaptive target-aware attention