TL;DR
GenSIRR adapts large-scale latent diffusion models for single-image reflection removal by restructuring the VAE's latent space to respect the linear physics of reflection superposition. By combining this reflection-equivariant latent space with learnable task embeddings and a depth-guided early-branching sampling strategy, the method achieves new state-of-the-art performance and generalizes robustly to complex, real-world occlusions.
What Problem Does This Paper Address?
Capturing photos through glass windows or vehicle windshields often introduces unwanted reflections. Mathematically, this is modeled as a linear superposition:
$$I_{\text{obs}} = (1-\alpha)B + \alpha R$$
where $B$ is the background transmission layer, $R$ is the reflection layer, and $\alpha$ is a blending factor. Removing $R$ to recover $B$ from a single image is a highly ill-posed problem.
While large-scale Latent Diffusion Models (LDMs) possess immense generative power to fill in occluded details, they struggle with this task. The authors identify a fundamental bottleneck: the latent spaces of pre-trained semantic encoders (like VAEs) are not structured to interpret a composite image as a linear combination of its constituent layers. In other words, $E(I_{\text{obs}}) \neq (1-\alpha)E(B) + \alpha E(R)$. This semantic ambiguity causes standard LDMs to produce blurry or artifact-ridden results. Furthermore, relying on natural language text prompts to describe complex reflection removal tasks is highly impractical and ambiguous.
Methods
The authors introduce GenSIRR, a pipeline built on top of a pre-trained image editing LDM (specifically, FLUX.1 Kontext), featuring three core components:
- Reflection-Equivariant VAE (re-VAE): To align the latent space with the physical reality of reflection formation, the authors finetune the VAE encoder using a novel equivalence loss ($\mathcal{L}_{\mathrm{equiv}}$). This loss explicitly penalizes any deviation from linearity in the latent space, forcing the encoder to satisfy $E(I_{\text{obs}}) \approx (1-\alpha)E(B) + \alpha E(R)$. The tuning is done efficiently using Low-Rank Adaptation (LoRA).
- Learnable Task-Specific Text Embedding (LTE): Instead of using fragile natural language prompts, the authors initialize a text embedding with the phrase "please remove the reflection within the image" and optimize these prompt vectors directly via backpropagation during training. This distills the task into precise instructions within the model's native operational space.
- Depth-Guided Early-Branching Sampling (DEBS): Generative models are inherently stochastic. To secure the best output without running multiple full denoising cycles, DEBS runs $k$ parallel denoising paths for just one single step. A lightweight monocular depth estimator scores the one-step latents. Because reflections act as foreground occlusions, the path that yields the deepest, cleanest depth map is selected to complete the full $T$-step denoising process, while the others are discarded.
Datasets
- VAE Training: The
PD-12Mdataset (approximately 3.84 million unique image pairs) was used to train the re-VAE adapter. - DiT Fine-Tuning: A curated mixture of real-world datasets (
Real,Nature,RRW) and synthetic image pairs. - Evaluation Benchmarks: The model was evaluated on standard public benchmarks:
Real20,SIR2(containing 454 samples),Nature, andOpenRR-val.
Key Insights and Ideas
- Latent Geometry Matters More Than Pure Reconstruction: Standard VAE reconstruction losses improve image fidelity but fail to fix the underlying latent geometry. Explicitly regularizing the latent space for linearity ($\mathcal{L}_{\mathrm{equiv}}$) is the true catalyst for superior layer separation.
- The First Step Decides the Structure: The authors observed that the structural success of reflection removal is determined within the very first denoising step. If reflections are suppressed in step one, they remain absent in the final image. This insight makes early-branching sampling computationally viable.
- Depth as a Proxy for Reflection Cleanliness: Real reflections distort perceived scene geometry, causing depth estimators to see "ghost objects" floating in the foreground. Successful reflection removal naturally uncovers the distant background, making global depth maximization an excellent reference-free metric for image quality.
Key Results
GenSIRR achieves new state-of-the-art quantitative performance across multiple benchmarks. On the Real20 dataset, GenSIRR achieves a PSNR of 27.58 dB and an SSIM of 0.881 (with DEBS, $k=4$), significantly outperforming the previous best generative method, DAI (25.21 dB / 0.841), and non-generative methods like RDNet (25.71 dB / 0.850).
In comprehensive human evaluations, GenSIRR achieved an average success rate of 96.6% on OpenRR-val and 91.0% on Real20, compared to DAI's 41.2% and 33.0% respectively.
Limitations and Future Work
The primary limitation of GenSIRR is inference latency. Because it relies on an iterative diffusion process with a large transformer backbone, generating a $256 \times 256$ image takes approximately 2.5 seconds on a single NVIDIA A800 GPU. While this represents a major leap forward in restoration quality and reliability, it is substantially slower than traditional non-generative networks or one-step diffusion priors that operate under 100ms. The authors note that investigating acceleration strategies to mitigate this latency is a key priority for future work.
Summary updated