Objects Have Consequences: Effect-Aware Image Layered Decomposition for Object Removal and Insertion
Abstract
Modern creative workflows are inherently layered: editors expect to isolate, replace, insert, or remove a single object while leaving the rest of the scene untouched. Yet generative models treat every edit as a flat, single-layer regeneration, and prior mask-conditioned removal or inpainting models recover only an object's directly visible pixels: they strand cast shadows and reflections in the background, and still drift content beyond the masked region. This leads to problems in production workflows where we need to reuse a scene or object. In this work, we study how to instead decompose an image into effect-aware foreground layers over a clean, completed background. Built on a variable-layer latent-diffusion backbone, we assign each layer an explicit position on a learned layer axis so that referred objects and the reconstructed background are generated jointly in a single pass, each attending to the other while remaining confined to its own layer. This allows us to address two challenges at once, we are able to localize every object to its own layer, enabling minimal drift while editing and also making sure the effects are removed from the background. We supervise this decomposition with paired layered ground truth from camera-captured images and synthetically rendered 3D environments, which reduces dataset-creation cost while inducing faithful effect-aware separation. Our model is competitive with strong commercial systems (GPT Image 2, Nano Banana) and specialist open-source models (OmniPaint) on object removal and insertion tasks, while additionally producing editable layers that none of those systems expose in a single forward pass, supporting downstream editing tasks. We plan to release the code, dataset and checkpoints soon.
Additional Features