Abstract
Phase retrieval is the problem of reconstructing images from magnitude-only measurements. In many real-world applications the problem is underdetermined. When training data is available, generative models allow optimization in a lower-dimensional latent space, hereby constraining the solution set to those images that can be synthesized by the generative model. However, not all possible solutions are within the range of the generator. Instead, they are represented with some error. To reduce this representation error in the context of phase retrieval, we first leverage a novel variation of intermediate layer optimization (ILO) to extend the range of the generator while still producing images consistent with the training data. Second, we introduce new initialization schemes that further improve the quality of the reconstruction. With extensive experiments on the Fourier phase retrieval problem and thorough ablation studies, we can show the benefits of our modified ILO and the new initialization schemes. Additionally, we analyze the performance of our approach on the Gaussian phase retrieval problem.
Introduction
Phase retrieval is a fundamental inverse problem encountered in scientific imaging domains such as X-ray crystallography and astronomy. The objective is to reconstruct an image from the magnitude of its Fourier transform, a process that is inherently underdetermined because phase information is lost during measurement.
Traditional approaches leverage generative models as priors to constrain the solution space. By searching for images within the range of a pre-trained generator (e.g., a GAN), the problem becomes more tractable. However, these models often suffer from "representation error," where the generator's fixed range cannot perfectly capture the nuances of every target image. This paper introduces PRILO (Phase Retrieval with Intermediate Layer Optimization) to overcome these limitations by optimizing the internal layers of the generative model.
Methodology
The core of PRILO is a three-step optimization process designed to extend the generator's range while maintaining image realism.
The PRILO Workflow
- Forward Optimization (Step A): Instead of optimizing only the initial latent code $z_0$, PRILO allows intermediate representations ($z_i$) to move outside the generator's standard range. This flexibility helps the model better fit the observed magnitude data.
- Back-projection (Step B): To prevent the model from generating unrealistic artifacts, a back-projection step finds a latent code $z_0$ that maps as closely as possible to the optimized intermediate state, anchoring the solution to the natural image manifold.
- Refinement (Step C): A final refinement step optimizes the latent code from the back-projected starting point. This step is critical for handling the non-linearities inherent in phase retrieval, significantly boosting reconstruction quality (PSNR).
Initialization Strategies
To mitigate the risk of converging to local minima, the authors propose two initialization schemes:
- Magnitude-Informed Initialization (MII): This unsupervised approach samples numerous random codes and selects the one with the lowest error in the measurement space. This is justified by the high correlation ($\rho = 0.91$) between measurement-space error and image-space error.
- Learned Initialization (LI): A supervised approach where an encoder is trained to predict the optimal starting latent code directly from the magnitude measurements.
Results and Evaluation
The performance of PRILO was benchmarked on datasets including MNIST, CelebA, and FFHQ using various architectures such as DCGAN and StyleGAN.
The experimental results demonstrate that PRILO-MII and PRILO-LI consistently outperform classical algorithms (HIO, ER) and unsupervised baselines (DPR). Notably, on the CelebA dataset using StyleGAN, PRILO-LI achieved a PSNR of 23.34, surpassing the supervised PRCGAN baseline (22.20). Furthermore, on simpler datasets like MNIST, the unsupervised PRILO method even outperformed specialized supervised models, highlighting its robustness and efficiency.
Conclusion
PRILO offers a powerful framework for phase retrieval by combining intermediate layer optimization with a novel refinement step and informed initialization. While the method requires careful hyperparameter tuning and carries a higher computational cost than simple end-to-end models, its ability to reduce representation error while maintaining image consistency sets a new benchmark for unsupervised phase retrieval. Future research will focus on improving the reconstruction of high-frequency details in high-resolution, non-oversampled settings.
Summary updated