A Theoretical Justification for Image Inpainting using Denoising Diffusion Probabilistic Models

Litu Rout, Advait Parulekar, Constantine Caramanis, Sanjay Shakkottai
2/2/2023
stat.MLcs.AIcs.LG

No official code found. Best implementation: andreas128/RePaint (2,272 stars, last commit 2022-08-20).

Abstract

We provide a theoretical justification for sample recovery using diffusion based image inpainting in a linear model setting. While most inpainting algorithms require retraining with each new mask, we prove that diffusion based inpainting generalizes well to unseen masks without retraining. We analyze a recently proposed popular diffusion based inpainting algorithm called RePaint (Lugmayr et al., 2022), and show that it has a bias due to misalignment that hampers sample recovery even in a two-state diffusion process. Motivated by our analysis, we propose a modified RePaint algorithm we call RePaint$^+$ that provably recovers the underlying true sample and enjoys a linear rate of convergence. It achieves this by rectifying the misalignment error present in drift and dispersion of the reverse process. To the best of our knowledge, this is the first linear convergence result for a diffusion based image inpainting algorithm.

View on arXivView PDF

Code Implementations(1)

andreas128/RePaintCommunity71%

Official PyTorch Code and Models of "RePaint: Inpainting using Denoising Diffusion Probabilistic Models", CVPR 2022

2,272197Shell, PythonNov 29, 20214 years ago
cvpr2022diffusion-modelsinpainting

Similar Papers

Cite this paper

@article{rout2023theoretical,
  title  = {A Theoretical Justification for Image Inpainting using Denoising Diffusion Probabilistic Models},
  author = {Litu Rout and Advait Parulekar and Constantine Caramanis and Sanjay Shakkottai},
  year   = {2023},
  eprint = {2302.01217},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.01217v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.01217.svg)](https://codeofpaper.com/paper/2302.01217)

Discussion