Two-subspace Projection Method for Coherent Overdetermined Systems (Technical Report)
Deanna Needell, Rachel Ward
Introduction
We consider a consistent system of linear equations of the form
Theoretical results about the rate of convergence of the Kaczmarz method have been difficult to obtain, and most are based on quantities which are themselves hard to compute . Even more importantly, the method as we have just described depends heavily on the ordering of the rows of . A malicious or unlucky ordering may therefore lead to extremely slow convergence. To overcome this, one can select the rows of in a random fashion rather than cyclically . Strohmer and Vershynin analyzed a randomized version of the Kaczmarz method that in each iteration selects a row of with probability proportional to its Euclidean norm . Thus in the standardized case we consider here, a row of is chosen uniformly at random. This randomized Kaczmarz method is described by the following pseudocode.
Note that this method as stated selects each row with replacement, see for a discussion on the differences in performance when selecting with and without replacement. Strohmer and Vershynin show that this method exhibits exponential convergence in expectation ,
Leventhal and Lewis show that for certain probability distributions, the expected rate of convergence can be bounded in terms of other natural linear-algebraic quantities. They propose generalizations to other convex systems . Recently, Chen and Powell proved that for certain classes of random matrices , the randomized Kaczmarz method convergences exponentially to the solution not only in expectation but also almost surely .
In the presence of noise, one considers the possibly inconsistent system for some error vector . In this case the randomized Kaczmarz method converges exponentially fast to the solution within an error threshold ,
where the the scaled condition number as in (1.1) and denotes the largest entry in magnitude of its argument. This error is sharp in general . Modified Kaczmarz algorithms can also be used to solve the least squares version of this problem, see for example and the references therein.
Although the convergence results for the randomized Kaczmarz method hold for any consistent system, the factor in the convergence rate may be quite small for matrices with many correlated rows. Consider for example the reconstruction of a bandlimited function from nonuniformly spaced samples, as often arises in geophysics as it can be physically challenging to take uniform samples. Expressed as a system of linear equations, the sampling points form the rows of a matrix ; for points that are close together, the corresponding rows will be highly correlated.
To be precise, we examine the coherence of a standardized matrix by defining the quantities
Note that because is standardized, . It is clear that when has high coherence parameters, is very small and thus the factor in (1.1) is also small, leading to a weak bound on the convergence. Indeed, when the matrix has highly correlated rows, the angles between successive orthogonal projections are small and convergence is stunted. We can explore a wider range of orthogonal directions by looking towards solution hyperplanes spanned by pairs of rows of . We thus propose a modification to the randomized Kaczmarz method where each iteration performs an orthogonal projection onto a two-dimensional subspace spanned by a randomly-selected pair of rows. We point out that the idea of projecting in each iteration onto a subspace obtained from multiple rows rather than a single row has been previously investigated numerically, see e.g. .
With this as our goal, a single iteration of the modified algorithm will consist of the following steps. Let denote the current estimation in the th iteration.
Select two distinct rows and of the matrix at random
Compute the translation parameter
Perform an intermediate projection:
Perform the final projection to update the estimation:
In general, the optimal choice of at each iteration of the two-step procedure corresponds to subtracting from its orthogonal projection onto the solution space , which motivates the name two-subspace Kaczmarz method. By optimal choice of , we mean the value minimizing the residual . Expanded, this reads
Using that the minimizer of is , we see that
Note that the unknown vector appears in this expression only through its observable inner products, and so is computable. After some algebra, one finds that the two-step procedure with this choice of can be re-written as follows .
Our main result shows that the two-subspace Kaczmarz algorithm provides the same exponential convergence rate as the standard method in general, and substantially improved convergence when the rows of are coherent . Figure 1 plots two iterations of the one-subspace random Kaczmarz and compares this to a single iteration of the two-subspace Kaczmarz algorithm.
Let be a full-rank standardized matrix with columns and rows and suppose . Let denote the estimation to the solution in the th iteration of the two-subspace Kaczmarz method. Then
where , and are the coherence parameters (1.3), and denotes the scaled condition number.
Remarks. 1. When or we recover the same convergence rate as provided for the standard Kaczmarz method (1.1) since the two-subspace method utilizes two projections per iteration.
2. The bound presented in Theorem 1.1 is a pessimistic bound. Even when or , the two-subspace method improves on the standard method if any rows of are highly correlated (but not equal). This is evident in the proof of Theorem 1.1 in Section 2 but we present this bound for simplicity. See also Section 4 for more details on improved convergence bounds.
Figure 2 shows the value of of Theorem 1.1 for various values of and . This demonstrates that in the best case (when ), the convergence rate is improved by at least a factor of 0.1.
2. Organization
The remainder of the report is organized as follows. In Section 2 we state and prove the main lemmas which serve as the proof of Theorem 1.1. Section 3 discusses the two-subspace Kaczmarz method in the presence of noise and shows that in this case the method exhibits exponential convergence to an error threshold. Section 4 presents further modifications of the two-subspace Kaczmarz method which provide even more improvements on the provable convergence bounds. A discussion of these methods is provided in Section 6. We conclude with numerical experiments demonstrating the improvements from our method in Section 5.
Main Results
We now present the proof of Theorem 1.1. We first derive a bound for the expected progress made in a single iteration. Since the two row indices are chosen independently at each iteration, we will be able to apply the bound recursively to obtain the desired overall expected convergence rate.
Our first lemma shows that the expected estimation error in a single iteration of the two-subspace Kaczmarz method is decreased by a factor strictly less than that of the standard randomized method.
Let denote the estimation to the solution of in the th iteration of the two-subspace Kaczmarz method. Denote the rows of by . Then we have the following bound,
where , , and denotes the scaled condition number.
We fix an iteration and for convenience refer to , , and as , , and , respectively. We will also denote .
First, observe that by the definitions of and we have
Since and are orthonormal, this gives the estimate
We wish to compare this error with the error from the standard randomized Kaczmarz method. Since we utilize two rows per iteration in the two-subspace Kaczmarz method, we compare its error with the error from two iterations of the standard method. Let and be two subsequent estimates in the standard method following the estimate , and assume . That is,
Recalling the definitions of , and , we have
Now substituting this into (2.2) and taking the orthogonality of and into account,
For convenience, let denote the error in the st iteration of two-subspace Kaczmarz. Then we have
The third equality follows from the orthonormality of and . We now expand the last term,
It thus remains to analyze the last term. Since we select the two rows and independently from the uniform distribution over pairs of distinct rows, the expected error is just the average of the error over all ordered choices . To this end we introduce the notation . Then by definitions of , and ,
We now recall that for any and ,
Setting and , we have by rearranging terms in the symmetric sum,
Since selecting two rows without replacement (i.e. guaranteeing not to select the same row back to back) can only speed the convergence, we have from (1.1) that the error from the standard randomized Kaczmarz method satisfies
Combining this with (2.4) and (2) yields the desired result.
Although the result of Lemma 2.1 is tighter, using the coherence parameters and of (1.3) allows us to present the following looser but simpler result.
Let denote the estimation to in the th iteration of the two-subspace Kaczmarz method. Denote the rows of by . Then
where , and are the coherence parameters as in (1.3), and denotes the scaled condition number.
By the assumption that , we have
In the last inequality we have employed the fact that for any ,
Combining (2) and (2.6) along with the definition of yields the claim.
Applying Lemma 2.2 recursively and using the fact that the selection of rows in each iteration is independent yields our main result Theorem 1.1.
Noisy Systems
Next we consider systems which have been perturbed by noise. The inconsistent system now becomes (the possibly inconsistent system) for some error vector . As evident from (1.2), the standard method with noise exhibits exponential convergence down to an error threshold, which is proportional to . Our main result in the noisy case is that the two-subspace version again exhibits even faster exponential convergence, down to a threshold also proportional to .
Let be a full rank matrix with rows and suppose is a noisy system of equations. Let denote the estimation to the solution in the th iteration of the two-subspace Kaczmarz method. Then
where , , and are the coherence parameters (1.3), and denotes the scaled condition number.
As in the case of our main result Theorem 1.1, this bound is not tight. The same improvements mentioned in the remarks about Theorem 1.1 can also be applied here. In particular, the dependence on seems to be only an artifact of the proof (see Section 5. Nonetheless, this result still shows that the two-subspace Kaczmarz method provides expected exponential convergence down to an error threshold which is analagous to that of the standard method. The convergence factors are again substantially better than the standard method for coherent systems.
Fix an iteration and denote by , , and the values of , , and for convenience. Let and be the values of , and as if there were noise (i.e. ). In other words, we have
Then by the definition of , we have
where denotes the next estimation from if there were no noise. Therefore, we have that
Further improvements
Next we state and prove a lemma which demonstrates even more improvements on the convergence rate from the standard method in the case where the correlations between the rows are non-negative. If this is not the case, we may alter one step of the two-subspace method to generalize the result to matrices with arbitrary correlations. This modification will decrease the factor yet again in the exponential convergence rate of the two-subspace method. We consider the noiseless case here, although results analagous to those in Section 3 can easily be obtained using the same methods.
We first define an matrix whose rows are differnces of the rows of :
Let denote the estimation to in the th iteration of the two-subspace Kaczmarz method. For indices and , set . We have the following bound,
where and .
If the correlations between the rows of are non-negative, then the constants are all non-negative and thus this lemma offers a strict improvement over Lemma 2.1. However, if this is not the case, this bound may actually be worse than that of Lemma 2.1. To overcome this, we may simply modify the two-subspace Kaczmarz algorithm so that in each iteration is non-negative (by possibly using instead of when needed for example). This modification seems necessary only for the proof, and empirical results for the modified and unmodified methods remain the same. From this point on, we will assume this modification is in place.
We again fix an iteration and for convenience refer to , , and as , , and , respectively. We will also let be the error in the st iteration.
We now analyze the last term carefully. To take expectation we must look over all combinations of choices , so to that end denote by . Since we select two rows uniformly at random (with replacement), using the definitions of , and , we have
Thus taking advantage of the symmetry in the sum we have,
We may now use the coherence parameters and from (1.3) to obtain the following simplified result.
Let denote the estimation to in the th iteration of the two-subspace Kaczmarz method. Then,
where , and and denote the scaled condition numbers of and (from (4.1), respectively.
In light of Lemma 4.1 and the proof of Lemma 2.2, it suffices to show that
By the definition (1.3) of and , we have
The last equality follows since the rows of are unit norm and equal to zero for .
Applying Lemma 4.2 recursively yields our main theorem.
Let denote the estimation to in the th iteration of the two-subspace Kaczmarz method. Then,
where , and and denote the scaled condition numbers of and (from (4.1), respectively.
Numerical Results
Next we perform several experiments to compare the convergence rate of the two-subspace randomized Kaczmarz with that of the standard randomized Kaczmarz method. As discussed, both methods exhibit exponential convergence in expectation, but in many regimes the constant factor in the exponential bound of the two-subspace method is much smaller, yielding much faster convergence.
To test these methods, we construct various types of matrices . To get a range of and , we set the entries of to be independent indentically distributed uniform random variables on some interval . Changing the value of will appropriately change the values of and . Note that there is nothing special about this interval, other intervals (both negative and positive or both) of varying widths yield the same results. For each matrix construction, both the randomized Kaczmarz and two-subspace randomized methods are run with the same initial (randomly selected) estimate. The estimation errors are computed at each iteration. Since each iteration of the two-subspace method utilizes two rows of the matrix , we call a single iteration of the standard method two iterations in the Algorithm 1.1 for fair comparison.
Figure 3 demonstrates the regime where the two-subspace method offers the most improvement over the standard method. Here the matrix has highly coherent rows, with .
Our result Theorem 1.1 suggests that as becomes smaller the two-subspace method should offer less and less improvements over the standard method. When the convergence rate bound of Theorem 1.1 is precisely the same as that of the standard method (1.1). Indeed, we see this precise behavior as is depicted in Figure 4.
Next we performed experiments on noisy systems. We used the same dimensions and construction of the matrix as well as the signal type. Then we added i.i.d. Gaussian noise with norm to the measurements . Figure 5 demonstrates the exponential convergence of the methods in the presence of noise for various values of and .
Discussion
As is evident from Theorems 1.1 and 4.3, the two-subspace Kaczmarz method provides exponential convergence in expectation to the solution of . The constant in the rate of convergence for the two-subspace Kaczmarz method is at most equal to that of the best known results for the randomized Kaczmarz method (1.1). When the matrix has many correlated rows, the constant is significantly lower than that of the standard method, yielding substantially faster convergence. This has positive implications for many applications such as nonuniform sampling in Fourier analysis, as discussed in Section 1.
We emphasize that the bounds presented in our main theorems are weaker than what we actually prove, and that even when is small, if the rows of still have many correlations, Lemmas 2.1 and 4.1 still guarantee improved convergence. For example, if the matrix has correlated rows but contains a pair of identical rows and a pair of orthogonal rows, it will of course be that and . However, we see from the proofs of our main theorems that the two-subspace method still guarantees substantial improvement over the standard method. Numerical experiments in cases like this produce results identical to those in Section 5.
It is clear both from the numerical experiments and Theorem 1.1 that the two-subspace Kaczmarz performs best when the correlations are bounded away from zero. In particular, the larger is the faster the convergence of the two-subspace method. The dependence on , however, is not as straightforward. Theorems 1.1 and 4.3 suggest that when is very close to the two-subspace method should provide similar convergence to the standard method. However, in the experiments of Section 5 we see this is not the case. This dependence on appears to be only an artifact of the proof.
As is the case for many iterative algorithms, the presence of noise introduces complications both theoretically and empirically. Theorem 3.1 guarantees expected exponential convergence to the noise threshold. For pessimistic values of , the noise threshold provided by Theorem 3.1 is greater than that of the standard method, (1.2), by a factor of . In addition, large values of produce large error thresholds in this bound. As in the noiseless case, we believe this dependence on to be an artifact of the proof.
A further and important complication that noise introduces is a semi-convergence effect, a well-known effect in Algebraic Reconstruction Technique (ART) methods (see e.g. ). For example, in Figure 5 (d), the estimation error for the two-subspace method decreases to a point and then begins to increase. It remains an open problem to determine an optimal stopping condition without knowledge of the solution .
2. Future Work
The issue of detecting semiconvergence is a very deep problem. The simple solution would be to terminate the algorithm once the residual decreases below some threshold. However, the residual decreases in each iteration even when the estimation error begins to increase. Determining the residual threshold beyond which one should terminate is not an easy problem and work in this area continues to be done.
We also hope to improve the error threshold bound of Theorem 3.1 for the two-subspace method. We conjecture that the term can be removed or improved, and that the dependence on can be reduced to in the error term of Theorem 3.1.
Finally, a natural extension to our method would be to use more than two rows in each iteration. Indeed, extensions of the two-subspace algorithm to arbitrary subspaces can be analyzed .