Skip to main content
QUICK REVIEW

[Paper Review] A Bayesian Perspective on the Deep Image Prior

Zezhou Cheng, Matheus Gadelha|arXiv (Cornell University)|Apr 16, 2019
Image and Signal Denoising MethodsComputer Science13 references8 citations
TL;DR

This paper provides a Bayesian interpretation of the Deep Image Prior (DIP) by showing that, in the limit of infinite network width, a convolutional network with random weights and stationary inputs converges to a Gaussian process with a learnable kernel. The authors use stochastic gradient Langevin dynamics (SGLD) for posterior inference, eliminating the need for early stopping and improving performance on image denoising and inpainting tasks with uncertainty quantification.

ABSTRACT

The deep image prior was recently introduced as a prior for natural images. It represents images as the output of a convolutional network with random inputs. For "inference", gradient descent is performed to adjust network parameters to make the output match observations. This approach yields good performance on a range of image reconstruction tasks. We show that the deep image prior is asymptotically equivalent to a stationary Gaussian process prior in the limit as the number of channels in each layer of the network goes to infinity, and derive the corresponding kernel. This informs a Bayesian approach to inference. We show that by conducting posterior inference using stochastic gradient Langevin we avoid the need for early stopping, which is a drawback of the current approach, and improve results for denoising and impainting tasks. We illustrate these intuitions on a number of 1D and 2D signal reconstruction tasks.

Motivation & Objective

  • To provide a theoretical Bayesian foundation for the Deep Image Prior (DIP) by analyzing its asymptotic behavior as network width increases.
  • To derive the explicit kernel function induced by a deep convolutional network with random weights on stationary inputs, characterizing the spatial covariance structure.
  • To address the overfitting risk in DIP by replacing heuristic early stopping with principled Bayesian posterior inference.
  • To improve image reconstruction performance in denoising and inpainting by using stochastic gradient Langevin dynamics (SGLD) for posterior sampling.
  • To enable uncertainty quantification in image reconstruction through variance estimation from posterior samples.

Proposed method

  • Prove that a deep convolutional network with random weights and stationary inputs converges to a stationary Gaussian process in the infinite-width limit, using the continuous mapping theorem and strong law of large numbers.
  • Derive the analytical form of the kernel as a function of network depth, filter size, activation function (e.g., ReLU, erf), and input correlation structure.
  • Use the limiting Gaussian process as a prior for Bayesian inference, enabling full posterior sampling via stochastic gradient Langevin dynamics (SGLD).
  • Implement SGLD-based posterior sampling to avoid overfitting and eliminate the need for early stopping in DIP optimization.
  • Estimate uncertainty in reconstructed images by computing variance across posterior samples, visualized as heatmaps.
  • Validate the method on 1D and 2D signal reconstruction tasks, including image denoising and inpainting, comparing SGLD to standard SGD with early stopping.

Experimental results

Research questions

  • RQ1What is the asymptotic distribution of a deep convolutional network with random weights and stationary inputs as the number of channels tends to infinity?
  • RQ2What is the explicit form of the kernel induced by the network architecture and activation functions in this limit?
  • RQ3Can Bayesian inference via SGLD outperform standard DIP optimization with early stopping in image reconstruction tasks?
  • RQ4Can posterior sampling with SGLD provide meaningful uncertainty estimates in image reconstruction, such as variance maps?
  • RQ5How do architectural choices (e.g., skip connections, depth) affect the induced kernel and reconstruction performance?

Key findings

  • The Deep Image Prior is asymptotically equivalent to a stationary Gaussian process with a kernel derived analytically from network architecture and activation functions.
  • The derived kernel captures the spatial covariance structure induced by convolutions, non-linearities, pooling, and skip connections, enabling principled prior design.
  • SGLD-based posterior inference eliminates the need for early stopping, as it naturally avoids overfitting by sampling from the posterior distribution.
  • On image denoising, SGLD achieves a final MSE close to the noise level (σ²), while standard SGD with early stopping overfits and reaches zero MSE.
  • On image inpainting, SGLD achieves higher PSNR (e.g., 32.95 vs. 30.78) than baseline methods and produces meaningful uncertainty maps with lower variance in uniform regions.
  • Variance estimates from posterior samples reveal lower uncertainty in homogeneous regions (e.g., sky, walls) and higher uncertainty near object boundaries, aligning with intuitive expectations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.