On the Complexity Analysis of Randomized Block-Coordinate Descent Methods
Zhaosong Lu, Lin Xiao
Key words:
Randomized block-coordinate descent, accelerated coordinate descent, iteration complexity, convergence rate, composite minimization.
Introduction
Block-coordinate descent (BCD) methods and their variants have been successfully applied to solve various large-scale optimization problems (see, for example, ). At each iteration, these methods choose one block of coordinates to sufficiently reduce the objective value while keeping the other blocks fixed. One common and simple approach for choosing such a block is by means of a cyclic strategy. The global and local convergence of the cyclic BCD method have been well studied in the literature (see, for example, ) though its global convergence rate still remains unknown except for some special cases .
Instead of using a deterministic cyclic order, recently many researchers proposed randomized strategies for choosing a block to update at each iteration of the BCD methods . The resulting methods are called randomized BCD (RBCD) methods. Numerous experiments have demonstrated that the RBCD methods are very powerful for solving large- and even huge-scale optimization problems arising in machine learning . In particular, Chang et al. proposed a RBCD method for minimizing several smooth functions appearing in machine learning and derived its iteration complexity. Shalev-Shwartz and Tewari studied a RBCD method for minimizing -regularized smooth convex problems. They first transformed the problem into a box-constrained smooth problem by doubling the dimension and then applied a block-coordinate gradient descent method in which each block was chosen with equal probability. Leventhal and Lewis proposed a RBCD method for minimizing a convex quadratic function and established its iteration complexity. Nesterov analyzed some RBCD methods for minimizing a smooth convex function over a closed block-separable convex set and established its iteration complexity, which in effect extends and improves upon some of the results in in several aspects. Richtárik and Takáč generalized the RBCD methods proposed in to the problem of minimizing a composite objective (i.e., the sum of a smooth convex function and a block-separable convex function) and derived some improved complexity results than those given in . More recently, Shalev-Shwartz and Zhang studied a randomized proximal coordinate ascent method for solving the dual of a class of large-scale convex minimization problems arising in machine learning and established iteration complexity for obtaining a pair of approximate primal-dual solutions.
Inspired by the recent work , we consider the problem of minimizing the sum of two convex functions:
where is differentiable on , and has a block separable structure. More specifically,
where each denotes a subvector of with cardinality , the collection form a partition of the components of , and each is a closed convex function. Given the current iterate , the RBCD method picks a block uniformly at random and solves a block-wise proximal subproblem in the form of
and then it sets the next iterate as and for all . Here denotes the partial gradient of with respect to , and is the Lipschitz constant of the partial gradient (which will be defined precisely later).
Under the assumption that the partial gradients of with respect to each block coordinate are Lipschitz continuous, Nesterov studied RBCD methods for solving some special cases of problem (1). In particular, for , he proposed a RBCD method in which a random block is chosen per iteration according to a uniform or certain non-uniform probability distributions and established an expected-value type of convergence rate. In addition, he proposed a RBCD method for solving (1) with each being the indicator function of a closed convex set, in which a random block is chosen uniformly at each iteration. He also derived an expected-value type of convergence rate for this method. It can be observed that the techniques used by Nesterov to derive these two convergence rates substantially differ from each other, and moreover, for the second rate is much better than the first one. (However, the second technique can only work with uniform distribution.) Recently, Richtárik and Takáč extended Nesterov’s RBCD methods to the general form of problem (1) and established a high-probability type of iteration complexity. Although the expected-value type of convergence rate is not presented explicitly in , it can be readily obtained from some intermediate result developed in (see Section 3 for a detailed discussion). Their results can be considered as a generalization of Nesterov’s first technique mentioned above. Given that for Nesterov’s second technique can produce a better convergence rate than his first one, a natural question is whether his second technique can be extended to work with the general setting of problem (1) and obtain a sharper convergence rate than the one implied in .
In addition, Nesterov proposed an accelerated RBCD (ARCD) method for solving problem (1) with and established an expected-value type of convergence rate for his method. When , this method becomes a deterministic accelerated full gradient method for minimizing smooth convex functions. When is a strongly convex function, the convergence rate given in for is, however, worse than the well-known optimal rate shown in [6, Theorem 2.2.2]. Then the question is whether a sharper convergence rate for the ARCD method than the one given in can be established (which would match the optimal rate for ).
In this paper, we successfully address the above two questions by obtaining some sharper convergence rates for the RBCD method for solving problem (1) and for the ARCD method in the case . First, we extend Nesterov’s second technique developed for a special case of (1) to analyze the RBCD method in the general setting, and obtain a sharper expected-value type of convergence rate than the one implied in . We also obtain a better high-probability type of iteration complexity, which improves upon the one in at least by the amount , where is the target solution accuracy.
For unconstrained smooth convex minimization (i.e., ), we develop a new technique called randomized estimate sequence to analyze Nesterov’s ARCD method and establish a sharper expected-value type of convergence rate than the one given in . Especially, for , our rate becomes the same as the well-known optimal rate achieved by accelerated full gradient method [6, Section 2.2].
This paper is organized as follows. In Section 2, we develop some technical results that are used to analyze the RBCD methods. In Section 3, we analyze the RBCD method for problem (1) by extending Nesterov’s second technique , and establish a sharper expected-value type of converge rate as well as improved high-probability iteration complexity. In Section 4, we develop the randomized estimate sequence technique and use it to derive a sharper expected-value type of converge rate for the ARCD method for solving unconstrained smooth convex minimization.
Technical preliminaries
In this section we develop some technical results that will be used to analyze the RBCD and ARCD methods subsequently. Throughout this paper we assume that problem (1) has a minimum () and its set of optimal solutions, denoted by , is nonempty.
For any partition of into , there is an permutation matrix partitioned as , where , such that
For any , the partial gradient of with respect to is defined as
For simplicity of presentation, we associate each subspace , for , with the standard Euclidean norm, denoted by . We make the following assumption which is used in as well.
The gradient of function is block-wise Lipschitz continuous with constants , i.e.,
Following , we define the following pair of norms in the whole space :
Clearly, they satisfy the Cauchy-Schwartz inequality:
Clearly, is strongly convex if and only if .
Assume that and have convexity parameters and with respect to the norm , respectively. Then the convexity parameter of is at least . Moreover, by Assumption 1, we have
which immediately implies that .
The following lemma concerns the expected value of a block-separable function when a random block of coordinate is updated.
Suppose that . For any , if we pick uniformly at random, then
Since each is picked randomly with probability , we have
The following result is equivalent to [11, Lemma 2].
Suppose . If we pick uniformly at random, then
We next develop some results regarding the block-wise composite gradient mapping. Composite gradient mapping was introduced by Nesterov for the analysis of full gradient methods for solving problem (1). Here we extend the concept and several associated properties to the block-coordinate case.
As mentioned in the introduction, the RBCD methods studied in solves in each iteration a block-wise proximal subproblem in the form of:
for some . By the first-order optimality condition, there exists a subgradient such that
Let . By (3), the definition of and separability of , we then have
We define the block-wise composite gradient mappings as
From the optimality conditions (4), we conclude
The following result establishes a lower bound of the function value , where is arbitrary in , based on the composite gradient mapping at another point .
For any fixed , if we pick uniformly at random, then
By (5) and convexity of and , we have
where the last inequality holds due to (6). This together with Lemma 2 yields the desired result. ∎
Using Lemma 1 with , we can rewrite the conclusion of Lemma 3 in an equivalent form:
This is the form we will actually use in our subsequent convergence analysis.
Letting in Lemma 3, we obtain the following corollary.
Given . If we pick uniformly at random, then
By similar arguments as in the proof of Lemma 3, it can be shown that a similar result as Lemma 3 also holds block-wise without taking expectation:
The following (trivial) corollary is useful when we do not have knowledge on or .
For any fixed , if we pick uniformly at random, then
Randomized block-coordinate descent
In this section we analyze the following randomized block coordinate descent (RBCD) method for solving problem (1), which was proposed in . In particular, we extend Nesterov’s technique developed for a special case of problem (1) to work with the general setting and establish some sharper expected-value type of converge rate, as well as improved high-probability iteration complexity, than those given or implied in .
Algorithm: RBCD Repeat for 1. Choose randomly with a uniform distribution. 2. Update .
After iterations, the RBCD method generates a random output , which depends on the observed realization of the random variable
The following quantity measures the distance between and the optimal solution set of problem (1) that will appear in our complexity results:
where is the set of optimal solutions of problem (1).
The following theorem is a generalization of [8, Theorem 5], where the function in (1) is restricted to be the indicator function of a block-separable closed convex set. Here we extend it to the general case of being block-separable convex functions by employing the machinery of block-wise composite gradient mapping developed in Section 2.
Let be defined in (8), be the optimal value of problem (1), and be the sequence generated by the RBCD method. Then for any , the iterate satisfies
Furthermore, if at least one of and is strongly convex, i.e., , then
Let be an arbitrary optimal solution of (1). Denote
Notice that . Thus we have
Multiplying both sides by and taking expectation with respect to yield
By rearranging terms, we obtain that for each ,
Taking expectation with respect to on both sides of the above inequality, we have
Applying this inequality recursively and using the fact that \mathbf{E}_{\xi_{k}}\bigl{[}F(x^{j})\bigr{]} is monotonically decreasing for (see Corollary 1), we further obtain that
which together with the arbitrariness of and the definition of yields (9).
Next we prove (10) under the strong convexity assumption . Using (7) and (11), we obtain that
We have due to and . Then
Combining the above inequality with (12) gives
Taking expectation with respect on both sides of the above relation, we have
which together with the arbitrariness of and the definition of leads to (10). ∎
We have the following remarks on comparing the results in Theorem 1 with those in .
For the general setting of problem (1), expected-value type of convergence rate is not presented explicitly in . Nevertheless, it can be derived straightforwardly from the following relation that was proved in [11, Theorem 5]:
where , and
Taking expectation with respect to on both sides of (13), one can have
By this relation and a similar argument as used in the proof of [8, Theorem 1], one can obtain that
Let and denote the right-hand side of (9) and (16), respectively. By the definition of and the relation , we can see that when is sufficiently large,
Therefore, our expected-value type of convergence rate is better by at least a factor of asymptotically, and the improvement can be much larger if is much larger than .
For the special case of (1) where at least one of and is strongly convex, i.e., , Richtárik and Takáč [11, Theorem 7] showed that for all , there holds
It then follows that for sufficiently large , one has
Therefore, our convergence rate (10) is much sharper than their rate for sufficiently large .
2 High probability complexity bound
By virtue of Theorem 1 we can also derive a sharper iteration complexity for a single run of the RBCD method for obtaining an -optimal solution with high probability than the one given in [11, Theorems 5 and 7].
Let be defined in (8) and be the sequence generated by the RBCD method. Let and be chosen arbitrarily.
(i) For convenience, let for all . Define the truncated sequence as follows:
Using (13) and the same argument as used in the proof of [11, Theorem 1], one can have
Taking expectation with respect to on both sides of the above relation, we obtain that
In addition, using (9) and the relation , we have
It follows from (21) that , which together with (20) implies that
Notice from (20) that is decreasing. Hence, we have
Also, one can observe from (19) that , which together with (22) implies that
Using this relation and Markov inequality, we obtain that
which immediately implies statement (i) holds.
We make the following remarks in comparing our results in Theorem 2 with those in .
For any and , Richtárik and Takáč [11, Theorem 5] showed that (18) holds for all , where
and is given in (14). Using the definitions of and and the fact , one can observe that
By the definitions of and , we have that for sufficiently small ,
In addition, by the definitions of and , one can see that can be much smaller than and thus can be very small. It follows from the above relation that can be substantially smaller than .
For a special case of (1) where at least one of and is strongly convex, i.e., , Richtárik and Takáč [11, Theorem 8] showed that (18) holds for all , where
We then see that when or is sufficiently small,
As discussed in [11, Section 2], the number of iterations required by the RBCD method for obtaining an -optimal solution with high probability can also be estimated by using a multiple-run strategy, each run with an independently generated random sequence . We next derive such an iteration complexity.
Let and be arbitrarily chosen, and let . Suppose that we run the RBCD method starting with for times independently, each time for the same number of iterations . Let denote the output by the RBCD at the th iteration of the th run. Then there holds:
Let denote the random sequence used in the th run. Using Markov inequality, (9) and the definition of , we obtain that for any ,
This together with the definition of implies that
From Theorem 3, one can see that the total number of iterations by RBCD with a multiple-run strategy for obtaining an -optimal solution is at most
It was implicitly established in that an -optimal solution can be found by RBCD with a multiple-run strategy in at most
iterations. When or is sufficiently small, we have
Recall that can be much larger than , which together with (15) implies that can be much larger than . It follows from the above relation that when or is sufficiently small, can be substantially smaller than .
Accelerated randomized coordinate descent
In this section, we restrict ourselves to the unconstrained smooth minimization problem
where is convex in with convexity parameter with respect to the norm and satisfies Assumption 1. It then follows from (2) that . Our aim is to analyze the convergence rate of the following accelerated randomized coordinate descent (ARCD) method.
Algorithm: ARCD Set , choose arbitrarily, and repeat for 1. Compute from the equation and set 2. Compute as 3. Choose uniformly at random, and update 4. Set
For the above algorithm, claim that and is well-defined for all . Indeed, let be arbitrarily given and define
where the last inequality is due to . Therefore, by continuity of , there exists some such that . Moreover, if , we have . Using these observations and the definitions of and , it is not hard to see by induction that and is well-defined for all .
The above description of the ARCD method comes directly from the derivation using randomized estimate sequence we develop in Section 4.1, and is very convenient for the purpose of our convergence analysis. For implementation in practice, one can simplify the notations and use an equivalent algorithm described below. In the simplified description, it is also clear that the ARCD method is equivalent to the method (5.1) in [8, Section 5], with the following correspondences between the symbols used.
Algorithm: ARCD Set , choose , and repeat for 1. Compute from the equation and set 2. Compute as 3. Choose uniformly at random, and update 4. Set
At each iteration , the ARCD method generates , and . One can observe that and depend on the realization of the random variable
while depends on the realization of .
We now state a sharper expected-value type of convergence rate for the ARCD method than the one given in . Its proof relies on a new technique called randomized estimate sequence that will be developed in Subsection 4.1. Therefore, we postpone the proof to Subsection 4.2.
Let be the optimal value of problem (23), be defined in (8), and be the sequence generated by the ARCD method. Then, for any , there holds:
where and . In particular, if , then
We note that for , the ARCD method reduces to a deterministic accelerated full gradient method described in [6, (2.2.8)]; Our iteration complexity result above also becomes the same as the one given there.
Nesterov [8, Theorem 6] established the following convergence rate for the above ARCD method:
In view of Theorem 4, our convergence rate is given by
We now compare the above two rates by considering two cases: and .
Case (1): . We can observe that for sufficiently large ,
and hence when is sufficiently large, which implies that our rate is much tighter.
Case (2): . For sufficiently , we have
Therefore, when , we obtain for sufficiently large , which again implies that our rate is sharper.
In , Nesterov introduced a powerful framework of estimate sequence for the development and analysis of accelerated full gradient methods. Here we extend it to a randomized block-coordinate descent setup, and use it to analyze the convergence rate of the ARCD method subsequently.
Let be a deterministic function and be a random function depending on for all , and for all . The sequence is called a randomized estimate sequence of function if
and for any and all we have
Here we assume is a deterministic sequence that is independent of .
Let be an optimal solution to (23) and be the optimal value. Suppose that is a randomized estimate sequence of function . Assume that is a sequence such that for each ,
Since is a randomized estimate sequence of , it follows from (25) and (26) that
which together with (24) implies that the conclusion holds. ∎
As we will see next, our construction of the randomized estimate sequence satisfies a stronger condition, i.e.,
This implies that the assumption in Lemma 4, namely, (26) holds due to
Assume that satisfies Assumption 1 with convexity parameter . In addition, suppose that
is an arbitrary deterministic function on ;
is a sequence in such that depends on ;
is independent of and satisfies for all and .
Then the pair of sequences and constructed by setting and
is a randomized estimate sequence of .
It follows from (27) and that for . Then we have
due to . Hence, . We next prove by induction that (25) holds for all . Indeed, for , we know that and hence
that is, (25) holds for . Now suppose it holds for some . Using (28), we obtain that
where the last inequality is due to convexity of . Using the induction hypothesis, we have
and hence (25) also holds for . This completes the proof. ∎
Let . Then the randomized estimate sequence constructed in Lemma 5 preserves the canonical form of the functions, i.e., for all ,
where the sequences , and are defined as follows:
First we observe that is a convex quadratic function due to (28) and the definition of . We now prove by induction that for is given by (29) all . Clearly, (29) holds for . Suppose now that it holds for some . It follows that the Hessian of is a block-diagonal matrix given by
Using this relation, (28) and (30), we have
Using the induction hypothesis by substituting (29) into (28), we can write as
By virtue of the above relations and (32), it is not hard to conclude that
which, together with (33), (35) and the fact that is quadratic, implies that
2 Proof of Theorem 4
Let , and be generated in the ARCD method. In addition, let be the randomized estimate sequence of generated as in Lemma 5 by using such and .
First we prove by induction that for all ,
For , using , the definition of and , we have
and hence (36) holds for . Now suppose it holds for some . It follows from (32) that
and . Then we have
Using these two equalities and dropping the term in (4.2), we arrive at
By the induction hypothesis and the convexity of , we obtain that
Combining the above two inequalities gives
This relation together with the above inequality yields
Also, we observe that . Substituting it into the above inequality gives
Therefore, (36) holds for all . Further, by Lemma 4, we have
Finally, we estimate the decay of , using the same arguments in the proof of [6, Lemma 2.2.4]. Here we assume (it suffices to set because ). Indeed, if , then
So we have for all . Since , we have for all . Therefore,
In addition, we have . To see this, we note and use induction
Since is a decreasing sequence, we have
By further noting , we obtain