Real-World Dual-Pixel Raindrop Removal: A New Benchmark and Degradation-Adaptive RWKV Baseline

Hao Yang, Ruikun Zhang, Liyuan PanNeurIPS 2026

TL;DR

Raindrops on a camera lens act like chaotic little magnifying glasses, warping light in ways that standard image-restoration algorithms struggle to undo. By pairing the built-in stereo geometry of common Dual-Pixel (DP) camera sensors with a linear-complexity RWKV architecture, the authors build DRWKV—a model that dynamically adjusts its "memory" to scrub away raindrops while leaving clean backgrounds untouched. Along with a massive new day-and-night real-world dataset, this work brings crisp, reliable vision to outdoor cameras without the computational bloat of standard Transformers.

What Problem Does This Paper Address?

If you have ever watched a self-driving car or outdoor drone try to make sense of the world during a downpour, you know the pain of adherent raindrops. Unlike mist or fog, raindrops sitting directly on glass cause severe optical refraction and occlusion, scrambling background textures.

Recently, researchers realized that Dual-Pixel (DP) sensors—already ubiquitous in modern smartphones and DSLRs for autofocus—offer a clever geometric shortcut. Every pixel on a DP sensor is split into two tiny photodiodes, capturing slightly shifted "left" and "right" views in a single exposure. When a camera focuses on a distant street, the background shows virtually zero shift (disparity) between the two views, whereas out-of-focus raindrops sitting right in front of the lens jump noticeably.

Figure 2: Illustration of the DP imaging model. Rain- drops adhering to the glass lie outside the depth of field and induce measurable disparities between the left and right DP views, while in-focus background regions exhibit nearly zero disparity.

Prior DP-based methods used this disparity to estimate a raindrop mask and fed it into a Convolutional Neural Network (CNN). However, three roadblocks remained:

  1. Local myopia: CNNs have limited receptive fields and struggle to reconstruct large, heavily refracted regions using distant context.
  2. Surface-level priors: Simply concatenating a raindrop mask onto the input image treats degradation as an afterthought rather than letting it guide the network's internal restoration mechanics.
  3. Data scarcity: Existing DP raindrop datasets were mostly synthetic, single-channel (grayscale green), and contained barely over a hundred real images.

Methods

To get global context without the quadratic memory explosion of standard Transformers, the authors turn to RWKV (Receptance Weighted Key-Value), an architecture that blends Transformer-like parallel training with the linear-complexity recurrent state updates of RNNs.

Their framework, DRWKV, splits the job into two branches:

Figure 3: Overall architecture of the proposed framework. Given a 6-channel DP input pair (IL, IR), the network aims to reconstruct a clean background image Ic that approximates the ground-truth background Igt. The DP pair is first processed by the degradation perception network to estimate raindrop degradation features, which are then used to modulate the RWKV-based restoration backbone. The backbone follows an encoder-decoder design and predicts a residual map that is added to the input to produce the final restored image Ic.
  • Degradation Perception Network (DPN): Takes the 6-channel left/right DP pair, computes a correlation volume to measure disparity, and refines it alongside visual appearance to output a continuous raindrop intensity map—all trained without manual mask annotations using residual, re-synthesis, and DP-consistency losses.
  • Degradation-Adaptive RWKV Backbone: Standard RWKV sweeps across image tokens uniformly with a fixed memory decay. DRWKV overhauls this state transition by injecting the predicted raindrop map via three learnable gates:
  • Decay Modulation Gate (DMG): Slows down memory decay inside heavily degraded regions so structural context from clean areas isn't forgotten, while rapidly flushing outdated states in clean background areas.
  • Memory Injection Gate (MIG): Boosts the signal of corrupted value tokens during recurrent updates.
  • Restoration Fusion Gate (RFG): Blends the restored features with the original input at the end of the block to prevent over-processing clean pixels.

Datasets

  • DPRRN Dataset (Existing): Captured on a Google Pixel, featuring synthetic training/testing splits (1,960 / 492 images) and small real-world test sets (125 vertical and 130 tilted grayscale images).
  • DNDP Dataset (New): Constructed by the authors using a Canon 5D Mark IV DSLR with a glass sheet sprayed at varying densities, distances, and angles. It is the first large-scale, full-color, real-world DP raindrop benchmark, comprising 5,500 training pairs and 1,300 testing pairs, split roughly evenly between daytime and challenging nighttime scenes.

Key Insights and Ideas

  • Degradation-driven memory evolution: Rather than treating an error mask as just another image channel, using it to physically control how a recurrent network remembers and forgets across space lets the model seamlessly switch between "copying clean pixels" and "hallucinating missing structures."
  • Disparity isn't foolproof alone: Near-field background objects that happen to be out of focus also create DP disparity. Combining disparity with appearance cues and re-synthesis losses prevents the model from mistaking blurry foreground objects for raindrops (boosting near-field mask IoU from 0.3856 to 0.5032).
  • True long-range reach: Gradient response analysis shows that DRWKV maintains strong sensitivity to distant pixels even further out from the center than Transformer baselines like Restormer, all while keeping computational complexity linear.

Key Results

DRWKV sets a new state-of-the-art across every tested benchmark while running in 0.41 seconds per image on an RTX 4090:

  • On DNDP (Real-world Day/Night): Surpasses the prior best DP method (DPRRN) by 1.28 dB in overall PSNR (25.64 dB vs. 24.36 dB), with an even wider 1.77 dB lead at night where DPRRN's mask estimation breaks down completely.
  • On DPRRN Benchmarks: Beats DPRRN by 0.79 dB and 1.19 dB PSNR on synthetic vertical and tilted sets, and reaches 36.84 dB (up from 35.26 dB) on real tilted glass.
  • Matched-Budget & Downstream Tasks: Under an identical ~17M parameter count and 24-hour training budget, DRWKV outperforms recent heavyweights MoCE-IR (+0.89 dB) and MambaIRv2 (+1.16 dB). Feeding DRWKV-restored images into a frozen SAM 3 model boosts object detection Box mAP by 9.99 percentage points and segmentation Mask mAP by 10.15 percentage points over rainy inputs.
Figure 1: Illustration of DP raindrop removal. (a) and (b) show a pair of raindrop DP inputs, i.e., the left and right views. For simplicity, only the left- view image is shown as the input in the following figures. (c–f) show the zoomed-in degraded region, the ground-truth (GT) image, the result produced by DPRRN [18], and the result of our proposed method, respectively.

Limitations and Future Work

The authors highlight two main limitations:

  • Extreme near-field defocus: While multi-loss supervision helps disambiguate close objects from raindrops, extremely defocused objects right near the lens still produce ambiguous disparities that remain challenging to separate cleanly.
  • Nighttime perceptual ceilings: Although nighttime pixel fidelity (PSNR) jumps substantially, perceptual quality gains (CLIP-IQA+: 0.322 vs. 0.319) are modest because underlying sensor noise and low-light underexposure remain even after raindrops are removed.

Future directions beyond establishing DNDP as a community benchmark for future research are not explicitly detailed in the main text.

Summary updated

Abstract

Raindrop removal is challenging because raindrops exhibit strong spatial non-uniformity and scene dependency. Although previous works have demonstrated that dual-pixel (DP) sensors can facilitate raindrop removal, their effectiveness in complex real-world scenarios remains limited due to local modeling paradigms and insufficient coverage of real data. In this work, we collect a large-scale real-world DP raindrop dataset that covers day/night scenes, diverse light conditions, and varying raindrop intensities. Based on this dataset, we establish a challenging benchmark for DP raindrop removal in real-world scenarios. Building upon this dataset, we develop DRWKV, which models raindrop removal as a degradation-conditioned state evolution process. DRWKV explicitly injects raindrop degradation information derived from DP sensors into the recurrent state update process, enabling the model to adaptively balance information preservation and content restoration across spatial regions while maintaining linear computational complexity. This design facilitates effective global modeling of spatially non-uniform raindrop degradations. Extensive experiments demonstrate that the proposed DRWKV outperforms prior methods on the proposed benchmark as well as existing datasets.
BibTeX
@inproceedings{yang2026real,
  author = {Hao Yang and Ruikun Zhang and Liyuan Pan},
  title = {{Real-World Dual-Pixel Raindrop Removal: A New Benchmark and Degradation-Adaptive RWKV Baseline}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BPGDlHCoK4},
}
Figure