[Paper Review] Convolutional Neural Network with Median Layers for Denoising Salt-and-Pepper Contaminations
This paper proposes a novel deep fully convolutional neural network enhanced with median layers—spatial operations that compute the median of local neighborhoods across feature maps—to denoise images corrupted by high-level salt-and-pepper noise. By integrating these median layers directly into the network architecture without pre-processing or loss function annealing, the method achieves state-of-the-art performance, outperforming existing methods by 1–2 dB in PSNR, especially at extreme noise levels (e.g., 70–90%).
We propose a deep fully convolutional neural network with a new type of layer, named median layer, to restore images contaminated by the salt-and-pepper (s&p) noise. A median layer simply performs median filtering on all feature channels. By adding this kind of layer into some widely used fully convolutional deep neural networks, we develop an end-to-end network that removes the extremely high-level s&p noise without performing any non-trivial preprocessing tasks, which is different from all the existing literature in s&p noise removal. Experiments show that inserting median layers into a simple fully-convolutional network with the L2 loss significantly boosts the signal-to-noise ratio. Quantitative comparisons testify that our network outperforms the state-of-the-art methods with a limited amount of training data. The source code has been released for public evaluation and use (https://github.com/llmpass/medianDenoise).
Motivation & Objective
- To address the challenge of denoising images with extremely high levels of salt-and-pepper noise, where traditional gradient-based methods fail due to unreliable gradients at corrupted pixels.
- To overcome the limitations of existing learning-based methods that require complex loss annealing (e.g., from L2 to L0) or clean data pairs for training.
- To integrate traditional, non-linear signal processing techniques—specifically median filtering—into deep neural networks as learnable layers to improve robustness to impulse noise.
- To develop an end-to-end trainable network that removes high-level salt-and-pepper noise without any non-trivial pre-processing steps.
- To demonstrate that median layers act as effective regularizers by minimizing L1-based deviations, improving feature quality in noisy regions.
Proposed method
- Introduces a new layer type called the 'median layer', which applies median filtering across local spatial neighborhoods for all feature channels in a feature map.
- The median layer computes the median value within a fixed-size kernel (e.g., 3×3) over each spatial location and all channels, effectively suppressing impulse noise while preserving edges.
- Median layers are inserted into a fully convolutional neural network architecture, replacing or complementing standard convolutional layers in skip-connection or residual blocks.
- The network is trained end-to-end using standard L2 loss, without requiring loss annealing or clean reference images, enabling training on noisy-noisy pairs.
- The method leverages the mathematical property that the median minimizes the sum of absolute deviations (L1 norm), making it a robust regularizer for noisy features.
- The architecture is designed to be compatible with existing deep networks (e.g., U-Net style), allowing plug-in integration of median layers to boost performance.
Experimental results
Research questions
- RQ1Can median filtering operations be effectively embedded as learnable layers within deep neural networks to improve robustness to salt-and-pepper noise?
- RQ2Does inserting median layers into a standard CNN architecture improve denoising performance without requiring complex loss scheduling or clean supervision?
- RQ3How does the performance of the proposed method compare to state-of-the-art methods, especially at high noise levels (e.g., 70–90%)?
- RQ4Can a single model trained with L2 loss generalize across multiple noise levels when using median layers, eliminating the need for adaptive loss functions?
- RQ5What is the impact of median layer placement and depth within the network on feature quality and final denoising accuracy?
Key findings
- The proposed network with median layers achieves a PSNR of 33.07 dB on the Lenna image with 90% salt-and-pepper noise, significantly outperforming Noise2Noise (24.89 dB) and other baselines.
- At 70% noise level, the model improves PSNR by 0.5 dB on average compared to the same network without median layers, demonstrating consistent performance gains.
- The method outperforms the state-of-the-art Noise2Noise method by 1–2 dB in average PSNR across multiple datasets, especially excelling at high noise levels.
- Qualitative results show that the proposed method reduces blocky artifacts and edge blurring—common issues in Noise2Noise—particularly in images with sharp transitions and binary patterns.
- The model trained with standard L2 loss generalizes across different noise levels without loss function adaptation, indicating that median layers act as effective regularizers.
- The source code and pretrained models are publicly released at https://github.com/llmpass/medianDenoise, enabling reproducibility and further research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.