NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Single Image Reflection Separation

Donghoon Lee, Ming-Hsuan Yang, Songhwai OharXiv 2018

Abstract

Single image reflection separation is an ill-posed problem since two scenes, a transmitted scene and a reflected scene, need to be inferred from a single observation. To make the problem tractable, in this work we assume that categories of two scenes are known. It allows us to address the problem by generating both scenes that belong to the categories while their contents are constrained to match with the observed image. A novel network architecture is proposed to render realistic images of both scenes based on adversarial learning. The network can be trained in a weakly supervised manner, i.e., it learns to separate an observed image without corresponding ground truth images of transmission and reflection scenes which are difficult to collect in practice. Experimental results on real and synthetic datasets demonstrate that the proposed algorithm performs favorably against existing methods.

Introduction

Capturing a clear photograph through a window is often hindered by unwanted reflections. The resulting image is a composite of the scene behind the glass (the transmitted scene) and the environment reflected off the glass surface. Separating these two components from a single observation is a mathematically ill-posed problem, as there are infinitely many ways to combine two images to produce a third.

The proposed method uses scene category priors to guide the conditional generation of transmitted and reflected scenes.

Traditional approaches have relied on physical priors, such as assuming reflections are out-of-focus or possess specific gradient distributions. However, these assumptions often fail with modern high-resolution cameras and deep depth-of-field settings. This paper introduces a generative approach that leverages semantic priors—specifically, the categories of the scenes involved—to untangle the layers.

Methodology

The core of the proposed method is a Generative Adversarial Network (GAN) designed for joint scene generation. Unlike previous methods that treat the reflection as noise to be removed, this architecture explicitly reconstructs both the transmitted and reflected scenes.

Network Architecture

The network consists of a shared encoder and multiple generator branches. To address the limitations of simple linear blending models, the authors introduce a spatial mask prediction branch.

The proposed network (d) utilizes a shared encoder and separate generators for the transmitted scene, reflected scene, and a spatial mask to handle non-uniform reflections.

As shown in the architecture diagram, the proposed network predicts a mask $G_m(y)$ that indicates the relative contribution of each scene at every pixel. This allows the model to handle real-world scenarios where reflections are spatially non-uniform or vary in intensity.

Weakly Supervised Learning

A significant hurdle in training reflection separation models is the lack of paired ground-truth data. It is nearly impossible to capture perfectly aligned images of a scene with and without a reflection in the wild. To overcome this, the authors employ a weakly supervised training strategy. The model is trained using mixed observations and unpaired category data (random images from the target categories) to train the discriminators. Instead of pixel-level matching, the model ensures that the generated scenes contain the same semantic features as the original observation by comparing feature maps in the latent space.

Experimental Results

The model was evaluated on both synthetic datasets (derived from the Places dataset) and a collection of 178 real-world "cafe" images sourced from the internet.

Quantitative Performance

On synthetic data, the generative approach showed a marked improvement over state-of-the-art (SOTA) physics-based methods. In a "clipping" model scenario involving airfield and hotel room categories, the proposed method achieved a PSNR of 26.1, significantly outperforming the next best baseline which reached only 18.1.

Qualitative Success on Real Images

The real-world cafe dataset presented a significant challenge due to sharp, bright reflections of street scenes. While previous methods often darkened the entire image or failed to remove the reflection, the proposed network successfully recovered the dark interior details of the cafe while simultaneously producing a plausible reconstruction of the reflected street.

Conclusion and Future Work

By shifting the focus from physical optics to semantic generation, this work provides a robust framework for single image reflection separation. The use of weak supervision and mask-based blending allows the model to generalize to complex real-world reflections that defy simple mathematical models.

The primary limitation remains the requirement for known scene categories. Future research will focus on relaxing this constraint to develop a category-agnostic separator. Additionally, improving the synthesis models used during training could further enhance the model's ability to handle the diverse optical phenomena encountered in the real world.

Summary updated

BibTeX
@misc{lee2018generative,
  author = {Donghoon Lee and Ming-Hsuan Yang and Songhwai Oh},
  title = {{Generative Single Image Reflection Separation}},
  year = {2018},
  eprint = {1801.04102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.04102},
}
Figure