Two-stage single image reflection removal with reflection-aware guidance

Yu Li, Ming Liu, Yaling Yi, Qince Li, Dongwei Ren, Wangmeng Zuo

TL;DR

RAGNet is a novel two-stage deep learning framework designed to remove unwanted reflections from a single image. By first estimating the (usually simpler) reflection layer and then using it to guide the recovery of the background via a "Reflection-Aware Guidance" (RAG) module and partial convolutions, it effectively handles "heavy" reflections where traditional linear models fail.

What Problem Does This Paper Address?

Single Image Reflection Removal (SIRR) is a classic "ill-posed" problem in computer vision. Mathematically, an observed image $I$ is often modeled as a simple linear combination of a background transmission layer $T$ and a reflection layer $R$ ($I = T + R$). With only one equation and two unknowns, separating them is incredibly difficult.

Existing deep learning methods often try to estimate the background progressively or predict edge maps first. However, they face two major hurdles:

  1. Under-utilization of intermediate results: They don't always effectively use what they learned about the reflection to help "clean" the background.
  2. Violation of the linear model: In the real world, especially with bright or "heavy" reflections, the simple $I = T + R$ assumption often breaks down due to sensor saturation or complex glass properties. In these regions, the background information is almost entirely lost, making the task look more like "inpainting" (filling in missing holes) than simple subtraction.

Methods

The authors propose a two-stage network called RAGNet:

  1. Stage 1: Reflection Estimation. Instead of going straight for the complex background, the network first predicts the reflection layer $\hat{R}$. The logic is that reflections are often simpler (blurry, lower contrast) and easier to estimate than the full background.
  2. Stage 2: Transmission Prediction with RAG. This stage takes both the original image $I$ and the estimated reflection $\hat{R}$ as inputs. The core innovation is the Reflection-Aware Guidance (RAG) module, which performs two tasks:
  3. Feature Cleaning: It calculates a "difference feature" ($F_I - F_R$) to suppress reflection artifacts early in the decoding process.
  4. Mask Generation: It generates a learned mask ($M$) that identifies regions of "heavy reflection."
  5. Partial Convolutions: In regions where the mask indicates heavy reflection, the network uses partial convolutions. This allows the model to rely less on the corrupted local pixels and more on the surrounding "clean" context—effectively treating heavy reflections as an image inpainting problem.
  6. Multi-part Loss Function: The model is trained using a combination of reconstruction loss, perceptual loss (VGG-based), exclusion loss (to minimize correlation between $T$ and $R$), adversarial loss (GAN-based), and a dedicated Mask Loss to ensure the RAG module identifies reflection intensities correctly.

Datasets

The authors used a mix of synthetic and real-world data:

  • Training: 7,643 synthetic pairs (using PASCAL VOC images) and 90 real-world pairs from the Zhang et al. dataset.
  • Evaluation: Five benchmark datasets:
  • SIR2 (Solid, Postcard, and Wild): Controlled and wild real-world scenes.
  • Real 20: 20 real-world image pairs.
  • Real 45: 45 real-world images used for qualitative evaluation and user studies (as they lack ground truth).

Key Insights and Ideas

  • Reflection First: Estimating the "easier" component ($R$) first provides a powerful spatial prior for the "harder" component ($T$).
  • The Inpainting Shift: Recognizing that heavy reflection isn't just "noise" to be subtracted, but "missing data" to be inpainted, is a significant conceptual shift. Using partial convolutions based on a learned reflection mask directly addresses this.
  • Guidance over Concatenation: Most previous models simply stack (concatenate) features. RAGNet’s use of subtraction-based guidance ($F_I - F_R$) more closely mirrors the physical process of reflection removal, leading to better feature separation.

Key Results

RAGNet achieved state-of-the-art (SOTA) performance across multiple metrics:

  • Quantitative: On the "Average" of 474 test images, RAGNet achieved a PSNR of 24.90 dB, outperforming the previous best (IBCLN at 24.11 dB) by a significant margin (~0.8 dB).
  • Qualitative: Visual results show that RAGNet is much better at removing bright, sharp reflections that leave "ghosting" artifacts in other models. It also preserves the original color and contrast of the background more faithfully.
  • User Study: In a blind study on the Real 45 dataset, participants chose RAGNet’s results as the best 50.17% of the time, nearly doubling the score of the next-best competitor (Zhang et al. at 30.3%).

Limitations and Future Work

  • Computational Complexity: With 130.9M parameters, RAGNet is significantly larger than some lighter models (like CEILNet at 2.2M), though it remains faster than others during inference (0.15s per image).
  • Ground Truth Dependence: Like most supervised methods, it relies heavily on the quality of synthetic data. While it performs well on real data, the gap between synthetic "linear" reflections and real-world "non-linear" reflections is still a challenge.
  • Future Directions: The authors suggest that the RAG module's logic could potentially be extended to other layer-separation tasks, such as rain streak or flare removal.

Summary updated

BibTeX
@article{li2023two,
  author = {Yu Li and Ming Liu and Yaling Yi and Qince Li and Dongwei Ren and Wangmeng Zuo},
  title = {{Two-stage single image reflection removal with reflection-aware guidance}},
  journal = {Applied Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=YB8XhSq55br},
}
Figure