MultiShadow: Multi-Object Shadow Generation for Image Compositing via Diffusion Model

Waqas Ahmed, Dean Diepeveen, Ferdous Sohel
3/3/2026
cs.CV

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Realistic shadow generation is crucial for achieving seamless image compositing, yet existing methods primarily focus on single-object insertion and often fail to generalize when multiple foreground objects are composited into a background scene. In practice, however, modern compositing pipelines and real-world applications often insert multiple objects simultaneously, necessitating shadows that are jointly consistent in terms of geometry, attachment, and location. In this paper, we address the under-explored problem of multi-object shadow generation, aiming to synthesize physically plausible shadows for multiple inserted objects. Our approach exploits the multimodal capabilities of a pre-trained text-to-image diffusion model. An image pathway injects dense, multi-scale features to provide fine-grained spatial guidance, while a text-based pathway encodes per-object shadow bounding boxes as learned positional tokens and fuses them via cross-attention. An attention-alignment loss further grounds these tokens to their corresponding shadow regions. To support this task, we augment the DESOBAv2 dataset by constructing composite scenes with multiple inserted objects and automatically derive prompts combining object category and shadow positioning information. Experimental results demonstrate that our method achieves state-of-the-art performance in both single and multi-object shadow generation settings.

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. 5 weaker matches are hidden by default — 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{ahmed2026multishadow,
  title  = {MultiShadow: Multi-Object Shadow Generation for Image Compositing via Diffusion Model},
  author = {Waqas Ahmed and Dean Diepeveen and Ferdous Sohel},
  year   = {2026},
  eprint = {2603.02743},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.02743v3}
}

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/2603.02743.svg)](https://codeofpaper.com/paper/2603.02743)

Discussion