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

Patch-Based Diffusion Models Beat Whole-Image Models for Mismatched Distribution Inverse Problems

Jason Hu, Bowen Song, Jeffrey A. Fessler, Liyue Shen · DOI

Introduction

In image processing, inverse problems—reconstructing clean images from corrupted or incomplete measurements—are increasingly solved using diffusion models as powerful priors. However, these models typically suffer from a significant limitation: they require massive datasets of clean images from the exact same distribution as the target. When a distribution mismatch occurs (e.g., a model trained on brain scans applied to chest X-rays), standard "whole-image" models often "hallucinate" incorrect features or produce artifacts. This paper introduces a patch-based diffusion approach that enhances robustness in out-of-distribution (OOD) scenarios and settings with extremely limited data.

Methodology: From Global to Local Priors

The core innovation is a shift from learning the probability distribution of an entire image (e.g., $256 \times 256$) to learning the distribution of small local patches (e.g., $64 \times 64$). This approach addresses two critical scenarios:

  1. Single Measurement Setting: Using a single measurement $y$ and a model trained on a mismatched distribution (e.g., synthetic ellipses), the researchers integrate the Deep Image Prior (DIP) framework. A self-supervised loss is used to refine network weights during reconstruction, ensuring the output remains consistent with the physical measurement.
  2. Small Dataset Setting: When only a handful of in-distribution images are available, the authors demonstrate that fine-tuning a patch-based model is significantly more effective than fine-tuning a whole-image model, which is prone to memorization.

Technically, the reconstruction process employs a Conjugate Gradient (CG) descent step for data fidelity, coupled with a stochastic patch-based denoiser to provide the prior.

Key Insights: Why Patches Work

The effectiveness of patch-based models stems from two primary factors:

  • Universality of Local Textures: While global structures vary significantly between datasets (e.g., faces vs. lungs), local textures and edges are more universal. Patch-based models learn these "atomic" visual elements, making them naturally robust to global distribution shifts.
  • Resistance to Overfitting: Whole-image models tend to memorize training data. When fine-tuned on small datasets, they often collapse to outputting a training image. Patch-based models must assemble reconstructions from local patterns, forcing better generalization.

Quantitative and Qualitative Results

The proposed self-supervised patch method ("Patch, SS") demonstrates superior performance across various tasks, including sparse-view CT, deblurring, and super-resolution.

Quantitative performance (PSNR and SSIM) across different inverse problems.

As shown in the table above, the self-supervised patch method (trained on ellipses) achieved a PSNR of 30.34 dB in deblurring tasks, outperforming a whole-image model trained on the correct face dataset (29.87 dB). In 20-view CT reconstruction, the patch-based method surpassed the best whole-image baseline by nearly 0.6 dB PSNR.

Visual comparison of CT reconstruction methods.

Visually, the patch-based approach produces significantly fewer artifacts compared to whole-image and naive patch baselines. In the small dataset setting, the patch-based model reached peak performance with just one hour of fine-tuning on 10 images, whereas whole-image models quickly degraded due to overfitting.

Conclusion and Future Directions

While the self-supervised refinement process is computationally intensive—taking approximately 289 seconds per image compared to 1 second for simpler baselines—it offers a robust solution for data-starved or mismatched inverse problems. Future work will focus on accelerating the reconstruction process and extending the refinement techniques to scenarios where small batches of measurements are available.

Summary updated

BibTeX
@misc{hu2024patch,
  author = {Jason Hu and Bowen Song and Jeffrey A. Fessler and Liyue Shen},
  title = {{Patch-Based Diffusion Models Beat Whole-Image Models for Mismatched Distribution Inverse Problems}},
  year = {2024},
  eprint = {2410.11730},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11730},
}
Figure