TL;DR
This paper introduces Frequency-Guided Posterior Sampling (FGPS), a novel method for diffusion-based image restoration that tackles approximation errors in existing techniques. By progressively incorporating higher frequencies from the degraded measurement during the reverse diffusion process, FGPS achieves significantly improved reconstruction quality on challenging tasks like deblurring and dehazing, outperforming state-of-the-art methods.
What Problem Does This Paper Address?
Image restoration aims to recover high-quality images from degraded versions. A common approach involves using diffusion models, powerful generative models that can learn complex data distributions. However, adapting these models for image restoration often requires modifying their sampling process to account for the degradation. Existing methods typically approximate a crucial component called the "noisy likelihood score," which can lead to significant errors and compromised sample quality, especially when the degradation process interacts strongly with high-frequency image details. This paper addresses the challenge of controlling these approximation errors by leveraging the frequency characteristics of both the image data and the degradation process.
Methods
The core of this paper is the Frequency-Guided Posterior Sampling (FGPS) algorithm. FGPS builds upon existing diffusion-based restoration methods that modify the reverse diffusion process to be consistent with the observed measurement. The key innovation lies in how FGPS handles the "noisy likelihood score." Instead of directly using approximations that can be error-prone, FGPS introduces a time-varying low-pass filter applied to the measurement. This filter progressively allows higher frequencies to be incorporated as the reverse diffusion process progresses.
Specifically, FGPS convolves the measurement $y$ with a time-dependent low-pass filter $k_t$, resulting in a filtered measurement $t(y)$. The approximation for the noisy likelihood score then uses this filtered measurement: $\nabla_{x_t} \log p(y | x_t) \approx \nabla_{x_t} \log p(t(y) | \mu_{0|t})$, where $\mu_{0|t}$ is the predicted clean image from the diffusion model. This approach is motivated by the observation that diffusion models naturally generate images hierarchically, from low to high frequencies. By controlling the frequency content of the measurement used at each step, FGPS aims to keep the intermediate samples $x_t$ on the data manifold learned by the diffusion model, thereby reducing approximation errors.
The paper also provides a theoretical analysis of the approximation gap for FGPS and compares it to Diffusion Posterior Sampling (DPS) under specific distributional assumptions. For practical implementation, FGPS uses an efficient Fourier domain computation and proposes a data-dependent frequency curriculum to adapt the filtering process to the spectral properties of the data.
Datasets
The paper evaluates FGPS on two widely used datasets:
- Flickr-Faces-HQ (FFHQ): A dataset of high-resolution faces.
- ImageNet-1000: A dataset of diverse objects.
The authors utilize pretrained diffusion models from existing works for these datasets. No new datasets are introduced.
Key Insights and Ideas
- Frequency Matters: The paper highlights that the interaction between the frequency characteristics of the image data and the degradation operator is crucial for the performance of diffusion-based restoration. High-frequency components in the measurement can lead to significant approximation errors in existing methods.
- Hierarchical Generation: Diffusion models generate images hierarchically, starting with low-frequency (coarse) features and progressing to high-frequency (fine) details. FGPS leverages this by starting with low-frequency information from the measurement and gradually introducing higher frequencies.
- Controlling Approximation Error: The core idea is to control the approximation error by filtering the measurement in the frequency domain. This "coarse-to-fine" frequency strategy is shown to be essential for maintaining reconstruction quality.
- Theoretical Guarantees: The paper provides a theoretical framework to analyze the approximation gap of FGPS and other methods, offering precise characterizations under specific distributional assumptions. This allows for a deeper understanding of why certain methods fail.
- Data-Dependent Curriculum: The flexibility to adapt the frequency filtering schedule based on the dataset's spectral properties is a key practical advantage, leading to improved performance on diverse datasets.
Key Results
- Theoretical Analysis: The paper provides theoretical results showing that FGPS has a significantly smaller approximation gap than DPS, especially when the forward operator is a high-pass filter.
- Synthetic Data: Experiments on synthetic data with a high-pass filter demonstrate that FGPS's approximation gap is orders of magnitude smaller than DPS, particularly in the early stages of the reverse process.
- Real-World Performance: On challenging image restoration tasks like motion deblurring and image dehazing, FGPS significantly outperforms state-of-the-art unsupervised diffusion-based methods (DPS, MCG, DSG) across various metrics (FID, LPIPS, PSNR, SSIM).
- Qualitative Improvements: FGPS consistently produces higher-quality reconstructions, preserving finer details and avoiding artifacts that plague other methods, especially in cases with high-pass filtering. For instance, in Figure 2, FGPS successfully reconstructs images where DPS, MCG, and DSG struggle.
- Nonlinear Problems: FGPS demonstrates effectiveness in handling nonlinear inverse problems like image dehazing, outperforming even some supervised methods.
Limitations and Future Work
- Distributional Assumptions: The theoretical analysis relies on specific distributional assumptions (e.g., Gaussian data, power-law frequency distribution). While these assumptions are shown to elucidate failure cases of existing methods, their direct applicability to all natural images might be limited.
- Hyperparameter Tuning: While the frequency curriculum is presented as data-dependent and relatively easy to set, some hyperparameters (like the step size schedule) still require tuning.
- Future Work: The authors suggest that this work opens up new avenues for analyzing diffusion-based inverse problem solvers by carefully considering frequency characteristics. Further exploration of adaptive frequency curricula and the theoretical underpinnings of these methods is implied. The paper also mentions further ablation studies in Appendix G, suggesting potential areas for future investigation.
Summary updated