Coordinate Descent with Arbitrary Sampling II: Expected Separable Overapproximation

Zheng Qu, Peter Richtárik

Introduction

Coordinate descent methods have been popular with practitioners for many decades due to their inherent conceptual simplicity and ease with which one can produce a working code. However, up to a few exceptions , they have been largely ignored in the optimization community until recently when a renewed interest in coordinate descent was sparked by several reports of their remarkable success in certain applications . Additional and perhaps more significant reason behind the recent flurry of research activity in the area of coordinate descent comes from breakthroughs in our theoretical understanding of these methods through the introduction of randomization in the iterative process . Traditional variants of coordinate descent rely on cyclic or greedy rules for the selection of the next coordinate to be updated.

It has recently become increasingly clear that the design and complexity analysis of randomized coordinate descent methods is intimately linked with and can be better understood through the notion of expected separable overapproximation (ESO) and . This refers to an inequality involving the objective function and the sampling (a random set valued mapping describing the law with which subsets of coordinates are selected at each iteration), capturing in a compact way certain smoothness properties of the function in a random subspace spanned by the sampled coordinates.

A (coordinate) sampling S^\hat{S} is a random set-valued mapping with values being subsets of [n]=def{1,2,,n}[n]\stackrel{{\scriptstyle\text{def}}}{{=}}\{1,2,\dots,n\}. It will be useful to write

We will compactly write (f,S^)ESO(v)(f,\hat{S})\sim ESO(v).

Instead of the above general definition, it will be useful to the reader to instead think about the form of this inequality in the simple case when f(x)=Ax2f(x)=\|Ax\|^{2}, where \|\cdot\| is the L2 norm, and x=0x=0. Letting A=[A1,,An]A=[A_{1},\dots,A_{n}], in this case inequality (2) takes the form

The ESO inequality is of key importance for randomized coordinate descent methods for several reasons:

The parameters v=(v1,,vn)v=(v_{1},\dots,v_{n}) for which ESO holds are neededAll existing parallel coordinate coordinate descent methods for which a complexity analysis has been performed are designed with fixed stepsizes. Designing a line-search procedure in such a setup is a nontrivial task, and to the best of our knowledge, only a single paper in the literature deals with this issue . Certainly, properly designed line search has the potential to improve the practical performance of these methods. to run coordinate descent. Indeed, they are used to set the stepsizes to a suitable value.

The size of these parameters directly influences the complexity of the method (see Table 1).

There are problems for which updating more coordinates in each iteration, as opposed to updating just one, may not lead to fewer iterations (which suggests that perhaps the resources should be instead utilized in some other way). Whether this happens or not can be understood through a careful study of the complexity result and its dependence, through the vectors pp and vv, on the number of coordinates updated in each iteration .

The ESO assumption is generic in the sense that as soon as function ff and sampling S^\hat{S} satisfy it, the complexity result follows. This leads to a natural dichotomy in the study of coordinate descent: i) the search for new variants of coordinate descent (e.g., parallel, accelerated, distributed) and study of their complexity under the ESO assumption, and ii) the search for pairs (f,S^)(f,\hat{S}) for which one can compute vv such that (f,S^)ESO(v)(f,\hat{S})\sim ESO(v). Our current study follows this dichotomy: in we deal with the algorithmic and complexity aspects, and in this paper we deal with the ESO aspect.

2 Complexity of coordinate descent

For instance, the NSync boundComplexity of NSync depends on the initial (x0x_{0}) and optimal (xx_{*}) points, but have hidden this dependence. The full bound is obtained by replacing log(1/ϵ)\log(1/\epsilon) by log((f(x0)f(x))/ϵ)\log((f(x_{0})-f(x_{*}))/\epsilon), where ff is the objective function. in Table 1 applies to the problem of unconstrained minimization of a smooth strongly convex function. It was in where the general form of the ESO inequality used in this paper was first mentioned and used to derive a complexity result for a coordinate descent method with arbitrary sampling.

The Quartz algorithm , on the other hand, applies to a much more serious problem – a problem of key importance in machine learning. In particular, it applies to the regularized empirical risk minimization problem, where the loss functions are convex and have Lipschitz gradients and the regularizer is strongly convex and possibly nonsmooth. Coordinate ascent is applied to the dual of this problem, and the bound appearing in Table 1 applies to the duality gapComplexity of Quartz depends on an initial pair of primal and dual vectors; we have omitted this dependence from the table. The full complexity result is obtained by replacing log(1/ϵ)\log(1/\epsilon) by log(Δ0/ϵ)\log(\Delta_{0}/\epsilon), where Δ0\Delta_{0} is the difference between the primal and dual function values for a pair of (primal and dual) starting points..

The APPROX method was first proposed in and then generalized to an arbitrary sampling (among other things) in . In its accelerated variant it enjoys a O(1/ϵ)O(1/\sqrt{\epsilon}) rate, whereas it’s non-accelerated variant has a slower O(1/ϵ)O(1/\epsilon) rate. Again, the complexity of the method explicitly depends on the vector of probabilities pp and the ESO parameter vv.

3 Historical remarks

4 Contributions

We now briefly list the contributions of this work.

ESO inequalities were previously established for special classes of samplings only, almost invariably for uniform samplings , and often using seemingly disparate approaches. We give the first systematic study of ESO inequalities for arbitrary samplings.

We recover existing ESO results by applying our general technique.

Our approach to deriving ESO inequalities is via the study of random principal submatrices of a positive semidefinite matrix. In particular, we give bounds on the largest eigenvalue of the mean of the random submatrix. This may be of independent interest.

5 Outline of the paper

Our paper is organized as follows. In Section 2 we describe the class of functions (ff) we consider in this paper and briefly establish some basic terminology related to samplings (S^\hat{S}). In Section 3 we study probability matrices associated with samplings (P(S^)\mathbf{P}(\hat{S})), in Section 4 we study eigenvalues of these probability matrices (λ(P(S^))\lambda(\mathbf{P}(\hat{S})) and λ(P(S^))\lambda^{\prime}(\mathbf{P}(\hat{S}))) and in Section 5 we design a general technique for computing parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}) for which the ESO inequality holds (i.e., for which (f,S^)ESO(v)(f,\hat{S})\sim ESO(v)). We illustrate the use of these techniques in Section 5.4 and conclude with Section 7.

Functions and samplings

Recall that in the paper we are concerned with establishing inequality (2) which we succinctly write as (f,S^)ESO(v)(f,\hat{S})\sim ESO(v). In Section 2.1 we describe the class of functions ff we consider in this paper and in Section 2.2 we briefly review several elementary facts related to samplings.

In the subsequent text, we shall often refer to the set of columns of A\mathbf{A} for which the entry in the jj-th row of A\mathbf{A} is nonzero:

Assumption 2.1 holds for many functions of interest in optimization and machine learning. Coordinate descent methods for functions ff explicitly required to satisfy Assumption 2.1 were studied in .

The following simple observation will help us relate the above assumption with standing assumptions considered in various papers on randomized coordinate descent methods.

It remains to add these inequalities for j=1,,sj=1,\dots,s. ∎

By I\mathbf{I} we denote the nn-by-nn identity matrix and for S[n]S\subseteq[n] we will use the notation I[S]\mathbf{I}_{[S]} for the nn-by-nn matrix obtained from I\mathbf{I} by retaining elements Iii\mathbf{I}_{ii} for which iSi\in S and zeroing out all other elements.

We now apply Proposition 2.1 to several special cases:

Partial separability. Let d=nd=n and Mj=I[Cj]\mathbf{M}_{j}=\mathbf{I}_{[C_{j}]}, where for each jj, Cj[n]C_{j}\subseteq[n]. Then ff is of the form

That is, ϕj\phi_{j} depends on coordinates of xx belonging to set CjC_{j} only. By Proposition 2.1, ff satisfies (3), where A\mathbf{A} is the nn-by-nn diagonal matrix given by

Functions of the form (6) (i.e., partially separable functions) were considered in the context of parallel coordinate descent methods in . However, in the authors only assume the sum ff to have a Lipschitz gradient (which is more general, but somewhat complicates the analysis), whereas we assume that all component functions {ϕj}j\{\phi_{j}\}_{j} have Lipschitz gradient.

Linear transformation of variables. Let s=1s=1. Then ff is of the form

By Proposition 2.1, ff satisfies (3), where A\mathbf{A} is given by

A functions of the form (7) appears in the dual problem of the standard primal-dual formulation to which stochastic dual coordinate ascent methods are applied [27, MinibatchASDCA, 33, 10, 18].

By Proposition 2.1, ff satisfies (3), with A\mathbf{A} given by

Functions of the form (8) play an important role in the design of efficiently implementable accelerated coordinate descent methods . These functions also appear in the primal problem of the standard primal-dual formulation to which stochastic dual coordinate ascent methods are applied.

2 Samplings

As defined in the introduction, by sampling we mean a random set-valued mapping with values in 2[n]2^{[n]} (the set of subsets of [n][n]).

Of key importance in this paper are elementary samplings, defined next.

Let P1,,Pc{\cal P}_{1},\dots,{\cal P}_{c} be a partition of {1,2,,n}\{1,2,\dots,n\} such that Pl=s|{\cal P}_{l}|=s for all ll. That is, sc=nsc=n. Now let S^1,,S^c\hat{S}_{1},\dots,\hat{S}_{c} be independent τ\tau-nice samplings from P1,,Pc{\cal P}_{1},\dots,{\cal P}_{c}, respectively. Then the sampling

is called (c,τ)(c,\tau)-distributed sampling.

The τ\tau-nice sampling arises as a special case of the (c,τ)(c,\tau)-distributed sampling (for c=1c=1) which we define next.

Sampling S^\hat{S} is called τ\tau-nice if it picks only subsets of [n][n] of cardinality τ\tau, uniformly at random. More formally, it is defined by

Operations with samplings.

We now define several basic operations with samplings (convex combination, intersection and restriction).

Let S^1,,S^k\hat{S}_{1},\dots,\hat{S}_{k} be samplings and let q1,,qkq_{1},\dots,q_{k} be nonnegative scalars summing to 1. By t=1kqtS^t\sum_{t=1}^{k}q_{t}\hat{S}_{t} we denote the sampling obtained as follows: we first pick t{1,,k}t\in\{1,\dots,k\}, with probability qtq_{t}, and then sample according to S^t\hat{S}_{t}. More formally, S^\hat{S} is defined as follows:

Note that (11) indeed defines a sampling, since

Each sampling is a convex combination of elementary samplings. Indeed, for each S^\hat{S} we have

We now show that each doubly uniform sampling arises as a convex combination of τ\tau-nice samplings.

Let S^\hat{S} be a doubly uniform sampling and let S^τ\hat{S}_{\tau} be the τ\tau-nice sampling, for τ=0,1,,n\tau=0,1,\dots,n. Then

where the last equality follows from the definition of doubly uniform and τ\tau-nice samplings. The statement then follows from (11) (i.e., by definition of convex combination of samplings). ∎

It will be useful to define two more operations with samplings; intersection and restriction.

For two samplings S^1\hat{S}_{1} and S^2\hat{S}_{2} we define the intersection S^=defS^1S^2\hat{S}\stackrel{{\scriptstyle\text{def}}}{{=}}\hat{S}_{1}\cap\hat{S}_{2} as the sampling for which:

Let S^\hat{S} be a sampling and J[n]J\subseteq[n]. By restriction of S^\hat{S} to JJ we mean the sampling E^JS^\hat{E}_{J}\cap\hat{S}. By abuse of notation we will also write this sampling as JS^J\cap\hat{S}.

Graph sampling.

Let G=(V,E)G=(V,E) be an undirected graph with V=n|V|=n vertex and (i,i)(i,i^{\prime}) be an edge in EE if and only if there is j[m]j\in[m] such that {i,i}Jj\{i,i^{\prime}\}\subseteq J_{j}. If SS is an independent set of graph GG, then necessarily

Denote by T\mathcal{T} the collection of all independent sets of the graph GG. We now define the graph sampling as follows:

Let S^\hat{S} be a graph sampling. In view of (12), for some nonnegative constants qSq_{S} adding up to 1:

Let X1,,XτX_{1},\dots,X_{\tau} be a partition of [n][n], i.e.,

The product sampling S^\hat{S} is obtained by choosing SSS\in{\cal S}, uniformly at random; that is, via:

A similar sampling was first considered in [18, Section 3.3] with an additional group separability assumption on the partition X1,,XτX_{1},\dots,X_{\tau}, which can be equivalently stated as:

In other words, it is both a product sampling and graph sampling. Note that in Definition 2.8 we do not make any assumption on the partition. Also, the product sampling is a nonuniform sampling as long as all the sets XlX_{l} do not have the same cardinality, which occurs necessarily if τ\tau, representing the number of processors, is not divisible by nn.

Probability matrix associated with a sampling

In this section we define the notion of a probability matrix associated with a sampling. As we shall see in later sections, this matrix encodes all information about S^\hat{S} which is relevant for development of ESO inequality.

With each sampling S^\hat{S} we associate an nn-by-nn “probability matrix” P=P(S^)\mathbf{P}=\mathbf{P}(\hat{S}) defined by

We shall write P(S^)\mathbf{P}(\hat{S}) when it is important to indicate which sampling is behind the probability matrix, otherwise we simply write P\mathbf{P}.

Using the notation we have just established, probability matrices of elementary samplings are given by

We now establish a simple but particularly insightful result, leading to many useful identities.

The set of probability matrices is the convex hull of the probability matrices corresponding to elementary samplings.

P(S^)0\mathbf{P}(\hat{S})\succcurlyeq 0 for each S^\hat{S}.

Since multiplying a matrix in the Hadamard sense by a fixed matrix is a linear operation,

Identity (20) follows from (19) by setting M=E\mathbf{M}=\mathbf{E}:

Finally, (22) (resp. (23)) follows from (20) (resp. (21)) by setting h=eh=e. ∎

2 Operations with samplings

We now give formulae for the probability matrix of the sampling arising as a convex combination, intersection or a restriction, in terms of the probability matrices of the constituent samplings.

We have seen in (12) that each sampling is a convex combination of elementary samplings. In view of Theorem 3.1, the probability matrices of the samplings are related the same way:

More generally, as formalized in the following lemma, the probability matrix of a convex combination of samplings is equal to the convex combination of the probability matrices of these samplings.

Let S^1,,S^k\hat{S}_{1},\dots,\hat{S}_{k} be samplings and q1,,qkq_{1},\dots,q_{k} be non-negative scalars summing up to 1. Then

Let S^\hat{S} be the convex combination of samplings S^1,,S^k\hat{S}_{1},\dots,\hat{S}_{k} and fix any i,j[n]i,j\in[n]. By definition,

Intersection of samplings.

The probability matrix of the intersection of two independent samplings is equal to the Hadamard product of the probability matrices of these samplings. This is formalized in the following lemma.

Let S^1,S^2\hat{S}_{1},\hat{S}_{2} be independent samplings. Then

Restriction.

By Lemma 3.2, the probability matrix of the restriction of arbitrary sampling S^\hat{S} to J[n]J\subseteq[n] is given by (we give several alternative ways of writing the result):

Note that P(JS^)\mathbf{P}(J\cap\hat{S}) is the matrix obtained from P(S^)\mathbf{P}(\hat{S}) by keeping only elements i,jJi,j\in J and zeroing out all the rest. Furthermore, by combining the formulae derived above, we get

3 Probability matrix of special samplings

The probability matrix of the (c,τ)(c,\tau)-distributed samplings is computed in the following lemma.

Let S^\hat{S} be the (c,τc,\tau)-distributed sampling associated with the partition {P1,,Pc}\{\mathcal{P}_{1},\dots,\mathcal{P}_{c}\} of [n][n] such that s=Pls=|\mathcal{P}_{l}| for l[c]l\in[c] (see Definition 2.2). Then

Note that B\mathbf{B} is the 0-1 matrix with Bij=1\mathbf{B}_{ij}=1 if and only if i,ji,j belong to the same partition.

Let P=P(S^)\mathbf{P}=\mathbf{P}(\hat{S}). It is easy to see that

As a corollary of the above in the c=1c=1 case we obtain the probability matrix of the τ\tau-nice sampling:

Fix 1τn1\leqslant\tau\leqslant n and let S^\hat{S} be the τ\tau-nice sampling. Then

where β=(τ1)/max(n1,1)\beta=(\tau-1)/\max(n-1,1). If τ=0\tau=0, then P(S^)\mathbf{P}(\hat{S}) is the zero matrix.

For τ1\tau\geqslant 1 this follows from Lemma 3.3 in the special case when c=1c=1 (note that P1=[n],s=n{\cal P}_{1}=[n],s=n and B=E\mathbf{B}=\mathbf{E}). ∎

Finally, we compute the probability matrix of a doubly uniform sampling.

Largest eigenvalues of the probability matrix

For an n×nn\times n positive semidefinite matrix M\mathbf{M} we denote by λ(M)\lambda(\mathbf{M}) the largest eigenvalue of M\mathbf{M}:

Note that 1λ(M)n1\leqslant\lambda^{\prime}(\mathbf{M})\leqslant n.

In this section we study (standard and normalized) largest eigenvalue of the probability matrix associated with a sampling:

Recall that by Theorem 3.1, P(S^)\mathbf{P}(\hat{S}) is positive semidefinite for each sampling S^\hat{S}. For convenience, we write λ(S^)\lambda(\hat{S}) (resp. λ(S^)\lambda^{\prime}(\hat{S})) instead of λ(P(S^))\lambda(\mathbf{P}(\hat{S})) (resp. λ(P(S^))\lambda^{\prime}(\mathbf{P}(\hat{S}))). We study these quantities since, as we will show in later sections, they are useful in computing parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}) for which ESO holds.

In the case of elementary samplings the situation is simple. Indeed, for any J[n]J\subseteq[n], we have

Since P(E^J)=E[J]\mathbf{P}(\hat{E}_{J})=\mathbf{E}_{[J]} and Diag(E[J])=I[J]\operatorname{Diag}(\mathbf{E}_{[J]})=\mathbf{I}_{[J]}, (39) can equivalently be written as

2 Bounds for arbitrary samplings

In the first result of this section we give sharp bounds for λ(S^)\lambda^{\prime}(\hat{S}) for arbitrary sampling S^\hat{S}.

Upper bound. If τ\tau is a constant such that S^τ|\hat{S}|\leqslant\tau with probability 1, then λ(S^)τ.\lambda^{\prime}(\hat{S})\leqslant\tau.

Identity. If S^=τ|\hat{S}|=\tau with probability 1, then λ(S^)=τ\lambda^{\prime}(\hat{S})=\tau.

where the last inequality holds since Tr(P)\operatorname{Tr}(\mathbf{P}) is upper bounded by the sum of all elements of P\mathbf{P}. It remains to apply identities (22) and (23).

In view of (12), we can represent S^\hat{S} as a convex combination of elementary samplings:

The result follows by combining the upper and lower bounds. ∎

In the next result we study the quantity λ(S^)\lambda(\hat{S}).

Lower and upper bounds. For any sampling S^\hat{S} we have

Sharper upper bound. If S^\hat{S} is uniform and S^τ|\hat{S}|\leqslant\tau with probability one, then the upper bound can be improved to

Identity. If S^\hat{S} is uniform and S^=τ|\hat{S}|=\tau with probability one, then

By combining (38) and Theorem 4.1 (ii) we obtain:

The result follows by combining the lower bound from (i) with the upper bound in (ii).∎

3 Bounds for restrictions of selected samplings

In this part we study the normalized eigenvalue associated with the restriction of a few selected samplings (or families of samplings). In particular, we first give a (necessarily rough) bound that holds for arbitrary samplings, followed by a bound for the (c,τ)(c,\tau)-distributed sampling and the τ\tau-nice sampling (both are specific uniform samplings). Finally, we give a bound for the family of doubly uniform samplings.

Let S^\hat{S} be an arbitrary sampling and let τ\tau be such that S^τ|\hat{S}|\leqslant\tau with probability 1. Then for all J[n]\emptyset\neq J\subseteq[n], we have

Note that JS^min{J,τ}|J\cap\hat{S}|\leqslant\min\{|J|,\tau\} with probability 1. We only need to apply the upper bound in Theorem 4.1 to the restriction sampling JS^J\cap\hat{S}. ∎

We now proceed to the (c,τ)(c,\tau)-distributed sampling (recall Definition 2.2).

Let S^\hat{S} be the (c,τc,\tau)-distributed sampling associated with a partition {P1,,Pc}\{\mathcal{P}_{1},\dots,\mathcal{P}_{c}\} of [n][n] such that s=Pls=|\mathcal{P}_{l}| for l[c]l\in[c]. Fix arbitrary J[n]\emptyset\neq J\subseteq[n] and let ω\omega^{\prime} be the number of sets Pl\mathcal{P}_{l} which have a nonempty intersection with JJ; that is, let ω=def{l:JPl}\omega^{\prime}\stackrel{{\scriptstyle\text{def}}}{{=}}|\{l:J\cap\mathcal{P}_{l}\neq\emptyset\}|. Then

By applying Lemma 3.2 and Lemma 3.3, we get

where the inequality is an application of the Cauchy-Schwartz inequality. It follows that

Finally, note that Diag(P(E^J))Diag(P(S^))=Diag(P(E^J)P(S^))=\eqrefeq:98shsguy8658Diag(P(JS^))\operatorname{Diag}(\mathbf{P}(\hat{E}_{J}))\circ\operatorname{Diag}(\mathbf{P}(\hat{S}))=\operatorname{Diag}(\mathbf{P}(\hat{E}_{J})\circ\mathbf{P}(\hat{S}))\overset{\eqref{eq:98shsguy8658}}{=}\operatorname{Diag}(\mathbf{P}(J\cap\hat{S})). ∎

We now specialize the above result to the c=1c=1 case, obtaining a formula for λ(JS^)\lambda^{\prime}(J\cap\hat{S}) in the case when S^\hat{S} is the τ\tau-nice sampling (recall Definition 2.3).

Let S^\hat{S} be the τ\tau-nice sampling. Then for all J[n]\emptyset\neq J\subseteq[n],

Let J[n]\emptyset\neq J\subseteq[n]. Since τ\tau-nice sampling is the (1,τ)(1,\tau)-distributed sampling, by applying Proposition 4.2 we get:

Next, by direct calculation we can verify that

which together with the lower bound established in Theorem 4.1 yields:

Note that (48) is much better (i.e., smaller) than the right hand side in (43). This is to be expected as the bound (43) applies to all samplings (which have size at most τ\tau with probability 1).

Finally, we give a bound on the normalized largest eigenvalue of the restriction of a doubly uniform sampling.

Expected Separable Overapproximation

In this section we develop a general technique for computing parameters v=(v1,,vn)v=(v_{1},\dots,v_{n}) for which the ESO inequality (2) holds.

The reason for defining and studying probability matrices P(S^)\mathbf{P}(\hat{S}) is motivated by the following result, which for functions satisfying Assumption 2.1 reduces the ESO Assumption (f,S^)ESO(v)(f,\hat{S})\sim ESO(v) to the problem of bounding the Hadamard product of the probability matrix P(S^)\mathbf{P}(\hat{S}) and the data matrix AA\mathbf{A}^{\top}\mathbf{A} from above by a diagonal matrix. Note that because P(S^)0\mathbf{P}(\hat{S})\succcurlyeq 0, in view of (50),the Hadamard product P(S^)AA\mathbf{P}(\hat{S})\circ\mathbf{A}^{\top}\mathbf{A} is positive semidefinite.

Let us substitute hh[S^]h\leftarrow h_{[\hat{S}]} into (3) and take expectation in S^\hat{S} of both sides. Applying (19), we obtain:

We next focus on the problem of finding vector vv for which (51) holds. The following direct consequence of (50) will be helpful in this regard:

In particular, (53) can be used to establish the first part of the following useful lemma.

If M10\mathbf{M}_{1}\succcurlyeq 0 and M20\mathbf{M}_{2}\succcurlyeq 0, then

By definition, M2λ(M2)Diag(M2)\mathbf{M}_{2}\preccurlyeq\lambda^{\prime}(\mathbf{M}_{2})\operatorname{Diag}(\mathbf{M}_{2}), which together with (53) implies:

Applying the same reasoning to the matrix M1\mathbf{M}_{1} we obtain: M1M2λ(M1)Diag(M1M2).\mathbf{M}_{1}\circ\mathbf{M}_{2}\preccurlyeq\lambda^{\prime}(\mathbf{M}_{1})\operatorname{Diag}(\mathbf{M}_{1}\circ\mathbf{M}_{2}). Combining the two results, we obtain (54). Inequality (55) follows from:

2 ESO I: no coupling between the sampling and data

By applying Lemma 5.2, Eq (54), to M1=P(S^)\mathbf{M}_{1}=\mathbf{P}(\hat{S}) and M2=AA\mathbf{M}_{2}=\mathbf{A}^{\top}\mathbf{A}, we obtain a formula for vv satisfying (51).

Let ff satisfy Assumption 2.1 and let S^\hat{S} be an arbitrary sampling. Then (f,S^)ESO(v)(f,\hat{S})\sim ESO(v) for v=(v1,,vn)v=(v_{1},\dots,v_{n}) defined by

Let P=P(S^)\mathbf{P}=\mathbf{P}(\hat{S}). To establish the main statement, it is sufficient to apply Lemma 5.1 and Lemma 5.2 and note that for vv defined by (56), Diag(vp)=min(λ(P),λ(AA))Diag(PAA)\operatorname{Diag}(v\circ p)=\min(\lambda^{\prime}(\mathbf{P}),\lambda^{\prime}(\mathbf{A}^{\top}\mathbf{A}))\operatorname{Diag}(\mathbf{P}\circ\mathbf{A}^{\top}\mathbf{A}). ∎

If for some τ\tau, S^τ|\hat{S}|\leqslant\tau with probability 1, then in view of Theorem 4.1, we have λ(P(S^))τ\lambda^{\prime}(\mathbf{P}(\hat{S}))\leqslant\tau. Furthermore,

Hence, in view of Lemma 5.1, we can pick the ESO parameter conservatively as follows:

An ESO inequality with viv_{i} similar to (57) was established in , but for a different class of functions (ω\omega-partially separable functions: functions expressed as a sum of functions each of which depends on at most ω\omega coordinates) and uniform samplings only. Indeed, the bound established therein for arbitrary uniform samplings uses vi=min{τ,ω}Liv_{i}=\min\{\tau,\omega\}L_{i}, where ω\omega is the degree of separability of ff and LiL_{i} is the Lipschitz constant of f\nabla f associated with coordinate ii. In our setting, ω=maxjJj\omega=\max_{j}|J_{j}| and LiL_{i} corresponds to jAji2\sum_{j}\mathbf{A}_{ji}^{2}. Hence, (57) could be seen as a generalization of the ESO bound in to arbitrary samplings.

Note that computation of the normalized eigenvalue λ(AA)\lambda^{\prime}(\mathbf{A}^{\top}\mathbf{A}) could be time-consuming, and would require a number of passes through the data prior to running a coordinate descent method, which may be prohibitive. In the next section we follow a different approach, one in which this issue is avoided. The main idea is to decompose AA\mathbf{A}^{\top}\mathbf{A} as a sum of the rank one matrices Aj:Aj:\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:} and then bound each term P(S^)Aj:Aj:\mathbf{P}(\hat{S})\circ\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:} separately.

3 ESO II: coupling the sampling with data

In this section we use a different strategy for satisfying (51). We first write

where Aj:\mathbf{A}_{j:} denote the jjth row vector of matrix A\mathbf{A} and then bound each term in the last sum individually. Recall the definition of set JjJ_{j} from (4): Jj={i[n]  :  Aji0}J_{j}=\{i\in[n]\;:\;\mathbf{A}_{ji}\neq 0\}.

Let S^\hat{S} be an arbitrary sampling and v=(v1,,vn)v=(v_{1},\dots,v_{n}) be defined by:

Let j[m]j\in[m] and Aj:\mathbf{A}_{j:} denote the jjth row vector of matrix A\mathbf{A}. By the definition of JjJ_{j},

Thus, P(S^)(Aj:Aj:)=P(S^)P(E^Jj)(Aj:Aj:)=P(JjS^)(Aj:Aj:)\mathbf{P}(\hat{S})\circ(\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:})=\mathbf{P}(\hat{S})\circ\mathbf{P}(\hat{E}_{J_{j}})\circ(\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:})=\mathbf{P}(J_{j}\cap\hat{S})\circ(\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:}). We now apply Lemma 5.2 to the sampling JjS^J_{j}\cap\hat{S} and the matrix Aj:\mathbf{A}_{j:} and obtain:

where p=(p1,,pn)p=(p_{1},\dots,p_{n}) is the vector of probability defined in (1) and v=(v1,,vn)v=(v_{1},\dots,v_{n}) is defined in (58). For completeness, let us show that the second inequality in (59) can be replaced by equality. Indeed, from (40) and the fact that Jj=Aj:0|J_{j}|=\|A_{j:}\|_{0}, we obtain λ(Aj:Aj:)=Jj\lambda^{\prime}(\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:})=|J_{j}|. Finally, using the upper bound in Theorem 4.1, we know that λ(JjS^)Jj\lambda^{\prime}(J_{j}\cap\hat{S})\leqslant|J_{j}|. Hence, min{λ(JjS^),λ(Aj:Aj:)}=λ(JjS^)\min\{\lambda^{\prime}(J_{j}\cap\hat{S}),\lambda^{\prime}(\mathbf{A}_{j:}^{\top}\mathbf{A}_{j:})\}=\lambda^{\prime}(J_{j}\cap\hat{S}). ∎

The benefit of this approach is twofold: First, if the data matrix A\mathbf{A} is sparse, the sets JjJ_{j} have small cardinality, and from Proposition 4.1 (or other results in Section 4.3, depending on the sampling S^\hat{S} used) we conclude that λ(JjS^)\lambda^{\prime}(J_{j}\cap\hat{S}) is small. Hence, the parameters viv_{i} obtained through (58) get better (i.e., smaller) with sparser data. Second, the formula for viv_{i} does not involve the need to compute an eigenvalue associated with the data matrix. On the other hand, instead of having to compute λ(S^)\lambda^{\prime}(\hat{S}) (which, as we have seen, is equal to τ\tau if S^=τ|\hat{S}|=\tau with probability 1), we now need to compute the normalized largest eigenvalue of mm restrictions of S^\hat{S}, λ(JjS^)\lambda^{\prime}(J_{j}\cap\hat{S}) for all j=1,2,,mj=1,2,\dots,m. However, for this there is a good upper bound available through Proposition 4.1 for an arbitrary sampling, and refined bounds can be derived for specific samplings (for examples, see Section 4.3).

4 ESO without eigenvalues

In this section we illustrate the use of the techniques developed in the preceding sections to derive ESO inequalities, for selected samplings, which do not depend on any eigenvalues, and lead to easily computable ESO parameters v=(v1,,vn)v=(v_{1},\dots,v_{n}). The techniques can be used to derive similar ESO inequalities for other samplings as well.

Let ff satisfy Assumption 2.1 and let sets J1,,JmJ_{1},\dots,J_{m} be defined as in (4). Then (f,S^)ESO(v)(f,\hat{S})\sim ESO(v) provided that the sampling S^\hat{S} and vector vv are chosen in any of the following ways:

S^\hat{S} is an arbitrary sampling such that S^τ|\hat{S}|\leqslant\tau with probability 1, and

S^\hat{S} is the (c,τ)(c,\tau)-distributed sampling and

where ωj=def{l:PlJj0}\omega_{j}^{\prime}\stackrel{{\scriptstyle\text{def}}}{{=}}|\{l:\mathcal{P}_{l}\cap J_{j}\neq 0\}| for j[m]j\in[m].

S^\hat{S} is the τ\tau-nice sampling (for τ1\tau\geqslant 1) and

S^\hat{S} is a doubly uniform sampling (which is not nil) and

S^\hat{S} is a serial sampling (i.e., a sampling for which S^=1|\hat{S}|=1 with probability 1) and v=(v1,,vn)v=(v_{1},\dots,v_{n}) is defined as in (64).

A direct consequence of Theorem 5.2 and Proposition 4.1.

A direct consequence of Theorem 5.2 and Proposition 4.2.

This is a special case of part (ii) for c=1c=1.

A direct consequence of Theorem 5.2 and Proposition 4.4.

For a graph sampling it is clear that JjS^1|J_{j}\cap\hat{S}|\leqslant 1 with probability 1 for all j[m]j\in[m]. The result then follows from Theorem 5.2.

A special case of (v). Indeed, a single vertex is an independent set of a graph.

Remarks: Note that part (i) of Proposition 5.1 is a strict improvement on (57). Also, this is strict improvement, both in the quality of the bound and in generality of the sampling, on the result in , which was proved for uniform samplings only and where the bound involved maxjJj\max_{j}|J_{j}| instead of Jj|J_{j}|. Part (ii) should be compared with the results obtained in and part (iii) with those in .

Discussion

As stressed before, smaller parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}) leads to better convergence result (see Table 1) but computing the smallest admissible vv would require too large computational effort. Nevertheless, using a cheaply computed parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}) would lead to large iteration complexity and slow convergence. The trade-off between the preprocessing time for computing the parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}) and the iteration complexity of the algorithm shall be discussed next.

For specific samplings such as τ\tau-nice sampling and (c,τ)(c,\tau)-distributed sampling, admissible vv can be computed using dedicated formulae 61 and 62, which appeared respectively in and . For arbitrary sampling S^\hat{S}, admissible parameter vv can be computed according to 57, 58 or 60, which are given for the first time. While 58 requires computing the largest eigenvalue for mm matrices of sizes {J1,,Jm}\{J_{1},\dots,J_{m}\}, both 57 and 60 can be computed in at most two passes over the data. In return, 58 provides a smaller parameter vv which improves the iteration complexity.

For approximating λ(JjS^)\lambda^{\prime}(J_{j}\cap\hat{S}), one can apply power method on the positive semidefinite matrix P(JjS^)\mathbf{P}(J_{j}\cap\hat{S}). The number of operations needed in one iteration of the power method is Jj2|J_{j}|^{2} and if we apply TT iterations of power method Note that as the matrix P(JjS^)\mathbf{P}(J_{j}\cap\hat{S}) is positive semidefinite, the power method always converges to the largest eigenvalue even if it is not a dominant eigenvalue. We defer the study on the convergence rate of power method for different matrices P(JjS^)\mathbf{P}(J_{j}\cap\hat{S}) to a future work. , then the total number of operations needed for computing vv using 58 is

where the big OO notation hides constants independent of the data matrix A\mathbf{A}.

Recall from Table 1 how the iteration complexity of different methods depends on the parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}). Let us consider the strongly convex smooth objective function setup and assume that the random sampling S^\hat{S} has cardinality τ\tau with probability 1. Then the computational time of one epoch (nn iterations) is of the same order as τ\tau passes over the data. Therefore, given a parameter v=(v1,,vn)v=(v_{1},\dots,v_{n}), the number of passes over the data is bounded by:

where ϵ\epsilon is the target accuracy and λ\lambda is the strong convexity parameter of the problem.

The comparison of the three formulae in terms of overall complexity is reported in Table 2, where the big OO notation hides constants independent of the data matrix A\mathbf{A}. It is clear from the table that the trade-off between the preprocessing and the iteration complexity mainly depends on the proportion between Tj=1mJj2nnz(A)\tfrac{T\sum_{j=1}^{m}|J_{j}|^{2}}{\operatorname{nnz}(\mathbf{A})} and 1λmaxiviτpin\frac{1}{\lambda}\max_{i}\frac{v_{i}\tau}{p_{i}n}. In Table 3 we report the actual computing time of vv using different formulae and the corresponding value of maxiviτpin\max_{i}\frac{v_{i}\tau}{p_{i}n}, for two real data matrices w8a and dorothea. To facilitate the comparison we normalized the two data sets so that the diagonal elements of AA\mathbf{A}^{\top}\mathbf{A} are all one. The samplings S^\hat{S} that we used in the experiments are all product sampling (Definition 2.8) with respect to some random partition of the set [n][n]. The number of iterations TT for the power method is fixed to 10 and we multiply the obtained value by 1.01. Because of the comparable processing time, Formula 60 is clearly better than Formula 57. From Table 3 we also see that Formula 58 requires significant computational effort for computing vv comparing to the other two but also reduces the value of maxiviτpin\max_{i}\frac{v_{i}\tau}{p_{i}n} by order of magnitude in most of the regimes. Let us take the example of dorothea with τ=256\tau=256, then the overall number of passes over data is O(1.52+256.91λlog(1ϵ))O(1.52+\frac{256.91}{\lambda}\log(\frac{1}{\epsilon})) if vv is computed using Formula 60 and O(8715.8+16.68λlog(1ϵ))O(8715.8+\frac{16.68}{\lambda}\log(\frac{1}{\epsilon})) if vv is computed using Formula 58. Hence for small enough strong convexity parameter λ\lambda, it is worth to spend more time in computing a good parameter vv using Formula 58, which will then be compensated by a smaller iteration complexity.

2 Optimal sampling

Proposition 5.1 should be understood in the context of complexity results for randomized coordinate descent, such as those in Table 1. For instance, in view of (60) for an arbitrary sampling S^\hat{S} such that S^τ|\hat{S}|\leqslant\tau with probability 1, the accelerated coordinate descent method developed in has complexity

Naturally, the bound improves if we use a specialized sampling, such as the τ\tau-nice sampling (since the constants viv_{i} become smaller).

Sometimes, one can find a sampling which minimizes the complexity bound. For instance, if we restrict our attention to serial samplings only (samplings picking a single coordinate at a time), then one can find probabilities p1,,pnp_{1},\dots,p_{n}, which uniquely define a sampling, minimizing the complexity bound:

where wi=jAji2w_{i}=\sum_{j}\mathbf{A}_{ji}^{2}. Note that if the iith coordinate is optimal at the starting point (i.e., if xi0=xix_{i}^{0}=x_{i}^{*}), then the prediction is to choose pi=0p_{i}=0 (i.e., to never update coordinate ii) – this is what one would expect. Using the serial sampling defined by (66), the complexity (65) takes the form

While d6d2\|d\|_{6}\leqslant\|d\|_{2} for all dd, these quantities can be equal, in which case CoptC_{opt} is nn times better than CunifC_{unif}.

Conclusion

We have conducted a systematic study of ESO inequalities for a large class of functions (those satisfying Assumption 2.1) and arbitrary samplings. These inequalities are crucial in the design and complexity analysis of randomized coordinate descent methods. This led us to study standard and normalized largest eigenvalue of the Hadamard product of the probability matrix associated with a sampling and a certain positive semidefinite matrix containing the data defining the function. Using our approach we have established new ESO results and also re-derived ESO results already established in the literature (in the case of uniform samplings) via different techniques. Our approach can be used to derive further bounds for specific samplings and can potentially be of interest outside the domain of randomized coordinate descent.

References

Appendix A Frequently used notation