Introduction
Removing reflections from a single image is a classic "ill-posed" problem in computer vision. The camera captures a blend of two layers—the scene behind the glass (transmission) and the reflection on the glass—and the system must unmix them. While automated methods have made strides, they often struggle when reflections are sharp or visually similar to the background.
Existing interactive methods attempt to solve this by incorporating user guidance, but they typically suffer from two major flaws: inflexibility and high manual effort. Most systems support only one type of input (e.g., strokes) and require "dense" interaction, where users must meticulously trace edges for minutes. FIRM (Flexible Interactive Reflection ReMoval) addresses these challenges by allowing users to provide sparse, multi-modal guidance—such as points, boxes, strokes, or text descriptions—reducing interaction time by up to 90% while achieving state-of-the-art results.
Methodology
The FIRM framework utilizes a two-stage pipeline designed for both flexibility and precision.
User Guidance Conversion (UGC)
The UGC module acts as a translator, converting diverse user inputs into a unified contrastive mask.
- Visual Prompts: For points, boxes, and strokes, the authors developed the Segment Any Reflection Model (SARM). Built upon Meta’s Segment Anything Model (SAM), SARM is specifically tailored for blended images. It incorporates a learnable "degradation-invariant token" and a "feature selection block" to help the model identify reflections, a task where the original SAM often falters due to the lack of clear object boundaries in reflections.
- Text Prompts: For descriptions like "bright spots," an off-the-shelf text-based segmentation model is employed.
Contrastive Mask-Guided Reflection Removal Network
The core removal engine is a U-Net style architecture enhanced by a Contrastive Guidance Interaction Block (CGIB). The CGIB employs a channel-wise cross-attention mechanism, treating the user-provided mask as a "query" to separate reflection and transmission features within the latent space. This approach allows for cleaner layer separation compared to standard concatenation methods.
Datasets and Evaluation
The models were trained on a combination of 7,643 synthesized image pairs from the PASCAL VOC dataset and 90 real-world pairs. Evaluation was conducted using standard benchmarks, including Real20 and SIR2 (Object, Postcard, and Wild subsets).
A significant contribution of this work is the creation of the first comprehensive interactive reflection removal dataset. The authors augmented existing benchmarks with four types of raw user guidance (points, boxes, strokes, and text) and their corresponding segmentation masks, providing a robust foundation for future research in interactive image restoration.
Key Insights and Results
The success of FIRM stems from several key design choices:
- The Power of Contrast: The "contrastive mask" labels both the reflection and the transmission layers. Providing examples of both helps the network resolve ambiguity significantly faster.
- Adapting SAM for Physics: By freezing SAM’s heavy encoders and tuning a lightweight token, the authors preserved SAM's general knowledge while teaching it the specific physics of glass reflections.
- Efficiency: Moving from dense strokes to sparse points reduces annotation time from approximately 150–234 seconds per image to just 15 seconds.
FIRM outperformed all existing single-image and interactive methods on the SIR2 and Real20 datasets. Notably, on the SIR2-Wild subset, it achieved a PSNR of 29.71, a substantial improvement over the previous best automated method, DSRNet (24.79). Qualitative results demonstrate that FIRM is particularly robust at removing "sharp" reflections that automated models often mistake for foreground elements.
Limitations and Future Work
While FIRM represents a major step forward, some challenges remain. Text guidance can be ambiguous when reflections lack recognizable semantics (e.g., generic blurs). Additionally, the reliance on synthesized data for SARM training suggests that collecting more diverse real-world reflection masks could further improve performance. Finally, extremely complex multi-layering scenarios, such as double-paned glass with multiple offset reflections, continue to pose a challenge for single-image approaches.
Summary updated