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.
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:
- Local myopia: CNNs have limited receptive fields and struggle to reconstruct large, heavily refracted regions using distant context.
- 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.
- 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:
- 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.
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