PR-DAD: Phase Retrieval Using Deep Auto-Decoders

Shai Dekel, Leon Gugel

Abstract

Phase retrieval is a fundamental inverse problem in optics and imaging, where the goal is to reconstruct an image from the magnitude of its Fourier transform. Because phase information is lost during measurement, the problem is inherently ill-posed. This paper introduces PR-DAD (Phase Retrieval Using Deep Auto-Decoders), a novel deep learning framework that eschews direct phase prediction in favor of mapping Fourier magnitudes to a sparse latent representation. By utilizing pre-trained decoders as structural priors, PR-DAD achieves state-of-the-art reconstruction quality, particularly on complex datasets such as CelebA, where it significantly outperforms existing generative and iterative methods.

Introduction

In many physical imaging systems—ranging from X-ray crystallography to astronomical imaging—sensors like CCDs can only record the intensity (magnitude) of a light wave, losing the phase information entirely. This "phase retrieval" problem is notoriously difficult because the phase contains the majority of an image's structural information. Mathematically, the problem is ill-posed: an infinite number of images can correspond to a single measured Fourier magnitude.

Classical approaches, such as the Gerchberg-Saxton or Hybrid Input-Output (HIO) algorithms, rely on iterative alternating projections. While foundational, these methods are often sensitive to noise and struggle to recover complex, non-sparse natural images. Recent deep learning interventions have attempted to regress the phase directly or use Generative Adversarial Networks (GANs) to constrain the solution space. However, direct phase regression is often unstable due to the periodic, "wrapped" nature of phase values. PR-DAD addresses these challenges by reframing the problem as a latent code discovery task.

The PR-DAD Framework

The core innovation of PR-DAD is the decision to predict a sparse representation rather than the Fourier phase. The architecture is designed to translate frequency-domain data into a latent space that a pre-trained decoder can interpret as a coherent image.

Architectural Components

  1. Fourier Magnitude to Encoder Representation Subnet: Unlike standard computer vision models that use Convolutional Neural Networks (CNNs) for initial feature extraction, PR-DAD employs a Multi-Layer Perceptron (MLP). The authors argue that because Fourier coefficients lack the local spatial correlations found in pixels, the translation invariance of CNNs is counterproductive in the frequency domain. The MLP effectively "digests" the global magnitude data into a compressed latent vector.
  2. Enhancement Subnet: This optional convolutional block refines the latent representation, allowing the model to capture finer structural nuances before the final reconstruction.
  3. Deep Auto-Decoder: This component serves as a powerful structural prior. By using a pre-trained decoder (which could be a deep neural network or a fixed mathematical transform like a Haar Wavelet Packet), the system is forced to find a representation that corresponds to a "valid" image within the target domain. During training, this decoder is typically kept fixed, ensuring the preceding subnets learn to speak the decoder's "language."

Training Objectives

To optimize the network, the authors utilize a composite loss function:

  • Rotation-Invariant MSE: Fourier magnitudes are identical for an image and its 180-degree rotation (conjugate symmetry). This loss ensures the model is not penalized for recovering a flipped version of the ground truth.
  • Cycle Consistency: This ensures that the Fourier magnitude of the reconstructed image matches the original input magnitude.
  • $l_1$ Sparsity Regularization: This encourages the model to find the most efficient representation in the latent space, aiding generalization.

Experimental Results

PR-DAD was evaluated against several benchmarks, including MNIST, EMNIST, Fashion-MNIST, KMNIST, and the CelebA face dataset. The model demonstrated superior performance across all metrics, with the most striking results appearing in the CelebA experiments.

On the CelebA dataset (resized to 64x64), PR-DAD achieved a Peak Signal-to-Noise Ratio (PSNR) of 51.9661. For context, previous state-of-the-art methods like PRCGAN and DeepPhaseCut typically achieved PSNR values in the 25–27 range. Qualitatively, PR-DAD reconstructions are characterized by sharp edges and recognizable facial features, whereas competing methods often produce blurry or structurally distorted outputs.

Key Insights

  • Frequency Domain Strategy: The use of MLPs for frequency data highlights a critical distinction in deep learning for physics: the architectural inductive biases must match the data domain. CNNs are for pixels; MLPs are often better suited for the global nature of the Fourier transform.
  • Priors as Constraints: By treating the decoder as a fixed prior, the model effectively restricts the search space to the manifold of natural images, preventing the "mathematically correct but visually nonsensical" solutions common in classical phase retrieval.
  • Handling Ambiguity: The integration of rotation-invariant loss functions is a practical solution to the inherent symmetries of the Fourier transform, allowing the model to converge more reliably.

Conclusion and Future Work

PR-DAD represents a significant advancement in solving ill-posed inverse problems by combining the flexibility of deep learning with the stability of pre-trained structural priors. While the current model requires supervised training on specific image classes, it sets a new benchmark for reconstruction fidelity.

Future research will focus on transitioning to unsupervised learning regimes, where the model can learn from magnitude data alone without ground-truth images. Additionally, the authors aim to apply PR-DAD to real-world scientific imaging, such as X-ray diffraction and ptychography, where the underlying image structures are significantly more complex than standard benchmark datasets.

Summary updated

BibTeX
@inproceedings{dekel2022pr,
  author = {Shai Dekel and Leon Gugel},
  title = {{PR-DAD: Phase Retrieval Using Deep Auto-Decoders}},
  booktitle = {ICFSP},
  year = {2022},
  doi = {10.1109/icfsp55781.2022.9924739},
}
Figure