Introduction
Solving inverse problems—recovering an original signal from corrupted or partial measurements—is a fundamental challenge in computer vision. Tasks such as inpainting, denoising, and super-resolution require effective priors to navigate the ill-posed nature of these problems. A prominent modern approach leverages pre-trained Generative Adversarial Networks (GANs) as priors, a process known as GAN inversion. However, standard inversion techniques often suffer from a "representation gap," where the desired image lies outside the generator's range, and "optimization hardness," where gradient descent becomes trapped in poor local minima.
Methodology: Intermediate Layer Optimization (ILO)
To address these limitations, this work introduces Intermediate Layer Optimization (ILO). Rather than treating the generator as a fixed mapping from a low-dimensional latent space, ILO progressively expands the optimization target through the network's layers.
Progressive Expansion and $l_1$ Constraints
The algorithm begins by optimizing the initial latent code. Upon convergence, it shifts the optimization to subsequent intermediate layers. This layer-wise approach increases the expressivity of the model, allowing it to capture finer details necessary to satisfy observed measurements. To prevent overfitting and maintain image realism, ILO employs $l_1$ ball constraints. By restricting the search to a small radius around the manifold induced by the previous layer, the method allows for sparse, meaningful deviations while regularizing against noisy artifacts.
Stochastic Noise Addition (SNA)
For denoising tasks, the authors introduce Stochastic Noise Addition (SNA). By injecting controlled Gaussian noise during optimization, the generator is discouraged from fitting to measurement noise, resulting in cleaner, more natural reconstructions.
Theoretical and Practical Considerations
ILO is supported by theoretical proofs demonstrating improved error bounds for compressed sensing relative to the CSGM framework. From a practical standpoint, the method supports structured sensing using partial circulant matrices, which are significantly more memory-efficient and faster to compute via Fast Fourier Transforms (FFT) than traditional random Gaussian matrices.
Experimental Evaluation
The efficacy of ILO was evaluated using StyleGAN-2 pre-trained on the FFHQ dataset, with testing performed on CelebA-HQ, LSUN Cats, and various web images.
Key Results
ILO demonstrates significant improvements over state-of-the-art baselines like PULSE and CSGM:
- Inpainting: ILO can reconstruct recognizable faces even when 99% of pixels are unobserved.
- Super-resolution: In 16x upscaling tasks, ILO achieved a reconstruction error 1.65x lower than PULSE, notably avoiding the "hallucination" of incorrect identities.
- Denoising: At standard noise levels ($\sigma=25$), ILO outperformed the best CSGM baseline by a factor of 1.8x.
- Compressed Sensing: Using random projections with only 5% of image data, ILO's performance was double that of previous methods.
Discussion and Future Work
While ILO sets a new benchmark for unsupervised reconstruction, it faces certain challenges. The selection of hyperparameters, such as $l_1$ radii and optimization steps per layer, currently requires manual tuning. Additionally, as a gradient-based method for a non-convex problem, it does not guarantee global optimality. Future work may focus on automating hyperparameter selection and further reducing the computational overhead, which currently stands at approximately 30–60 seconds per image on a high-end GPU. Finally, while ILO shows reduced bias compared to methods like PULSE, it remains dependent on the diversity of the underlying pre-trained generator.
Summary updated