Objects Have Consequences: Effect-Aware Image Layered Decomposition for Object Removal and Insertion

Shivam Singh, Srujana Gattupalli, Samarth Gupta, Yz Yang, Vidya NarayananarXiv 2026

TL;DR

If you ask an AI image editor to remove a vase from a table, it might erase the pixels of the vase—but leave its shadow behind, or subtly warp the wallpaper. Objects Have Consequences tackles this by teaching a diffusion model to decompose an image into effect-aware layers in a single pass: an isolated, reusable foreground object (complete with any occluded parts) and a clean background with the object's shadows, reflections, and lighting effects wiped away. The same model also works in reverse, inserting objects into new scenes with realistic physical effects while leaving the rest of the image untouched.

What Problem Does This Paper Address?

Professional creative workflows—think Photoshop—are built around layers. An artist expects to select a single object, move it, relight it, or delete it while the rest of the scene stays pixel-for-pixel intact.

Modern generative image models, however, treat every edit as a flat, single-layer regeneration. Because they re-render the entire frame, untouched background details often drift in identity, position, or scale. On the flip side, traditional mask-conditioned inpainting and removal models only erase an object's directly visible pixels. Real objects have physical consequences: they cast shadows, reflect in glossy surfaces, refract light, and dent soft cushions. Leaving those stranded in the background breaks the illusion, and discarding the extracted object means you can't reuse it elsewhere.

Effect-aware layer decomposition showing objects extracted into clean foregrounds with their shadows, reflections, lighting, and deformations removed from the background

Methods

Rather than building a layered generator from scratch, the authors adapt Qwen-Image-Layered, a variable-layer latent diffusion model (MMDiT) that already knows how to split images into RGBA layers. They keep the vision-language encoder (Qwen2.5-VL) and RGBA VAE frozen, and finetune only the diffusion transformer (DiT) on two paired tasks:

  1. Effect-Aware Decomposition: Given an image and a referring mask, the model jointly generates two layers in a single forward pass: an amodal foreground RGBA layer (recovering even the parts of the object that were occluded) and a clean background layer with the object and all its physical effects removed.
  2. Object Insertion: Treating insertion as the exact inverse of decomposition, the model takes a background image, a foreground object cutout, and a position mask, and outputs a composited scene with plausible shadows, reflections, and lighting rendered into the surroundings.

The key architectural trick is Layer3D RoPE (a three-axis rotary positional embedding over layer, height, and width). By assigning each layer an explicit position on a learned layer axis, the foreground and background tokens attend to each other during generation while remaining strictly confined to their own layers. Both tasks are trained simultaneously using a flow-matching objective ($\mathcal{L}_{\text{flow}}$), with an added DINOv2 identity loss ($\mathcal{L}_{\text{DINO}}$) during insertion to anchor the object's appearance.

Datasets

Paired layered data—an image, its amodal foreground, and its effect-free background—doesn't exist at scale in the wild. To solve this, the authors combine real and synthetic sources:

  • Synthetic 3D Blender Dataset: They procedurally compose and render 3D scenes (populated with Objaverse assets) from multiple camera angles and lighting conditions. Using ray-visibility tricks (hiding occluders for the foreground pass, and disabling shadow/reflection/transmission rays for the background pass), they generate ~32K decomposition triplets and expand them to ~114K insertion pairs across five effect categories: shadows, reflections, refraction, deformation, and light sources.
  • Real Data: Supplemented with DESOBA v1/v2 (object and shadow masks) and PICA-100k (physics-effect before/after pairs).
  • Evaluation Benchmarks: Tested on ObjMove-A (200 real two-shot photo pairs) and a curated 200-sample held-out set (40 per effect category from PICABench and Blender), alongside standard removal benchmarks (OBER-Test, OBER-Wild, RORD-Val-343).

Key Insights and Ideas

  • Unified bidirectional training: Modeling removal and insertion as exact inverses on a shared backbone lets a single set of weights handle both decomposing a scene and recompositing objects into new ones.
  • Amodal extraction: By rendering synthetic foregrounds with occluders invisible to camera rays, the model learns to hallucinate the complete, unoccluded shape of an extracted object, making it genuinely reusable.
  • Confining edits to a layer axis: Giving each layer its own addressable position prevents the model from unnecessarily altering untouched regions, solving the "background drift" problem that plagues flat generative editors.

Key Results

  • Object Removal: On ObjMove-A, the model achieves a PSNR of 30.32, SSIM of 0.912, LPIPS of 0.071, and ReMOVE score of 0.873, outperforming or matching commercial systems (GPT Image 2, Nano Banana) and specialist open-source models (OmniPaint, ObjectMover).
  • Object Insertion: While matching closed-source editors on cropped object fidelity, it wins every whole-scene full-reference metric by a clear margin (25.52 PSNR on ObjMove-A; 21.20 PSNR on the held-out set) because it renders physical effects without distorting the surrounding scene.
  • VLM Judge Consensus: Evaluated by a panel of four vision-language judges (Claude Opus 5.5, GPT-5.6 Sol, Llama 4 Maverick, Grok 4.6), the model earns the highest consensus effect score on both removal (3.49 / 5) and insertion (2.68 / 5).
  • Minimal Background Drift: Among full-frame generators, it exhibits the lowest static-region drift (2.60 on removal, 2.30 on insertion), whereas GPT Image 2 and Nano Banana drift 3–6× more.

Limitations and Future Work

  • Single object per pass: The model currently handles one object and its effects at a time, without supporting simultaneous multi-object decomposition or composition.
  • Multi-turn editing: How well layer fidelity and background preservation hold up across repeated, multi-turn edits remains untested.
  • Style scope: Trained on photorealistic scenes, its generalization to non-photorealistic styles (like illustration or anime) is left for future work.

Summary updated

BibTeX
@misc{singh2026objects,
  author = {Shivam Singh and Srujana Gattupalli and Samarth Gupta and YZ Yang and Vidya Narayanan},
  title = {{Objects Have Consequences: Effect-Aware Image Layered Decomposition for Object Removal and Insertion}},
  year = {2026},
  eprint = {2612.05042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.05042},
}
Figure