Abstract
Traditional image restoration methods often prioritize minimizing mathematical error, such as Mean Squared Error, which frequently results in blurry and unrealistic reconstructions. This paper presents a novel approach using posterior sampling with explicit patch priors. By employing a Gibbs sampling algorithm based on a Gaussian Mixture Model (GMM) for image patches, the proposed method generates multiple high-quality, sharp restorations. This approach explicitly models uncertainty and navigates the fundamental trade-off between mathematical distortion and perceptual realism, producing images that are more natural and detailed than standard point-estimate techniques.
Introduction
Image restoration tasks—including denoising, deblurring, and inpainting—are fundamentally ill-posed. For any given degraded observation, there are infinitely many clean images that could have produced it. Traditional approaches typically seek the Minimum Mean Squared Error (MMSE) estimate, which mathematically represents the average of all possible clean images. While this minimizes pixel-wise error, the resulting "average" is often blurry. Alternatively, Maximum A Posteriori (MAP) methods find the single most likely image, but these can result in atypical images lacking natural textures.
This research addresses the inherent perception-distortion trade-off: the mathematical reality that optimizing for low error scores (like PSNR) often leads to a loss in perceptual quality, such as sharpness and natural texture. Instead of a single "perfect" reconstruction, the authors propose posterior sampling—generating several plausible, sharp restorations that represent the model's uncertainty.
Methodology
The core contribution is a novel algorithm for sampling from the posterior distribution $p(x|y)$, where $x$ is the clean image and $y$ is the degraded observation.
Explicit Patch Priors
Rather than modeling the probability of an entire high-resolution image, which is computationally prohibitive, the authors utilize a Gaussian Mixture Model (GMM) to define a prior over small $8 \times 8$ image patches. This GMM was trained on 5 million patches extracted from the BSD300 dataset.
Gibbs Sampling with Overlapping Patches
Sampling overlapping patches is challenging because pixels in the overlaps must remain consistent. To address this, the authors employ half-quadratic splitting, dividing the image into multiple grids of non-overlapping patches. The algorithm then alternates between two primary steps:
- Patch Sampling: Independently sampling patches for a specific grid based on the current estimate and the GMM prior.
- Global Integration: Solving a global Gaussian problem to ensure patches from different grids are consistent with each other and the observed data term.
The authors provide a theoretical proof that this iterative process correctly samples from a distribution related to the Expected Patch Log Likelihood (EPLL) framework.
Experimental Results
The method was evaluated on the standard BSD68 benchmark for denoising and deblurring. Key findings include:
- Perceptual Quality: The proposed Posterior Sampling EPLL (PS-EPLL) consistently achieved superior (lower) NIQE scores—a metric for image naturalness—compared to state-of-the-art denoisers like CBM3D, DnCNN, and DPIR.
- Texture Preservation: In qualitative tests, posterior samples retained high-frequency details, such as animal fur or architectural textures, that were smoothed away by MAP or MMSE-based methods.
- Efficiency: On a GPU, the algorithm processes a standard BSD68 image in approximately 15 seconds, offering a more practical alternative to previous Langevin-based sampling approaches.
Discussion
Uncertainty as a Feature
By generating multiple samples, the algorithm makes restoration uncertainty explicit. For example, in colorization tasks, different samples might show an object in various plausible colors, whereas an MMSE estimate would produce a non-committal, muddy gray. This provides a more honest representation of the information available in the degraded image.
Scalability
Unlike many deep learning generative models (e.g., GANs or Flow models) that are restricted to fixed input sizes, this patch-based method is resolution-independent. It can be applied to images of any size, including high-resolution photographs up to $1800 \times 2400$ pixels, without modification.
Conclusion
This paper demonstrates that posterior sampling using explicit patch priors is a powerful tool for high-quality image restoration. By moving beyond the search for a single "best" image, the method successfully navigates the perception-distortion trade-off, providing sharp, realistic, and diverse reconstructions. While the current GMM-based approach may introduce minor artifacts at extreme noise levels, the framework is extensible to more sophisticated priors, such as deep generative models, in future work.
Summary updated