Introduction
Single-image reflection removal is a fundamental yet notoriously ill-posed problem in computer vision. When capturing a photograph through a transparent medium like glass, the resulting image $I$ is often a superposition of the desired background scene $B$ and a reflected scene $R$, typically modeled as $I = B + R$. For a computer, decomposing a single input image into two distinct layers is extremely difficult because an infinite number of $(B, R)$ pairs can satisfy the equation for any given pixel.
Traditional approaches have largely relied on low-level physical priors, such as the assumption that reflections are blurrier or have lower gradients than the background. However, these assumptions frequently fail in complex real-world scenarios. This paper introduces the Semantic Guided Reflection Removal Network (SGR$^2$N), which shifts the focus from low-level pixel statistics to high-level semantic context. By understanding what objects are present in a scene, the model can more effectively distinguish between background content and overlapping reflections.
Methodology
The core innovation of SGR$^2$N lies in its multi-task learning (MTL) architecture, designed to exploit the synergy between semantic segmentation and reflection removal.
Multi-Task Learning Framework
Instead of treating reflection removal in isolation, SGR$^2$N simultaneously performs semantic segmentation. The network utilizes a shared encoder—specifically a ResNet-101 backbone equipped with an Atrous Spatial Pyramid Pooling (ASPP) module—to extract multi-scale features relevant to both tasks. This shared representation ensures that the network learns robust features that capture both the appearance and the structural identity of objects in the scene.
Semantic Guidance Block
The "Semantic Guidance Block" serves as the bridge between the segmentation and removal branches. It takes intermediate features from the segmentation branch and applies them as a spatial attention mechanism to guide the reflection removal process. By identifying regions belonging to specific object classes (e.g., "person," "chair"), the block directs the removal module to prioritize the reconstruction of these background elements, effectively "filtering out" the interference from the reflection layer.
The model is optimized using a comprehensive loss function that includes pixel-level reconstruction loss, feature-level perceptual loss, adversarial loss for realistic texture generation, and cross-entropy loss for the segmentation task.
Datasets and Evaluation
To train and evaluate the proposed method, the authors addressed the lack of semantically labeled reflection datasets by creating $D_{syn}$. This synthetic dataset comprises approximately 32,000 images, using backgrounds from the Pascal VOC dataset (which provides ground-truth semantic labels) blended with diverse reflection layers, including those exhibiting "ghosting" artifacts.
For real-world validation, the model was tested on the Berkeley ($D_{BKL}$) and SIR$^2$ datasets. These benchmarks demonstrate the model's ability to generalize beyond synthetic training data to diverse, unconstrained environments.
Key Results
SGR$^2$N achieves state-of-the-art performance across multiple metrics. On the $D_{syn}$ dataset, it reached a PSNR of 26.02, a substantial improvement over previous leading methods like ZN18, which achieved 22.66.
Beyond accuracy, the model is highly efficient. With approximately 63.6 million parameters—less than half of some competing architectures—it achieves an inference time of just 132ms per image. This efficiency makes it suitable for near-real-time applications. Qualitatively, SGR$^2$N excels at preserving sharp edges and natural colors in the background, whereas traditional methods often leave behind "ghostly" artifacts or cause significant color distortion.
Conclusion
The SGR$^2$N framework demonstrates that high-level semantic guidance is a powerful tool for solving ill-posed low-level vision problems. By integrating semantic segmentation, the model gains a human-like ability to distinguish between scene content and environmental interference. While the method faces challenges in cases of extreme reflection intensity (where the reflection dominates the background), its success in standard scenarios and its potential generalization to tasks like dehazing and deraining mark a significant step forward in image restoration.
Summary updated