Abstract
Deep learning models for joint demosaicking and denoising (JDD) typically rely on "ground truth" (GT) images that are assumed to be perfect. However, in real-world scenarios, these labels often contain artifacts like color moire, zipper effects, and residual noise. This paper introduces Wild-JDD, a framework that explicitly models uncertainty in training labels by treating them as probability distributions. By optimizing an Evidence Lower Bound (ELBO) loss, the model learns to "distrust" corrupted regions in the training data, leading to state-of-the-art performance on both synthetic and real-world raw image datasets without inheriting label artifacts.
Introduction
Digital camera sensors capture raw data through a Color Filter Array (CFA), necessitating demosaicking to interpolate full color and denoising to remove sensor noise. While deep learning has advanced JDD, most models are trained using Mean Squared Error (MSE) against "clean" ground truth images. The authors identify a critical flaw: these GT images are often generated by other algorithms or multi-shot averaging, which introduces systematic errors.
When a network is forced to match these "dirty" labels perfectly, it inadvertently learns to reproduce artifacts such as jagged "zipper" patterns around edges and false color moire in high-frequency textures. Wild-JDD addresses this by shifting from point-estimate labels to a probabilistic framework.
Methodology
The core of Wild-JDD is a hierarchical probabilistic model that accounts for the degradation process of the ground truth itself.
Probabilistic Modeling and ELBO Loss
Instead of a direct mapping, the authors model the relationship between the noisy input and the uncertain label using a Normal-Inverse Gamma distribution as a conjugate prior. This allows the network to estimate both the most likely clean pixel value and its associated variance (uncertainty).
The model is trained using an Evidence Lower Bound (ELBO) loss function. Mathematically, this loss acts as a generalization of MSE. When the model encounters a region with high uncertainty—such as a "zippered" edge in the training label—the regularization term in the ELBO loss reduces the penalty for deviating from that label. Effectively, the model learns to ignore the artifacts in the ground truth.
Architecture and Fine-Tuning
The architecture utilizes Grouped Residual Dense Blocks (GRDB) and operates in a downscaled space to maintain efficiency. To handle "out-of-distribution" noise not seen during training, the authors propose a self-supervised fine-tuning strategy (Wild-JDD*). This method uses the corrupted input as a guide but employs a confidence-interval-based mask to prevent the model from simply passing noise through to the output.
Results and Discussion
Wild-JDD was evaluated against several state-of-the-art methods, including FlexISP, DeepJoint, and Kokkinos, across multiple synthetic (Kodak, McMaster, Urban100) and realistic (MSR Panasonic) datasets.
Quantitative and Qualitative Performance
On the Kodak dataset ($\sigma=5$), Wild-JDD achieved a PSNR of 36.88 dB, outperforming DeepJoint (36.11 dB). On the real-world MSR Panasonic benchmark, the fine-tuned Wild-JDD reached a top PSNR of 40.36 dB and an SSIM of 0.981*. Visually, the model excels at reconstructing fine textures without the rainbow-like moire patterns common in other demosaickers.
Insights
The primary insight is that treating labels as distributions rather than fixed points provides the model with the necessary flexibility to distinguish between true image content and label-induced bias. While the base model is efficient, the peak performance of Wild-JDD* requires per-image fine-tuning, which may limit its use in real-time applications. However, the principle of uncertainty-aware training offers a promising path for other tasks where perfect ground truth is unattainable, such as low-light enhancement or super-resolution.
Summary updated