Faster randomized block Kaczmarz algorithms
Ion Necoara

TL;DR
This paper introduces a family of randomized block Kaczmarz algorithms optimized for distributed systems, with proven linear convergence and novel strategies for block selection and stepsize extrapolation.
Contribution
It develops a new framework for randomized block Kaczmarz algorithms with convergence guarantees and practical strategies for distributed implementation.
Findings
Algorithms converge linearly in expectation.
Performance depends on matrix conditioning and block sampling.
Resolves open problem on practical efficiency of extrapolated methods.
Abstract
The Kaczmarz algorithm is a simple iterative scheme for solving consistent linear systems. At each step, the method projects the current iterate onto the solution space of a single constraint. Hence, it requires very low cost per iteration and storage, and it has a linear rate of convergence. Distributed implementations of Kaczmarz have become, in recent years, the de facto architectural choice for large-scale linear systems. Therefore, in this paper we develop a family of randomized block Kaczmarz algorithms that uses at each step a subset of the constraints and extrapolated stepsizes, and can be deployed on distributed computing units. Our approach is based on several new ideas and tools, including stochastic selection rule for the blocks of rows, stochastic conditioning of the linear system, and novel strategies for designing extrapolated stepsizes. We prove that randomized block…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\headers
Faster randomized block Kaczmarz algorithmsI. Necoara
Faster randomized block Kaczmarz algorithms
††thanks: Submitted to the editors DATE.\fundingThis work was supported by the Executive Agency for Higher Education, Research and Innovation Funding (UEFISCDI), Romania, PNIII-P4-PCE-2016-0731, project ScaleFreeNet, no. 39/2017. The author thanks Yu. Nesterov and F. Glineur from Universite Catholique de Louvain for useful discussions on the Chebyshev-based Kaczmarz scheme.
Ion Necoara Department of Automatic Control and Systems Engineering, University Politehnica Bucharest, Splaiul Independentei 313, Bucharest, 060042, Romania (). [email protected]
Abstract
The Kaczmarz algorithm is a simple iterative scheme for solving consistent linear systems. At each step, the method projects the current iterate onto the solution space of a single constraint. Hence, it requires very low cost per iteration and storage, and it has a linear rate of convergence. Distributed implementations of Kaczmarz have become, in recent years, the de facto architectural choice for large-scale linear systems. Therefore, in this paper we develop a family of randomized block Kaczmarz algorithms that uses at each step a subset of the constraints and extrapolated stepsizes, and can be deployed on distributed computing units. Our approach is based on several new ideas and tools, including stochastic selection rule for the blocks of rows, stochastic conditioning of the linear system, and novel strategies for designing extrapolated stepsizes. We prove that randomized block Kaczmarz algorithm converges linearly in expectation, with a rate depending on the geometric properties of the matrix and its submatrices and on the size of the blocks. Our convergence analysis reveals that the algorithm is most effective when it is given a good sampling of the rows into well-conditioned blocks. Besides providing a general framework for the design and analysis of randomized block Kaczmarz methods, our results resolve an open problem in the literature related to the theoretical understanding of observed practical efficiency of extrapolated block Kaczmarz methods.
keywords:
Consistent linear systems, Kaczmarz algorithm, random blocks of rows, expected linear convergence. LaTeX
{AMS}
15A06 , 90C20, 90C06.
1 Introduction
Given a real matrix and a real vector , in this paper we search for a solution of the linear system :
[TABLE]
We assume throughout the paper that the system is consistent, that is there exists a vector for which . Let us denote the set of solutions by . Linear systems represent a modeling paradigm for solving many engineering and physics problems: partial differential equations [19], sensor networks [27], filtering [11], signal processing [7], computerized tomography [9], machine learning and optimal control [20]. In these applications it is usually sufficient to find a point which is not too far from the solution set . In particular, one chooses the error tolerance and aims to find a point satisfying , where is the projection function onto solution set , and is the standard Euclidean norm on . In the case when a randomized algorithm is used to find , which renders a random vector, one replace this condition with , where denotes the expectation with respect to the randomness of the algorithm.
1.1 Iterative methods
In practice, and are usually large so that iterative methods, e.g. the so-called row-action methods are preferred (in a row-action method only one block of rows of is used in a certain iteration [2]). One of these methods is the iterative method of Kaczmarz [10, 23, 13]. In some situations, it is even more efficient than the conjugate gradient method, which is the most popular iterative algorithm for solving large linear systems [19]. In fact Kaczmarz algorithm was implemented by Hounsfield in the very first medical scanner [9]. At each step, the Kaczmarz algorithm projects the current iterate onto the solution space of a single row and then choose the next iterate along the line connecting the current iterate and the projection, leading to the following iterative process:
[TABLE]
Usually, the stepsize is chosen in the interval . For we recover the basic Kaczmarz algorithm [10]. Note that this update rule requires low cost per iteration and storage of order . In contrast, in block Kaczmarz methods a subset of rows are used at each iteration, with and . We usually distinguish two approaches. The first variant is simply a block generalization of basic Kaczmarz algorithm, that is, we project the current iterate onto the solution space of the entire block and then choose the next iterate along the line connecting the current iterate and the projection:
[TABLE]
where denotes the pseudoinverse of . Usually, the stepsize is chosen . This is the approach followed e.g. in [5, 8, 16, 22] and we refer to this iterative process as block projection Kaczmarz algorithm. The main drawback of (3) is that each iteration is expensive, since we need to apply the pseudoinverse to a vector, or equivalently, we must solve a least-squares problem at each iteration, having cost per iteration of order , where . Moreover, it is not adequate for distributed implementations. The second variant of block Kaczmarz avoids these issues, by projecting the current estimate onto * each individual* row that forms the block matrix , and the resulting projections are averaged to form the next iterate. This leads to the following iteration:
[TABLE]
where the weights such that , and . Note that update (4) is very easy to implement on distributed computing units and it is comparable in terms of cost per iteration with the basic Kaczmarz update (2), i.e., of order . This is the scheme considered e.g. in [1, 2, 14, 21] and we also analyze it in this paper and refer to it as block Kaczmarz algorithm. Assuming , then the iterative process (2) is known to converge linearly [13, 23] (see also Section 3.3). Moreover, linear convergence results for the iteration (3), with particular stepsize , were recently derived in [8, 16, 22]. However, we are not aware of any convergence rates depending on the size of the blocks and the geometric properties of the matrix and its submatrices for the iterative process (4).
1.2 Extrapolation
It is well known that the practical performance of block Kaczmarz method (4) can be enhanced, and often dramatically so, using extrapolation. This refers to the practice of moving further along the line connecting the last iterate and the average of the projections by using a stepsize , see e.g. [1]. For example, since the iterative process (4) can be slow, in [14, 21] an extrapolated variant of (4) has been introduced with the following adaptive choice for the stepsize :
[TABLE]
where we use the notation and, for convenience, we define . From Jensen’s inequality it follows that . However, in numerical experiments, it has been observed that the extrapolation parameter from (5) can be much larger than . Moreover, the sequence generated by the iterative process (4) using the extrapolated adaptive stepsize from (5) usually converges much faster than the same sequence from (4) but generated with stepsize [1, 2, 3, 14, 21]. However, despite more than years of research on block Kaczmarz methods, the empirical success of extrapolation schemes is not supported by theory. That is, to the best of our knowledge, there is no theory explaining why these methods with require less iterations than their non-extrapolated variants .
1.3 Rows importance
While selecting the index set uniformly random appears as the most natural choice, it is likely the case that some blocks of rows of are more important than others. As an illustration, consider the scenario in which there exists such that , where denotes the block matrix of whose rows are indexed in the set . Clearly, the rows for are more important than the rows for . This is an extreme scenario: if is known, one should simply remove the non-important rows from the representation to begin with. However, even if none of the rows can be removed, it is often the case that some (blocks of) rows are more important than others in the sense that one should project on these more often. In fact, the operator theory shows that some sampling strategies of the blocks of rows are more effective than others, in terms of conditioning, see e.g. [16, 25]. We are not aware of any paper on block Kaczmarz method (4) that take importance of blocks of rows into consideration. An exception to this are some recent works [16, 8, 22], but on the block projection Kaczmarz algorithm (3) (i.e., [16, 8, 22] analyze rows importance for the method that projects the current estimate on the entire solution space of , as opposed to our algorithm (4), where we only project on the individual rows of the submatrix and then average).
1.4 Outline
In Section 2 we summarize selected key contributions of this paper. In Section 3 we present some preliminary results for Kaczmarz algorithm. In Section 4 we define general random block Kaczmarz algorithms and derive new convergence rates. In Section 5 we present an acceleration of block Kaczmarz algorithm using Chebyshev-based stepsizes and derive the corresponding convergence rates.
1.5 Notation
For , the standard Euclidean norm is denoted by . For a positive integer , let . By we denote the th column of the identity matrix . Let be a matrix. By , , , , and we denote its Frobenius norm, spectral norm, rank, th row, the smallest non-zero eigenvalue, and the largest eigenvalue, respectively. For an index set , by we denote the matrix with the rows for . The projection of a point onto a closed convex set is denoted by . A matrix is called normalized if all its rows have the Euclidean norm equal to .
2 Contributions
In this section we briefly review our key contributions and results, leaving the theoretical details to the rest of the paper.
2.1 General framework
We develop a unified framework for studying extrapolation and rows importance questions for consistent linear systems, together with randomized block Kaczmarz methods for solving such systems of linear equalities. We define a probability space . By sampling , we are choosing a block of rows from the matrix . In this way we achieve two goals at the same time:
- (i)
First, this sampling defines a general stochastic selection rule which we shall use to design a randomized block Kaczmarz method, described in Section 2.2 below.
- (ii)
Second, the choice of probability measure is a natural way to assign importance to the blocks of .
Note that the probability is a parameter playing the dual role of controlling the representation of the solution set as an intersection of blocks of rows of matrix , and defining the importance sampling procedure, which in turn defines the algorithm. For matrices with normalized rows (i.e. each row has norm ), we have identified the following stochastic conditioning parameter:
[TABLE]
as the key quantity characterizing importance sampling. In particular, our analysis reveals that the most effective importance rule is the one that makes small, i.e. there is a sampling of the blocks of the rows into well-conditioned blocks. Moreover, the operator theory literature provides detailed information about the existence and construction of such good sampling (see Section 4.3).
2.2 Algorithms
We propose a block Kaczmarz algorithmic framework that uses a randomized scheme to choose a subset of the constraints at each iteration (see Sections 4 and 5):
[TABLE]
where the weights satisfy such that . One important property of our algorithmic framework is the use of several extrapolated stepsizes , that, in general, are much larger than the stepsize usually used in the literature. More precisely, we analyze three choices for the stepsize : (i) one depending on the geometric properties of the submatrices of of the form ; (ii) one adaptive stepsize similar to (5); (iii) one stepsize using the roots of the Chebyshev polynomials. All three extrapolation procedures yield and hence they accelerate drastically the convergence of RBK algorithm. Another feature of our algorithm is that it allows to project in parallel onto several rows, thus providing flexibility in matching the implementation of the algorithm on the distributed architecture at hand. Moreover, RBK algorithm can be interpreted, for some particular choices of the weights and stepsize, as a minibatch stochastic gradient descent or block coordinate descent method applied to a specific optimization problem.
2.3 Convergence rates
To the best of our knowledge, convergence rates of Kaczmarz type methods were only previously derived for stepsizes belonging to the interval [8, 16, 22, 23]. Moreover, the existing convergence estimates for block Kaczmarz algorithm (4) do not show any dependence on the size of the blocks or on the geometric properties of the block submatrices [1, 2, 3, 14, 21]. On the other hand, our convergence analysis for the randomized block Kaczmarz (RBK) algorithm is one of the first proving an (expected) linear rate of convergence that is expressed explicitly in terms of the geometric properties of the matrix and its submatrices and of the size of the blocks. Moreover, our analysis allows to derive convergence estimates for all three choices of the extrapolated stepsize. From our knowledge, this is the first time the randomized block Kaczmarz algorithm with extrapolation ( and ) is shown to have a better convergence rate than its basic variant (2) ( and ). We have identified as the key quantity determining whether extrapolation helps or not, and how much (the smaller , the more it helps). For example, for normalized matrices, RBK with the extrapolation rules (i)–(ii) has an expected linear rate for the square distance of the iterates to the optimal solution set of the form (see Table 1):
[TABLE]
where denotes the smallest non-zero eigenvalue of . Thus, a convergence rate depending on the geometric properties of the matrix and its submatrices and on the size of the blocks . When comparing RBK with basic Kaczmarz in terms of total computational cost to achieve an solution we get:
[TABLE]
Therefore, our convergence rate also explains why and when the randomized block Kaczmarz algorithm with the constant extrapolated stepsize (16) or adaptive extrapolated stepsize (5) works better compared to its basic counterpart. In particular, the analysis reveals that a distributed implementation of extrapolated RBK algorithm is most effective when the sampling of the blocks of rows yields a partition into well-conditioned blocks, that is, the stochastic conditioning parameter is small.
For the third choice of the extrapolated stepsize, depending on the roots of Chebyshev polynomials, and for normalized matrices having we get a linear rate for the expected iterates of the form (see Table 1):
[TABLE]
where denote the smallest (largest) eigenvalue of , respectively. Note that this convergence estimate is the same as for the conjugate gradient method and it is optimal for this class of iterative schemes, as the condition number of the matrix is square rooted.
3 Preliminaries
Note that the problem of finding a solution of the linear system can be posed as a quadratic optimization problem, the so-called linear least-square problem:
[TABLE]
A more particular formulation is to find the least-norm solution of the linear system:
[TABLE]
The dual of optimization problem (8) takes also the form of a quadratic program:
[TABLE]
where the primal variable and the dual variable are related through the relation . Let us define the primal and dual objective functions and , respectively. Recall that the set of solutions is denoted and for any given we define its projection onto by .
3.1 Basic Kaczmarz algorithm
The Kaczmarz algorithm is an iterative scheme for solving the linear system that requires only cost per iteration and storage and has a linear rate of convergence. At each iteration , the algorithm selects (cyclically, randomly) a row of the linear system and does an orthogonal projection of the current estimate vector onto the corresponding hyperplane :
[TABLE]
Then, we choose the next iterate along the line connecting the current iterate and the projection. This leads to the following iteration for randomized/cyclic Kaczmarz algorithm [10, 23]:
Usually, is chosen constant in interval . For we recover basic Kaczmarz algorithm [10].
3.2 Interpretations
We can view randomized Kaczmarz algorithm, i.e. when is chosen randomly, as an optimization method for solving a specific primal or dual optimization problem. More precisely, Kaczmarz algorithm is a particular case of:
SGD (Stochastic Gradient Descent): The randomized Kaczmarz (Algorithm 1) is equivalent to one step of the stochastic gradient descent method [17] applied to the finite sum problem (7). Specifically, a component function , , is chosen randomly and a negative gradient step (having ) of this partial function in with stepsize is considered:
[TABLE]
RCD (Random Coordinate Descent): The randomized Kaczmarz (Algorithm 1) is equivalent to one step of randomized coordinate descent method [18] applied to the dual problem (9). Specifically, a negative gradient step in the random th component of (having the expression ) with stepsize is taken, yielding:
[TABLE]
where denotes the th column of the identity matrix in . We recover easily the iteration of Algorithm 1 by simply multiplying this update with and using the relation between the primal and dual variables given by . Note that in both interpretations, we need to choose a specific stepsize, in order to prove convergence, see [17, 18].
3.3 Convergence properties
It is known that Algorithm 1 converges to the minimum norm solution of when it is initialized with , but the speed of convergence is not simple to quantify, and especially, depends on the ordering of the rows [4]. The situation changes if one considers a randomization such that in each step one chooses a row of the system matrix at random, according to a probability P. In the seminal paper [23] it has been shown that sampling the rows of with probability for all and using constant stepsize , we get a linear convergence rate in expectation of the form:
[TABLE]
where denotes the minimum non-zero eigenvalue of a given matrix and . For completeness, let us derive this convergence rate. Considering the stepsize constant in the interval and using that for any a solution of , we get:
[TABLE]
Taking now the conditional expectation under the probability , we get:
[TABLE]
Further, it is well known from the Courant-Fischer theorem that for any matrix we have for all . Moreover, we have that for any . In conclusion, if we denote , we get:
[TABLE]
Using this inequality in the recurrence above and taking expectation over the entire history we get the following linear convergence rate in expectation:
[TABLE]
For the optimal choice (i.e. ) we get the simpler convergence estimate (10) derived in [23]. Note that for ill-conditioned problems, i.e. small and large, this linear convergence is very slow using a constant stepsize . In the next sections we prove that block variants of randomized Kaczmarz (Algorithm 1) with properly chosen extrapolated stepsize larger than can substantially accelerate the convergence rate (11).
3.4 Preliminary probability results
Let be a random set-valued map with values in . Any realization of this random variable, referred to as sampling and having the same notation as the random variable, is characterized by the probability distribution . We also define the probability with which an index can be found in as:
[TABLE]
Then, for any scalars , with , the following relation holds in expectation:
[TABLE]
The following examples for sampling blocks of rows of will be used in our subsequent analysis.
Uniform sampling: One natural choice is the uniform sampling of unique indexes of rows that make up , i.e. for all samplings, with fixed. For this choice of the random variable , we observe that we have a total number of possible values that can take. Thus, for the uniform sampling we have . We can also express for the uniform sampling as:
[TABLE]
Partition sampling: Another choice is the partition sampling, i.e. consider a partition of given by , and then take or for all . For example, for the first probability choice of the partition sampling, is given by:
[TABLE]
In particular, if all the subsets in the partition have the same cardinality, i.e. for all , and is normalized, then the two probabilities are the same and . Hence, . These preliminary results will help us in the convergence analysis of randomized block Kaczmarz algorithms we propose next.
4 Randomized block Kaczmarz algorithms
In this section we design new variants of randomized Kaczmarz, Algorithm (1), considering at each step a block of rows of the linear system and different choices for the stepsize. For all these methods we prove expected linear convergence rates. Note that block Kaczmarz methods have been also considered in other works, see e.g. [1, 2, 14, 21] and the references therein. Nevertheless, to our knowledge, this paper is the first one that provides an expected linear rate of convergence that depends explicitly on geometric properties of the system matrix and its submatrices . Moreover, the convergence estimates hold for several extrapolated stepsizes. In our Randomized Block Kaczmarz (RBK) algorithm, at each iteration, instead of projecting on only one hyperplane, we consider projections onto several hyperplanes and then take as a new direction a convex combination of these projections with some stepsize (see Algorithm 2).
Here is the set of indexes corresponding to the rows selected at iteration of size and P denotes the probability distribution over the collection of subsets of indexes of . Moreover, the weights are chosen positive and summing to 1. Thus, in our analysis we assume bounded weights satisfying for all and . Two simple choices for the weights are e.g. or for all . In these two particular cases we get the following compact updates:
[TABLE]
respectively, where the diagonal matrix . Several choices for the stepsize will be given in the next sections, based on over-relaxations (extrapolations), i.e. . Similarly, as for Kaczmarz algorithm, RBK (Algorithm 2) can be interpreted as:
BSGD (Batch Stochastic Gradient Descent): One iteration of RBK algorithm can be viewed as one step of the batch stochastic gradient descent [17] applied to the finite sum problem (7) when the weights are chosen in a particular fashion. Specifically, if we choose the particular weights and uniform probability, then we recover the batch stochastic gradient descent method with a certain choice of the stepsize:
[TABLE]
RBCD (Randomized Block Coordinate Descent): One iteration of RBK algorithm can be viewed as one step of the block coordinate descent method [15, 18] applied to the dual problem (9) when the weights are chosen in a particular fashion. Specifically, if we choose the particular weights , then we recover the block coordinate descent method with a certain choice of the stepsize:
[TABLE]
However, for general weights and stepsize , RBK algorithm cannot be interpreted in these ways, thus our scheme is more general. In the following, we denote , that is the projection of onto the solution set of the linear system .
4.1 Randomized block Kaczmarz algorithm with constant stepsize
In this section we investigate the convergence rate of RBK algorithm for constant extrapolated stepsize and weights for all . Thus, the iteration of RBK (Algorithm 2) becomes in this case:
[TABLE]
The weights are chosen to satisfy for all and sum to . Let us also define the following stochastic conditioning parameter depending on the geometric properties of the submatrices :
[TABLE]
Then, we consider an extrapolated constant stepsize of the form:
[TABLE]
When we choose a random variable such that all the samplings satisfy , with , then it is straightforward to see that provided that . Hence, in this case we use an over-relaxed (extrapolated) stepsize, since usually . For example, for , we get . Using (12) we also define the positive semidefinite matrix as:
[TABLE]
From our best knowledge, the choice (16) for the stepsize in the block Kaczmarz algorithm seems to be new. The next theorem proves the convergence rate of this algorithm which depends explicitly on the geometric properties of the system matrix and its submatrices .
Theorem 4.1**.**
Let be generated by RBK (Algorithm 2) with the particular update (15), i.e. the weights satisfy for all and the stepsize for some . Then, we have the following linear convergence rate in expectation:
[TABLE]
Proof 4.2**.**
Since we assume a consistent linear system, that is there is such that , we have:
[TABLE]
We need to take conditional expectation over . However, for a general random sampling we have from (12) that the expectation over the first sum from above yields the lower bound:
[TABLE]
Thus, we obtained:
[TABLE]
Moreover, using that for any we have , the expectation over the second sum also yields the following upper bound:
[TABLE]
where recall that . Therefore, taking conditional expectation w.r.t. the block over entire history in the recurrence above, we get:
[TABLE]
In order to ensure decrease we need , that is we get an extrapolated stepsize:
[TABLE]
and the optimal stepsize is obtained by maximizing in which leads to:
[TABLE]
Hence, taking stepsize for some , we get:
[TABLE]
On the other hand, it is well-known from the Courant-Fischer theorem that for any matrix we have for all . Moreover, we have that for any . In conclusion, using that with the diagonal matrix invertible, we get that:
[TABLE]
Using this inequality in the recurrence above and taking expectation over the entire history we get:
[TABLE]
*which shows an expected linear convergence rate for RBK depending on the parameters and associated to the system matrix and its submatrices , respectively. *
Now, let us consider the uniform and partition sampling examples of Section 3.4 where all the blocks sampling have the same size . In this case we have . Let us also consider the particular choices , weights , and matrices with normalized rows, i.e. for all . Hence, . Then, our convergence rate (17) becomes:
[TABLE]
Comparing with the convergence rate (10) of the basic Kaczmarz method (recall that for normalized matrices ) we get an improvement which shows that for RBK algorithm with the new extrapolated stepsize (16) we can get a speed-up even of order approximately compared to basic Kaczmarz algorithm on matrices with well-conditioned blocks (i.e. on matrices having ). Section 4.3 provides choices for the sampling that lead to a small stochastic conditioning parameter .
4.2 Randomized block Kaczmarz algorithm with adaptive stepsize
Since the previous algorithm involves a stepsize depending on , which may be difficult to compute in large-scale settings (i.e. when the random variable is complicated and the number of rows is large), in this section we design a randomized block Kaczmarz algorithm with an adaptive stepsize, which doe not require the computation of . More precisely, we consider a variant of RBK (Algorithm 2) with variable weights and an adaptive stepsize approximating online . For simplicity of the notation let us define . Then, we consider the iteration of RBK (Algorithm 2) with an adaptive extrapolated stepsize of the form:
[TABLE]
Note that we do not need to compute for the second case when implementing the algorithm. Recall that we consider weights satisfying for all , and summing to . Hence, from Jensen’s inequality we always have and consequently , i.e. we use extrapolation. Further, in our convergence analysis we take a stepsize of the form for some . Moreover, we denote , that is the projection of onto the solution set of the linear system. It has been observed in practice that block Kaczmarz iteration with this adaptive choice for the stepsize has better performances than the same algorithm but with stepsize , see e.g. [1, 2, 3, 14, 21]. However, from our knowledge, there is no theory explaining why and when this adaptive method works. The next theorem proves the convergence rate of the adaptive algorithm depending explicitly on the geometric properties of the system matrix and its submatrices and answers to the question related to the theoretical understanding of observed practical efficiency of extrapolated block Kaczmarz methods.
Theorem 4.3**.**
Let be generated by RBK (Algorithm 2) with the adaptive stepsize for some and the weights satisfying for all . Then, we have the following linear convergence in expectation:
[TABLE]
Proof 4.4**.**
Using that in the update of RBK, we get:
[TABLE]
Note that we get the same recurrence also for the trivial choice . Now let us bound . For the nontrivial case, using that for any two matrices and of appropriate dimensions, we have:
[TABLE]
This inequality holds trivially for the second choice (case) of . Therefore, we can further bound for all the cases as follows:
[TABLE]
Using this bound in the recurrence above we get:
[TABLE]
Taking now the conditional expectation and using again (12), we get:
[TABLE]
It is also known from the Courant-Fischer theorem that for any matrix we have for all . Moreover, we have that for any . In conclusion, using that , with the diagonal matrix invertible, we get that:
[TABLE]
Using this inequality in the recurrence above and taking expectation over the entire history we get:
[TABLE]
*hence proving the statement of the theorem. *
There is a tight connection between the constant stepsize (16) and the adaptive stepsize (20). Indeed, for simplicity let us consider uniform weights and normalized matrices ( for all ). Then, from (4.4) we obtain:
[TABLE]
Hence, represents an online approximation of and therefore:
[TABLE]
In conclusion, the adaptive stepsize (20) can be viewed as a practical online approximation of the constant extrapolated stepsize (16). Finally, let us simplify the convergence rate (21) for the uniform and partition sampling examples of Section 3.4 having all the blocks sampling the same size . In this case we have . Let us also consider the particular choices , weights , and normalized matrices . Then, our convergence rate (21) becomes:
[TABLE]
We observe that this convergence rate coincides with (19). However, the adaptive block Kaczmarz scheme has more chances to accelerate, since from (23) the variable stepsize is, in general, larger than the constant stepsize counterpart.
4.3 When block Kaczmarz works?
Comparing the convergence rates of RBK algorithm with the constant stepsize (16) and with the adaptive stepsize (20) given in (19) and (24), respectively, with the convergence rate of the basic Kaczmarz method given in (10), we obtain an improvement for the block variants. Recall that the stochastic conditioning parameter is defined as:
[TABLE]
Therefore, we can get a speed-up even of order approximately for well conditioned matrices, i.e. for matrices having . This shows that the probability P plays a key role in defining the importance sampling procedure and consequently in the convergence behavior of RBK. Fortunately, the operator theory literature provides detailed information about the existence of such good probabilities defining the importance sampling. This is usually referred in the literature as good paving [16]. This section summarizes the main results from the literature on row paving and provides a technique for constructing a good paving. The idea is to find a random partition of the rows of the matrix such that each subset has approximately equal size. Results on existence of good row pavings were derived e.g. in [26]:
Lemma 4.5**.**
*Let be a normalized matrix with rows and . Then, there is a randomized partition of the rows indices with such that . *
Although this is only an existential result, the literature describes several efficient algorithms for constructing good row pavings. For example, assume that is a permutation of the set , chosen uniformly at random. For each , define the subsets:
[TABLE]
It is clear that is a random partition of into blocks of approximately equal size. For every normalized matrix, such a random partition leads to a row paving whose is relatively small.
Lemma 4.6**.**
*Let be a normalized matrix with rows. Consider a randomized partition of the rows indices with subsets. Then, is a row paving with the upper bound with probability at least . *
A proof of this type of result appears in [25], see also [16]. By merging our theorems on the convergence of RBK algorithm with the previous result on the good paving, we obtain:
Theorem 4.7**.**
Let be a normalized matrix and be a random partition of the rows of , as given by Lemma 4.6, such that is a positive integer. Under the assumptions of Theorems 4.1 and 4.3, the randomized block Kaczmarz method, Algorithm 2, with weights for all , and constant stepsize (16) or adaptive stepsize (20) with , admits the convergence estimate:
[TABLE]
In conclusion, our new convergence analysis shows when a block variant of Kaczmarz algorithm really works, i.e. we can choose a subset of rows at each step, when . Hence, a distributed implementation of the RBK algorithm is most effective when the probability distribution P yields a partition of the rows into well-conditioned blocks. Otherwise, we can just apply the basic Kaczmarz algorithm with . Moreover, our analysis shows that the optimal batchsize is of order . Assuming, for simplicity, that is a positive integer, from Lemma 4.6
[TABLE]
holds with high probability, provided that the matrix satisfies the following inequality
[TABLE]
Recall that, for a normalized matrix with rows, the squared spectral norm attains its maximal value when , i.e. its rows are identical. Therefore, the inequality (26) stipulates that the rows of must exhibit a large amount of diversity in order for RBK algorithm with extrapolated stepsizes (16) or (20) to perform better than the basic Kaczmarz scheme. Note that convergence rates similar to (25) has been derived in [16] for the block projection Kaczmarz algorithm (3) with the particular stepsize . However, RBK requires the computation of scalar products in at each iteration, so that its computational cost per iteration is , and thus cheaper than the one corresponding to block projection Kaczmarz (3) that requires solving a least-squares problem at each iteration in about .
5 Randomized block Kaczmarz algorithm with Chebychev-based stepsize
Finally, we show that we can also choose extrapolated stepsizes in RBK (Algorithm 2) based on the roots of Chebyshev polynomials. For simplicity, we consider either the uniform or partition sampling of Section 3.4 having . We also assume normalized matrices and constant weights for all . Under these settings, for RBK algorithm with Chebyshev-based stepsize we derive linear or sublinear convergence estimates depending whether or , respectively. Below we investigate these two cases.
5.1 Case 1:
We get the following linear convergence for this variant of RBK:
Theorem 5.1**.**
Assume normalized matrix such that . Let be generated by RBK (Algorithm 2) with the uniform or partition sampling and the weights for all . Further, for a fixed number of iterations the stepsizes are depending on the roots of the Chebyshev polynomial of degree (see Appendix) as follows:
[TABLE]
where is a permutation of . Then, we have the following linear convergence for expected iterates:
[TABLE]
Proof 5.2**.**
For the iteration of RBK (Algorithm 2) we have for any solution :
[TABLE]
Taking conditional expectation and using (12) with for uniform or partition sampling, we get:
[TABLE]
Multiplying from the left this recurrence with we get:
[TABLE]
or equivalently, using that and taking expectations over the entire history, we obtain:
[TABLE]
Iterating this recurrence and defining the matrix we obtain:
[TABLE]
If we define the polynomial in the matrix as , then we can bound the norm of the expected residual by:
[TABLE]
Recall that we consider consistent linear system with . Then, from standard reasoning the spectrum of satisfies . More precisely:
[TABLE]
Therefore, if we denote by the th eigenvalue of , we have the following bound:
[TABLE]
In conclusion, we can choose the stepsizes for such that is the polynomial least deviating from zero on the interval and satisfying . It is well known that this is the polynomial given in terms of a Chebyshev polynomial (see Appendix for a brief review of the main properties of Chebyshev polynomials):
[TABLE]
Then, we can guarantee the following linear convergence in expectation (see Lemma 5.5 in Appendix):
[TABLE]
The stepsizes , for , are chosen as the inverse roots of polynomial (see Appendix):
[TABLE]
where is some fixed permutation of . We can also derive convergence rates in using that , and consequently from Courant-Fischer lemma and (29) we have:
[TABLE]
*proving thus the linear convergence estimate of the theorem. *
From Jensen’s inequality we have . In conclusion, is a weaker criterion than . Note that convergence rates in the weaker criterion have been also given for another variant of Kaczmarz algorithm in [22] or for the random coordinate descent method in [24]. Moreover, the convergence rate from Theorem 5.1 is the same as for the conjugate gradient method and it is optimal for this class of iterative schemes. However, since this rate does not depend on the size of the blocks , then we usually implement this accelerated variant of Kaczmarz by sampling single rows, that is, .
5.2 Case 2:
In this case we get sublinear convergence for this variant of RBK:
Theorem 5.3**.**
Assume normalized matrix such that . Let be generated by RBK (Algorithm 2) with the uniform or partition sampling and the weights for all . Further, for a fixed number of iterations the stepsizes are depending on the roots of the Chebyshev polynomial of degree as follows:
[TABLE]
where is some permutation of . Then, we have the following sublinear convergence for the residual of the normal system in expectation:
[TABLE]
Proof 5.4**.**
From (28) we also get the relation:
[TABLE]
Now, if we consider the normal system , which coincides with , we have:
[TABLE]
where denotes any solution of (recall that we consider consistent linear systems). If we define the matrix and the polynomial , then we obtain the following bound for the residual of the normal system in expectation:
[TABLE]
Since we assume , then the spectrum of satisfies:
[TABLE]
Therefore, if we denote by the th eigenvalue of , we have the following bound:
[TABLE]
In conclusion, we can choose the stepsizes for such that of degree is the polynomial least deviating from zero on the interval and satisfying and . We show below that this polynomial is also given in terms of a Chebyshev polynomial. Indeed, let us consider the closest root to of the Chebyshev polynomial of degree (i.e. ):
[TABLE]
Then, we define the polynomial:
[TABLE]
Note that this polynomial satisfies the required properties: , (recall that is the root of ) and . In conclusion, we get the following bound for this choice of :
[TABLE]
where in the inequality we used that for any and that the root (see Appendix). Further, since , if we differentiate we get . Now, for we obtain:
[TABLE]
for sufficiently large (we used that for small). In conclusion, we get the following sublinear convergence (using the notation ):
[TABLE]
for sufficiently large (i.e. for such that ). Finally, using that we get (30). The stepsizes , for , are chosen as the inverse roots of polynomial (see Appendix):
[TABLE]
*where is some fixed permutation of . *
Note that the RBK algorithm with Chebyshev-based stepsize belongs to the class of Chebyshev semi-iterative methods [6]. However, from our knowledge, this work is the first one that uses the properties of the Chebyshev polynomials in order to accelerated the convergence rate of randomized block Kaczmarz (RBK) algorithm. Other types of acceleration of Kaczmarz algorithm have been proposed e.g. in [7, 12, 22]. For example, in [22] two dependent steps of basic randomized Kaczmarz algorithm are taken, one from and one from , and then an affine combination of the results produces the next iterate . For this scheme, [22] derives a similar convergence rate as in Theorem 5.1. In [12] Nesterov’s accelerated random coordinate descent method from [18] is applied to the dual problem (9), leading in the primal space to an accelerated randomized Kaczmarz scheme with momentum. For this accelerated Kaczmarz scheme [12] derives the convergence rate . Although this rate is worse than (27) in terms of constants, it is given in the stronger criterion . Remains an open problem whether Theorem 5.1 can be also given in the stronger criterion .
Appendix (Chebyshev polynomials)
In this section some properties of the Chebyshev polynomials are briefly reviewed. We refer to e.g. [19] for more details on Chebyshev polynomials. The Chebyshev polynomials , where and , are defined by the recursive relation:
[TABLE]
From the above recurrence we observe that the leading coefficient of is , i.e. . In particular, for , the Chebyshev polynomials can be written equivalently:
[TABLE]
The equivalence can be verified as follows using that :
[TABLE]
It follows that . From this representation of it also follows that:
[TABLE]
Moreover, all the roots of are given by:
[TABLE]
In conclusion, we get also the following representation for :
[TABLE]
It is also easy to see the following interval transformation through the relation:
[TABLE]
One important property of the Chebyshev polynomials is that has minimal deviation from [math] among all polynomials of degree with leading coefficient on :
[TABLE]
An immediate consequence of the above property valid for Chebyshev polynomials is the following lemma:
Lemma 5.5**.**
Let and . Then, the optimal value and the optimal polynomial of the following optimization problem are:
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] H. Bauschke, P. Combettes and S. Kruk, Extrapolation algorithm for affine-convex feasibility problems , Numerical Algorithms, 41(3):239–274, 2006.
- 2[2] Y. Censor, Row action methods for huge sparse systems and their applications , SIAM Review, 23: 444–466, 1981.
- 3[3] Y. Censor, W. Chen, P. Combettes, R. Davidi and G. Herman, On the Effectiveness of Projection Methods for Convex Feasibility Problems with Linear Inequality Constraints , Computational Optimization and Applications, 51(3): 1065–1088, 2012.
- 4[4] F. Deutsch and H. Hundal, The rate of convergence for the method of alternating projections , Journal of Mathematical Analysis and Applications, 205(2): 381–405, 1997.
- 5[5] T. Elfving, Block-iterative methods for consistent and inconsistent linear equations , Numer. Math., 35(1): 1–12, 1980.
- 6[6] G. Golub and R. Varga, Chebyshev semi-iterative methods, successive over-relaxation methods and second-order Richardson iterative methods I, II , Numer. Math., 3:147–168, 1961.
- 7[7] M. Hanke and W. Niethammer, On the acceleration of Kaczmarz’s method for inconsistent linear systems , Linear Algebra Applications, 130: 83–98, 1990.
- 8[8] R. Gower and P. Richtarik, Randomized iterative methods for linear systems , SIAM Journal on Matrix Analysis and Applications, 36(4): 1660–1690, 2015.
