DualDn: Dual-domain Denoising via Differentiable ISP

Ruikang Li, Yujin Wang, Shiqi Chen, Fan Zhang, Jinwei Gu, Tianfan Xue

TL;DR

DualDn is a novel learning-based image denoising framework that combines the strengths of raw-domain and sRGB-domain denoising using a differentiable Image Signal Processor (ISP) as a bridge. Trained entirely on synthetic data, DualDn achieves exceptional generalizability, allowing it to be deployed as a plug-and-play module that outperforms commercial on-camera denoisers on unseen smartphone architectures.

What Problem Does This Paper Address?

Image denoising typically happens at one of two places in a camera's Image Signal Processing (ISP) pipeline: directly on the raw sensor data (raw domain) or on the final processed image (sRGB domain). Both approaches suffer from a fundamental trade-off:

  • Raw-domain denoising handles sensor-specific noise well because the noise physics are well-understood. However, any tiny amount of residual noise left behind gets amplified and distorted by subsequent ISP steps (like demosaicing and tone-mapping), leading to visible artifacts like color blotches or "zipper" patterns around edges.
  • sRGB-domain denoising operates at the end of the pipeline, so it can clean up these ISP-induced artifacts. However, because the ISP performs highly non-linear transformations, the clean, predictable noise distribution from the sensor becomes incredibly complex and spatially varying, making it difficult for an sRGB denoiser to generalize across different lighting conditions or camera models.

As a result, most deep-learning denoisers are locked into specific camera sensors or fixed ISP configurations. DualDn addresses this limitation by tackling noise in both domains simultaneously.

Fig. 2: Compare single-domain and dual-domain denoising. Noise in raw domain is sensor-specific and ISO-dependent, and ISP is device-related and user-preferred. Only denoising in dual-domain can properly deal with noise and ISP variations respectively.

Methods

DualDn consists of two denoising networks—a raw denoiser and an sRGB denoiser—connected by a custom-built differentiable ISP.

  1. End-to-End Training with a Differentiable Bridge: During training, the differentiable ISP acts as a bridge, allowing gradients to flow through the entire pipeline. This enables the raw and sRGB denoisers to optimize collaboratively. During inference, the differentiable ISP is discarded, and the denoisers are plugged directly into the target camera's actual hardware or software ISP.
  2. Noise Map Propagation: To help the sRGB denoiser understand where noise has been amplified, the authors introduce a novel mechanism: they pass the raw noise level map through the differentiable ISP alongside the image signal. This creates an sRGB-domain noise map that accurately predicts the intensity of residual impairments.
  3. Domain Generalization via Randomization: To ensure the network doesn't overfit to a specific camera, the training pipeline heavily randomizes both the synthetic noise parameters (shot and read noise) and the ISP characteristics (specifically, a mutable global tone-mapping curve).

Datasets

The authors evaluated DualDn using a mix of synthetic and real-world datasets:

  • MIT-Adobe FiveK: Used to generate synthetic training and testing pairs. The authors selected 220 low-ISO, noise-free raw images, using 200 for training and 20 for testing.
  • In-the-wild Smartphone Evaluation Dataset: A real-world testing set collected by the authors using flagship devices from Xiaomi, iPhone, and Huawei across 10 different scenes with random ISO settings.
  • Darmstadt Noise Dataset (DND): A standard public benchmark consisting of 50 real-world noisy-clean image pairs.

Key Insights and Ideas

  • The "Discardable" ISP: The most elegant aspect of DualDn is that the differentiable ISP is only a training tool. By simulating the non-linear transformations of an ISP during training, the networks learn domain-specific roles without requiring the actual deployment pipeline to be differentiable.
  • Collaborative Roles: The raw denoiser acts as a coarse filter, adapting to sensor-specific noise levels, while the sRGB denoiser acts as a fine-tuner, adapting to ISP variations and removing correlated residual noise.
  • sRGB Noise Maps Work: Historically, noise maps were restricted to the raw domain. Proving that a raw noise map can be mapped through an ISP to guide an sRGB denoiser is a major win for hybrid pipeline designs.

Key Results

DualDn was tested using three popular network backbones (SwinIR, MIRNet-v2, and Restormer) and consistently outperformed single-domain alternatives.

  • Robustness to Noise & ISP Amplification: In synthetic tests, DualDn achieved a significant PSNR improvement (often >1 dB) over single-domain denoisers, with the performance gap widening as noise levels ($K$) and tone-mapping amplification ($\alpha$) increased.
  • Generalization to Unseen Modules: When non-differentiable blocks like Sharpen or Local Tone-Mapping (CLAHE) were added to the evaluation pipeline, DualDn maintained high image quality, whereas single-domain denoisers suffered from severe color artifacts.
  • Real Smartphone Performance: Despite being trained purely on synthetic data, DualDn successfully generalized to commercial black-box smartphone ISPs, delivering cleaner details and fewer artifacts than the phones' native, highly tuned commercial denoising algorithms.
Fig. 1: Illustrating the generalizability of our dual-domain denoising. The proposed denoising outperforms commercial denoising algorithms on two smartphone cameras under various ISOs. Notice that our denoising is only trained on synthetic images, without using any images from these cameras or their ISP pipelines during training.

Limitations and Future Work

While DualDn demonstrates remarkable zero-shot generalization, the authors note a few limitations:

  • Simplified Noise Model: The training pipeline currently ignores device-specific noise anomalies like fixed pattern noise (FPN), which can occur in extreme low-light conditions.
  • Benchmark Constraints: On the DND benchmark, the performance gain was more modest because DND utilizes an over-simplified, fixed black-box ISP, which doesn't fully exploit DualDn's capacity to handle highly variable, complex real-world ISPs.

Future work could involve expanding the differentiable ISP to model more complex local image adjustments and incorporating more sophisticated sensor degradation models.

Summary updated

Abstract

Image denoising is a critical component in a camera's Image Signal Processing (ISP) pipeline. There are two typical ways to inject a denoiser into the ISP pipeline: applying a denoiser directly to captured raw frames (raw domain) or to the ISP's output sRGB images (sRGB domain). However, both approaches have their limitations. Residual noise from raw-domain denoising can be amplified by the subsequent ISP processing, and the sRGB domain struggles to handle spatially varying noise since it only sees noise distorted by the ISP. Consequently, most raw or sRGB domain denoising works only for specific noise distributions and ISP configurations. To address these challenges, we propose DualDn, a novel learning-based dual-domain denoising. Unlike previous single-domain denoising, DualDn consists of two denoising networks: one in the raw domain and one in the sRGB domain. The raw domain denoising adapts to sensor-specific noise as well as spatially varying noise levels, while the sRGB domain denoising adapts to ISP variations and removes residual noise amplified by the ISP. Both denoising networks are connected with a differentiable ISP, which is trained end-to-end and discarded during the inference stage. With this design, DualDn achieves greater generalizability compared to most learning-based denoising methods, as it can adapt to different unseen noises, ISP parameters, and even novel ISP pipelines. Experiments show that DualDn achieves state-of-the-art performance and can adapt to different denoising architectures. Moreover, DualDn can be used as a plug-and-play denoising module with real cameras without retraining, and still demonstrate better performance than commercial on-camera denoising. The project website is available at: https://openimaginglab.github.io/DualDn/
BibTeX
@inproceedings{li2024dualdn,
  author = {Ruikang Li and Yujin Wang and Shiqi Chen and Fan Zhang and Jinwei Gu and Tianfan Xue},
  title = {{DualDn: Dual-domain Denoising via Differentiable ISP}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73636-0\_10},
}
Figure