PhaseMax: Convex Phase Retrieval via Basis Pursuit
Tom Goldstein, Christoph Studer
I Introduction
Here, denotes the real-part of the inner product between the vectors and . The main idea behind PhaseMax is to find the vector that is most aligned with the approximation vector and satisfies a convex relaxation of the measurement constraints in (1).
Our main goal is to develop sharp lower bounds on the probability with which PhaseMax succeeds in recovering the true signal , up to an arbitrary phase ambiguity that does not affect the measurement constraints in (1). By assuming noiseless measurements, one of our main results is as follows.
be the angle between the true vector and the approximation , and define the constant
In words, if and , then PhaseMax will succeed with non-zero probability. Furthermore, for a fixed signal dimension and an arbitrary approximation vector that satisfies , i.e., one that is not orthogonal to the vector , we can make the success probability of PhaseMax arbitrarily close to one by increasing the number of measurements . As we shall see, our recovery guarantees are sharp and accurately predict the performance of PhaseMax in practice.
We emphasize that the convex formulation (PM) has been studied by several other authors, including Bahmani and Romberg , whose work appeared shortly before our own. Related work will be discussed in detail in Section I-C.
It is quite intriguing that the following Basis Pursuit problem
with for and This observation not only reveals a fundamental connection between phase retrieval and sparse signal recovery, but also implies that Basis Pursuit solvers can be used to recover the signal from the phase-less measurements in (1).
I-B A Brief History of Phase Retrieval
Phase retrieval is a well-studied problem with a long history and enjoys widespread use in applications such as X-ray crystallography , microscopy , imaging , and many more . Early algorithms, such as the Gerchberg-Saxton or Fienup algorithms, rely on alternating projection to recover complex-valued signals from magnitude-only measurements. The papers sparked new interest in the phase retrieval problem by showing that it can be relaxed to a semidefinite program. Prominent convex relaxations include PhaseLift and PhaseCut . These methods come with recovery guarantees, but require the problem to be lifted to a higher dimensional space, which prevents their use for large-scale problems. Several authors recently addressed this problem by presenting efficient methods that can solve large-scale semidefinite programs without the complexity of representing the full-scale (or lifted) matrix of unknowns. These approaches include gauge duality methods and sketching methods .
More recently, a number of non-convex algorithms have been proposed (see e.g., ) that directly operate in the original signal dimension and exhibit excellent empirical performance. The algorithms in come with recovery guarantees that mainly rely on accurate initializers, such as the (truncated) spectral initializer , the Null initializer , the orthogonality-promoting method , or more recent initializers that guarantee optimal performance (see Section VI for additional details). These initializers enable non-convex phase retrieval algorithms to succeed, given a sufficiently large number of measurements; see for more details on the geometry of such non-convex problems.
I-C Related Work on Non-Lifting Convex Methods
Because of the extreme computational burden of traditional convex relaxations (which require “lifting” to a higher dimension), a number of authors have recently been interested in non-lifting convex relaxations for phase retrieval. Shortly before the appearance of this work, the formulation (PM) was studied by Bahmani and Romberg . Using methods from machine learning theory, the authors derived bounds on the recovery of signals with and without noise. The results in are stronger than those presented here in that they are uniform with respect to the approximation vector but weaker in the sense that they require significantly more measurements.
Several authors have studied PhaseMax after the initial appearance of this work. An alternative proof of accurate signal recovery was derived using measure concentration bounds in . Compressed sensing methods for sparse signals , and corruption-robust methods for noisy signals have also been presented. The closely related non-lifting relaxation BranchHull has also been proposed for recovering signals from entry-wise product measurements .
Finally, we note that recent works have proved tight asymptotic bounds for PhaseMax in the asymptotic limit, i.e., where is constant and . The authors of derive an exact asymptotic bound of the performance of PhaseMax, and a related non-rigorous analysis was given in . It was also shown that better signal recovery guarantees can be obtained by iteratively applying PhaseMax. The resulting method, called PhaseLamp, was analyzed in .
I-D Contributions and Paper Outline
In contrast to algorithms relying on semidefinite relaxation or non-convex problem formulations, we propose PhaseMax, a novel, convex method for phase retrieval that directly operates in the original signal dimension. In Section II, we establish a deterministic condition that guarantees uniqueness of the solution to the (PM) problem. We borrow methods from geometric probability to derive sharp lower bounds on the success probability for real- and complex-valued systems in Section III. Section V generalizes our results to a broader range of random measurement ensembles and to systems with measurement noise. We show in Section VI that randomly chosen approximation vectors are sufficient to ensure faithful recovery, given a sufficiently large number of measurements. We numerically demonstrate the sharpness of our recovery guarantees and showcase the practical limits of PhaseMax in Section VII. We conclude in Section VIII.
I-E Notation
II Uniqueness Condition
The measurement constraints in (1) do not uniquely define a vector. If is a vector that satisfies (1), then any vector for also satisfies the constraints. In contrast, if is a solution to (PM), then with will not be another solution. In fact, consider any vector in the feasible set of (PM) with . By choosing , we have
which implies that given such a vector one can always increase the objective function of (PM) simply by aligning with the approximation (i.e., modifying its phase so that is real valued). The following definition makes this observation rigorous.
A vector is said to be aligned with another vector , if the inner product is real-valued and non-negative.
From all the vectors that satisfy the measurement constraints in (1), there is only one that is a candidate solution to the convex problem (PM), which is also the solution that is aligned with For this reason, we adopt the following important convention throughout the rest of this paper.
The true vector denotes a solution to (1) that is aligned with the approximation vector
There is an interesting relation between the convex formulation of PhaseMax and the semidefinite relaxation method PhaseLift . Recall that the set of solutions to any convex problem is always convex. However, the solution set of the measurement constraints (1) is invariant under phase rotations, and thus non-convex (provided it is non-zero). It is therefore impossible to design a convex problem that yields this set of solutions. PhaseMax and PhaseLift differ in how they remove the phase ambiguity from the problem to enable a convex formulation. Rather than trying to identify the true vector PhaseLift reformulates the problem in terms of the quantity which is unaffected by phase rotations in Hence, PhaseLift removes the rotation symmetry from the solution set, yielding a problem with a convex set of solutions. PhaseMax does something much simpler: it pins down the phase of the solution to an arbitrary quantity, thus removing the phase ambiguity and restoring convexity to the solution set. This arbitrary phase choice is made when selecting the phase of the approximation
We are now ready to state a deterministic condition under which PhaseMax succeeds in recovering the true vector The result applies to the noiseless case, i.e., , . In this case, all inequality constraints in (PM) are active at The noisy case will be discussed in Section V-B.
The true vector is the unique maximizer of (PM) if, for any unit vector that is aligned with the approximation
Suppose the conditions of this theorem hold, and consider some candidate solution in the feasible set for (PM) with Without loss of generality, we assume to be aligned with Then, the vector is also aligned with , and satisfies
Since is a feasible solution for (PM), we have
But and so
Now, if then the unit-length vector satisfies for all which contradicts the hypothesis of the theorem. It follows that and ∎
Theorem 2 has an intuitive geometrical interpretation. If is an optimal point and is an ascent direction, then one cannot move in the direction of starting at without leaving the feasible set. This condition is met if there is an such that and both lie on the same side of the plane through the origin orthogonal to the measurement vector
III Preliminaries: classical sphere covering problems and geometric probability
To derive sharp conditions on the success probability of PhaseMax, we require a set of tools from geometric probability. Many classical problems in geometric probability involve calculating the likelihood of a sphere being covered by random “caps,” or semi-spheres, which we define below.
Consider the set the unit sphere embedded in Given a vector the cap centered at with central angle is defined as
This cap contains all vectors that form an angle with of less than radians. When we have a semisphere centered at which is simply denoted by
We say that a collection of caps covers the entire sphere if the sphere is contained in the union of the caps. Before we can say anything useful about when a collection of caps covers the sphere, we will need the following classical result, which is often attributed to Schläfli . Proofs that use simple induction methods can be found in . For completeness, we briefly include a short proof in Appendix A.
Classical results in geometric probability study the likelihood of a sphere being covered by random caps with centers chosen independently and uniformly from the sphere’s surface. For our purposes, we need to study the more specific case in which caps are only chosen from a subset of the sphere. While calculating this probability is hard in general, it is quite simple when the set obeys the following symmetry condition.
We say that the set is symmetric if, for all we also have
We are now ready to prove a general result that states when the sphere is covered by random caps.
This is the probability of turning up or more heads when flipping fair coins.
Consider the following two-step process for constructing the set First, we sample vectors independently and uniformly from Note that, because has positive measure, it holds with probability 1 that any subset of vectors will be linearly independent.
Second, we define where are i.i.d. Bernoulli variables that take value or with probability We can think of this second step as randomly “flipping” a subset of uniform random vectors. Since is symmetric and is sampled independently and uniformly, the random vectors also have an independent and uniform distribution over This construction may seem superfluous since both and have the same distribution, but we will see below that this becomes useful.
Several papers have studied the probability of covering the sphere using points independently and uniformly chosen over the entire sphere. The only aspect that is unusual about Lemma 2 is the observation that this probability remains the same if we restrict our choices to the set provided is symmetric. We note that this result was observed by Gilbert in the case and we generalize it to any using a similar argument.
We now present a somewhat more complicated covering theorem. The next result considers the case where the measurement vectors are drawn only from a semisphere. We consider the question of whether these vectors cover enough area to contain not only their home semisphere, but another nearby semisphere as well.
Because the mapping is onto and (piecewise) isometric, will be uniformly distributed over the half sphere whenever are independently and uniformly distributed over the entire sphere.
Consider the “hourglass” shaped, symmetric set
As noted in Lemma 2, the expression on the right is the chance of turning up more than heads when flipping fair coins.
The probability is then given by
The expression on the right hand side is the probability of getting more than heads when one fair coin is flipped for every measurement that lies in .
Using Hoeffding’s inequality, we obtain the following lower bound
Lemma 3 contains most of the machinery needed for the proofs that follow. In the sequel, we prove a number of exact reconstruction theorems for (PM). Most of the results rely on short arguments followed by the invocation of Lemma 3.
We finally state a result that bounds from below the probability of covering the sphere with caps of small central angle. The following Lemma is a direct corollary of the results of Burgisser, Cucker, and Lotz in . A derivation that uses their results is given in Appendix B.
IV Recovery Guarantees
Using the uniqueness condition provided by Theorem 2 and the tools derived in Section III, we now develop sharp lower bounds on the success probability of PhaseMax for noiseless real- and complex-valued systems. The noisy case will be discussed in Section V-B.
The true vector will be the unique maximizer of (PM) if
Using this observation, we can develop the following lower bound on the success probability of PhaseMax for real-valued systems.
where and
IV-B The Complex Case
We now prove Theorem 1 given in Section I, which characterizes the success probability of PhaseMax for phase retrieval in complex-valued systems. For clarity, we restate our result in shorter form.
where and
By Theorem 2, the true signal will be the unique maximizer of (PM) if
Let us bound the probability of this event. Consider the set We now claim that (11) holds whenever
Theorems 1 and 3 guarantee exact recovery for a sufficiently large number of measurements provided that In the case our theorems guarantee convergence to (which is also a valid solution) for sufficiently large . Our theorems only fail for large if which happens with probability zero when the approximation vector is generated at random. See Section VI for more details.
V Generalizations
Our theory thus far addressed the idealistic case in which the measurement vectors are independently and uniformly sampled from a unit sphere and for noiseless measurements. We now extend our results to more general random measurement ensembles and to noisy measurements.
The theorems of Section IV require the measurement vectors to be drawn independently and uniformly from the surface of the unit sphere. This condition can easily be generalized to other sampling ensembles. In particular, our results still hold for all rotationally symmetric distributions. A distribution is rotationally symmetric if the distribution of is uniform over the sphere when For such a distribution, one can make the change of variables and then apply Theorems 1 and 3 to the resulting problem. Note that this change of variables does not change the feasible set for (PM), and thus does not change the solution. Consequently, the same recovery guarantees apply to the original problem without explicitly implementing this change of variables. We thus have the following simple corollary.
The results of Theorem 1 and Theorem 3 still hold if the samples are drawn from a multivariate Gaussian distribution with independent and identically distributed (i.i.d.) entries.
A multivariate Gaussian distribution with i.i.d. entries is rotationally symmetric, and thus the change of variables yields an equivalent problem with measurements sampled uniformly from the unit sphere. ∎
What happens when the distribution is not spherically symmetric? In this case, we can still guarantee recovery, but we require a larger number of measurements. The following result is, analogous to Theorem 1, for the noiseless complex case.
The ratio of the non-uniform density (15) to the uniform density (14) is
V-B Noisy Measurements
We now analyze the sensitivity of PhaseLift to the measurement noise For brevity, we focus only on the case of complex-valued signals. To analyze the impact of noise, we re-write the problem (PM) in the following equivalent form:
Here, is the (unknown) true magnitude measurement and We are interested in bounding the impact that these measurement errors have on the solution to (PM). Note that the severity of a noise perturbation of size depends on the (arbitrary) magnitude of the measurement vector For this reason, we assume the vectors have unit norm throughout this section.
We will begin by proving results only for the case of non-negative noise. We will then generalize our analysis to the case of arbitrary bounded noise. The following result gives a geometric characterization of the reconstruction error.
Our goal is to put a bound on the magnitude of the recovery error We start by reformulating the constraints in (24) to get
Since is non-negative, we have
Now suppose that From (26) we have
Using this result, we can bound the reconstruction error in the noisy case. For brevity, we present results only for the complex-valued case.
We now claim that the conditions of Theorem 5 hold whenever
We now consider the case of noise that takes on both positive and negative values. In this case, we bound the error by converting the problem into an equivalent problem with non-negative noise, and then apply Theorem 6.
Suppose the vectors in (19) are normalized to have unit length, and that for all This assumption is required so that . Define the following measures of the noise
Choose some error bound and define the angle Then, we have the bound
Consider the “shrunk” version of problem (19)
for some real-valued “shrink factor” Clearly, if is aligned with and satisfies for all then is aligned with and satisfies We can now transform the noisy problem (19) into an equivalent problem with non-negative noise by choosing
We then have and so problem (30) is equivalent to problem (19). However, the noise in problem (30) is non-negative, and thus we can apply Theorem 6. This theorem requires the constant for the shrunken problem, which is now
The solution to the shrunk problem (30) satisfies with probability where If this condition is fulfilled, then we have
Theorem 7 requires the noise to be sufficiently small so that the measurements are non-negative, and the PhaseMax formulation is feasible. A natural extension that avoids this caveat is to enforce constraints with a hinge penalty rather than a hard constraint. In addition, it is possible to achieve better noise robustness in this case. This direction was studied in .
VI How to Compute Approximation Vectors?
There exist a variety of algorithms that compute approximation vectorsApproximation vectors are also known as initialization or anchor vectors., such as the (truncated) spectral initializer or corresponding optimized variants , the Null initializer , the orthogonality-promoting method , or least-squares methods . We now show that even randomly generated approximation vectors guarantee the success of PhaseMax with high probability given a sufficiently large number of measurements. We then show that more sophisticated methods guarantee success with high probability if the number of measurements depends linearly on
Consider the angle between two random vectors sampled independently and uniformly from the unit sphere. Then, the expected magnitude of the cosine distance between the two random vectors satisfies
We first consider the real case. The quantity is simply the sample correlation between two random vectors, whose distribution function is given by
where is the beta function and . Hence, the expectation of the magnitude of the inner product is given by
The integral in the numerator was studied in [50, Eq. 31] and evaluates to Plugging this expression into (33), and using the identity we get
for the real case. Plugging this bound on the expected value for into Theorem 3, we see that, for an average randomly-generated approximation vector (one with ), the probability of exact reconstruction goes to rapidly as goes to infinity, provided that the number of measurements satisfies for any For complex-valued signals and measurement matrices, this becomes
Our results indicate that the use of random approximation vectors requires measurements rather than the required by other phase retrieval algorithms with other initialization methods, e.g., the ones proposed in (see also Section VII). Hence, it may be more practical for PhaseMax to use approximation vectors obtained from more sophisticated initialization algorithms.
VI-B Spectral Initializers
Spectral initializers were first used in phase retrieval by , and enable the computation of an approximation vector that exhibits strong theoretical properties . This class of initializers was analyzed in detail in , and developed an optimal spectral initializer for a class of problems including phase retrieval.
Fix some and consider a measurement process with measurement vectors sampled from a Gaussian distribution. Then, the spectral initializers in are known to deliver an initializer with for some positive Equivalently, there is some accuracy parameter . By combining this result with Theorem 1, we see that spectral initializers enable PhaseMax to succeed for large with high probability provided that measurements are used for signal recoveryOur results assume the initial vector is independent of the measurement vectors. The total number of measurements needed is thus for initialization and recovery combined.; a number of measurements that is linear in . Note that similar non-asymptotic guarantees can be achieved for finite using other results on spectral initializers (e.g., Prop. 8 in ), although with less sharp bounds.
In Section VII-B, we investigate the numerical value of and make quantitative statements about how many measurements are required when using a spectral initializer. As we will see there, PhaseMax requires roughly noiseless Gaussian measurements in theoryThe constants that appear in the bounds were approximated using stochastic numerical methods, and were not obtained exactly using analysis., and somewhat fewer measurements in practice.
VII Discussion
This section briefly compares our theoretical results to that of existing algorithms. We furthermore demonstrate the sharpness of our recovery guarantees and show the practical limits of PhaseMax.
Table I compares our noiseless recovery guarantees in a complex system to that of PhaseLift , truncated Wirtinger flow (TWF) , and truncated amplitude flow (TAW) . We also compare to the recovery guarantee provided for PhaseMax using classical machine learning methods in . Since AltMinPhase requires an online measurement model that differs significantly from the other algorithms considered here, we omit a comparison. We see that PhaseMax requires the same sample complexity (number of required measurements) as compared to PhaseLift, TWF, and TAW, when used together with the truncated spectral initializer . While the constants , , and in the recovery guarantees for all of the other methods are generally very large, our recovery guarantees contain no unspecified constants, explicitly depend on the approximation factor , and are surprisingly sharp. We next demonstrate the accuracy of our results via numerical simulations.
VII-B Tightness of Recovery Guarantees
We now investigate the tightness of the recovery guarantees of PhaseMax using both experiments and theory. First, we compare the empirical success probability of PhaseMax in a noiseless and complex-valued scenario with measurement vectors taken independently and uniformly from the unit sphere. All experiments were obtained by using the implementations provided in the software library PhasePack . This software library provides efficient implementations of phase retrieval methods using fast adaptive gradient solvers . We declare signal recovery a success whenever the relative reconstruction error satisfies
We compare empirical rates of success to the theoretical lower bound in Theorem 1. Figure 2 shows results for and measurements, where we artificially generate an approximation for different angles measured in degrees. Clearly, our theoretical lower bound accurately predicts the real-world performance of PhaseMax. For large and large , the gap between theory and practice becomes extremely tight. We furthermore observe a sharp phase transition between failure and success, with the transition getting progressively sharper for larger dimensions .
Next, we investigate the tightness of the recovery guarantees when an initial vector is chosen using the spectral initialization method . Using analytical formulas, the authors of calculate the accuracy of their proposed spectral initializer for real-valued signal estimation from Gaussian measurements with large . They find that, when measurements are used for spectral estimation, the initializer and signal have a squared cosine similarity of over This corresponds to an accuracy parameter of and PhaseMax can recover the signal exactly with measurements. This is within a factor of 2 of the information-theoretic lower bound for real-valued signal recovery, which is measurements.
Note that our analysis of PhaseMax assumes that the measurements used for recovery are statistically independent from those used by the initializer. For this reason, our theory does not allow us to perform signal recovery by “recycling” the measurements used for initialization. While we do not empirically observe any change in behavior of the method when the initialization measurements are used for recovery, the above reconstruction bounds formally require measurements ( for initialization, plus for recovery). The bounds in are uniform with respect to the initializer, and thus enable measurement recycling (although this does not result in tighter bounds for the overall number of measurements because the required constants are larger).
Finally, we would like to mention that asymptotically exact performance bounds for PhaseMax have recently been derived in , and tighter bounds for non-lifting phase retrieval have been shown for the method PhaseLamp, which repeatedly uses PhaseMax within an iterative process.
VII-C Experimental Results
We compare PhaseMax to other algorithms using synthetic and empirical datasets. The implementations used here are publicly available as part of the PhasePack software library . This software library contains scripts for comparing different phase retrieval methods, including scripts for reproducing the experiments shown here.
We briefly compare PhaseMax to a select set of phase retrieval algorithms in terms of relative reconstruction error with Gaussian measurements. We emphasize that this comparison is by no means intended to be exhaustive and serves the sole purpose of demonstrating the efficacy and limits of PhaseMax (see, e.g., for more extensive phase retrieval algorithm comparisons). We compare the Gerchberg-Saxton algorithm , the Fienup algorithm , truncated Wirtinger flow , and PhaseMax—all of these methods use the truncated spectral initializer . We also run simulations using the semidefinite relaxation (SDR)-based method PhaseLift implemented via FASTA ; this is, together with PhaseCut , the only convex alternative to PhaseMax, but lifts the problem to a higher dimension.
Figure 3 reveals that PhaseMax requires larger oversampling ratios to enable faithful signal recovery compared to non-convex phase-retrieval algorithms that operate in the original signal dimension. This is because the truncated spectral initializer requires oversampling ratios of about six or higher to yield sufficiently accurate approximation vectors that enable PhaseMax to succeed.
VII-C2 Comparisons Using Empirical Data
The PhasePack library contains scripts for comparing phase retrieval algorithms using synthetic measurements as well as publicly available real datasets. The datasets contain measurements obtained using the experimental setup described in , in which a binary mask is imaged through a diffusive medium.
Figure 4 shows reconstructions from measurements obtained using two different test images. Both images were acquired using phaseless measurements from the same measurement operator . Reconstructions are shown for the Gerchberg-Saxton , Wirtinger flow , and truncated Wirtinger flow methods. We also show results of the two convex methods PhaseLift (which lifts the problem dimension) and PhaseMax (the proposed non-lifting relaxation). For each algorithm, Figure 4 shows the recovered images and reports the relative measurement error All phase retrieval algorithms were initialized using a variant of the spectral method proposed in .
We find that the Gerchberg-Saxton algorithm outperforms all other considered methods by a small margin (in terms of measurement error) followed by the Wirtinger flow. On this dataset, measurements seem to be quite valuable, and the truncated Wirtinger flow method (with default truncation parameters as described in ) performs slightly worse than the original Wirtinger flow, which uses the full dataset. PhaseMax produces results that are visually comparable to that of Wirtinger flow, but with slightly higher relative measurement error.
VII-D Advantages of PhaseMax
While PhaseMax does not achieve exact reconstruction with the lowest number of measurements, it is convex, operates in the original signal dimension, can be implemented via efficient solvers for Basis Pursuit, and comes with sharp performance guarantees that do not sweep constants under the rug (cf. Figure 2). The convexity of PhaseMax enables a natural extension to sparse phase retrieval or other signal priors (e.g., total variation or bounded infinity norm) that can be formulated with convex functions. Such non-differentiable priors cannot be efficiently minimized using simple gradient descent methods (which form the basis of Wirtinger or amplitude flow, and many other methods), but can potentially be solved using standard convex solvers when combined with the PhaseMax formulation.
VIII Conclusions
We have proposed a novel, convex phase retrieval algorithm, which we call PhaseMax. We have provided accurate bounds on the success probability that depend on the signal dimension, the number of measurements, and the angle between the approximation vector and the true vector. Our analysis covers a broad range of random measurement ensembles and characterizes the impact of general measurement noise on the solution accuracy. We have demonstrated the sharpness of our recovery guarantees and studied the practical limits of PhaseMax via simulations.
There are many avenues for future work. Developing a computationally efficient algorithm for solving PhaseMax (or the related PhaseLamp procedure) accurately and for large problems is a challenging problem. An accurate analysis of more general noise models is left for future work.
Appendix A Proof of Lemma 1
We leave it to the reader to verify that (5) satisfies this recurrence relation and base case.
Appendix B Proof of Lemma 4
In this section, we prove Lemma 4. This Lemma is a direct corollary of the following result of Burgisser, Cucker, and Lotz . For a complete proof of this result, see Theorem 1.1 of , and the upper bound on the constant “C” given in Proposition 5.5.
While Theorem 8 provides a bound on the formulation of this bound does not provide any intuition of the scaling of or its dependence on and For this reason, we derive Lemma 4, which is a weaker but more intuitive result. We restate Lemma 4 here for clarity.
Let us simplify the result of Theorem 8. If we assume then Hoeffding’s inequality yields
Next, we derive a lower bound as follows:
We have used the fact that for and also the “Wallis ratio” bound . Finally, we plug in the inequality . We now have
Now we simplify the integral. Using the identity which holds for we can convert each term in the integrand into an exponential. We do this first with and then with to obtain
We then apply the Cauchy-Schwarz inequality to get
Replacing the integral with this bound and using the definition yields the result.