Language-guided Image Reflection Separation

Haofeng Zhong, Yuchen Hong, Shuchen Weng, Jinxiu Liang, Boxin Shi

Introduction

Capturing photos through glass often results in a "mixture image," where the desired scene (transmission layer) is obscured by reflections of the environment behind the camera (reflection layer). Separating these layers is a classic ill-posed problem in computer vision because a single mixture image can theoretically be decomposed into an infinite number of layer combinations. Traditional approaches typically rely on physical priors, such as the assumption that reflections are blurrier or have different gradients. However, these methods frequently fail when reflections are sharp or share similar statistical properties with the background.

Language-guided reflection separation vs. existing methods.

This research introduces a novel paradigm: language-guided image reflection separation. By providing natural language descriptions of the layers (e.g., "a green trashbin" or "white cars before a building"), the system can leverage human semantic knowledge to anchor the separation process. This allows the model to distinguish between layers based on "what" is in the scene rather than just "how" it looks physically.

Methodology

The proposed framework is an end-to-end system designed to align visual features with linguistic semantics across three primary stages.

The proposed end-to-end framework for language-guided image reflection separation.

1. Feature Extraction

The model utilizes a ResNet-50 backbone to extract multi-scale visual features from the mixture image. Simultaneously, a pre-trained CLIP text encoder processes the natural language descriptions into global semantic vectors. This dual-stream approach ensures that both visual context and semantic intent are captured from the outset.

2. Gated Language Interaction

The core of the innovation lies in the interaction between text and image features. This stage employs two specialized modules:

  • Adaptive Global Aggregation Module (AGAM): This module captures global visual dependencies, ensuring the model understands the overall structure of the image.
  • Adaptive Global Interaction Module (AGIM): Using a channel-wise cross-attention mechanism, AGIM aligns the linguistic descriptions with specific visual features. For instance, if the text mentions "red flowers," AGIM helps the model focus on the corresponding color and shape features in the image.
  • The Language Gate: To address "Recognizable Layer Ambiguity"—situations where one layer might be too faint to describe—the authors implemented a gating mechanism. This prevents the model from being misled by missing or "null" text inputs, allowing it to rely on visual cues when language is unavailable.

3. Layer Recovery

Finally, lightweight decoders reconstruct the transmission and reflection layers. To ensure high-fidelity separation, the authors introduced a Contrastive Correspondence Loss. This loss function encourages the model to maximize the similarity between a layer's features and its corresponding text description while minimizing similarity with the description of the other layer.

Datasets and Training

To support this new task, the authors developed several datasets:

  • Synthetic Data: 50,000 image triplets generated from MS-COCO and Flickr30k, utilizing their existing captions.
  • Augmented Real Data: 540 pairs of language descriptions were manually added to existing benchmarks like SIR² and Zhang et al.
  • REFOL Dataset: A new evaluation set consisting of 100 "in the wild" images with human-annotated captions for both transmission and reflection layers.

Results

The language-guided approach significantly outperforms previous state-of-the-art (SOTA) methods. On the standard 540-image benchmark, the model achieved a PSNR of 25.72 and an SSIM of 0.914, surpassing the previous leader, DSRNet (25.51 PSNR / 0.906 SSIM).

Qualitatively, the method excels in complex scenarios where reflections contain distinct objects that traditional gradient-based methods struggle to remove. By using language as a semantic anchor, the model effectively eliminates "ghosting" artifacts and produces cleaner, more accurate layer decompositions.

Conclusion

This work demonstrates that semantic information provided through natural language is a powerful tool for solving complex optical problems. While the method faces challenges when both layers contain highly similar content, it represents a significant step forward in making image restoration more intuitive and robust. Future research may explore the use of Large Language Models (LLMs) to automate the description process, further streamlining the user experience.

Summary updated

BibTeX
@inproceedings{zhong2024language,
  author = {Haofeng Zhong and Yuchen Hong and Shuchen Weng and Jinxiu Liang and Boxin Shi},
  title = {{Language-guided Image Reflection Separation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure