Manuscript Offprint
arXiv:2610.17316Deeply unrolled alternating projections for phase retrieval
Abstract
Deep unrolling methods for inverse problems augment traditional reconstruction algorithms with learned priors to improve their performance. These methods have been developed under the implicit assumption that the geometry of the measurement operator does not change between training and deployment; when this is no longer the case, the quality of obtained reconstructions can degrade significantly. In this paper, we argue that this is not an inherent limitation of the deep unrolling paradigm and can be mitigated by a careful choice of the underlying iterative algorithm. We propose a deep unrolling framework for the phase retrieval problem that augments the alternating projections method with a learned denoising step. Our method obtains high-quality reconstructions without the need for retraining in settings where conventional model-based alternatives struggle, such as when the dynamic range of the measurement operator changes significantly at test time.
1 Introduction
The phase retrieval problem—namely, reconstructing a signal from phaseless measurements—has diverse applications in X-ray crystallography, optics and remote sensing. Formally, the unknown signal is observed indirectly via magnitude-only measurements satisfying:
where are known design vectors and indicates the complex magnitude operator. Common sampling schemes include coded diffraction patterns, masked Fourier measurements resulting in an isometric measurement operator :
where denotes the (unitary) DFT, is the elementwise (Hadamard) product, and are masks satisfying
1.2 Our contribution
The success of the deep unrolling paradigm hinges on the implicit assumption that the measurement operator is fixed across train and test time. Nevertheless, practice dictates that imaging optics can be recalibrated, inducing a form of distribution shift (e.g., by introducing new sensors). In such cases, end-to-end learned methods can apply miscalibrated updates that overfit to the geometry of the measurement operator at train time [9]. Even simple instantiations of the paradigm, including learnable step sizes [10], can suffer under this setting.
In this paper, we argue that this brittleness is not intrinsic to deep unrolling but rather a consequence of the choice of which iterative algorithm to unroll. In particular, we show that the classical alternating projections method [11, 12], embedded in the deep unrolling framework with a RED-type regularizer [13], automatically adapts to the conditioning of the underlying measurement operator A at test time in regimes where other algorithms such as proximal gradient degrade sharply. Our proposal is motivated by the equivalence of alternating projections with preconditioned (sub)gradient descent, described in detail in Section 2.1.
Distribution Shift. To model the shift between measurement operators at train and test time, we introduce a variant of the CDP measurement scheme that depends on a scalar that controls the dynamic range of the mask magnitudes (and, as such, the conditioning of the sensing operator):
In particular, our experiments fix a particular at train time and use datasets with at test time. Note that the resulting measurement operator is no longer isometric: its condition number is bounded by
Throughout, we write A for the matrix induced by ; the particular value of will be clear from the context:
(6) where denotes the orthogonal DFT matrix.
1.3 Notation and basic constructions
We write for the Euclidean inner product, for the Euclidean norm, and for the weighted Euclidean norm induced by a positive-definite matrix . We write for the unit sphere and for the complex conjugate of (interpreted elementwise when is not scalar), and for the adjoint (Hermitian transpose) of a complex matrix . We write for the Moore-Penrose pseudoinverse of a matrix and for its spectral norm. The proximal operator of a function is defined by
2 Method
To recover , we aim to minimize the sum of a data-fidelity loss, such as the mean-squared error, and a regularizer :
Following the regularization-by-denoising (RED) paradigm [13, 14], we use a deep denoiser and set
Solving problems of the form , such as the problem (8), is commonly accomplished by proximal (sub)gradient methods. These methods iteratively minimize a local model of the objective function that comprises the sum of and the first-order Taylor expansion of , under the assumption that is easily computable:
writing for the (Clarke) subdifferential [15] of at . When regularization involves a neural network, as in algorithm unrolling, evaluating becomes less straightforward. In the regularization-by-denoising framework, the authors of [16] provide a fixed-point characterization of the proximal mapping that lends itself to a simple iterative approximation, but does not extend to generalized proximal mappings (i.e., where the standard Euclidean norm in (7) is replaced with an arbitrary weighted Euclidean norm ) that are well-suited to preconditioned proximal gradient methods. The forthcoming section addresses this setting.
2.1 Alternating projections with a RED denoiser
In this section, we show how to embed a RED-type denoiser within the alternating projections method. Our starting point is the observation (see, e.g., [1, Section 4]) that each step of the alternating projections method is equivalent to preconditioned gradient descent with preconditioner :
where interpreted elementwise (with ), and . Given the regularizer, we use a standard proximal update:
(12)
Under the standard local homogeneity and strong passivity conditions (cf. [13, Section 3.1]), the optimality condition of (12) reduces to the nonlinear equation
Rearranging the terms in (13) and using the identity (11) we obtain the following condition:
Treating (14) as a fixed-point equation, we propose approximating by a single step of the fixed-point iteration applied to initialized at . Note that setting recovers the approximation used in [16, Section 3.1] as a special case. We collect the complete method in Algorithm 1.
Algorithm 1 Alternating projections with RED denoising
Inputs: , ,
for do
return
▷ See (10)
2.2 Unrolled alternating projections
In this section, we describe the proposed method and architecture, termed UnrolledAP; a graphical overview is provided in Fig. 1. Given a training dataset of problem instances, , we minimize a weighted least squares loss over denoiser parameters :
Note that our training loss uses a weighted norm — as opposed to the standard Euclidean norm — since applies a whitening transform to the iterate space before computing the standard Euclidean loss. Here is the reconstruction obtained after unrolled iterations starting from the local initial point generated according to Section 2.3.
Denoiser architecture. In our implementation, we use the DRUNet architecture [17] with weight-tying (i.e., using the same set of weights in each step of Algorithm 1), following standard practice [8]. Since the DRUNet model requires a noise level parameter as input, we learn an entire “noise schedule” in an end-to-end fashion by setting
In (15), we abuse notation by using to refer to the concatenation of all learnable parameters; i.e., both the denoiser weights and the set of learnable noise levels .

Figure 1: Overview of the proposed approach (UnrolledAP): an initial estimate is iteratively refined through interleaved applications of the preconditioned gradient step and the deep denoising operator (cf. (14)). The denoiser parameters are learned by minimizing the average squared reconstruction error .
2.3 Initialization
Since the objective (8) is generally nonconvex, convergence to a global optimum is not a priori guaranteed. Our experiments employ two different initialization schemes:
• synthetic initialization: the initial signal is artificially chosen in a small ball around the ground truth to separate global search difficulties from local convergence behavior:
• constant initialization: a computationally inexpensive initialization method, suitable when has a nontrivial DC component [16], sets the initial estimate equal to
The normalization constant ensures that .
3 Experiments
To evaluate our method, we conduct synthetic experiments with measurements following (2) corrupted by Poisson shot noise, varying the conditioning of the measurement operator via (4). We use the standard Gaussian/Poisson approximation
fixing the noise level to . Our evaluation metric is the relative error measured in the Euclidean norm induced by . Results are reported as mean standard deviation. We

(a) Reconstruction error for varying number of masks K (see Section 3.1)
(b) Reconstruction error under measurement distribution shift (see Section 3.2).
(c) Reconstruction error as a function of the unrolling horizon (see Section 3.3).
Figure 2: Reconstruction performance as a function of oversampling, dynamic range, and unrolling horizon.
compare UnrolledAP against two baselines: an unrolled variant of the proximal gradient method (using a learned scalar step-size and regularizer) termed TrainedPG, and a standard PnP scheme known as prDeep [16]. We use T = 10 iterations for UnrolledAP and TrainedPG and T = 200 for prDeep, following the original recommendation. Throughout, we fix K = 4 and for the training dataset.
3.1 Effect of oversampling and conditioning
We first compare the proposed method and baselines under synthetic initialization, varying the oversampling ratio and the dynamic range factor ; the results are illustrated in Fig. 2a. Under perfect conditioning, all methods reduce the reconstruction error as increases, with UnrolledAP achieving the lowest error across . The performance gap widens as the conditioning of the operator worsens. Both baselines degrade for small and moderate , while while UnrolledAP remains robust across oversampling ratios and condition numbers.
3.2 Robustness to distribution shift
To evaluate the behavior of each method under distribution shift, we train UnrolledAP and TrainedPG using datasets with and test across . As shown in Fig. 2b, UnrolledAP maintains a nearly constant error throughout, while both prDeep and TrainedPG become more sensitive as the operator becomes ill-conditioned. As expected, TrainedPG achieves the worst generalization among the three methods.
3.3 Impact of unrolling steps T on reconstruction error
To investigate the trade-off between computational efficiency and reconstruction accuracy, we conduct an ablation study on the number of unrolled steps for , using in both train and test datasets. As shown in Fig. 2c for the case of UnrolledAP, the reconstruction error decreases rapidly as a function of , with diminishing returns for larger values ( ).
3.4 Performance across datasets
We extend our evaluation to datasets with higher spatial complexity: FashionMNIST and (grayscale) CIFAR10. As illustrated in Table 1, prDeep performs well in the well-conditioned setting (), but degrades as the test condition number increases. Similarly, TrainedPG is sensitive to ill-conditioning with larger errors at higher condition numbers. In contrast, UnrolledAP maintains low reconstruction errors across datasets and conditioning parameters. This suggests that the preconditioning inherent in the alternating projections method is essential for stable reconstruction performance.
Table 1: Reconstruction error across datasets for models trained at . All methods initialized according to (18).
| Test | Method | MNIST | FashionMNIST | CIFAR-10 |
|---|---|---|---|---|
| prDeep | ||||
| TrainedPG | ||||
| UnrolledAP | ||||
| prDeep | ||||
| TrainedPG | ||||
| UnrolledAP | ||||
| prDeep | ||||
| TrainedPG | ||||
| UnrolledAP | ||||
| prDeep | ||||
| TrainedPG | ||||
| UnrolledAP |
4 Conclusion and future work
We proposed an end-to-end unrolled alternating projections method that adapts to the geometry of the measurement operator with a learned RED-based denoiser for the phase retrieval problem. Our work naturally leads to several possible future directions: for example, this paper empirically establishes robustness of the proposed scheme to changes in the dynamic range of the measurement operator, which does not cover the variety of different types of distribution shift considered in inverse problems. Similarly, another direction would be to establish theoretical convergence guarantees under controlled shifts of the forward model. Finally, we highlight that a particularly appealing aspect of our method is that it eschews the use of explicit model adaptation schemes such as transfer learning or retraining; consequently, the design of “application-agnostic” algorithmic schemes with similar robustness properties is a promising future direction.
Acknowledgements
RW acknowledges support from NSF DMS-2023109, AFOSR DOD FA9550-24-1-0327, and the NSF-Simons AI Institute for the Sky (SkAI) (via grants NSF AST-2421845 and Simons
Foundation MPS-AI-00010513).
References
[1] Albert Fannjiang and Thomas Strohmer, “The numerics of phase retrieval,” Acta Numerica, vol. 29, pp. 125–228, 2020.
[2] Gregory Ongie, Ajil Jalal, Christopher A. Metzler, Richard G. Baraniuk, Alexandros G. Dimakis, and Rebecca Willett, “Deep learning techniques for inverse problems in imaging,” IEEE Journal on Selected Areas in Information Theory, vol. 1, no. 1, pp. 39–56, 2020.
[3] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky, “Deep image prior,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
[4] Gary Mataev, Peyman Milanfar, and Michael Elad, “Deepred: Deep image prior powered by red,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, Oct 2019.
[5] Singanallur V. Venkatakrishnan, Charles A. Bouman, and Brendt Wohlberg, “Plug-and-play priors for model based reconstruction,” in 2013 IEEE Global Conference on Signal and Information Processing, 2013, pp. 945–948.
[6] Ulugbek S. Kamilov, Hassan Mansour, and Brendt Wohlberg, “A plug-and-play priors approach for solving nonlinear imaging inverse problems,” IEEE Signal Processing Letters, vol. 24, no. 12, pp. 1872–1876, 2017.
[7] Ulugbek S Kamilov, Charles A Bouman, Gregory T Buzzard, and Brendt Wohlberg, “Plug-and-play methods for integrating physical and learned models in computational imaging: Theory, algorithms, and applications,” IEEE Signal Processing Magazine, vol. 40, no. 1, pp. 85–97, 2023.
[8] Vishal Monga, Yuelong Li, and Yonina C Eldar, “Algorithm unrolling: Interpretable, efficient deep learning for signal and image processing,” IEEE Signal Processing Magazine, vol. 38, no. 2, pp. 18–44, 2021.
[9] Davis Gilton, Gregory Ongie, and Rebecca Willett, “Model adaptation for inverse problems in imaging,” IEEE Transactions on Computational Imaging, vol. 7, pp. 661–674, 2021.
[10] Pierre Ablin, Thomas Moreau, Mathurin Massias, and Alexandre Gramfort, “Learning step sizes for unfolded sparse coding,” Advances in Neural Information Processing Systems, vol. 32, 2019.
[11] Ralph W Gerchberg, “A practical algorithm for the determination of plane from image and diffraction pictures,” Optik, vol. 35, no. 2, pp. 237–246, 1972.
[12] James R Fienup, “Phase retrieval algorithms: a comparison,” Applied optics, vol. 21, no. 15, pp. 2758–2769, 1982.
[13] Yaniv Romano, Michael Elad, and Peyman Milanfar, “The little engine that could: Regularization by denoising (RED),” SIAM Journal on Imaging Sciences, vol. 10, no. 4, pp. 1804–1844, 2017.
[14] Edward T. Reehorst and Philip Schniter, “Regularization by denoising: Clarifications and new interpretations,” IEEE Transactions on Computational Imaging, vol. 5, no. 1, pp. 52–67, 2019.
[15] Frank H. Clarke, Optimization and Nonsmooth Analysis, Society for Industrial and Applied Mathematics, 1990.
[16] Christopher Metzler, Phillip Schniter, Ashok Veeraraghavan, and Richard Baraniuk, “prDeep: Robust phase retrieval with a flexible deep network,” in Proceedings of the 35th International Conference on Machine Learning, Jennifer Dy and Andreas Krause, Eds. 10–15 Jul 2018, vol. 80 of Proceedings of Machine Learning Research, pp. 3501–3510, PMLR.
[17] Kai Zhang, Yawei Li, Wangmeng Zuo, Lei Zhang, Luc Van Gool, and Radu Timofte, "Plug-and-play image restoration with deep denoiser prior," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6360–6376, 2021.