Removing Reflections from RAW Photos

Eric Kee, Adam Pikielny, Kevin Blackburn-Matzen, Marc Levoy · DOI

Abstract: This research presents a significant advancement in computational photography by addressing reflection removal through the use of RAW sensor data. By shifting the focus from processed JPEGs to the linear "source of truth" provided by RAW files, the authors develop a system capable of high-resolution reflection suppression in under five seconds on mobile hardware. The approach combines physically accurate synthetic training data with a novel two-stage architecture and an optional "contextual" photo to achieve state-of-the-art results.

The Challenge of Reflections

Taking a photo through a window or a museum display case often results in a "mixture" image: the desired subject is blended with a reflection of the scene behind the photographer. Mathematically, light adds linearly at the camera sensor. However, most existing AI models for reflection removal operate on 8-bit, tone-mapped images like JPEGs. By the time a photo is converted to JPEG, the camera has applied non-linear curves, compression, and color adjustments that "bake in" the reflection, making it mathematically difficult to unmix. Furthermore, most existing models are limited to low-resolution processing (e.g., 256x256 pixels), which is insufficient for modern high-megapixel mobile photography.

Figure 1: Comparison of reflection removal results. The proposed method uses RAW data and an optional context image to separate the transmission (subject) from the reflection layer, outperforming previous methods like Zhang et al. and DSRNet.

Methods: Linearity and Context

The researchers built a pipeline that operates entirely in a linear color space (RAW). Their approach relies on three main pillars:

  1. Physically Accurate Synthesis: Since collecting "ground truth" pairs (the same photo with and without a reflection) is nearly impossible in the real world, the team built a sophisticated simulator. It accounts for the physics of glass, including Fresnel attenuation (reflections get stronger at grazing angles), double reflections (from the front and back of the glass pane), and defocus blur.
  2. The Contextual Photo: The system can optionally take a second photo looking in the opposite direction (e.g., using the front-facing camera). This "context" photo provides the model with hints about the colors and lighting of the reflection it needs to subtract, effectively disambiguating the scene.
  3. Two-Stage Architecture: The system utilizes a low-resolution Base Model (EfficientNet/BiFPN) to identify and separate the transmission and reflection layers. This is followed by a Novel Upsampler that applies the low-res separation mask to the full-resolution RAW data while preventing sharp reflection details from leaking back into the final image.
Figure 2: The two-stage architecture pipeline, showing the flow from RAW input through the base model and specialized upsamplers to produce the final transmission and reflection outputs.

Key Insights

  • Linearity is Paramount: A striking finding of the study is that training on RAW data is more impactful than the specific neural network architecture. Retraining older models on the RAW synthetic dataset improved their performance by approximately 40%.
  • The "Selfie" Disambiguator: Reflections are often ambiguous. By providing a contextual photo of the scene behind the camera, the model can instantly identify which features belong to the reflection versus the background.
  • Avoiding the "Hole-Filling" Trap: When a reflection is extremely bright, it can "clip" the sensor, losing information about the subject underneath. The authors identify this as a "hole-filling" problem where the AI must hallucinate missing data, a known limitation of current generative approaches.

Results and Performance

The system demonstrates impressive efficiency, generating a 1K preview in 4.5 to 6.5 seconds on modern mobile devices like the iPhone 14 Pro. Unlike previous state-of-the-art methods confined to low resolutions, this model successfully processes images at 4K and beyond. Quantitatively and qualitatively, the model outperforms prior work in maintaining accurate color and sharp textures without the artifacts common in 8-bit processing pipelines.

Limitations and Future Work

While highly effective, the model faces challenges with extreme saturation where the reflection completely blows out the sensor. Additionally, performance is less consistent in nighttime cityscapes where artificial lights create complex, high-contrast reflections. Future research may focus on better feature-sharing between the low-res and high-res stages to further reduce texture leakage from the reflection into the final subject image.

Summary updated

BibTeX
@inproceedings{kee2025removing,
  author = {Eric Kee and Adam Pikielny and Kevin Blackburn-Matzen and Marc Levoy},
  title = {{Removing Reflections from RAW Photos}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00024},
}
Figure