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

Deep Image Prior

Dmitry Ulyanov, Andrea Vedaldi, Victor S. Lempitsky · DOI

TL;DR

The "Deep Image Prior" (DIP) reveals that the architecture of a convolutional neural network (CNN) itself acts as a powerful, handcrafted image prior. By optimizing a randomly initialized network to fit a single degraded image, the authors demonstrate that the network's structure is sufficient to solve complex inverse problems like denoising, super-resolution, and inpainting—without any pre-training on external datasets.

What Problem Does This Paper Address?

Image restoration tasks—such as removing noise, increasing resolution, or filling in missing pixels—are "inverse problems." Because a single degraded image could have originated from many different clean images, we need an image prior to help us choose the most likely "natural" reconstruction.

Historically, researchers used handcrafted priors like Total Variation (TV), which assumes images are mostly smooth. Recently, the field shifted toward deep learning, where priors are "learned" from millions of example images. This paper asks a fundamental question: How much of a deep network's success comes from the data it sees, and how much comes from the mathematical structure of the network itself?

Methods

The authors propose a paradigm shift. Instead of training a network on a large dataset to map corrupted images to clean ones, they treat the network as a parameterization of the image itself.

  1. Initialization: Take a degraded image $x_0$ and a randomly initialized generator network $f_\theta$ (typically a U-Net or "hourglass" architecture).
  2. Fixed Input: Feed the network a fixed, random code tensor $z$.
  3. Optimization: Use gradient descent to update the network weights $\theta$ so that the output $f_\theta(z)$ matches the degraded image $x_0$.
  4. The Prior in Action: Because CNN architectures are naturally biased toward capturing low-level image statistics (like self-similarity and local patterns), the network fits the "natural" parts of the image much faster than it fits the noise or artifacts.

For tasks like denoising, the authors use early stopping. They stop the optimization when the network has captured the signal but hasn't yet had time to "memorize" the random noise.

The DIP optimization process: weights are updated iteratively to minimize a task-dependent loss between the network output and the degraded measurement.

Datasets

Since DIP requires no pre-training, datasets were used only for evaluation and comparison against state-of-the-art methods:

  • Super-resolution: Evaluated on the standard Set5 and Set14 datasets.
  • Denoising: Tested on a standard dataset of 9 colored images with additive Gaussian noise, as well as a benchmark for real-world non-Gaussian noise.
  • Inpainting: Evaluated on the standard dataset from [25] (referenced in the paper).

Key Insights and Ideas

  • High Noise Impedance: The most striking finding is that CNNs are "reluctant" to fit noise. As shown in Figure 4, a network converges to a natural image much faster than it converges to white noise or a scrambled version of the same image. The architecture itself acts as a filter that prefers signal over noise.
  • Architecture as Regularization: The "prior" isn't learned from data; it is handcrafted through the choice of layers, strides, and skip connections. The authors found that deeper architectures are generally beneficial, but skip connections—while great for recognition—can sometimes be detrimental to the prior's strength in restoration.
  • Bridging the Gap: DIP connects two worlds: the "learning-free" methods (like BM3D) that rely on self-similarity and the "learning-based" deep networks. It proves that deep networks are self-similarity engines by design.
Fig. 3: Restoration with priors — image space visualization. We consider the problem of reconstructing an image xgt from a degraded measurement x0. We distinguish two cases. Left — in the first case, exemplified by super-resolution, the ground-truth solution xgt belongs to a manifold of points x that have null energy x : E(x, x0) = 0 (shown in gray) and optimization can land on a point x∗still quite far from xgt (purple curve). Adding a conventional prior R(x) tweaks the energy so that the optimizer x∗is closer to the ground truth (green curve). The deep image prior has a similar effect, but achieves it by tweaking the optimization trajectory via re-parametrization, often with better results than conventional priors. Right — in the second case, exemplified by denoising, the ground truth xgt has non-zero cost E(xgt, x0) > 0. Here, if run for long enough, fitting with deep image prior will obtain a solution with near zero cost quite far from xgt. However, often the optimization path will pass close to xgt, and an early stopping (here at time t3) will recover good solution. Below, we show that deep image prior often helps for problems of both types.

Key Results

  • Super-resolution: DIP produces much cleaner results with sharper edges than standard bicubic upsampling. While it doesn't quite beat networks trained on massive datasets, it closes most of the gap using only the information in a single image.
  • Inpainting: The method is surprisingly effective at filling large holes and removing text overlays. It uses the surrounding textures to interpolate the missing regions, behaving similarly to traditional patch-based methods but with the multi-scale power of a CNN.
  • Denoising: DIP achieves PSNR scores competitive with established non-learned methods like CBM3D and Non-local Means.
Fig. 1: Super-resolution using the deep image prior. Our method uses a randomly-initialized Con- vNet to upsample an image, using its structure as an image prior; similar to bicubic upsampling, this method does not require learning, but produces much cleaner results with sharper edges. In fact, our results are quite close to state-of-the-art super-resolution methods that use ConvNets learned from large datasets. The deep im- age prior works well for all inverse problems we could test.

Limitations and Future Work

  • Computational Cost: Unlike a pre-trained model that can restore an image in milliseconds, DIP requires a fresh optimization process for every image, taking several minutes on a GPU.
  • Lack of Semantic Knowledge: Because the network has never seen other images, it cannot "hallucinate" complex semantic details. For example, it can't reconstruct a missing eye in a portrait because it doesn't know what an eye looks like; it only knows about textures and gradients.
  • Hyperparameter Sensitivity: The results can be sensitive to the choice of learning rate and the specific iteration at which optimization is stopped.

The authors suggest that future work could involve hybrid approaches that combine the structural prior of DIP with a weak learned prior to get the best of both worlds.

Summary updated

BibTeX
@inproceedings{ulyanov2018deep,
  author = {Dmitry Ulyanov and Andrea Vedaldi and Victor S. Lempitsky},
  title = {{Deep Image Prior}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00984},
}
Figure