Abstract
Image denoising requires a delicate balance between noise suppression and detail preservation. While local diffusion models offer high speed, they frequently introduce artifacts in homogeneous regions and blur high-frequency textures. This paper introduces Trainable Non-Local Reaction Diffusion (TNLRD), a deep learning framework that embeds non-local self-similarity directly into the diffusion process. By utilizing $k$-nearest neighbor searches and sparse matrix formulations, TNLRD enables end-to-end training of non-local filters. Our evaluation shows that TNLRD consistently outperforms local models and competitive benchmarks like BM3D, providing superior visual quality and structural fidelity.
Introduction
The fundamental challenge in image denoising is distinguishing random noise from actual image content. Recent advancements in "local" models, such as Trainable Nonlinear Reaction Diffusion (TNRD), have provided fast and effective solutions by processing small, local pixel patches. However, these models suffer from a limited receptive field, leading to two primary issues:
- Artifact Generation: The creation of unnatural patterns in smooth, uniform areas like skies or walls.
- Over-smoothing: The loss of fine, high-frequency details (e.g., fur, grass, or fabric textures) because the model cannot differentiate them from noise.
To overcome these limitations, we propose bridging the gap between high-performance trainable models and "non-local" methods like BM3D. Non-local methods leverage the inherent redundancy in natural images—the fact that similar patches often repeat throughout a scene—to improve denoising accuracy.
Proposed Method: TNLRD
The Trainable Non-Local Reaction Diffusion (TNLRD) model integrates Non-Local Self-Similarity (NSS) into the diffusion equations. The architecture is built on several key innovations:
- Non-Local Filtering: Instead of relying solely on local convolutions, the model performs a $k$-nearest neighbor ($k$-NN) search within a specified window (e.g., 31x31) to identify similar patches. Non-local filters then aggregate information across these patches.
- Sparse Matrix Formulation: To ensure the model is differentiable and computationally efficient for deep learning, the non-local search is formulated using highly sparse matrices. This allows for efficient gradient derivation and backpropagation.
- Trainable Nonlinearities: The model employs Radial Basis Functions (RBFs) to learn optimal "influence functions." These nonlinearities determine the degree of smoothing or sharpening applied at each stage of the diffusion process.
- End-to-End Optimization: The entire pipeline—including local filters, non-local filters, and nonlinearities—is trained jointly using the L-BFGS optimization algorithm.
Experimental Setup
The model was trained on a standard dataset of 400 images (likely from the BSDS dataset), processed into 180x180 patches. Evaluation was conducted on two primary benchmarks:
- The "68 Images" Set: A standard denoising benchmark originally introduced by Roth and Black.
- Web Image Set: A collection of 9 diverse real-world images collected from the internet to test the model's robustness outside of laboratory conditions.
Results and Discussion
TNLRD demonstrates significant quantitative and qualitative improvements over purely local diffusion models.
Quantitative Performance
TNLRD consistently outperformed the local TNRD model by approximately 0.1 dB in PSNR and showed even greater gains in the Structural Similarity Index (SSIM). At a noise level of $\sigma=25$, TNLRD achieved a PSNR of 29.01 dB, surpassing the widely-used BM3D algorithm (28.56 dB).
Visual Quality and Texture Preservation
The most striking advantage of TNLRD is its ability to recover fine textures. While local models often produce a "blurry mess" when faced with complex patterns, TNLRD maintains structural integrity.
As shown in the figure above, the "clear stems" of the sea anemone are much better preserved in the TNLRD output (d) compared to the local model (b). This is attributed to the non-local filters' ability to "see" and reinforce similar structures across different parts of the image.
Insights on Training Loss
The study also found that training to maximize SSIM rather than minimizing L2 (MSE) loss leads to visually sharper results. Although L2-trained models might achieve slightly higher PSNR, SSIM-trained models exhibit fewer "halo" artifacts and better represent human visual perception.
Conclusion and Future Work
TNLRD successfully combines the efficiency of trainable diffusion networks with the power of non-local image priors. While the $k$-NN search introduces some computational overhead, the use of restricted search windows and sparse matrices keeps the model practical.
Future research directions include implementing criteria to dynamically determine the number of diffusion steps ($T$) required for a specific image and integrating noise estimation modules to handle images where the noise level ($\sigma$) is unknown.
Summary updated