MetaDIP: Accelerating Deep Image Prior with Meta Learning

Kevin Zhang, Mingyang Xie, Maharshi Gor, Yi-Ting Chen, Yvonne Zhou, Christopher A. MetzlerarXiv 2022 · DOI

Abstract

Deep Image Prior (DIP) provides a compelling framework for solving inverse problems without pre-training on large datasets, instead leveraging the inductive bias of convolutional neural network architectures. Despite its effectiveness, DIP is hindered by high computational costs due to the thousands of iterations required for convergence from random initialization. We introduce MetaDIP, a method that employs Model-Agnostic Meta-Learning (MAML) to discover an optimized weight initialization. Our approach achieves a 10x speedup in reconstruction time while maintaining or improving image quality across diverse tasks such as denoising, compressive sensing, and phase retrieval.

Introduction

Inverse problems in imaging, such as denoising, deblurring, and compressive sensing, are traditionally solved using either hand-crafted priors or supervised deep learning. Deep Image Prior (DIP) emerged as a middle ground, using an untrained CNN as a prior. By optimizing network weights to fit a single degraded image, DIP avoids the need for massive training sets.

However, the "cold start" problem—initializing with random weights for every new image—makes DIP impractical for real-time use. MetaDIP addresses this by replacing random initialization with a meta-learned starting point, significantly reducing the number of gradient descent steps needed for high-quality reconstruction.

Methodology

The core of MetaDIP is the application of Model-Agnostic Meta-Learning (MAML) to the DIP framework. This creates a nested optimization structure:

  • The Inner Loop: Performs the standard DIP process, fitting the network weights to reconstruct a specific degraded image.
  • The Outer Loop: The meta-learning stage, which evaluates the inner loop's performance and updates the global initialization parameters ($\theta$). This ensures that future inner loop optimizations start from a point closer to the manifold of natural images.
The MetaDIP framework illustrating the meta outer loop for learning weight initialization across multiple tasks and the DIP fitting inner loop for specific image reconstruction.

Beyond the meta-learning framework, the authors introduce several technical enhancements:

  1. Fourier Feature Mapping: By appending Fourier features to the input, the model overcomes "spectral bias," allowing it to capture high-frequency details more effectively.
  2. Task and Class Agnosticism: The learned initialization is not tied to a specific task. A model meta-trained on face denoising can be successfully applied to natural landscape compressive sensing.
  3. Optimization Refinements: The inclusion of learned per-step learning rates and a Total Variation (TV) penalty further stabilizes the fitting process.

Experimental Results

MetaDIP was evaluated using the CelebA dataset for meta-training and a diverse set of natural image patches for testing generalization.

Convergence and Speed

The most significant result is the dramatic reduction in iterations. While vanilla DIP typically requires 1,000 or more iterations to converge, MetaDIP achieves comparable or superior results in just 50 iterations. This translates to a roughly 10x speedup in wall-clock time.

Convergence comparison between meta-initialization and random initialization, showing significantly faster error reduction for MetaDIP.

Performance Metrics

In denoising tasks ($\sigma=25$), MetaDIP reached a PSNR of 30.4 dB on natural patches in 0.89 seconds. Vanilla DIP required 21.6 seconds to reach 30.1 dB. In more complex non-linear problems like Compressive Phase Retrieval, MetaDIP outperformed specialized alternatives like MetaSIREN (28.7 dB vs 25.7 dB) while maintaining a significant speed advantage over traditional ADMM-based methods.

Discussion and Conclusion

MetaDIP demonstrates that the "smart prior" learned through meta-learning is highly portable. A weight initialization learned on one domain (e.g., faces) acts as a powerful general-purpose natural image prior. This breaks the traditional speed-quality tradeoff in DIP-based methods, providing a fast, accurate, and user-friendly tool for various inverse problems without the need for extensive hyperparameter tuning.

While the meta-training phase is computationally intensive, the resulting initialization offers immediate benefits for inference. Future work may explore the limits of domain generalization, particularly in specialized fields like medical or satellite imaging where the gap from natural images is larger.

Summary updated

BibTeX
@misc{zhang2022metadip,
  author = {Kevin Zhang and Mingyang Xie and Maharshi Gor and Yi-Ting Chen and Yvonne Zhou and Christopher A. Metzler},
  title = {{MetaDIP: Accelerating Deep Image Prior with Meta Learning}},
  year = {2022},
  eprint = {2209.08452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.08452},
}
Figure