Abstract
Prior probability models are a fundamental component of many image processing problems, but density estimation is notoriously difficult for high-dimensional signals such as photographic images. Deep neural networks have provided state-of-the-art solutions for problems such as denoising, which implicitly rely on a prior probability model of natural images. Here, we develop a robust and general methodology for making use of this implicit prior. We rely on a statistical result due to Miyasawa (1961), who showed that the least-squares solution for removing additive Gaussian noise can be written directly in terms of the gradient of the log of the noisy signal density. We use this fact to develop a stochastic coarse-to-fine gradient ascent procedure for drawing high-probability samples from the implicit prior embedded within a CNN trained to perform blind (i.e., with unknown noise level) least-squares denoising. A generalization of this algorithm to constrained sampling provides a method for using the implicit prior to solve any linear inverse problem, with no additional training. We demonstrate this general form of transfer learning in multiple applications, using the same algorithm to produce state-of-the-art levels of unsupervised performance for deblurring, super-resolution, inpainting, and compressive sensing.
Introduction
In image processing, solving an "inverse problem" involves recovering an original image from a degraded version, such as a blurry image or one with missing pixels. Traditionally, this requires a prior: a mathematical model of what a "natural image" looks like. While deep neural networks (CNNs) excel at these tasks, they are typically "black boxes" trained for specific jobs. This research demonstrates that a deep learning denoiser trained to remove Gaussian noise implicitly "knows" the probability distribution of natural images. By leveraging a 60-year-old statistical result, the authors develop a stochastic gradient ascent algorithm that uses a single pre-trained, "bias-free" denoiser to solve diverse linear inverse problems—like deblurring, inpainting, and super-resolution—without any task-specific training.
Methodology
The authors bridge the gap between deep learning and classical statistics using Miyasawa’s Result (1961). This theorem states that the least-squares solution for removing additive Gaussian noise is directly proportional to the gradient of the log-density of the noisy signal. Essentially, the "residual" of a denoiser (the noise it removes) points in the direction of higher image probability. The authors use this to build two algorithms:
- Unconstrained Sampling: Starting from pure noise, the algorithm takes small steps in the direction suggested by the denoiser (gradient ascent) while injecting a controlled amount of new noise to avoid local optima. This "hallucinates" a natural image from scratch.
- Constrained Sampling: To solve inverse problems, the gradient step is modified by projecting the denoiser's suggested update onto a subspace consistent with known measurements (e.g., existing pixels in an inpainting task).
Crucially, the authors utilize "bias-free" CNNs. By removing additive bias terms from the network architecture, the denoiser generalizes across all noise levels, allowing a single network to handle the entire "coarse-to-fine" transition from heavy noise to a clean image.
Experimental Setup
The "universal" denoiser (a BF-CNN) was trained on the Berkeley Segmentation Dataset (BSD) using 40x40 patches in both grayscale and color, as well as the MNIST dataset of handwritten digits to demonstrate flexibility. Evaluation was conducted against standard benchmarks including Set5, Set14, and Set68.
Key Insights
A denoiser is not merely a filter; it serves as a map of the "image manifold." Its output indicates how to move from an unnatural point in pixel space toward a natural one. At high noise levels, the denoiser perceives a "blurry" version of the image distribution. As the algorithm reduces noise, the manifold of natural images becomes sharper and more detailed.
Furthermore, standard CNNs often fail when noise levels fall outside their training range. Removing biases makes the network purely a function of the input structure, enabling it to work at the extremely high noise levels required for initialization.
Results
The method achieves state-of-the-art "unsupervised" performance, solving problems it was not specifically trained for:
- Speed: For super-resolution, the method is over 100x faster than alternatives like Deep Image Prior (DIP) or DeepRED (9 seconds vs. ~1200-1500 seconds).
- Inpainting: The model realistically fills in large missing blocks by "hallucinating" content consistent with the surroundings.
- Compressive Sensing: On the Set68 dataset, the method outperformed specialized algorithms like TVAL3 and ISTA-Net in terms of both PSNR and structural similarity (SSIM).
- Perceptual Quality: While some methods might achieve higher PSNR by producing a blurry average, this method produces sharp, high-probability samples that appear more "natural" to human observers.
Limitations and Future Work
The algorithm prioritizes high-probability images over minimizing Mean Squared Error (MSE), which can lead to lower PSNR scores despite superior visual quality. Additionally, the current framework is limited to linear inverse problems; extending it to non-linear degradations like JPEG compression would require modifying the projection step. Finally, while averaging multiple samples improves PSNR, it can introduce blurring as the average of points on a curved manifold may fall into "unnatural" space.
Summary updated