NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Image Priors Through Patch-Based Diffusion Models for Solving Inverse Problems

Jason Hu, Bowen Song, Xiaojian Xu, Liyue Shen, Jeffrey A Fessler

Introduction

Diffusion models have emerged as a state-of-the-art approach for solving inverse problems in imaging, such as sparse-view CT reconstruction, deblurring, and super-resolution. These models act as powerful generative priors, capturing the underlying distribution of clean images to guide the reconstruction process from corrupted or partial measurements. However, standard diffusion models are notoriously data-hungry and computationally expensive, often requiring massive datasets and high-end hardware to train on high-resolution images. This paper introduces the Patch Diffusion Inverse Solver (PaDIS), a novel framework designed to overcome these barriers by training exclusively on image patches.

The PaDIS Methodology

The core innovation of PaDIS lies in its memory-efficient, patch-based training and a unique inference strategy that ensures global coherence without boundary artifacts. The method consists of three primary components:

1. Patch-Wise Training with Positional Encoding

Instead of processing whole images, PaDIS trains a diffusion model on randomly extracted patches. To prevent the model from learning only local textures, the authors incorporate positional encoding—feeding the network the normalized X and Y coordinates of each patch. This allows the model to understand the global context (e.g., the relative position of facial features or anatomical structures) even though it never sees the full image at once during training. To further improve the model's ability to learn cross-region dependencies, it is trained on patches of varying sizes.

2. Stochastic Grid Shifting during Inference

A common pitfall of patch-based methods is the appearance of "seams" or grid-line artifacts where patches meet. PaDIS addresses this during inference by partitioning the image into a non-overlapping grid and computing the score function (the update step) for each patch independently and in parallel. To eliminate artifacts, the starting coordinates of this grid are randomly shifted (jittered) at every diffusion timestep. This stochastic approach naturally averages out boundaries over the course of the diffusion process, resulting in a seamless, high-quality reconstruction.

3. Plug-and-Play Integration

Because PaDIS outputs a standard score function for the whole image, it can be paired with existing diffusion sampling algorithms, such as Diffusion Posterior Sampling (DPS), to solve a wide variety of inverse problems without task-specific retraining.

Experimental Evaluation

The authors evaluated PaDIS in data-constrained environments to test its robustness and efficiency. The model was trained on two primary datasets:

  • AAPM 2016 CT Challenge: Medical CT scans using only 2,304 2D slices (256x256) for training.
  • CelebA-HQ: Natural face images restricted to a random subset of just 3,000 images (256x256).

Key Results and Insights

Superior Quality with Limited Data

PaDIS consistently outperformed standard whole-image diffusion models across all tested inverse problems. For instance, in 20-view sparse CT reconstruction, PaDIS achieved a PSNR of 33.57 dB, surpassing the 32.84 dB achieved by the whole-image baseline. This suggests that patches act as a data multiplier; a single image contains thousands of overlapping patches, providing the model with more diverse training samples and preventing overfitting in small-data regimes.

Efficiency and Scalability

Training the patch-based models proved significantly more efficient, taking approximately 12 hours on two A40 GPUs, compared to the 24-36 hours required for whole-image models. Furthermore, because the model processes patches, it can scale to higher resolutions (e.g., 512x512) without the exponential memory explosion that typically plagues high-resolution diffusion models.

Versatility

The same learned prior successfully solved multiple distinct inverse problems, including sparse-view CT reconstruction, heavy image deblurring, and 4x super-resolution, demonstrating the flexibility of the patch-based approach.

Limitations and Future Work

While effective, PaDIS currently faces a trade-off between speed and quality during inference. The stochastic grid-shifting mechanism requires a high number of diffusion steps (e.g., 1000) to effectively smooth out patch boundaries. When used with accelerated samplers like DDIM or EDM—which take larger steps to generate images in 18-50 iterations—visible boundary artifacts can reappear.

Future research directions include developing acceleration methods compatible with stochastic patching, exploring multi-scale resolution approaches to improve generation quality, and extending the framework to massive 3D and 4D medical imaging tasks where memory constraints are currently a significant barrier.

Conclusion

PaDIS offers a practical path forward for applying diffusion models to high-resolution imaging and specialized domains where large datasets are unavailable. By leveraging patch-based priors and positional encoding, it achieves high-fidelity reconstructions with reduced computational overhead and improved data efficiency.

Summary updated

BibTeX
@inproceedings{hu2024learning,
  author = {Jason Hu and Bowen Song and Xiaojian Xu and Liyue Shen and Jeffrey A Fessler},
  title = {{Learning Image Priors Through Patch-Based Diffusion Models for Solving Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HGnxhHz6ss},
}
Figure