Improving Diffusion Models for Inverse Problems using Manifold Constraints

Hyungjin Chung, Byeongsu Sim, Dohoon Ryu, Jong Chul Ye

Abstract

Diffusion models have emerged as a powerful tool for solving inverse problems, such as image inpainting and medical imaging reconstruction. However, standard sampling methods often suffer from artifacts because the iterative projection steps pull the sample path away from the underlying data manifold. This paper introduces Manifold Constrained Gradient (MCG), a simple yet effective modification that applies a correction term at each sampling step. By ensuring the sampling process remains on the manifold of realistic images, MCG achieves state-of-the-art results in an unsupervised manner across diverse tasks, including sparse-view CT and high-resolution face inpainting.

Introduction

Inverse problems involve recovering an original signal from partial or corrupted measurements. In computer vision and medical imaging, this includes tasks like deblurring, inpainting, and computed tomography (CT) reconstruction. While diffusion models excel at generating high-quality images from noise, adapting them to satisfy specific measurement constraints is challenging.

Traditionally, researchers have used projection-based methods that alternate between a diffusion update and a data-fidelity step. However, these methods often lead to "incoherent" results—such as visible seams or ghostly artifacts—because the projection steps do not account for the geometric structure of the data manifold where realistic images reside.

The Manifold Drift Problem

The authors identify a critical flaw in existing solvers: the "projection" step, which forces the current estimate to match known data, often yanks the sample path off the data manifold. As the algorithm iterates, these small deviations accumulate, moving the sample into regions of the image space that the model considers "unrealistic." This drift is the primary cause of the artifacts seen in standard diffusion-based inverse problem solvers.

Manifold Constrained Gradient (MCG)

To address this, the authors propose the Manifold Constrained Gradient (MCG). The core idea is to "nudge" the noisy sample back toward the manifold at every step of the reverse diffusion process.

Overview of the proposed MCG method and qualitative results compared to standard baselines.

Technical Implementation

The MCG algorithm follows three primary steps at each iteration $i$:

  1. Tweedie’s Formula: Given a noisy sample $x_i$, the model uses Tweedie’s formula to compute an estimate of the final clean image, denoted as $\hat{x}_0$.
  2. Measurement Constraint: The algorithm calculates the gradient of the measurement error (the difference between the estimate and the actual data) with respect to this estimated clean image $\hat{x}_0$.
  3. The Correction: This gradient is used to apply a correction to the noisy sample $x_i$, ensuring the update is consistent with both the measurements and the manifold geometry.

Geometric Interpretation

The theoretical contribution of this work is the proof that the MCG term effectively projects the data fidelity term onto the tangent plane of the data manifold. This ensures that the "pull" toward the measurements is mathematically aligned with the space of realistic images.

Geometric illustration of the MCG correction, showing how the gradient is projected onto the tangent space of the data manifold.

As shown in the geometric illustration, the MCG correction prevents the sampling path from drifting into the "void" between manifold layers, maintaining high visual fidelity throughout the reconstruction process.

Experimental Results

The researchers evaluated MCG using pre-trained unconditional models on several benchmarks, including FFHQ (faces), ImageNet, and AAPM (medical CT scans). Crucially, the models were never specifically trained for these inverse tasks.

Quantitative Performance

  • Inpainting (FFHQ): MCG achieved an FID of 23.7, outperforming the standard Score-SDE (30.3) and the specialized RePAINT (25.7).
  • Medical Imaging (CT): In sparse-view CT reconstruction, MCG achieved a PSNR of 33.57, significantly higher than previous diffusion methods (29.85) and even surpassing some supervised GAN-based approaches.

Qualitative Fidelity

Visually, MCG eliminates the boundary artifacts common in other methods. In inpainting tasks, the transitions between the known and generated regions are seamless. In CT reconstruction, the method preserves fine structural details that are often lost or blurred by standard projection-based solvers.

Conclusion and Future Work

MCG provides a mathematically grounded and computationally simple way to improve diffusion models for inverse problems. By shifting the focus from simple error correction to manifold geometry, the authors provide a robust framework for unsupervised image restoration. While the method is currently slower than simple projections due to the need for gradient calculations through the score function, its superior accuracy and visual quality make it a significant advancement for high-stakes applications like medical imaging. Future work may focus on optimizing the computational efficiency of the gradient calculation to enable real-time applications.

Summary updated

BibTeX
@inproceedings{chung2022improving,
  author = {Hyungjin Chung and Byeongsu Sim and Dohoon Ryu and Jong Chul Ye},
  title = {{Improving Diffusion Models for Inverse Problems using Manifold Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure