Sparse Phase Retrieval via Truncated Amplitude Flow
Gang Wang, Liang Zhang, Georgios B. Giannakis, Mehmet Akcakaya, Jie Chen
Introduction
In many fields of engineering and applied physics, one is often tasked with reconstructing a signal from the (squared) modulus of its Fourier (or any linear) transform, which is also known as phase retrieval (PR). Such a task arises naturally in applications such as X-ray crystallography, microscopy and ptychography, astronomy, optics, as well as array and coherent diffraction imaging. In these settings, optical sensors and detectors such as charge-coupled device cameras, photosensitive films, and human eyes record only the intensity (squared magnitude) of a light wave, but not the phase. In particular, solution to PR has led to significant accomplishments, including the discovery in of DNA double helical structure from diffraction patterns, and the characterization of aberrations in the Hubble Space Telescope from measured point spread functions . Due to the absence of Fourier phase information, the one-dimensional (D) Fourier PR problem is generally ill-posed. It can be shown that there are in fact exponentially many non-equivalent solutions beyond trivial ambiguities in the D PR case . A common approach to overcome this ill-posedness is exploiting additional information on the unknown signal such as non-negativity, sparsity, or bounded magnitude . Other viable solutions consist of introducing redundancy into the measurement transforming system to obtain over-sampled and short-time Fourier transform (STFT) measurements , random Gaussian measurements , and coded diffraction patterns using structured illumination and random masks , just to name a few; see for contemporary reviews on the theory and practice of PR.
Past PR approaches can be mainly categorized as convex and nonconvex ones. A popular class of nonconvex approaches is based on alternating projections including the seminal works by Gerchberg-Saxton and Fienup , , , alternating minimization with re-sampling (AltMinPhase) , (stochastic) truncated amplitude flow (TAF) and the Wirtinger flow (WF) variants , trust-region , (stochastic) proximal linear algorithms . See also related discussion in . Specifically, the WF variants and the trust-region methods minimize the intensity (modulus squared) based empirical risk, while AltMinPhase and TAF cope with the amplitude-based empirical risk. The convex alternatives either rely on the so-called Shor’s relaxation to obtain semidefinite programming (SDP) based solvers abbreviated as PhaseLift and PhaseCut , or solve a basis pursuit problem in the dual domain as in PhaseMax .
Building on TWF and TAF, we propose here a novel sparse PR algorithm, which we call SPARse Truncated Amplitude flow (SPARTA). Adopting an amplitude-based nonconvex formulation of the sparse PR, SPARTA emerges as a two-stage iterative solver: In stage one, the support of the underlying signal is estimated first using a well-justified rule, and subsequently power iterations are employed to obtain an initialization restricted on the recovered support; while the second stage successively refines the initialization with a series of hard thresholding based truncated gradient iterations. Both stages are conceptually simple, scalable, and fast. Moreover, we demonstrate that SPARTA recovers any -sparse -dimensional real-/complex-valued signal () with minimum nonzero entries (in modulus) on the order of from measurements. Further, to reach any given solution accuracy , SPARTA incurs total computational cost of , which improves upon the state-of-the-art by at least a factor of . This computational advantage is paramount in large-scale imaging applications, where the basis factor is large, typically on the order of millions. In addition, SPARTA can be shown robust to additive noise of bounded support. Extensive simulated tests demonstrate markedly improved exact recovery performance (in the absence of noise), robustness to noise, and runtime speedups relative to the state-of-the-art algorithms.
The remainder of this paper is organized as follows. Section 2 reviews the sparse PR problem, and also presents known necessary and sufficient conditions for uniqueness. Section 3 details the two stages of the proposed algorithm, whose analytic performance analysis is the subject of Section 4. Finally, numerical tests are reported in Section 5, proof details are given in Section 6, and conclusions are drawn in Section 7. Supporting lemmas are presented in the Appendix.
Sparse Phase Retrieval
where are the observed modulus data, and are known sensing (feature) vectors. The sparsity level is assumed known a priori for theoretical analysis purposes, while numerical implementations with unknown values will be tested as well. Alternatively, the data can be given in modulus squared (i.e., intensity) form as . It has been established that generic It is not within the scope of this paper to explain the meaning of generic vectors. Interested readers are referred to . (e.g., random Gaussian) measurements as in (1) are necessary and sufficient for uniquely determining a -sparse solution in the real case, and are sufficient in the complex case . In the noisy scenario, stable compressive PR requires at least as many measurements as the corresponding compressive sensing problem since one is tasked with even less (no phase) information. Hence, stable sparse PR requires at least measurements as in compressive sensing . Indeed, it has been recently demonstrated that generic measurements also suffice for stable PR of a real-valued sparse signal .
Adopting the least-squares criterion (which coincides with the maximum likelihood one when assuming additive white Gaussian noise in (1)), the problem of recovering a -sparse solution from phaseless quadratic equations naturally boils down to that of minimizing the ensuing amplitude-based empirical loss function
Broadening the TAF approach and the sparse PR solver TWF, the present paper puts forth a novel iterative solver for (2) that proceeds in two stages: S1) a sparse orthogonality-promoting initialization is obtained by solving a PCA-type problem with a few simple power iterations on an estimated support of the underlying sparse signal; and, S2) successive refinements of the initialization are effected by means of a series of truncated gradient iterations along with a hard thresholding per iteration to set all entries to zero, except for the ones of largest magnitudes. The two stages are presented in order next.
Algorithm: Sparse Truncated Amplitude Flow
Hereafter, assume to be the fixed solution to problem (1) with ; otherwise, one can replace by , but the constant phase shift shall be dropped for notational brevity. Assume also without loss of generality that , which will be justified and generalized shortly.
When no sparsity is exploited, the orthogonality-promoting initialization proposed in starts with a popular folklore in stochastic geometry: High-dimensional random vectors are almost always nearly orthogonal to each other . The key idea is approximating the unknown by another vector that is most orthogonal to a carefully chosen subset of sensing vectors , where is some index set to be designed next. It is well known that the orthogonality between two vectors can be interpreted by their squared normalized inner-product . Intuitively, the smaller the squared normalized inner-product between two vectors and is, the more orthogonal they are to each other. Upon evaluating the inner-product between each and for all pairs , one can construct to include the indices of ’s corresponding to the -smallest squared normalized inner-products with . Therefore, it is natural to approximate by computing a vector most orthogonal to the set of sensing vectors . Mathematically, this is equivalent to solving a smallest eigenvector (defined to be the eigenvector associated with the smallest eigenvalue of a symmetric positive definite matrix) problem
The smallest eigenvalue (eigenvector) problem can be solved by fully eigen-decomposing the matrix at computational complexity (assuming to be on the order of ). Upon defining to be the complement of the set in , one can rewrite Recall that for i.i.d. standard Gaussian sensing vectors , the following concentration result holds
The problem at hand is NP-hard in general due to the combinatorial constraint. Additionally, it can not be readily converted to a (sparse) PCA problem since the number of data samples available is much smaller than the signal dimension , thus hardly validating the non-asymptotic result in (5). Although at much higher computational complexity than power iterations, semidefinite relaxation could be applied . Instead of coping with (7) directly, we shall take another route and develop our sparse orthogonality-promoting initialization approach to obtain a meaningful sparse initialization from the given limited number of measurements.
which will be shown to recover exactly with high probability provided that measurements are taken and the minimum nonzero entry is on the order of . The latter is postulated to guarantee such a separation between quantities having their indices belonging or not belonging to the support set. It is worth stressing that when , hence largely reducing the sampling size and also the computational complexity.
1.2 Orthogonality-promoting intialization
2 Thresholded Truncated Gradient Stage
Upon obtaining a sparse orthogonality-promoting initialization , our approach to solving (2) boils down to iteratively refining by means of a series of -sparse hard thresholding based truncated gradient iterations, namely,
for some to be determined shortly, where are the given modulus data.
Main Results
The proposed sparse phase retrieval solver is summarized in Algorithm 1 along with default parameter values. Given data samples generated from i.i.d. sensing vectors, the following result establishes the statistical convergence rate for the proposed SPARTA algorithm in the case of .
which holds with probability exceeding provided that . Here, , and are some numerical constants.
Proof of Theorem 1 is deferred to Section 6 with supporting lemmas presented in the Appendix. We typically take parameters , and , which will also be validated by our analytical results on the feasible region of the step size. The constant depends on , on and , and and rely on both and . In the case of PR of unstructured signals, existing algorithms such as TAF ensures exact recovery when the number of measurements is about the number of unknowns , i.e., . Hence, it would be more meaningful to study the sample complexity bound for PR of sparse signals when . To this end, the sample complexity bound in Theorem 1 can often be rewritten as for some constant and large enough . Regarding Theorem 1, three observations are in order.
SPARTA recovers exactly any -sparse signal of minimum nonzero entries on the order of when there are about magnitude-only measurements, which coincides with the number of measurements required by the state-of-the-art algorithms such as CPRL , sparse AltMinPhase , and TWF .
SPARTA converges at a linear rate to the globally optimal solution with convergence rate independent of the signal dimension . In other words, for any given solution accuracy , after running at most SPARTA iterations (11), the returned estimate is at most away from the global solution .
SPARTA enjoys a low computational complexity of , and incurs a total runtime of to produce an -accurate solution. The runtime is proportional to the time taken to read the data . To see this, recall that the support recovery incurs computational complexity , power iterations incur complexity , and thresholded truncated gradient iterations have complexity ; hence, leading to a total complexity on the order of . Given the linear convergence rate, SPARTA takes a total runtime of to achieve any fixed solution accuracy .
Besides exact recovery guarantees in the case of noiseless measurements, it is worth mentioning that SPARTA exhibits robustness to additive noise, especially when the noise has bounded values. Numerical results using SPARTA for noisy sparse PR will be presented in the ensuing section.
Numerical Experiments
The first experiment evaluates the exact recovery performance of various approaches in terms of the empirical success rate over independent Monte Carlo trials, where the true signals are real-valued. A success is declared for a trial provided that the returned estimate incurs a relative mean-square error defined as
less than . We fixed the signal dimension to , and the sparsity level at , while the number of measurements increases from to by . Curves in Fig. 1 clearly demonstrate markedly improved performance of SPARTA over state-of-the-art alternatives. Even when the exact number of nonzero elements in , namely, is unknown, setting in Algorithm 1 as an upper limit on the theoretically affordable sparsity level (e.g., when is about according to Theorem 1) works well too (see the magenta curve, denoted SPARTA0). Comparison between TAF and SPARTA shows the advantage of exploiting sparsity in sparse PR settings.
The second experiment examines how SPARTA recovers real-valued signals of various sparsity levels given a fixed number of measurements. Figure 2 depicts the empirical success rate versus the sparsity level , where equals the exact number of nonzero entries in . The results suggest that with a total of phaseless quadratic equations, TAF representing the state-of-the-art for PR of unstructured signals fails, as shown by the blue curve. Although TWF works in some cases, SPARTA significantly outperforms TWF, and it ensures exact recovery of sparse signals with up to about nonzero entries (due to existence of polylog factors in the sample complexity), hence justifying our analytical results.
The next experiment validates the robustness of SPARTA against additive noise present in the data. Postulating the noisy Gaussian data model , we generated i.i.d. Gaussian noise according to , . From Fig. 1, it is clear that to achieve exact recovery, SPARTA requires about measurements, TAF about measurements, and TWF much more than . In this case, parameters were taken as , , and , with the number of measurements large enough to guarantee that TWF and TAF also work. It is worth mentioning that SPARTA can work with a far smaller number of measurements than . As seen from the plots, SPARTA performs only a few gradient iterations to achieve the most accurate solution among the three approaches, while its competing TAF and TWF require nearly an order more number of iterations to converge to less accurate estimates.
Regarding computation times, SPARTA converges much faster (both in time and in the number of iterations required to achieve certain solution accuracy) than TWF and TAF in all reported experiments. All numerical experiments were implemented with MATLAB Ra on an Intel CPU @ GHz ( GB RAM) computer.
Proof of Theorem 1
The proof of Theorem 1 will be provided in this section. To that end, we will first evaluate the performance of our sparse orthogonality-promoting initialization. The following result demonstrates that if the number of measurements is sufficiently large (on the order of within polylog factors), Step 3 of the SPARTA algorithm 1 reconstructs the support of exactly with high probability.
Appealing to Lemma 4, one establishes for all that
Taking leads to
Recalling our assumption that is on the order of , i.e., for certain constant , the following holds with probability at least for all
provided that for some absolute constant .
Now let us turn to the case of , in which is a weighted sum of random variables. According to Lemma 5, it holds that
In addition, for any constants , Chebyshev’s inequality together with the union bound confirms that
Take in (20), and in (21). Then, with probability at least , the next holds for all and
for some absolute constant depending on .
On the other hand, the rotational invariance property of Gaussian distributions asserts that , in which the symbol means that terms involved on both sides of the equality enjoy the same distribution. Since the variables are sub-exponential, an application of Bernstein’s inequality produces the tail bound
for any , which can also be easily verified with a direct tail probability calculation from the tail probability of standard Gaussian distribution. Choosing with gives rise to
which holds true with probability at least for all . Putting results in (6) and (24) together leads to
which holds with probability exceeding for large enough .
The last inequality taken collectively with (19) suggests that there exists an event on which with probability at least , the following holds
provided that such that with . ∎
provided that for some absolute constant .
The proof can be directly adapted from [9, Proposition 1], and hence it is omitted.
Take a constant learning parameter . There exists an event of probability at least , such that on this event, starting from an initial estimate satisfying , successive estimates by Step 5 with in Algorithm 1 obey
if . Here, are certain universal constants.
It is worth noting that Step 5 of Algorithm 1 guarantees linear convergence to the globally optimal solution as long as the initial guess lands within a small neighborhood of , regardless of whether estimates exactly the support of or not.
To start, let us establish a bit of notation, which will be used only in this section. Define for all
The proof of Lemma 3 will be mainly based on results in , and , . The former helps establishing the so-termed local regularity condition that will be key to proving linear convergence of iterative optimization algorithms to the globally optimal solutions of nonconvex optimization problems , while the latter two offer a standard approach to dealing with the nonlinear hard thresholding operator involved in our proposed SPARTA algorithm. Specifically, based on the triangle inequality of the vector -norm, one arrives at
where in the last inequality the first term denotes the distance of to the estimate before hard thresholding, and the second denotes the distance between and its best -approximation because has cardinality equal to . The optimality of implies . Plugging the latter inequality back into (29) yields
Define the estimation error . Rewriting and substituting
, where and are disjoint sets of combined cardinality not exceeding ;
.
Having elaborated on the properties of RIP matrices, we are ready to derive bounds for the three terms on the right hand side of (31). Regarding the first term, it is easy to check that
where are the largest and smallest eigenvalue of , respectively. Specifically, the two inequalities in (33) are obtained based on the definition of the induced -norm (i.e., the spectral norm) of matrices.
Next, we estimate the eigenvalues and . Using P2, it clearly holds that
due to . For the same reason, it further holds that
Taking the results in (34) and (35) into (33) yields
For the second term in (31), since , the next holds with high probability
in which the first inequality arises again from the definition of the matrix -norm. The last inequality can be obtained by appealing to P4.
Consider now the last term in (31). For convenience, define with , and also with for . Upon rearranging terms, the induced matrix -norm definition implies that
Plugging the inequality in (6) into (39) leads to
Substituting the three bounds in (6), (6), and (6) into (31), we obtain
over disjoint sets and . To ensure linear convergence, it suffices to choose a constant step size such that
For sufficiently small and , one has , which justifies the linear convergence result in (14). ∎
Theorem 1 can be directly implied by combining Lemmas 1, 2, and 3. In fact, Lemma 1 ensures exact support recovery so that the orthogonality-promoting initialization can be effectively performed on the equivalent dimension-reduced data samples. Lemma 2 guarantees that the sparse initialization attained based on the dimensional-reduced data lands within a small neighborhood of the globally optimal solution (this region is also termed basin of attraction; see e.g., , , for more details) with high probability. Starting from any point within the basin of attraction, Lemma 3 confirms that successive iterates of SPARTA will be dragged toward the globally optimal solution at a linear rate provided that the step size and the truncation threshold are appropriately selected.
Concluding Remarks
This paper contributed a sparse truncated amplitude flow (SPARTA) algorithm for solving PR of sparse signals. SPARTA initially recovers the support of the underlying sparse signal, which is used to obtain a sparse orthogonality-promoting initialization using power iterations restricted on the estimated support; subsequently, SPARTA refines the initialization by means of hard thresholding based truncated gradient iterations to ensure overall simplicity and scalability. SPARTA enjoys provably exact recovery as soon as the number of noiseless Gaussian measurements exceeds a certain bound. In contrast to state-of-the-art algorithms, such as AltMinPhase and TWF, SPARTA requires the same sample size but can afford lower computational complexity. Simulated tests corroborate markedly improved recovery performance and computational efficiency of SPARTA relative to existing alternatives.
Appendix: Supporting Lemmas
for , and the cumulative distribution function of the standard normal distribution , where one can take .
Let be i.i.d. Gaussian random variables with zero mean and variance , and be nonnegative. The following inequality holds for any
The proof of Lemma 6 can be found in [56, Page 30], which generalizes the result of [19, Lemma 3].
Acknowledgment
The authors would like to thank the anonymous reviewers for their thorough review and all constructive comments and suggestions, which helped to improve the quality of the manuscript. The authors also thank Prof. Xiaodong Li for sharing the codes of the thresholded Wirtinger flow algorithm.