Intermediate Layer Optimization for Inverse Problems using Deep Generative Models

Giannis Daras, Joseph Dean, Ajil Jalal, Alexandros G. Dimakis

TL;DR

This paper introduces Intermediate Layer Optimization (ILO), a new method for solving inverse problems by progressively optimizing intermediate layers of a deep generative model, rather than just the initial latent code. This allows ILO to explore a richer space of possible solutions, leading to significantly improved reconstruction quality across various tasks like inpainting, denoising, and super-resolution compared to existing state-of-the-art methods.

What Problem Does This Paper Address?

Reconstructing an original signal (like an image) from incomplete or noisy measurements is a fundamental problem in many fields, from medical imaging to signal processing. Deep generative models, such as GANs, have shown promise as powerful "priors" for these inverse problems, meaning they can guide the reconstruction towards realistic outputs. However, traditional methods often optimize only the initial latent code fed into the generator. This can limit the model's ability to reconstruct signals that lie outside the direct range of the generator's initial latent space, especially for complex or high-dimensional data. The challenge is to effectively leverage the full expressive power of deep generative models for inverse problems without sacrificing image quality or introducing unrealistic artifacts.

Methods

The core innovation is Intermediate Layer Optimization (ILO). Instead of optimizing a single latent code z that feeds into the first layer of a generator G, ILO treats the generator as a composition of layers (G = G_n o ... o G_1). The algorithm starts by optimizing the initial latent code z as in standard methods (like CSGM). However, it then progressively moves to optimize intermediate latent representations (w) that are inputs to deeper layers of the generator.

Key aspects of the ILO method:

  • Progressive Layer Optimization: The optimization process iteratively moves from earlier layers to later layers of the generator.
  • Constrained Exploration: To prevent the generator from producing unrealistic images at intermediate layers, ILO constrains the search for latent codes within a small $l_1$ ball around the manifold induced by the previous layer's solution. This balances exploring a wider range of outputs with maintaining realism.
  • Theoretical Analysis: The paper provides theoretical guarantees on sample complexity and error bounds, showing that ILO can improve upon existing bounds for compressed sensing with deep generative models, especially when the radius of the $l_1$ ball is kept small.
  • Loss Functions: The method is flexible and can incorporate various loss functions, including Mean Squared Error (MSE) and perceptual losses like LPIPS, often combining them for better results. They also introduce a Stochastic Noise Addition (SNA) technique for denoising.

Datasets

The paper primarily uses the Celeba-HQ dataset for evaluating reconstructions in tasks like inpainting, denoising, and super-resolution. They also mention using ImageNet for experiments involving a classifier as a differentiable forward operator.

Key Insights and Ideas

  • Unlocking Generator Potential: Optimizing intermediate layers of a deep generative model is crucial for solving inverse problems that require exploring a broader solution space than the initial latent code alone can provide.
  • The Power of Constrained Exploration: The $l_1$ ball constraint is key to preventing unrealistic outputs from intermediate layers, allowing for a controlled expansion of the generator's effective range.
  • Task-Specific Loss Combinations: Combining different loss functions (e.g., MSE and LPIPS) and employing techniques like SNA can significantly improve reconstruction quality for specific inverse problems.
  • Generalizability: ILO is presented as a general framework applicable to various inverse problems and generative architectures, not just specific tasks like super-resolution.

Key Results

  • State-of-the-Art Performance: ILO consistently outperforms existing methods like CSGM and PULSE across inpainting, denoising, super-resolution, and compressed sensing tasks, as evidenced by lower MSE errors and visually superior reconstructions.
  • Significant Improvement in MSE: For inpainting, ILO is shown to be 2x better in reconstruction error compared to baselines. For super-resolution, it's 1.65x better than PULSE at a 16x downscaling factor.
  • Robustness to Noise: In denoising, ILO with SNA significantly outperforms other methods, especially in noisier regimes.
  • Out-of-Distribution Generation: The method can generate images that lie outside the typical range of the pre-trained generator, demonstrated by morphing human faces into ImageNet classes using a classifier.

Limitations and Future Work

  • Hyperparameter Tuning: The paper acknowledges that tuning hyperparameters (learning rates, number of steps, and $l_1$ radii for each layer) can be challenging and may not generalize perfectly across different tasks.
  • Computational Cost: While ILO can achieve better results in fewer total steps than some baselines, it still involves iterative optimization, which can be computationally intensive.
  • Theoretical Extensions: The authors suggest future work on establishing global convergence guarantees for ILO and exploring theoretical connections between $l_1$ and $l_2$ projections.
  • Domain Expansion: Applying ILO to other domains, particularly medical imaging, is highlighted as an important future direction, requiring specialized pre-trained generative models.
  • Bias in Generative Models: The paper notes that the StyleGAN generator used has a known bias towards lighter skin tones, and while ILO can produce more diverse generations, further research is needed to address inherent biases in generative models.

Summary updated

BibTeX
@inproceedings{daras2021intermediate,
  author = {Giannis Daras and Joseph Dean and Ajil Jalal and Alexandros G. Dimakis},
  title = {{Intermediate Layer Optimization for Inverse Problems using Deep Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=NK5lxHchpk},
}
Figure