Stochastic Dual Ascent for Solving Linear Systems
Robert Mansel Gower, Peter Richtarik
Introduction
Probabilistic ideas and tools have recently begun to permeate into several fields where they had traditionally not played a major role, including fields such as numerical linear algebra and optimization. One of the key ways in which these ideas influence these fields is via the development and analysis of randomized algorithms for solving standard and new problems of these fields. Such methods are typically easier to analyze, and often lead to faster and/or more scalable and versatile methods in practice.
In this paper we consider a key problem in linear algebra, that of finding a solution of a system of linear equations
where is an symmetric positive definite matrix and . By we denote the (necessarily) unique solution of (1.1). Of key importance in this paper is the dual problemTechnically, this is both the Lagrangian and Fenchel dual of (1.1). to (1.1), namely
Due to the consistency assumption, strong duality holds and we have , where is any dual optimal solution.
2 A new family of stochastic optimization algorithms
We propose to solve (1.1) via a new method operating in the dual (3), which we call stochastic dual ascent (SDA). The iterates of SDA are of the form
where is a random matrix with rows drawn in each iteration independently from a pre-specified distribution , which should be seen as a parameter of the method. In fact, by varying , SDA should be seen as a family of algorithms indexed by , the choice of which leads to specific algorithms in this family. By performing steps of the form (4), we are moving in the range space of the random matrix . A key feature of SDA enabling us to prove strong convergence results despite the fact that the dual objective is in general not strongly concave is the way in which the “stepsize” parameter is chosen: we chose to be the least-norm vector for which is maximized in . Plugging this into (4), we obtain the SDA method:
The symbol denotes the Moore-Penrose pseudoinverseIt is known that the vector is the least-norm solution of the least-squares problem . Hence, if the system has a solution, then ..
To the best of our knowledge, a randomized optimization algorithm with iterates of the general form (4) was not considered nor analyzed before. In the special case when is chosen to be a random unit coordinate vector, SDA specializes to the randomized coordinate descent method, first analyzed by Leventhal and Lewis . In the special case when is chosen as a random column submatrix of the identity matrix, SDA specializes to the randomized Newton method of Qu, Fercoq, Richtárik and Takáč .
With the dual iterates we associate a sequence of primal iterates as follows:
In combination with (5), this yields the primal iterative process
Optimality conditions (see Section 2.1) imply that if is any dual optimal point, then is necessarily primal optimal and hence equal to , the optimal solution of (1.1). Moreover, we have the following useful and insightful correspondence between the quality of the primal and dual iterates (see Proposition 2.2):
Hence, dual convergence in function values is equivalent to primal convergence in iterates.
Our work belongs to a growing literature on randomized methods for various problems appearing in linear algebra, optimization and computer science. In particular, relevant methods include sketching algorithms, randomized Kaczmarz, stochastic gradient descent and their variants and randomized coordinate and subspace type methods and their variants .
3 The main results
We now describe two complexity theorems which form the core theoretical contribution of this work. The results hold for a wide family of distributions , which we describe next.
In our analysis, we only impose a very weak assumption on . In particular, we only assume that the matrix
is well defined and nonsingularIt is known that the pseudoinverse of a symmetric positive semidefinite matrix is again symmetric and positive semidefinite. As a result, if the expectation defining is finite, is also symmetric and positive semidefinite. Hence, we could equivalently assume that be positive definite. . Hence, we do not assume that be picked from any particular random matrix ensamble: the options are, quite literally, limitless. This makes it possible for practitioners to choose the best distribution specific to a particular application.
We cast the first complexity result in terms of the primal iterates since solving (1.1) is our main focus in this work. Let and denote the range space, rank and the smallest nonzero eigenvalue of , respectively.
where and
Furthermore, the convergence rate is bounded by
If we let be a unit coordinate vector chosen at random, be the identity matrix and set , then (7) reduces to the randomized Kaczmarz (RK) method proposed and analyzed in a seminal work of Strohmer and Vershynin . Theorem 1.1 implies that RK converges with an exponential rate so long as the system matrix has no zero rows (see Section 3). To the best of our knowledge, such a result was not previously established: current convergence results for RK assume that the system matrix is full rank . Not only do we show that the RK method converges to the least-norm solution for any consistent system, but we do so through a single all encompassing theorem covering a wide family of algorithms. Likewise, convergence of block variants of RK has only been established for full column rank . Block versions of RK can be obtained from our generic method by choosing and , as before, but letting to be a random column submatrix of the identity matrix (see ). Again, our general complexity bound holds under no assumptions on , as long as one can find such that becomes nonsingular.
The lower bound (14) says that for a singular system matrix, the number of steps required by SDA to reach an expected accuracy is at best inversely proportional to the rank of . If has row rank equal to one, for instance, then RK converges in one step (this is no surprise, given that RK projects onto the solution space of a single row, which in this case, is the solution space of the whole system). Our lower bound in this case becomes , and hence is tight.
and let be as in Theorem 1.1. Then for all we have the following complexity bounds:
Note that the dual objective function is not strongly concave in general, and yet we prove linear convergence (see (15)). It is known that for some structured optimization problems, linear convergence results can be obtained without the need to assume strong concavity (or strong convexity, for minimization problems). Typical approaches to such results would be via the employment of error bounds . In our analysis, no error bounds are necessary.
4 Outline
The paper is structured as follows. Section 2 describes the algorithm in detail, both in its dual and primal form, and establishes several useful identities. In Section 3 we characterize discrete distributions for which our main assumption on is satisfied. We then specialize our method to several simple discrete distributions to better illustrate the results. We then show in Section 4 how SDA can be applied to design new randomized gossip algorithms. We also show that our framework can recover some standard methods. Theorem 1.1 is proved in Section 5 and Theorem 1.2 is proved in Section 6. In Section LABEL:sec:experiments we perform a simple experiment illustrating the convergence of the randomized Kaczmarz method on rank deficient linear systems. We conclude in Section 8. To the appendix we relegate two elementary but useful technical results which are needed multiple times in the text.
Stochastic Dual Ascent
By stochastic dual ascent (SDA) we refer to a randomized optimization method for solving the dual problem (3) performing iterations of the form
where is a random matrix with rows drawn in each iteration independently from a prespecified distribution. We shall not fix the number of columns of ; in fact, we even allow for the number of columns to be random. By performing steps of the form (18), we are moving in the range space of the random matrix , with describing the precise linear combination of the columns used in computing the step. In particular, we shall choose from the set
Since is bounded above (a consequence of weak duality), this set is nonempty. Since is a concave quadratic, consists of all those vectors for which the gradient of the mapping vanishes. This leads to the observation that is the set of solutions of a random linear system:
If has a small number of columns, this is a small easy-to-solve system.
A key feature of our method enabling us to prove exponential error decay despite the lack of strong concavity is the way in which we choose from . In SDA, is chosen to be the least-norm element of ,
where denotes standard Euclidean norm. The least-norm solution of a linear system can be written down in a compact way using the (Moore-Penrose) pseudoinverse. In our case, we obtain the formula
where denotes the pseudoinverse operator. Note that if has only a few columns, then (19) requires projecting the origin onto a small linear system. The SDA algorithm is obtained by combining (18) with (19).
The method has one parameter: the distribution from which the random matrices are drawn. Sometimes, one is interested in finding any solution of the system , rather than the particular solution described by the primal problem (1.1). In such situations, and could also be seen as parameters.
For any for which and for any we have
As an immediate corollary of Proposition 2.1 we observe that for any dual optimal , the vector must be primal optimal. Since the primal problem has a unique optimal solution, , we must necessarily have
Another immediate corollary of Proposition 2.1 is the following characterization of dual optimality: is dual optimal if and only if
Hence, the set of dual optimal solutions is . Since, (see Lemma 10.1), we have
The particular dual optimal point is the solution of the following optimization problem:
Hence, this particular formulation of the dual problem has the same form as the primal problem: projection onto a linear system.
If is positive definite (which can only happen if is of full column rank, which means that has a unique solution and hence the primal objective function does not matter), and we choose , then the dual constraint (24) becomes
This constraint has a geometric interpretation: we are seeking vector whose orthogonal projection onto the column space of is equal to . Hence the reformulated dual problem (24) is asking us to find the vector with this property having the least norm.
2 Primal iterates associated with the dual iterates
With the sequence of dual iterates produced by SDA we can associate a sequence of primal iterates using the mapping (21):
This leads to the following primal version of the SDA method.
Self-duality. If is positive definite, , and if we choose , then in view of (25) we have for all , and hence Algorithms 1 and 2 coincide. In this case, Algorithm 2 can be described as self-dual.
Starting point. While we have defined the primal iterates of Algorithm 2 via a linear transformation of the dual iterates—see (25)—we can, in principle, choose arbitrarily, thus breaking the primal-dual connection which helped us to define the method. In particular, we can choose in such a way that there does not exist for which . As is clear from Theorem 1.1, in this case the iterates will not converge to , but to , where is the projection of onto the nullspace of .
It turns out that Algorithm 2 is equivalent to the sketch-and-project method (26) of Gower and Richtárik :
where is a random matrix drawn in an i.i.d. fashion from a fixed distribution, just as in this work. In this method, the “complicated” system is first replaced by its sketched version , the solution space of which contains all solutions of the original system. If has a few columns only, this system will be small and easy to solve. Then, progress is made by projecting the last iterate onto the sketched system.
We now briefly comment on the relationship between and our work.
Dual nature of sketch-and-project. It was shown in that Algorithm 2 is equivalent to the sketch-and-project method. In fact, the authors of provide five additional equivalent formulations of sketch-and-project, with Algorithm 2 being one of them. Here we show that their method can be seen as a primal process associated with SDA, which is a new method operating in the dual. By observing this, we uncover a hidden dual nature of the sketch-and-project method. For instance, this allows us to formulate and prove Theorem 1.2. No such results appear in .
No assumptions on the system matrix. In the authors only studied the convergence of the primal iterates , establishing a (much) weaker variant of Theorem 1.1. Indeed, convergence was only established in the case when has full column rank. In this work, we lift this assumption completely and hence establish complexity results in the general case.
Convergence to a shifted point. As we show in Theorem 1.1, Algorithm 2 converges to , where is the projection of onto . Hence, in general, the method does not converge to the optimal solution . This is not an issue if is of full column rank—an assumption used in the analysis in —since then is trivial and hence . As long as lies in , however, we have . This can be easily enforced (for instance, we can choose ).
3 Relating the quality of the dual and primal iterates
The following simple but insightful result (mentioned in the introduction) relates the “quality” of a dual vector with that of its primal counterpart, . It says that the dual suboptimality of in terms of function values is equal to the primal suboptimality of in terms of distance.
Proof: Straightforward calculation shows that
Applying this result to sequence of dual iterates produced by SDA and their corresponding primal images, as defined in (25), we get the identity:
Therefore, dual convergence in function values is equivalent to primal convergence in iterates . Furthermore, a direct computation leads to the following formula for the duality gap:
Note that computing the gap is significantly more expensive than the cost of a single iteration (in the interesting regime when the number of columns of is small). Hence, evaluation of the duality gap should generally be avoided. If it is necessary to be certain about the quality of a solution however, the above formula will be useful. The gap should then be computed from time to time only, so that this extra work does not significantly slow down the iterative process.
Discrete Distributions
Both the SDA algorithm and its primal counterpart are generic in the sense that the distribution is not specified beyond assuming that the matrix defined in (9) is well defined and nonsingular. In this section we shall first characterize finite discrete distributions for which is nonsingular. We then give a few examples of algorithms based on such distributions, and comment on our complexity results in more detail.
For simplicity, we shall focus on finite discrete distributions . That is, we set with probability , where are fixed matrices (each with rows). The next theorem gives a necessary and sufficient condition for the matrix defined in (9) to be nonsingular.
Let be a finite discrete distribution, as described above. Then is nonsingular if and only if
Proof: Let . In view of the identity , we can write
where . Since are symmetric positive semidefinite, so is . Now, it is easy to check that if and only if (this holds for any symmetric positive semidefinite ). Hence, if and only if and thus is positive definite if and only if
In view of Lemma 10.1, . Now, if and only of . Hence, , which means that (28) is equivalent to . ∎
We have the following corollary.We can also prove the corollary directly as follows: The first assumption implies that is invertible for all and that is nonsingular. It remains to note that
Assume that has full row rank for all and that is of full row rank. Then is nonsingular.
Submatrices of the identity matrix. We can let be a random column submatrix of the identity matrix . There are such potential submatrices, and we choose . As long as we choose in such a way that each column of is represented in some matrix , the matrix will have full row rank. Furthermore, if has full row rank for all , then by the above corollary, is nonsingular. Note that if the row rank of is , then the matrices selected by the above process will necessarily have at most columns.
Count sketch and Count-min sketch. Many other “sketching” matrices can be employed within SDA, including the count sketch and the count-min sketch . In our context (recall that we sketch with the transpose of ), is a count-sketch matrix (resp. count-min sketch) if it is assembled from random columns of (resp ), chosen uniformly with replacement, where is the identity matrix.
2 Randomized Kaczmarz as the primal process associated with randomized coordinate ascent
Let (the identity matrix). The primal problem then becomes
This is the randomized coordinate ascent method applied to the dual problem. In the form popularized by Nesterov , it takes the form
It can be easily verified that (30) holds with and that .
Primal iterates.
The associated primal iterative process (Algorithm 2) takes the form
This is the randomized Kaczmarz method of Strohmer and Vershynin .
The rate.
Let us now compute the rate as defined in (13). It will be convenient, but not optimal, to choose the probabilities via
where denotes the Frobenius norm (we assume that does not contain any zero rows). Since
In general, the rate is a function of the probabilities . The inverse problem: “How to set the probabilities so that the rate is optimized?” is difficult. If is of full column rank, however, it leads to a semidefinite program .
Furthermore, if , then in view of (14), the rate is bounded as
Assume that is of rank and let . Then , and hence this matrix is also of rank 1. Therefore, has a single nonzero eigenvalue, which is equal its trace. Therefore, and hence . Note that the rate reaches its lower bound and the method converges in one step.
Remarks.
For randomized coordinate ascent applied to (non-strongly) concave quadratics, rate (33) has been established by Leventhal and Lewis . However, to the best of our knowledge, this is the first time this rate has also been established for the randomized Kaczmarz method. We do not only prove this, but show that this is because the iterates of the two methods are linked via a linear relationship. In the case, and for row-normalized matrix , this linear relationship between the two methods was recently independently observed by Wright . While all linear complexity results for RK we are aware of require full rank assumptions, there exist nonstandard variants of RK which do not require such assumptions, one example being the asynchronous parallel version of RK studied by Liu, Wright and Sridhar . Finally, no results of the type (16) (primal suboptimality) and (17) (duality gap) previously existed for these methods in the literature.
3 Randomized block Kaczmarz is the primal process associated with randomized Newton
Let , so that we have the same pair of primal dual problems as in Section 3.2.
Let us now choose to be a random column submatrix of the identity matrix . That is, we choose a random subset and then let be the concatenation of columns of . We shall write . Let be the probability that . Assume that for each there exists with such that . Such a random set is called proper .
The SDA method (Algorithm 1) then takes the form
where is chosen so that the dual objective is maximized (see (19)). This is a variant of the randomized Newton method studied in . By examining (19), we see that this method works by “inverting” randomized submatrices of the “Hessian” . Indeed, is in each iteration computed by solving a system with the matrix . This is the random submatrix of corresponding to rows and columns in .
Primal iterates.
In view of the equivalence between Algorithm 2 and the sketch-and-project method (26), the primal iterative process associated with the randomized Newton method has the form
This method is a variant of the randomized block Kaczmarz method of Needell . The method proceeds by projecting the last iterate onto a subsystem of formed by equations indexed by the set .
The rate.
Provided that is nonsingular, the shared rate of the randomized Newton and randomized block Kaczmarz methods is
Qu et al study the randomized Newton method for the problem of minimizing a smooth strongly convex function and prove linear convergence. In particular, they study the above rate in the case when is positive definite. Here we show that linear converges also holds for weakly convex quadratics (as long as is nonsingular).
An interesting feature of the randomized Newton method, established in , is that when viewed as a family of methods indexed by the size , it enjoys superlinear speedup in . That is, as increases by some factor, the iteration complexity drops by a factor that is at least as large. It is possible to conduct a similar study in our setting with a possibly singular matrix , but such a study is not trivial and we therefore leave it for future research.
4 Self-duality for positive definite A𝐴A
If is positive definite, then we can choose . As mentioned before, in this setting SDA is self-dual: for all . The primal problem then becomes
Note that the primal objective function does not play any role in determining the solution; indeed, the feasible set contains a single point only: . However, it does affect the iterative process.
This is the randomized coordinate ascent method applied to the dual problem.
The rate.
If we choose , then
It is known that for this problem, randomized coordinate descent applied to the dual problem, with this choice of probabilities, converges with this rate .
Application: Randomized Gossip Algorithms
In this section we apply our method and results to the distributed consensus (averaging) problem.
The nodes may represent people in a social network, with edges representing friendship and private value representing certain private information, such as salary. The goal would be to compute the average salary via an iterative process where only friends are allowed to exchange information. The nodes may represent sensors in a wireless sensor network, with an edge between two sensors if they are close to each other so that they can communicate. Private values represent measurements of some quantity performed by the sensors, such as the temperature. The goal is for the network to compute the average temperature.
We now show how one can model the consensus (averaging) problem in the form (1.1). Consider the projection problem
and note that the optimal solution must necessarily satisfy
for all . There are many ways in which the constraint forcing all coordinates of to be equal can be represented in the form of a linear system . Here are some examples:
Each node is equal to all its neighbours. Let the equations of the system correspond to constraints
is the Laplacian matrix of the graph :
Each node is the average of its neighbours. Let the equations of the system correspond to constraints
for , where is the set of neighbours of node and is the degree of node . That is, we require that the values stored at each node are equal to the average of the values of its neighbours. This corresponds to the choice and
Spanning subgraph. Let be any connected subgraph of . For instance, we can choose a spanning tree. We can now apply any of the 2 models above to this new graph and either require for all , or require the value to be equal to the average of the values for all neighbours of in .
Clearly, the above list does not exhaust the ways in which the constraint can be modeled as a linear system. For instance, we could build the system from constraints such as , and so on.
Different representations of the constraint , in combination with a choice of , will lead to a wide range of specific algorithms for the consensus problem (36). Some (but not all) of these algorithms will have the property that communication only happens along the edges of the network, and these are the ones we are interested in. The number of combinations is very vast. We will therefore only highlight two options, with the understanding that based on this, the interested reader can assemble other specific methods as needed.
2 Model 1: Each node is equal to its neighbours
Let us take (which means that ), so that in Theorem 1.1 we have , and hence . The particular choice of the starting point in the primal process has a very tangible meaning: for all , node initially knows value . The primal iterative process will dictate how the local values are modified in an iterative fashion so that eventually all nodes contain the optimal value .
In view of (37), for each edge , we have and . Hence, if the edge is selected by the RK method, (31) takes the specific form
From (40) we see that only the and coordinates of are updated, via
Note that in each iteration of RK, a random edge is selected, and the nodes on this edge replace their local values by their average. This is a basic variant of the randomized gossip algorithm .
Invariance.
Insights from the dual perspective.
We can now bring new insight into the randomized gossip algorithm by considering the dual iterative process. The dual method (29) maintains weights associated with the edges of via the process:
where is a randomly selected edge. Hence, only the weight of a single edge is updated in each iteration. At optimality, we have . That is, for each
where is the correction term which needs to be added to in order for node to contain the value . From the above we observe that these correction terms are maintained by the dual method as an inner product of the column of and , with the optimal correction being .
Rate.
Both Theorem 1.1 and Theorem 1.2 hold, and hence we automatically get several types of convergence for the randomized gossip method. In particular, to the best of our knowledge, no primal-dual type of convergence exist in the literature. Equation (27) gives a stopping criterion certifying convergence via the duality gap, which is also new.
In view of (33) and (38), and since , the convergence rate appearing in all these complexity results is given by
where is the Laplacian of . While it is know that the Laplacian is singular, the rate depends on the smallest nonzero eigenvalue. This means that the number of iterations needed to output an -solution in expectation scales as , i.e., linearly with the number of edges.
3 Model 2: Each node is equal to the average of its neighbours
Observe that . The RK method (31) applied to this formulation of the problem takes the form
where is chosen at random. This means that only coordinates in get updated in such an iteration, the others remain unchanged. For node (coordinate ), this update is
That is, the updated value at node is the average of the values of its neighbours and the previous value at . From (42) we see that the values at nodes get updated as follows:
Invariance.
It follows that the method satisfies the invariance property (41).
Rate.
The method converges with the rate given by (33), where is given by (39). If is a complete graph (i.e., ), then is the Laplacian. In that case, and hence
Proof of Theorem 1.1
In this section we prove Theorem 1.1. We proceed as follows: in Section 5.1 we characterize the space in which the iterates move, in Section 5.2 we establish a certain key technical inequality, in Section 5.3 we establish convergence of iterates, in Section 5.4 we derive a rate for the residual and finally, in Section 5.5 we establish the lower bound on the convergence rate.
The following result describes the space in which the iterates move. It is an extension of the observation in Remark 2.2 to the case when is chosen arbitrarily.
Assuming the relationship holds for , we have
where . ∎
2 A key inequality
The following inequality is of key importance in the proof of the main theorem.
It is easy to see that these eigenvectors span . Hence, we can write and therefore
Furthermore this bound is tight, as can be seen by selecting so that . ∎
3 Convergence of the iterates
Subtracting from both sides of the update step of Algorithm 2, and letting
where we used that . Let
and note that in view of (9), . Taking norms and expectations (in ) on both sides of (46) gives
where we applied Lemma 5.2 with and , so that Substituting (50) into (48) gives . Using the tower property of expectations, we obtain the recurrence
To prove (11) it remains to unroll the recurrence.
4 Convergence of the residual
We now prove (12). Letting , we have
where in the step preceding the last one we have used Jensen’s inequality.
5 Proof of the lower bound
Since , using Lemma 10.1 with and gives
Hence, is equal to the number of nonzero eigenvalues of , from which we immediately obtain the bound
In order to obtain (14), it only remains to combine the above inequality with
Proof of Theorem 1.2
In this section we prove Theorem 1.2. We dedicate a subsection to each of the three complexity bounds.
Since , we have in Theorem 1.1, and hence (11) says that
It remains to apply Proposition 2.2, which says that .
2 Primal suboptimality
Letting , we can write
By taking expectations on both sides of (52), and using Jensen’s inequality, we therefore obtain
which establishes the bound on primal suboptimality (16).
3 Duality gap
Having established rates for primal and dual suboptimality, the rate for the duality gap follows easily:
Numerical Experiments: Randomized Kaczmarz Method with Rank-Deficient System
To illustrate some of the novel aspects of our theory, we perform numerical experiments with the Randomized Kaczmarz method (31) (or equivalently the randomized coordinate ascent method applied to the dual problem (3)) and compare the empirical convergence to the convergence predicted by our theory. We test several randomly generated rank-deficient systems and compare the evolution of the empirical primal error to the convergence dictated by the rate given in (33) and the lower bound . From Figure 1 we can see that the RK method converges despite the fact that the linear systems are rank deficient. While previous results do not guarantee that RK converges for rank-deficient matrices, our theory does as long as the system matrix has no zero rows. Furthermore, we observe that the lower the rank of the system matrix, the faster the convergence of the RK method, and moreover, the closer the empirical convergence is to the convergence dictated by the rate and lower bound on . In particular, on the low rank system in Figure 1(a), the empirical convergence is very close to both the convergence dictated by and the lower bound. While on the full rank system in Figure 1(d), the convergence dictated by and the lower bound on are no longer an accurate estimate of the empirical convergence.
Conclusion
We have developed a versatile and powerful algorithmic framework for solving linear systems: stochastic dual ascent (SDA). In particular, SDA finds the projection of a given point, in a fixed but arbitrary Euclidean norm, onto the solution space of the system. Our method is dual in nature, but can also be described in terms of primal iterates via a simple affine transformation of the dual variables. Viewed as a dual method, SDA belongs to a novel class of randomized optimization algorithms: it updates the current iterate by adding the product of a random matrix, drawn independently from a fixed distribution, and a vector. The update is chosen as the best point lying in the random subspace spanned by the columns of this random matrix.
While SDA is the first method of this type, particular choices for the distribution of the random matrix lead to several known algorithms: randomized coordinate descent and randomized Kaczmarz correspond to a discrete distribution over the columns of the identity matrix, randomized Newton method corresponds to a discrete distribution over column submatrices of the identity matrix, and Gaussian descent corresponds to the case when the random matrix is a Gaussian vector.
We equip the method with several complexity results with the same rate of exponential decay in expectation (aka linear convergence) and establish a tight lower bound on the rate. In particular, we prove convergence of primal iterates, dual function values, primal function values, duality gap and of the residual. The method converges under very weak conditions beyond consistency of the linear system. In particular, no rank assumptions on the system matrix are needed. For instance, randomized Kaczmarz method converges linearly as long as the system matrix contains no zero rows.
Further, we show that SDA can be applied to the distributed (average) consensus problem. We recover a standard randomized gossip algorithm as a special case, and show that its complexity is proportional to the number of edges in the graph and inversely proportional to the smallest nonzero eigenvalue of the graph Laplacian. Moreover, we illustrate how our framework can be used to obtain new randomized algorithms for the distributed consensus problem.
Our framework extends to several other problems in optimization and numerical linear algebra. For instance, one can apply it to develop new stochastic algorithms for computing the inverse of a matrix and obtain state-of-the art performance for inverting matrices of huge sizes.
Acknowledgements
The second author would like to thank Julien Hendrickx from Université catholique de Louvain for a discussion regarding randomized gossip algorithms.
References
Appendix: Elementary Results Often Used in the Paper
We first state a lemma comparing the null spaces and range spaces of certain related matrices. While the result is of an elementary nature, we use it several times in this paper, which justifies its elevation to the status of a lemma. The proof is brief and hence we include it for completeness.
For any matrix and symmetric positive definite matrix ,
Proof: In order to establish (53), it suffices to show the inclusion since the reverse inclusion trivially holds. Letting , we see that , which implies . Therefore, . Finally, (54) follows from (53) by taking orthogonal complements. Indeed, is the orthogonal complement of and is the orthogonal complement of . ∎
The following technical lemma is a variant of a standard result of linear algebra (which is recovered in the case). While the results are folklore and easy to establish, in the proof of our main theorem we need certain details which are hard to find in textbooks on linear algebra, and hence hard to refer to. For the benefit of the reader, we include the detailed statement and proof.
Note that , where is any solution of the optimization problem
The first order necessary and sufficient optimality conditions are . In particular, we may choose to be the least norm solution of this system, which gives , from which (55) follows. The variational formulation (56) can be established in a similar way, again via first order optimality conditions (note that the closed form formula (56) also directly follows from (55) and the fact that ).
It only remains to establish (60). Since is a projector onto and since the trace of each projector is equal to the dimension of the space they project onto, we have .∎