Reflection Removal through Efficient Adaptation of Diffusion Transformers

Daniyar Zakarin, Thiemo Wandel, Anton Obukhov, Dengxin Dai

TL;DR

WindowSeat is a novel framework that repurposes pre-trained Diffusion Transformers (DiTs) for single-image reflection removal in a single forward pass. By combining an efficient 4-bit QLoRA fine-tuning protocol with a physically based rendering (PBR) pipeline for realistic data synthesis, it achieves state-of-the-art performance and can be trained on a single consumer GPU in less than a day.

What Problem Does This Paper Address?

Taking a photo through a window often results in unwanted reflections. Undoing this—known as Single-Image Reflection Removal (SIRR)—is a fundamentally ill-posed source separation problem: the AI must figure out which pixels belong to the background scene (transmission) and which belong to the glass reflection.

Prior approaches typically suffer from two major bottlenecks:

  1. Architectural Limitations: They rely on task-specific, custom architectures trained from scratch, missing out on the rich semantic world-priors embedded in massive foundation models.
  2. Poor Data Quality: Because real-world, pixel-perfect "reflection vs. clean" image pairs are incredibly difficult to capture, models rely on synthetic data generated via simple linear "alpha blending." This math-based shortcut fails to simulate real glass physics, such as double-reflection "ghosting," blur from surface roughness, or high-intensity HDR glare.

Methods

WindowSeat addresses these gaps through a two-pronged strategy: physically accurate data synthesis and efficient foundation model adaptation.

1. Physically Based Rendering (PBR) Pipeline

Instead of alpha blending, the authors built a lightweight PBR pipeline in Blender using the Principled BSDF shader. By placing flat image planes into a 3D scene behind a virtual glass plate, they explicitly simulate light transport. They randomize three critical physical factors:

  • Index of Refraction (IoR): Controls reflection strength.
  • Thickness: Recreates realistic "ghosting" artifacts caused by internal reflections.
  • Roughness: Controls microfacet scattering to accurately blur reflections.

2. One-Step Flow Matching & QLoRA

Instead of using a slow, multi-step diffusion sampling process, WindowSeat treats reflection removal as a single-step image editing task.

The WindowSeat model architecture uses a frozen VAE and adapts a foundation DiT via lightweight LoRA layers.

The model feeds the reflection-contaminated image into a frozen Variational Autoencoder (VAE). A pre-trained DiT backbone, adapted via Low-Rank Adaptation (LoRA), processes the latents. Crucially, the model uses a flow matching objective to predict a latent-space velocity vector (the change needed to clean the image) in a single forward pass, rather than predicting the clean image directly. To make training accessible, 95.7% of the model's 12.5B parameters are quantized to 4-bit (QLoRA), enabling training on a single GPU with a peak memory footprint of just 21 GB.

Datasets

The model was trained and evaluated using a mix of real-world and newly synthesized data:

  • PBR Synthetic Dataset (New): 25,000 photorealistic images generated via their Blender pipeline using HDR environment maps and background images from the COCO dataset.
  • In-Domain Datasets: The training and testing splits of the Nature and Real datasets.
  • Zero-Shot Benchmarks: The SIR² benchmark, which includes sub-datasets for Objects, Postcards, and Wild scenes, used to test how well the model generalizes to unseen real-world environments.

Key Insights and Ideas

  • Foundation Models are Natural Inpainters: Pre-trained DiTs already possess deep scene understanding. When a reflection is intensely strong, WindowSeat leverages the model's generative priors to effectively inpaint the missing background details rather than just filtering pixels.
  • Physics Matter More Than Scale: Training models on alpha-blended data actually degrades their real-world performance. Replacing or mixing alpha-blended data with physically accurate PBR data provides a massive boost in robustness against strong reflections.
  • Predicting Flow Beats Predicting Latents: Velocity-based flow matching yields cleaner, sharper restorations than forcing the network to directly predict absolute reflection-free latents.
Ablation studies showing that PBR data and predicting flow velocity yield significantly better results.

Key Results

WindowSeat achieves state-of-the-art performance across both in-domain and zero-shot benchmarks, outperforming complex multi-step diffusion models and dual-stream architectures.

Qualitative comparison showing WindowSeat successfully removing reflections across morning, noon, and night scenarios compared to other state-of-the-art methods.
  • Zero-Shot Excellence: On the challenging $SIR^2$ (500) benchmark, WindowSeat achieved a 1.56 dB gain in PSNR and raised the SSIM score from 0.930 to 0.940 compared to previous top methods.
  • Real-World Performance: On the benchmark Real dataset, it achieved a 1.06 dB PSNR gain, demonstrating cleaner outputs with significantly fewer residual artifacts.

Limitations and Future Work

While WindowSeat excels at clearing away reflections, it occasionally suffers from "overshooting." Because it is so effective at identifying and removing secondary or higher-order reflections, it can sometimes strip away reflections that were actually part of the ground-truth scene or intended by the photographer, occasionally reducing the realism of the final image.

The authors note that future work will focus on introducing fine-grained user controls (e.g., allowing users to specify how many reflection layers to remove), extending the framework to maintain temporal consistency in videos, and modeling complex interactions like subject self-shadows on glass surfaces.

Summary updated

BibTeX
@misc{zakarin2025reflection,
  author = {Daniyar Zakarin and Thiemo Wandel and Anton Obukhov and Dengxin Dai},
  title = {{Reflection Removal through Efficient Adaptation of Diffusion Transformers}},
  year = {2025},
  eprint = {2512.05000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.05000},
}
Figure