cs.CVMar 3, 2026

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

Authors: Waqas Ahmed, Dean Diepeveen, Ferdous Sohel

Organizations: School of Information Technology, Murdoch University, Murdoch, WA 6150, Australia.

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.

Figures & tables

Explore similar work

CardsList
  1. VSDiffusion: Taming Ill-Posed Shadow Generation via Visibility-Constrained Diffusion

    Mar 9, 2026Jing Li, Jing ZhangCompositional Image GenerationDiffusion-Based Image Editing

  2. Embedding Physical Reasoning into Diffusion-Based Shadow Generation Under the Sun and Sky

    Dec 5, 2025Shilin Hu, Jingyi Xu, Akshat Dave +2Conditional Image GenerationDiffusion-Based Image Generation

  3. Reflection Generation for Composite Image Using Diffusion Model

    Apr 2, 2026Haonan Zhao, Qingyang Liu, Jiaxuan Chen +1Compositional Image GenerationDiffusion-Based Image Generation