Coordinate Descent Converges Faster with the Gauss-Southwell Rule Than Random Selection
Julie Nutini, Mark Schmidt, Issam H. Laradji, Michael Friedlander, Hoyt Koepke
Coordinate Descent Methods
There has been substantial recent interest in applying coordinate descent methods to solve large-scale optimization problems, starting with the seminal work of Nesterov (2012), who gave the first global rate-of-convergence analysis for coordinate-descent methods for minimizing convex functions. This analysis suggests that choosing a random coordinate to update gives the same performance as choosing the “best” coordinate to update via the more expensive Gauss-Southwell (GS) rule. (Nesterov also proposed a more clever randomized scheme, which we consider later in this paper.) This result gives a compelling argument to use randomized coordinate descent in contexts where the GS rule is too expensive. It also suggests that there is no benefit to using the GS rule in contexts where it is relatively cheap. But in these contexts, the GS rule often substantially outperforms randomized coordinate selection in practice. This suggests that either the analysis of GS is not tight, or that there exists a class of functions for which the GS rule is as slow as randomized coordinate descent.
After discussing contexts in which it makes sense to use coordinate descent and the GS rule, we answer this theoretical question by giving a tighter analysis of the GS rule (under strong-convexity and standard smoothness assumptions) that yields the same rate as the randomized method for a restricted class of functions, but is otherwise faster (and in some cases substantially faster). We further show that, compared to the usual constant step-size update of the coordinate, the GS method with exact coordinate optimization has a provably faster rate for problems satisfying a certain sparsity constraint (Section 5). We believe that this is the first result showing a theoretical benefit of exact coordinate optimization; all previous analyses show that these strategies obtain the same rate as constant step-size updates, even though exact optimization tends to be faster in practice. Furthermore, in Section 6, we propose a variant of the GS rule that, similar to Nesterov’s more clever randomized sampling scheme, uses knowledge of the Lipschitz constants of the coordinate-wise gradients to obtain a faster rate. We also analyze approximate GS rules (Section 7), which provide an intermediate strategy between randomized methods and the exact GS rule. Finally, we analyze proximal-gradient variants of the GS rule (Section 8) for optimizing problems that include a separable non-smooth term.
Problems of Interest
The rates of Nesterov show that coordinate descent can be faster than gradient descent in cases where, if we are optimizing variables, the cost of performing coordinate updates is similar to the cost of performing one full gradient iteration. This essentially means that coordinate descent methods are useful for minimizing convex functions that can be expressed in one of the following two forms:
where is element of , is smooth and cheap, the are smooth, is a graph, and is a matrix. (It is assumed that all functions are convex.)We could also consider slightly more general cases like functions that are defined on hyper-edges (Richtárik and Takáč, 2015), provided that we can still perform coordinate updates for a similar cost to one gradient evaluation. The family of functions includes core machine-learning problems such as least squares, logistic regression, lasso, and SVMs (when solved in dual form) (Hsieh et al., 2008). Family includes quadratic functions, graph-based label propagation algorithms for semi-supervised learning (Bengio et al., 2006), and finding the most likely assignments in continuous pairwise graphical models (Rue and Held, 2005).
In general, the GS rule for problem is as expensive as a full gradient evaluation. However, the structure of often allows efficient implementation of the GS rule. For example, if each node has at most neighbours, we can track the gradients of all the variables and use a max-heap structure to implement the GS rule in time (Meshi et al., 2012). This is similar to the cost of the randomized algorithm if (since the average cost of the randomized method depends on the average degree). This condition is true in a variety of applications. For example, in spatial statistics we often use two-dimensional grid-structured graphs, where the maximum degree is four and the average degree is slightly less than . As another example, for applying graph-based label propagation on the Facebook graph (to detect the spread of diseases, for example), the average number of friends is around but no user has more than seven thousand friends.https://recordsetter.com/world-record/facebook-friends The maximum number of friends would be even smaller if we removed edges based on proximity. A non-sparse example where GS is efficient is complete graphs, since here the average degree and maximum degree are both . Thus, the GS rule is efficient for optimizing dense quadratic functions. On the other hand, GS could be very inefficient for star graphs.
If each column of has at most non-zeroes and each row has at most non-zeroes, then for many notable instances of problem we can implement the GS rule in time by maintaining as well as the gradient and again using a max-heap (see Appendix A). Thus, GS will be efficient if is similar to the number of non-zeroes in divided by . Otherwise, Dhillon et al. (2011) show that we can approximate the GS rule for problem with no functions by solving a nearest-neighbour problem. Their analysis of the GS rule in the convex case, however, gives the same convergence rate that is obtained by random selection (although the constant factor can be smaller by a factor of up to ). More recently, Shrivastava and Li (2014) give a general method for approximating the GS rule for problem with no functions by writing it as a maximum inner-product search problem.
Existing Analysis
We are interested in solving the convex optimization problem
where is coordinate-wise -Lipschitz continuous, i.e., for each ,
where is a vector with a one in position and zero in all other positions. For twice-differentiable functions, this is equivalent to the assumption that the diagonal elements of the Hessian are bounded in magnitude by . In contrast, the typical assumption used for gradient methods is that is -Lipschitz continuous (note that ). The coordinate-descent method with constant step-size is based on the iteration
The randomized coordinate-selection rule chooses uniformly from the set . Alternatively, the GS rule
chooses the coordinate with the largest directional derivative. Under either rule, because is coordinate-wise Lipschitz continuous, we obtain the following bound on the progress made by each iteration:
We focus on the case where is -strongly convex, meaning that, for some positive ,
where is the optimal solution of (1). This bound is obtained by minimizing both sides of (3) with respect to .
Conditioning on the -field generated by the sequence , and taking expectations of both sides of (2), when is chosen with uniform sampling we obtain
Using (4) and subtracting from both sides, we get
This is a special of case of Nesterov (2012, Theorem 2) with in his notation.
2 Gauss-Southwell
We now consider the progress implied by the GS rule. By the definition of ,
Applying this inequality to (2), we obtain
This is a special case of Boyd and Vandenberghe (2004, §9.4.3), viewing the GS rule as performing steepest descent in the -norm. While this is faster than known rates for cyclic coordinate selection (Beck and Tetruashvili, 2013) and holds deterministically rather than in expectation, this rate is the same as the randomized rate given in (5).
Refined Gauss-Southwell Analysis
The deficiency of the existing GS analysis is that too much is lost when we use the inequality in (6). To avoid the need to use this inequality, we instead measure strong-convexity in the -norm, i.e.,
which is the analogue of (3). Minimizing both sides with respect to , we obtain
which makes use of the convex conjugate (Boyd and Vandenberghe, 2004, §3.3). Using (8) in (2), and the fact that for the GS rule, we obtain
It is evident that if , then the rates implied by (5) and (9) are identical, but (9) is faster if . In Appendix B, we show that the relationship between and can be obtained through the relationship between the squared norms and . In particular, we have
Thus, at one extreme the GS rule obtains the same rate as uniform selection (). However, at the other extreme, it could be faster than uniform selection by a factor of (). This analysis, that the GS rule only obtains the same bound as random selection in an extreme case, supports the better practical behaviour of GS.
We illustrate these two extremes with the simple example of a quadratic function with a diagonal Hessian . In this case,
We prove the correctness of this formula for in Appendix C. The parameter achieves its lower bound when all are equal, , in which case
Thus, uniform selection does as well as the GS rule if all elements of the gradient change at exactly the same rate. This is reasonable: under this condition, there is no apparent advantage in selecting the coordinate to update in a clever way. Intuitively, one might expect that the favourable case for the Gauss-Southwell rule would be where one is much larger than the others. However, in this case, is again similar to . To achieve the other extreme, suppose that and with . In this case, we have and
If we take , then we have , so . This case is much less intuitive; GS is times faster than random coordinate selection if one element of the gradient changes much more slowly than the others.
2 ‘Working Together’ Interpretation
In the separable quadratic case above, is given by the harmonic mean of the eigenvalues of the Hessian divided by . The harmonic mean is dominated by its smallest values, and this is why having one small value is a notable case. Furthermore, the harmonic mean divided by has an interpretation in terms of processes ‘working together’ (Ferger, 1931). If each represents the time taken by each process to finish a task (e.g., large values of correspond to slow workers), then is the time needed by the fastest worker to complete the task, and is the time needed to complete the task if all processes work together (and have independent effects). Using this interpretation, the GS rule provides the most benefit over random selection when working together is not efficient, meaning that if the processes work together, then the task is not solved much faster than if the fastest worker performed the task alone. This gives an interpretation of the non-intuitive scenario where GS provides the most benefit: if all workers have the same efficiency, then working together solves the problem times faster. Similarly, if there is one slow worker (large ), then the problem is solved roughly times faster by working together. On the other hand, if most workers are slow (many large ), then working together has little benefit.
3 Fast Convergence with Bias Term
Consider the standard linear-prediction framework,
where we have included a bias variable (an example of problem ). Typically, the regularization parameter of the bias variable is set to be much smaller than the regularization parameter of the other covariates, to avoid biasing against a global shift in the predictor. Assuming that there is no hidden strong-convexity in the sum, this problem has the structure described in the previous section () where GS has the most benefit over random selection.
Rates with Different Lipschitz Constants
Consider the more general scenario where we have a Lipschitz constant for the partial derivative of with respect to each coordinate ,
and we use a coordinate-dependent step-size at each iteration:
By the logic of (2), in this setting we have
Noting that , we have
Thus, the convergence rate based on the will be faster, provided that at least one iteration chooses an with . In the worst case, however, (13) holds with equality even if the are distinct, as we might need to update a coordinate with on every iteration. (For example, consider a separable function where all but one coordinate is initialized at its optimal value, and the remaining coordinate has .) In Section 6, we discuss selection rules that incorporate the to achieve faster rates whenever the are distinct, but first we consider the effect of exact coordinate optimization on the choice of the .
For problems involving functions of the form and , we are often able to perform exact (or numerically very precise) coordinate optimization, even if the objective function is not quadratic (e.g., by using a line-search or a closed-form update). Note that (12) still holds when using exact coordinate optimization rather than using a step-size of , as in this case we have
which is equivalent to (11). However, in practice using exact coordinate optimization leads to better performance. In this section, we show that using the GS rule results in a convergence rate that is indeed faster than (9) for problems with distinct when the function is quadratic, or when the function is not quadratic but we perform exact coordinate optimization.
The key property we use is that, after we have performed exact coordinate optimization, we are guaranteed to have . Because the GS rule chooses , we cannot have , unless is the optimal solution. Hence, we never choose the same coordinate twice in a row, which guarantees that the inequality (13) is strict (with distinct ) and exact coordinate optimization is faster. We note that the improvement may be marginal, as we may simply alternate between the two largest values. However, consider minimizing when the graph is sparse; after updating , we are guaranteed to have for all future iterations until we choose a variable that is a neighbour of node in the graph. Thus, if the two largest are not connected in the graph, GS cannot simply alternate between the two largest .
By using this property, in Appendix D we show that the GS rule with exact coordinate optimization for problem under a chain-structured graph has a convergence rate of the form
where is the maximizer of among all consecutive nodes and in the chain, and is the maximizer of among consecutive nodes , , and . The implication of this result is that, if the large values are more than two edges from each other in the graph, then we obtain a much better convergence rate. We conjecture that for general graphs, we can obtain a bound that depends on the largest value of among all nodes and connected by a path of length or . Note that we can obtain similar results for problem , by forming a graph that has an edge between nodes and whenever the corresponding variables are both jointly non-zero in at least one row of .
Rules Depending on Lipschitz Constants
If the are known, Nesterov (2012) showed that we can obtain a faster convergence rate by sampling proportional to the . We review this result below and compare it to the GS rule, and then propose an improved GS rule for this scenario. Although in this section we will assume that the are known, this assumption can be relaxed using a backtracking procedure (Nesterov, 2012, §6.1).
Taking the expectation of (11) under the distribution and proceeding as before, we obtain
where is the average of the Lipschitz constants. This was shown by Leventhal and Lewis (2010) and is a special case of Nesterov (2012, Theorem 2) with in his notation. This rate is faster than (5) for uniform sampling if any differ.
Under our analysis, this rate may or may not be faster than (9) for the GS rule. On the one extreme, if and any differ, then this Lipschitz sampling scheme is faster than our rate for GS. Indeed, in the context of the problem from Section 4.1, we can make Lipschitz sampling faster than GS by a factor of nearly by making one much larger than all the others (recall that our analysis shows no benefit to the GS rule over randomized selection when only one is much larger than the others). At the other extreme, in our example from Section 4.1 with many large and one small , the GS and Lipschitz sampling rates are the same when , with a rate of . However, the GS rate will be faster than the Lipschitz sampling rate for any when , as the Lipschitz sampling rate is , which is slower than the GS rate of .
2 Gauss-Southwell-Lipschitz Rule
Since neither Lipschitz sampling nor GS dominates the other in general, we are motivated to consider if faster rules are possible by combining the two approaches. Indeed, we obtain a faster rate by choosing the that minimizes (11), leading to the rule
which we call the Gauss-Southwell-Lipschitz (GSL) rule. Following a similar argument to Section 4, but using (11) in place of (2), the GSL rule obtains a convergence rate of
where is the strong-convexity constant with respect to the norm . This is shown in Appendix E, and in Appendix F we show that
Thus, the GSL rule is always at least as fast as the fastest of the GS rule and Lipschitz sampling. Indeed, it can be more than a factor of faster than using Lipschitz sampling, while it can obtain a rate closer to the minimum , instead of the maximum that the classic GS rule depends on.
An interesting property of the GSL rule for quadratic functions is that it is the optimal myopic coordinate update. That is, if we have an oracle that can choose the coordinate and the step-size that decreases by the largest amount, i.e.,
this is equivalent to using the GSL rule and the update in (10). This follows because (11) holds with equality in the quadratic case, and the choice yields the optimal step-size. Thus, although faster schemes could be possible with non-myopic strategies that cleverly choose the sequence of coordinates or step-sizes, if we can only perform one iteration, then the GSL rule cannot be improved.
For general , (15) is known as the maximum improvement (MI) rule. This rule has been used in the context of boosting (Rätsch et al., 2001), graphical models (Della Pietra et al., 1997; Lee et al., 2006; Scheinberg and Rish, 2009), Gaussian processes (Bo and Sminchisescu, 2008), and low-rank tensor approximations (Li et al., 2015). Using an argument similar to (14), our GSL rate also applies to the MI rule, improving existing bounds on this strategy. However, the GSL rule is much cheaper and does not require any special structure (recall that we can estimate as we go).
3 Connection between GSL Rule and Normalized Nearest Neighbour Search
Dhillon et al. (2011) discuss an interesting connection between the GS rule and the nearest-neighbour-search (NNS) problem for objectives of the form
This is a special case of with no functions, and its gradient has the special form
where . We use the symbol because it is the residual vector () in the special case of least squares. For this problem structure the GS rule has the form
where denotes column of for . Dhillon et al. (2011) propose to approximate the above by solving the following NNS problem
where in the range through refers to the negation of column and if the selected is greater than we return . We can justify this approximation using the logic
Thus, the NNS computes an approximation to the GS rule that is biased towards coordinates where is small. Note that this formulation is equivalent to the GS rule in the special case that (or any other constant) for all . Shrivastava and Li (2014) have more recently considered the case where and incorporate powers of in the NNS to yield a better approximation.
A further interesting property of the GSL rule is that we can often formulate the exact GSL rule as a normalized NNS problem. In particular, for problem (16) the Lipschitz constants will often have the form for a some positive scalar . For example, least squares has and logistic regression has . When the Lipschitz constants have this form, we can compute the exact GSL rule by solving a normalized NNS problem,
The exactness of this formula follows because
Thus, the form of the Lipschitz constant conveniently removes the bias towards smaller values of that gets introduced when we try to formulate the classic GS rule as a NNS problem. Interestingly, in this setting we do not need to know to implement the GSL rule as a NNS problem.
Approximate Gauss-Southwell
In many applications, computing the exact GS rule is too inefficient to be of any practical use. However, a computationally cheaper approximate GS rule might be available. Approximate GS rules under multiplicative and additive errors were considered by Dhillon et al. (2011) in the convex case, but in this setting the convergence rate is similar to the rate achieved by random selection. In this section, we give rates depending on for approximate GS rules.
In the multiplicative error regime, the approximate GS rule chooses an satisfying
for some . In this regime, our basic bound on the progress (2) still holds, as it was defined for any . We can incorporate this type of error into our lower bound (8) to obtain
Thus, the convergence rate of the method is nearly identical to using the exact GS rule for small (and it degrades gracefully with . This is in contrast to having an error in the gradient (Friedlander and Schmidt, 2012), where the error must decrease to zero over time.
2 Additive Errors
In the additive error regime, the approximate GS rule chooses an satisfying
for some . In Appendix G, we show that under this rule, we have
where is the Lipschitz constant of with respect to the 1-norm. Note that could be substantially larger than , so the second part of the maximum in is likely to be the smaller part unless the are large. This regime is closer to the case of having an error in the gradient, as to obtain convergence the must decrease to zero. This result implies that a sufficient condition for the algorithm to obtain a linear convergence rate is that the errors converge to zero at a linear rate. Further, if the errors satisfy for some , then the convergence rate of the method is the same as if we used an exact GS rule. On the other hand, if does not decrease to zero, we may end up repeatedly updating the same wrong coordinate and the algorithm will not converge (though we could switch to the randomized method if this is detected).
Proximal-Gradient Gauss-Southwell
One of the key motivations for the resurgence of interest in coordinate descent methods is their performance on problems of the form
With random coordinate selection, Richtárik and Takáč (2014) show that this method has a convergence rate of
similar to the unconstrained/smooth case.
However, the length of the step () could be arbitrarily small under this choice. In contrast, the GS- rule chooses the coordinate that maximizes the length of the step (Tseng and Yun, 2009; Dhillon et al., 2011),
This rule is effective for bound-constrained problems, but it ignores the change in the non-smooth term (). Finally, the GS- rule maximizes progress assuming a quadratic upper bound on (Tseng and Yun, 2009),
While the least intuitive rule, the GS- rule seems to have the best theoretical properties. Further, if we use in place of in the GS- rule (which we call the GSL- strategy), then we obtain the GSL rule if the are not present. In contrast, using in place of in the GS- rule (which we call the GSL- strategy) does not yield the GSL rule as a special case.
In Appendix H, we show that using the GS- rule yields a convergence rate of
thus matching the convergence rate of randomized coordinate descent (but deterministically rather than in expectation). In contrast, in Appendix H we also give counter-examples showing that the above rate does not hold for the GS- or the GS- rule. Thus, any bound for the GS- or the GS- rule would be slower than the expected rate under random selection, while the GS- rule matches this bound. It is an open problem whether the GS- rule obtains the rate in general, but in the next section we discuss special cases where rates depending on can be obtained.
First, we note that if the are linear then the GS- rule obtains
since in this particular (smooth) case the algorithm and assumptions are identical to the setting of Section 4: the GS-q rule chooses the same coordinate to update as the GS rule applied to , while has the same and as because the are linear.
Finally, consider the case of that are piecewise-linear. Under a suitable non-degeneracy assumption, coordinate descent methods achieve a particular “active set” property in a finite number of iterations (Wright, 2012; Nutini et al., 2017). Specifically, for values of that occur at non-smooth values of , we will have for all sufficiently large . At this point, none of the four GS- rules would select such coordinates again. Similarly, for values where occurs at smooth values of , the iterates will eventually be confined to a region where the is smooth. Once this “active set” identification happens for piecewise-linear , the iterates will be confined to a region where the selected are linear. At this point, linearity means that only one coordinate will be selected by the GS- rule and it will select the same coordinate as the GS- rule. Further, at this point the analysis of Nutini (2018, Appendix A.8) can be applied with instead for the GS- rule which leads to a rate of as in the smooth case.
Experiments
an instance of problem . We set to be an by matrix with entries sampled from a distribution (with and ). We then added 1 to each entry (to induce a dependency between columns), multiplied each column by a sample from multiplied by ten (to induce different Lipschitz constants across the coordinates), and only kept each entry of non-zero with probability (a sparsity level that allows the Gauss-Southwell rule to be applied with cost . We set and , where the entries of and were drawn from a distribution. In this setting, we used a step-size of for each coordinate , which corresponds to exact coordinate optimization.
We set the to be the rows of from the previous problem, and set sign, but randomly flipping each with probability . In this setting, we compared using a step-size of to using exact coordinate optimization.
Over-determined dense least squares: Here we consider the problem
but, unlike the previous case, we do not set elements of to zero and we make have dimension by . Because the system is over-determined, it does not need an explicit strongly-convex regularizer to induce global strong-convexity. In this case, the density level means that the exact GS rule is not efficient. Hence, we use a balltree structure (Omohundro, 1989) to implement an efficient approximate GS rule based on the connection to the NNS problem discovered by Dhillon et al. (2011). On the other hand, we can compute the exact GSL rule for this problem as a NNS problem as discussed in Section 6.3.
We next consider an instance of problem , performing label propagation for semi-supervised learning in the ‘two moons’ dataset (Zhou et al., 2004). We generate samples from this dataset, randomly label five points in the data, and connect each node to its five nearest neighbours. This high level of sparsity is typical of graph-based methods for semi-supervised learning, and allows the exact Gauss-Southwell rule to be implemented efficiently. We use the quadratic labeling criterion of Bengio et al. (2006), which allows exact coordinate optimization and is normally optimized with cyclic coordinate descent. We plot the performance under different selection rules in Figure 2. Here, we see that even cyclic coordinate descent outperforms randomized coordinate descent, but that the GS and GSL rules give even better performance. We note that the GS and GSL rules perform similarly on this problem since the Lipschitz constants do not vary much.
Discussion
It is clear that the GS rule is not practical for every problem where randomized methods are applicable. Nevertheless, we have shown that even approximate GS rules can obtain better convergence rate bounds than fully-randomized methods. We have given a similar justification for the use of exact coordinate optimization, and we note that our argument could also be used to justify the use of exact coordinate optimization within randomized coordinate descent methods (as used in our experiments). We have also proposed the improved GSL rule, and considered approximate/proximal variants. We expect our analysis also applies to block updates by using mixed norms , and could be used for accelerated/parallel methods (Fercoq and Richtárik, 2013), for primal-dual rates of dual coordinate ascent (Shalev-Shwartz and Zhang, 2013), for successive projection methods (Leventhal and Lewis, 2010), for boosting algorithms (Rätsch et al., 2001), and for scenarios without strong-convexity under general error bounds (Luo and Tseng, 1993).
Acknowledgements
We would like to thank the anonymous referees for their useful comments that significantly improved the paper. Julie Nutini is funded by an NSERC Canada Graduate Scholarship.
Appendix A Efficient calculation of GS rules for sparse problems
We first give additional details on how to calculate the GS rule efficiently for sparse instances of problems and . We will consider the case where each is smooth, but the ideas can be extended to allow a non-smooth . Further, note that the efficient calculation does not rely on convexity, so these strategies can also be used for non-convex problems.
where each and are differentiable and is a graph where the number of vertices is the same as the number of variables . If all nodes in the graph have a degree (number of neighbours) bounded above by some constant , we can implement the GS rule in after an time initialization by maintaining the following information about :
A vector containing the values .
A matrix containing the values in the first column and in the second column.
The elements of the gradient vector stored in a binary max heap data structure (see Cormen et al., 2001, Chapter 6).
Given the heap structure, we can compute the GS rule in by simply reading the index value of the root node in the max heap. The costs for initializing these structures are:
to compute for all nodes.
to compute for all edges.
to sum the values in the above structures to compute , and to construct the initial max heap.
Thus, the one-time initialization cost is . The costs of updating the data structures after we update to for the selected coordinate are:
to compute .
to compute for and or (only such values exist by assumption, and all other are unchanged).
to update up to elements of that differ from by using differences in changed values of and , followed by to perform updates of the heap at a cost of for each update.
The most expensive part of the update is modifying the heap, and thus the total cost is .For less-sparse problems where , using a heap is actually inefficient and we should simply store as a vector. The initialization cost is the same, but we can then perform the GS rule in by simply searching through the vector for the maximum element.
where and are differentiable, and is an by matrix where we denote column by and row by . Note that is a function from to , and we assume only depends on . While this is a strong assumption (e.g., it rules out being the product function), this class includes a variety of notable problems like the least squares and logistic regression models from our experiments. If has non-zero elements, with a maximum of non-zero elements in each column and non-zero elements in each row, then with a pre-processing cost of we can implement the GS rule in this setting in by maintaining the following information about :
A vector containing the values .
A vector containing the product .
A vector containing the values .
A vector containing the product .
The elements of the gradient vector stored in a binary max heap data structure.
The heap structure again allows us to compute the GS rule in , and the costs of initializing these structures are:
to compute for all variables.
to compute (using that only depends on ).
to compute .
to add the to the above product to obtain and construct the initial max heap.
As it is reasonable to assume that and (e.g., we have at least one non-zero in each row and column), the cost of the initialization is thus . The costs of updating the data structures after we update to for the selected coordinate are:
to compute .
to update the product using , since has at most non-zero values.
to update up to elements of that have changed (again using that only depends on ).
to perform up to updates of the form , where each update costs since each has at most non-zero values.
to update the gradients in the heap.
The most expensive part is again the heap update, and thus the total cost is .
We can establish the relationship between and by using the known relationship between the -norm and the -norm,
In particular, if we assume that is -strongly convex in the -norm, then for all and we have
implying that is at least -strongly convex in the -norm. Similarly, if we assume that a given is -strongly convex in the -norm then for all and we have
implying that is at least -strongly convex in the -norm. Summarizing these two relationships, we have
Appendix C Analysis for separable quadratic case
We first establish an equivalent definition of strong-convexity in the -norm, along the lines of Nesterov (2004, Theorem 2.1.9). Subsequently, we use this equivalent definition to derive for a separable quadratic function.
Assume that is -strongly convex in the -norm, so that for any we have
Conversely, assume that for all and we have
and consider the function for . Then
Thus, -strong convexity in the -norm is equivalent to having
Consider a strongly convex quadratic function with a diagonal Hessian , where for all . We show that in this case
From the previous section, is the minimum value such that (20) holds,
Using for some and letting , we get
where the last two lines use that the objective is invariant to scaling of and to the sign of (respectively), and where is a vector containing a one in every position. This is an equality-constrained strictly-convex quadratic program, so its solution is given as a stationary point of the Lagrangian,
Differentiating with respect to each for and equating to zero, we have for all that , or
Differentiating the Lagrangian with respect to and equating to zero we obtain , or equivalently
Combining this result for with equation (21), we have
This gives the minimizer, so we evaluate the objective at this point to obtain ,
Appendix D Gauss-Southwell with exact optimization
We can obtain a faster convergence for GS using exact coordinate optimization for sparse variants of problems and , by observing that the convergence rate can be expressed in terms of the sequence of values,
The worst case occurs when the product of the values is as large as possible. However, using exact coordinate optimization guarantees that, after we have updated coordinate , the GS rule will never select it again until one of its neighbours has been selected. Thus, we can obtain a tighter bound on the worst-case convergence rate using GS with exact coordinate optimization on iteration , by solving the following combinatorial optimization problem defined on a weighted graph:
We are given a graph with nodes, a number associated with each node , and an iteration number . Choose a sequence that maximizes the sum of the , subject to the following constraint: after each time node has been chosen, it cannot be chosen again until after a neighbour of node has been chosen.
We can use the chosen by this problem to obtain an upper-bound on the sequence of values, and if the largest values are not close to each other in the graph, then this rate can be much faster than the rate obtained by alternating between the largest values. In the particular case of chain-structured graphs, a worst-case sequence can be constructed that spends all but iterations in one of two solution modes: (i) alternate between two nodes and that are connected by an edge with the highest value of , or (ii) alternate between three nodes with the highest value of , where there is an edge from to and from to , but not from to . To show that these are the two solution modes, observe that the solution must eventually cycle because there are a finite number of nodes. If you have more than three nodes in the cycle, then you can always remove one node from the cycle to obtain a better average weight for the cycle without violating the constraint. We will fall into mode (i) if the average of and in this mode is larger than the average of , and in the second mode. We can construct a solution to this problem that consists of a ‘burn-in’ period, where we choose the largest , followed by repeatedly going through the better of the two solution modes up until the final three steps, where a ‘burn-out’ phase arranges to finish with several large . By setting , this leads to a convergence rate of the form
where is the maximizer of among all consecutive nodes and in the chain, and is the maximizer of among consecutive nodes , , and . The notation gives the constant due to choosing higher values during the burn-in and burn-out periods. The implication of this result is that, if the large values are more than two edges away from each other in the graph, then the convergence rate can be much faster.
Appendix E Gauss-Southwell-Lipschitz rule: convergence rate
The coordinate-descent method with a constant step-size of uses the iteration
Because is coordinate-wise -Lipschitz continuous, we obtain the following bound on the progress made by each iteration:
By choosing the coordinate to update according to the Gauss-Southwell-Lipchitz (GSL) rule,
we obtain the tightest possible bound on (22). We define the following norm,
Under this notation, and using the GSL rule, (22) becomes
Measuring strong-convexity in the norm we get
Minimizing both sides with respect to we get
By the logic Appendix B, to establish a relationship between different strong-convexity constants under different norms, it is sufficient to establish the relationships between the squared norms. In this section, we use this to establish the relationship between defined in (23) and both and .
Assuming , where , the expression is non-negative and we get
and assuming , where , this expression is nonnegative and we get
The relationship between and is based on the squared norm, so in summary we have
Let denote a vector with elements , and we note that
Note that we can also show that , but this is less tight than the upper bound from the previous section because .
Appendix G Approximate Gauss-Southwell with additive error
In the additive error regime, the approximate Gauss-Southwell rule chooses an satisfying
and we note that we can assume without loss of generality because we must always choose an with . Applying this to our bound on the iteration progress, we get
We first give a result that assumes is -Lipschitz continuous in the -norm. This implies an inequality that we prove next, followed by a convergence rate that depends on . However, note that , so this potentially introduces a dependency on . We subsequently give a slightly less concise result that has a worse dependency on but does not rely on .
We say that is -Lipschitz continuous in the -norm if we have for all and that
Similar to Nesterov (2004, Theorem 2.1.5), we now show that this implies
where we have used that for all and any choice of (this follows from the basic bound on the progress of coordinate descent methods).
We first show that being -Lipschitz continuous in the -norm implies that
for all and . Consider the function with . Then
To subsequently show (26), fix and consider the function
which is convex on and also has an -Lipschitz continuous gradient in the -norm, as
As the minimizer of is (i.e., ), for any we have
Substituting in the definition of , we have
Using (27) in (25) and noting that , we obtain
Applying strong convexity (taken with respect to the -norm), we get
G.3 Additive error bound in terms of L𝐿L
By our additive error inequality, we have
Further, from our basic progress bound that holds for any we have
Applying strong convexity and applying the inequality recursively we obtain
Although uglier than the expression depending on , this expression will tend to be smaller unless is not small.
Appendix H Convergence Analysis of GS-s𝑠s, GS-r𝑟r, and GS-q𝑞q Rules
In this section, we consider problems of the form
where satisfies our usual assumptions, but the can be non-smooth. We first introduce some notation and state the convergence result, and then show that it holds. We then show that the rate cannot hold in general for the GS- and GS- rules.
To analyze this case, an important inequality we will use is that the -Lipschitz-continuity of implies that for all , , and , we have
Notice that the GS- rule is defined by
We use the notation and we will use to denote the vector containing these values for all . When using the GS- rule, the iteration is defined by
In this notation the GS- rule is given by
Under this notation, we can show that coordinate descent with the GS- rule satisfies the bound
We show this result by showing that the GS- rule makes at least as much progress as randomized selection.
H.2 GS-q𝑞q is at least as fast as random
Our argument in this section follows a similar approach to Richtárik and Takáč (2014). In particular, combining (28) and (29) we have the following upper bound on the iteration progress
From strong convexity of , we have that is also -strongly convex and that
for any and any (see Nesterov, 2004, Theorem 2.1.9). Using these gives us
Subtracting from both sides of this inequality gives us
H.3 Lack of progress of the GS-s𝑠s rule
We now show that the rate cannot hold for the GS- rule. We do this by constructing a problem where an iteration of the GS- method does not make sufficient progress. In particular, consider the bound-constrained problem
The parameter values for this problem are
where the are the eigenvalues of , and and are the corresponding strong-convexity constants for the -norm and -norm, respectively.
The proximal operator of the indicator function is the projection onto the set , which involves setting negative elements to zero. Thus, our iteration update is given by
For this problem, the GS- rule is given by
Based on the value of , the GS- rule thus chooses to update coordinate 2, setting it to zero and obtaining
Thus, the GS- rule does not satisfy either bound. On the other hand, the GS- and GS- rules are given in this context by
and thus both these rules choose to update coordinate 1, setting it to zero to obtain and a progress ratio of
H.4 Lack of progress of the GS-r𝑟r rule
We use the same as the previous section, so that , , , and are the same. However, we now take
The proximal operator of the absolute value function is given by the soft-threshold function, and our coordinate update of variable is given by
where and in this case
Thus, the GS- rule chooses to update coordinate . After this update the function value is
However, the bounds suggest faster progress ratios of
so the GS- rule does not satisfy either bound. In contrast, in this setting the GS- rule chooses to update coordinate and obtains , obtaining a progress ratio of
which satisfies both bounds by a substantial margin. Indeed, we used a genetic algorithm to search for a setting of the parameters of this problem (values of , , , and the diagonals of ) that would make the GS- rule not satisfy the bound depending on , and it easily found counter-examples for the GS- and GS- rules but was not able to produce a counter example for the GS- rule.