TL;DR
This paper presents a novel framework for single-image reflection separation using a fine-tuned Latent Diffusion Model (LDM) that jointly generates both transmission (background) and reflection layers. By incorporating cross-layer self-attention, a disjoint sampling strategy, and test-time latent optimization, the method effectively disentangles overlapping features even under extreme conditions like glare or weak reflections.
What Problem Does This Paper Address?
When taking a photo through a glass window, the resulting image is often a messy superposition of the intended background scene (transmission) and the unwanted foreground reflection (reflection). Separating these two layers from a single image (Single-Image Reflection Separation, or SIRS) is a classic ill-posed problem because infinitely many combinations of transmission and reflection layers can produce the exact same blended input image.
While deep learning methods have made progress, they frequently fail in extreme scenarios—either leaving residual artifacts in high-glare situations or completely missing subtle, low-light reflections. Existing methods lack the strong generative priors needed to "hallucinate" missing details or cleanly disentangle highly correlated features.
Methods
Instead of only predicting the transmission layer or treating the two layers independently, the authors leverage a pre-trained Latent Diffusion Model (Stable Diffusion v2.1) to jointly model and generate both layers simultaneously. They condition the network on the input image and use simple text prompts ("Transmission" and "Reflection") to guide the generation.
The core architecture consists of three main innovations:
- Cross-Layer Self-Attention (CLSA): The authors modify the diffusion U-Net's self-attention blocks so that queries from the transmission branch can attend to keys from the reflection branch, and vice versa. This allows explicit information exchange and helps the network actively suppress irrelevant cross-layer interference.
- Disjoint Sampling Strategy: Inspired by Classifier-Free Guidance, this inference-time strategy uses the predicted noise differences between the layers as mutual negative guidance. It explicitly pushes the latent trajectories of the transmission and reflection layers apart during the denoising process to prevent cross-contamination.
- Test-Time Latent Optimization: Real-world image blending is rarely a perfect linear addition ($I = T + R$) due to camera non-linearities. The authors train a compact network to learn a non-linear composition function directly in the LDM's latent space. At inference time, they iteratively optimize the latents to ensure they recombine to match the input image. Because this happens entirely in the latent space, it avoids expensive backpropagation through the image decoder.
To prevent color drifts during sampling, they introduce a Fidelity-Guided Feature Modulation (FGFM) module that injects multi-scale features from the original input image back into the decoding process.
Datasets
The model was trained on a common synthetic and real dataset combination and evaluated on three real-world benchmarks:
- Real20: 20 real-world testing images.
- Nature: 20 real-world images featuring complex reflection scenarios.
- SIR$^2$: A larger dataset containing 454 images. Crucially, SIR$^2$ includes ground truth for both transmission and reflection layers, making it the primary benchmark for evaluating reflection layer quality.
Key Insights and Ideas
- Reflection Helps Transmission: Most prior generative approaches discard the reflection layer entirely. The authors show that jointly extracting the reflection layer provides crucial scene context that actually improves the recovery of the transmission layer.
- Latent Space Optimization is Faster and Better: Optimizing the image alignment using a learned composition function in the latent space handles physical non-linearities much better than strict pixel-space addition ($I = T + R$). Furthermore, it reduces the optimization time per step from 1.53 seconds (pixel-space) to just 0.15 seconds (latent-space).
- Mutual Negative Guidance: Using the difference between the two predicted noises ($\epsilon^T_t - \epsilon^R_t$) to push the layers apart is an elegant adaptation of diffusion guidance principles for layer separation tasks.
Key Results
- Quantitative Performance: The proposed method achieves state-of-the-art (SOTA) results across multiple real-world datasets, particularly excelling in perceptual metrics like LPIPS and DISTS. For instance, on the Nature dataset, it achieves a PSNR of 26.71 and an LPIPS of 0.080, outperforming strong baselines like RDNet (PSNR 26.44, LPIPS 0.114).
- Reflection Recovery: On the SIR$^2$ dataset, it significantly outperforms existing methods in reconstructing the reflection layer, boosting PSNR to 21.14 (compared to the next best, DSRNet, at 20.59) and SSIM to 0.681 (compared to DSRNet's 0.671).
- Qualitative Quality: Visual results demonstrate that the method successfully removes harsh reflection artifacts and recovers sharp background details, while simultaneously outputting meaningful, structured reflection layers rather than blurry distortions.
Limitations and Future Work
- Hyperparameter Sensitivity: The test-time optimization stage requires careful tuning of parameters, such as the modulation strength ($w$) and the disjoint sampling strength ($k$).
- Occasional Artifacts: In some instances, the FGFM module may fail to completely suppress reflections, leading to minor residual artifacts in the final transmission layer.
- Future Directions: The authors plan to extend this joint latent diffusion framework to handle video reflection separation and further optimize their latent-space optimization techniques.
Summary updated