TL;DR
This paper introduces a novel type-aware diffusion framework designed to generate realistic, physically consistent reflections for object image composition. To power this approach, the authors also present DEROBA, the first large-scale dataset specifically curated with explicit object-reflection associations.
What Problem Does This Paper Address?
When inserting a foreground object into a new background (image composition), synthesizing realistic environmental effects like shadows and reflections is crucial for visual harmony. While shadow generation has been extensively studied, reflection generation remains largely underexplored.
Existing generative models struggle with two main aspects of reflection: placement (where it should go and at what scale) and appearance (how environmental textures like water ripples should distort it). Furthermore, generic image composition datasets lack explicit object-reflection pairings, making it difficult to train models to learn these physical relationships.
Methods
The authors build their method on top of Stable Diffusion (SD-1.5) augmented with a ControlNet encoder, introducing a type-aware architecture that injects both spatial and appearance priors:
- Auxiliary Encoder ($E_b$): A lightweight ResNet-18 network that takes the composite image and foreground mask to predict two things:
- Regression coefficients for a 5D rotated bounding box of the reflection.
- A binary reflection type classification ("vertical flip" vs. "others").
- Spatial Prior Injection: The predicted bounding box is converted into a binary mask and appended to the ControlNet input, giving the model explicit geometric boundaries for the reflection.
- Type-Aware Appearance Prior:
- For "vertical flip" reflections (common on flat water surfaces), the foreground object is cropped and vertically flipped before feature extraction.
- For "others", the foreground crop is left as-is.
- Conditioning: These processed reference features are combined with learnable reflection type embeddings and injected into the denoising U-Net via decoupled cross-attention blocks.
Datasets
The authors introduce the DEROBA (DE-reflected Reflection-Object Association) dataset, the first large-scale dataset tailored for this task.
- Size: 21,016 real-world object-reflection pairs (split into 20,387 training and 629 test tuples).
- Categories: Covers diverse foregrounds (animals, vehicles, plants, buildings, people, sundry) and reflective surfaces (water, rainy roads, tabletops, glass).
- Creation: Sourced from Pixabay, segmented using Grounding DINO and SAM, manually annotated for reflection masks, and cleaned using advanced image inpainting to create reflection-free background composites paired with ground-truth targets.
Key Insights and Ideas
- Categorization Matters: Grouping reflections into "vertical flip" and "others" allows the model to split its cognitive load. For simple water surfaces, it focuses on style blending and warping; for complex surfaces, it learns to synthesize partially borrowed features.
- Offloading Geometry: Diffusion models are notoriously poor at geometric reasoning. By utilizing an auxiliary regression network to strictly define the reflection's bounding box, the framework prevents common artifacts like floating or detached reflections.
Key Results
The proposed method was evaluated against several state-of-the-art image editing baselines (including ICEdit, FLUX-Kontext, and Qwen-Edit) finetuned on the DEROBA dataset.
Quantitative Performance
Our method achieved top marks across both global and localized metrics on the DEROBA test set:
- Local RMSE (LR) ↓: 53.430 (compared to the next best, Qwen-Edit, at 54.797).
- Local SSIM (LS) ↑: 0.144 (compared to the next best, FLUX-Kontext, at 0.134).
- Global RMSE (GR) ↓: 11.522 and Global SSIM (GS) ↑: 0.923.
Qualitative Performance
Visual comparisons demonstrate that while baseline models often suffer from "copy-paste" effects (generating reflections that are too sharp or completely missing environmental context), this method successfully incorporates realistic surface textures like water ripples and waves.
Limitations and Future Work
While the model performs stably across diverse environments, the authors note limitations in highly complex scenarios:
- Complex Fluid Dynamics: Extremely turbulent fluid scenes with chaotic wave patterns remain difficult to model accurately.
- Discontinuous Reflections: The model occasionally struggles when the foreground object is continuous but the reflective surface contains natural gaps or obstructions.
Summary updated