Parallel Coordinate Descent Methods for Big Data Optimization

Peter Richtárik, Martin Takáč

Keywords:

Parallel coordinate descent, big data optimization, partial separability, huge-scale optimization, iteration complexity, expected separable over-approximation, composite objective, convex optimization, LASSO.

Introduction

Recently there has been a surge in interest in the design of algorithms suitable for solving convex optimization problems with a huge number of variables . Indeed, the size of problems arising in fields such as machine learning , network analysis , PDEs , truss topology design and compressed sensing usually grows with our capacity to solve them, and is projected to grow dramatically in the next decade. In fact, much of computational science is currently facing the “big data” challenge, and this work is aimed at developing optimization algorithms suitable for the task.

Coordinate descent methods.

Parallelization.

We wish to point out that for truly huge-scale problems it is absolutely necessary to parallelize. This is in line with the rise and ever increasing availability of high performance computing systems built around multi-core processors, GPU-accelerators and computer clusters, the success of which is rooted in massive parallelization. This simple observation, combined with the remarkable scalability of serial CDMs, leads to our belief that the study of parallel coordinate descent methods (PCDMs) is a very timely topic.

Research Idea.

The work presented in this paper was motivated by the desire to answer the following question:

Under what natural and easily verifiable structural assumptions on the objective function does parallelization of a coordinate descent method lead to acceleration?

Our starting point was the following simple observation. Assume that we wish to minimize a separable function FF of nn variables (i.e., a function that can be written as a sum of nn functions each of which depends on a single variable only). For simplicity, in this thought experiment, assume that there are no constraints. Clearly, the problem of minimizing FF can be trivially decomposed into nn independent univariate problems. Now, if we have nn processors/threads/cores, each assigned with the task of solving one of these problems, the number of parallel iterations should not depend on the dimension of the problemFor simplicity, assume the distance from the starting point to the set of optimal solutions does not depend on the dimension.. In other words, we get an nn-times speedup compared to the situation with a single processor only. Note that any parallel algorithm of this type can be viewed as a parallel coordinate descent method. Hence, a PCDM with nn processors should be nn-times faster than a serial one. If τ\tau processors are used instead, where 1τn1\leq\tau\leq n, one would expect a τ\tau-times speedup.

By extension, one would perhaps expect that optimization problems with objective functions which are “close to being separable” would also be amenable to acceleration by parallelization, where the acceleration factor τ\tau would be reduced with the reduction of the “degree of separability”. One of the main messages of this paper is an affirmative answer to this. Moreover, we give explicit and simple formulae for the speedup factors.

As it turns out, and as we discuss later in this section, many real-world big data optimization problems are, quite naturally, “close to being separable”. We believe that this means that PCDMs is a very promising class of algorithms when it comes to solving structured big data optimization problems.

Minimizing a partially separable composite objective.

where ff is a (block) partially separable smooth convex function and Ω\Omega is a simple (block) separable convex function. We allow Ω\Omega to have values in R{}\mathbf{R}\cup\{\infty\}, and for regularization purposes we assume Ω\Omega is proper and closed. While (1) is seemingly an unconstrained problem, Ω\Omega can be chosen to model simple convex constraints on individual blocks of variables. Alternatively, this function can be used to enforce a certain structure (e.g., sparsity) in the solution. For a more detailed account we refer the reader to . Further, we assume that this problem has a minimum (F>F^{*}>-\infty). What we mean by “smoothness” and “simplicity” will be made precise in the next section.

Let us now describe the key concept of partial separability. Let xRNx\in\mathbf{R}^{N} be decomposed into nn non-overlapping blocks of variables x(1),,x(n)x^{(1)},\dots,x^{(n)} (this will be made precise in Section 2). We assume throughout the paper that f:RNRf:\mathbf{R}^{N}\to\mathbf{R} is partially separable of degree ω\omega, i.e., that it can be written in the form

where J\mathcal{J} is a finite collection of nonempty subsets of [n]=def{1,2,,n}{[n]}\stackrel{{\scriptstyle\text{def}}}{{=}}\{1,2,\dots,n\} (possibly containing identical sets multiple times), fJf_{J} are differentiable convex functions such that fJf_{J} depends on blocks x(i)x^{(i)} for iJi\in J only, and

Clearly, 1ωn1\leq\omega\leq n. The PCDM algorithms we develop and analyze in this paper only need to know ω\omega, they do not need to know the decomposition of ff giving rise to this ω\omega.

Examples of partially separable functions.

Many objective functions naturally encountered in the big data setting are partially separable. Here we give examples of three loss/objective functions frequently used in the machine learning literature and also elsewhere. For simplicity, we assume all blocks are of size 1 (i.e., N=nN=n). Let

where mm is the number of examples, xRnx\in\mathbf{R}^{n} is the vector of features, (Aj,yj)Rn×R(A_{j},y_{j})\in\mathbf{R}^{n}\times\mathbf{R} are labeled examples and L{\cal L} is one of the three loss functions listed in Table 1. Let ARm×nA\in\mathbf{R}^{m\times n} with row jj equal to AjTA_{j}^{T}.

Often, each example depends on a few features only; the maximum over all features is the degree of partial separability ω\omega. More formally, note that the jj-th function in the sum (4) in all cases depends on Aj0\|A_{j}\|_{0} coordinates of xx (the number of nonzeros in the jj-th row of AA) and hence ff is partially separable of degree

All three functions of Table 1 are smooth (based on the definition of smoothness in the next section). We refer the reader to for more examples of interesting (but nonsmooth) partially separable functions arising in graph cuts and matrix completion.

Brief literature review.

Several papers were written recently studying the iteration complexity of serial CDMs of various flavours and in various settings. We will only provide a brief summary here, for a more detailed account we refer the reader to .

Classical CDMs update the coordinates in a cyclic order; the first attempt at analyzing the complexity of such a method is due to . Stochastic/randomized CDMs, that is, methods where the coordinate to be updated is chosen randomly, were first analyzed for quadratic objectives , later independently generalized to L1L_{1}-regularized problems and smooth block-structured problems , and finally unified and refined in . The problems considered in the above papers are either unconstrained or have (block) separable constraints. Recently, randomized CDMs were developed for problems with linearly coupled constraints .

A greedy CDM for L1L_{1}-regularized problems was first analyzed in ; more work on this topic include . A CDM with inexact updates was first proposed and analyzed in . Partially separable problems were independently studied in , where an asynchronous parallel stochastic gradient algorithm was developed to solve them.

When writing this paper, the authors were aware only of the parallel CDM proposed and analyzed in . Several papers on the topic appeared around the time this paper was finalized or after . Further papers on various aspects of the topic of parallel CDMs, building on the work in this paper, include .

Contents.

We start in Section 2 by describing the block structure of the problem, establishing notation and detailing assumptions. Subsequently we propose and comment in detail on two parallel coordinate descent methods. In Section 3 we summarize the main contributions of this paper. In Section 4 we deal with issues related to the selection of the blocks to be updated in each iteration. It will involve the development of some elementary random set theory. Sections 5-6 deal with issues related to the computation of the update to the selected blocks and develop a theory of Expected Separable Overapproximation (ESO), which is a novel tool we propose for the analysis of our algorithms. In Section 7 we analyze the iteration complexity of our methods and finally, Section 8 reports on promising computational results. For instance, we conduct an experiment with a big data (cca 350GB) LASSO problem with a billion variables. We are able to solve the problem using one of our methods on a large memory machine with 24 cores in 2 hours, pushing the difference between the objective value at the starting iterate and the optimal point from 102210^{22} down to 101410^{-14}. We also conduct experiments on real data problems coming from machine learning.

Parallel Block Coordinate Descent Methods

In Section 2.1 we formalize the block structure of the problem, establish notationTable 8 in the appendix summarizes some of the key notation used frequently in the paper. that will be used in the rest of the paper and list assumptions. In Section 2.2 we propose two parallel block coordinate descent methods and comment in some detail on the steps.

Some elements of the setup described in this section was initially used in the analysis of block coordinate descent methods by Nesterov (e.g., block structure, weighted norms and block Lipschitz constants).

The block structure of (1) is given by a decomposition of RN\mathbf{R}^{N} into nn subspaces as follows. Let URN×NU\in\mathbf{R}^{N\times N} be a column permutationThe reason why we work with a permutation of the identity matrix, rather than with the identity itself, as in , is to enable the blocks being formed by nonconsecutive coordinates of xx. This way we establish notation which makes it possible to work with (i.e., analyze the properties of) multiple block decompositions, for the sake of picking the best one, subject to some criteria. Moreover, in some applications the coordinates of xx have a natural ordering to which the natural or efficient block structure does not correspond. of the N×NN\times N identity matrix and further let U=[U1,U2,,Un]U=[U_{1},U_{2},\dots,U_{n}] be a decomposition of UU into nn submatrices, with UiU_{i} being of size N×NiN\times N_{i}, where iNi=N\sum_{i}N_{i}=N.

Any vector xRNx\in\mathbf{R}^{N} can be written uniquely as

where x(i)RNix^{(i)}\in\mathbf{R}^{N_{i}}. Moreover, x(i)=UiTxx^{(i)}=U_{i}^{T}x.

Noting that UUT=iUiUiTUU^{T}=\sum_{i}U_{i}U_{i}^{T} is the N×NN\times N identity matrix, we have x=iUiUiTxx=\sum_{i}U_{i}U_{i}^{T}x. Let us now show uniqueness. Assume that x=iUix1(i)=iUix2(i)x=\sum_{i}U_{i}x_{1}^{(i)}=\sum_{i}U_{i}x_{2}^{(i)}, where x1(i),x2(i)RNix_{1}^{(i)},x_{2}^{(i)}\in\mathbf{R}^{N_{i}}. Since

for every jj we get 0=UjT(xx)=UjTiUi(x1(i)x2(i))=x1(j)x2(j)0=U_{j}^{T}(x-x)=U_{j}^{T}\sum_{i}U_{i}(x_{1}^{(i)}-x_{2}^{(i)})=x_{1}^{(j)}-x_{2}^{(j)}. ∎

In view of the above proposition, from now on we write x(i)=defUiTxRNix^{(i)}\stackrel{{\scriptstyle\text{def}}}{{=}}U_{i}^{T}x\in\mathbf{R}^{N_{i}}, and refer to x(i)x^{(i)} as the ii-th block of xx. The definition of partial separability in the introduction is with respect to these blocks. For simplicity, we will sometimes write x=(x(1),,x(n))x=(x^{(1)},\dots,x^{(n)}).

For S[n]S\subset{[n]} and xRNx\in\mathbf{R}^{N} we write

That is, given xRNx\in\mathbf{R}^{N}, x[S]x_{[S]} is the vector in RN\mathbf{R}^{N} whose blocks iSi\in S are identical to those of xx, but whose other blocks are zeroed out. In view of Proposition 1, we can equivalently define x[S]x_{[S]} block-by-block as follows

Inner products.

The standard Euclidean inner product in spaces RN\mathbf{R}^{N} and RNi\mathbf{R}^{N_{i}}, i[n]i\in{[n]}, will be denoted by ,\langle\cdot,\cdot\rangle. Letting x,yRNx,y\in\mathbf{R}^{N}, the relationship between these inner products is given by

For any wRnw\in\mathbf{R}^{n} and x,yRNx,y\in\mathbf{R}^{N} we further define

For vectors z=(z1,,zn)TRnz=(z_{1},\dots,z_{n})^{T}\in\mathbf{R}^{n} and w=(w1,,wn)TRnw=(w_{1},\dots,w_{n})^{T}\in\mathbf{R}^{n} we write wz=def(w1z1,,wnzn)Tw\odot z\stackrel{{\scriptstyle\text{def}}}{{=}}(w_{1}z_{1},\dots,w_{n}z_{n})^{T}.

Norms.

Spaces RNi\mathbf{R}^{N_{i}}, i[n]i\in{[n]}, are equipped with a pair of conjugate norms: t(i)=defBit,t1/2\|t\|_{(i)}\stackrel{{\scriptstyle\text{def}}}{{=}}\langle B_{i}t,t\rangle^{1/2}, where BiB_{i} is an Ni×NiN_{i}\times N_{i} positive definite matrix and t(i)=defmaxs(i)1s,t=Bi1t,t1/2\|t\|_{(i)}^{*}\stackrel{{\scriptstyle\text{def}}}{{=}}\max_{\|s\|_{(i)}\leq 1}\langle s,t\rangle=\langle B_{i}^{-1}t,t\rangle^{1/2}, tRNit\in\mathbf{R}^{N_{i}}. For wR++nw\in\mathbf{R}^{n}_{++}, define a pair of conjugate norms in RN\mathbf{R}^{N} by

Note that these norms are induced by the inner product (9) and the matrices B1,,BnB_{1},\dots,B_{n}. Often we will use w=L=def(L1,L2,,Ln)TRnw=L\stackrel{{\scriptstyle\text{def}}}{{=}}(L_{1},L_{2},\dots,L_{n})^{T}\in\mathbf{R}^{n}, where the constants LiL_{i} are defined below.

Smoothness of f𝑓f.

We assume throughout the paper that the gradient of ff is block Lipschitz, uniformly in xx, with positive constants L1,,LnL_{1},\dots,L_{n}, i.e., that for all xRNx\in\mathbf{R}^{N}, i[n]i\in{[n]} and tRNit\in\mathbf{R}^{N_{i}},

where if(x)=def(f(x))(i)=UiTf(x)RNi\nabla_{i}f(x)\stackrel{{\scriptstyle\text{def}}}{{=}}(\nabla f(x))^{(i)}=U^{T}_{i}\nabla f(x)\in\mathbf{R}^{N_{i}}. An important consequence of (11) is the following standard inequality :

Separability of ΩΩ\Omega.

We assume thatFor examples of separable and block separable functions we refer the reader to . For instance, Ω(x)=x1\Omega(x)=\|x\|_{1} is separable and block separable (used in sparse optimization); and Ω(x)=ix(i)\Omega(x)=\sum_{i}\|x^{(i)}\|, where the norms are standard Euclidean norms, is block separable (used in group lasso). One can model block constraints by setting Ωi(x(i))=0\Omega_{i}(x^{(i)})=0 for xXix\in X_{i}, where XiX_{i} is some closed convex set, and Ωi(x(i))=+\Omega_{i}(x^{(i)})=+\infty for xXix\notin X_{i}. Ω:RNR{+}\Omega:\mathbf{R}^{N}\to\mathbf{R}\cup\{+\infty\} is (block) separable, i.e., that it can be decomposed as follows:

where the functions Ωi:RNiR{+}\Omega_{i}:\mathbf{R}^{N_{i}}\to\mathbf{R}\cup\{+\infty\} are convex and closed.

Strong convexity.

In one of our two complexity results (Theorem 20) we will assume that either ff or Ω\Omega (or both) is strongly convex. A function ϕ:RNR{+}\phi:\mathbf{R}^{N}\to\mathbf{R}\cup\{+\infty\} is strongly convex with respect to the norm w\|\cdot\|_{w} with convexity parameter μϕ(w)0\mu_{\phi}(w)\geq 0 if for all x,ydomϕx,y\in\operatorname{dom}\phi,

where ϕ(x)\phi^{\prime}(x) is any subgradient of ϕ\phi at xx. The case with μϕ(w)=0\mu_{\phi}(w)=0 reduces to convexity. Strong convexity of FF may come from ff or Ω\Omega (or both); we write μf(w)\mu_{f}(w) (resp. μΩ(w)\mu_{\Omega}(w)) for the (strong) convexity parameter of ff (resp. Ω\Omega). It follows from (14) that

The following characterization of strong convexity will be useful. For all x,ydomϕx,y\in\operatorname{dom}\phi and λ\lambda\in,

It can be shown using (12) and (14) that μf(w)Liwi\mu_{f}(w)\leq\tfrac{L_{i}}{w_{i}}.

2 Algorithms

In this paper we develop and study two generic parallel coordinate descent methods. The main method is PCDM1; PCDM2 is its “regularized” version which explicitly enforces monotonicity. As we will see, both of these methods come in many variations, depending on how Step 3 is performed.

Let us comment on the individual steps of the two methods.

Step 3. At the beginning of iteration kk we pick a random set (SkS_{k}) of blocks to be updated (in parallel) during that iteration. The set SkS_{k} is a realization of a random set-valued mapping S^\hat{S} with values in 2[n]2^{[n]} or, more precisely, it the sets SkS_{k} are iid random sets with the distribution of S^\hat{S}. For brevity, in this paper we refer to such a mapping by the name sampling. We limit our attention to uniform samplings, i.e., random sets having the following property: P(iS^)\mathbf{P}(i\in\hat{S}) is independent of ii. That is, the probability that a block gets selected is the same for all blocks. Although we give an iteration complexity result covering all such samplings (provided that each block has a chance to be updated, i.e., P(iS^)>0\mathbf{P}(i\in\hat{S})>0), there are interesting subclasses of uniform samplings (such as doubly uniform and nonoverlapping uniform samplings; see Section 4) for which we give better results.

Step 4. For xRNx\in\mathbf{R}^{N} we defineA similar map was used in (with Ω0\Omega\equiv 0 and β=1\beta=1) and (with β=1\beta=1) in the analysis of serial coordinate descent methods in the smooth and composite case, respectively. In loose terms, the novelty here is the introduction of the parameter β\beta and in developing theory which describes what value β\beta should have. Maps of this type are known as composite gradient mapping in the literature, and were introduced in .

and β>0\beta>0, w=(w1,,wn)TR++nw=(w_{1},\dots,w_{n})^{T}\in\mathbf{R}^{n}_{++} are parameters of the method that we will comment on later. Note that in view of (5), (10) and (13), Hβ,w(x,)H_{\beta,w}(x,\cdot) is block separable;

Consequently, we have h(x)=(h(1)(x),,h(n)(x))RNh(x)=(h^{(1)}(x),\cdots,h^{(n)}(x))\in\mathbf{R}^{N}, where

We mentioned in the introduction that besides (block) separability, we require Ω\Omega to be “simple”. By this we mean that the above optimization problem leading to h(i)(x)h^{(i)}(x) is “simple” (e.g., it has a closed-form solution). Recall from (8) that (h(xk))[Sk](h(x_{k}))_{[S_{k}]} is the vector in RN\mathbf{R}^{N} identical to h(xk)h(x_{k}) except for blocks iSki\notin S_{k}, which are zeroed out. Hence, Step 4 of both methods can be written as follows:

Parameters β\beta and ww depend on ff and S^\hat{S} and stay constant throughout the algorithm. We are not ready yet to explain why the update is computed via (17) and (18) because we need technical tools, which will be developed in Section 4, to do so. Here it suffices to say that the parameters β\beta and ww come from a separable quadratic overapproximation of E[f(x+h[S^])]\mathbf{E}[f(x+h_{[\hat{S}]})], viewed as a function of hRNh\in\mathbf{R}^{N}. Since expectation is involved, we refer to this by the name Expected Separable Overapproximation (ESO). This novel concept, developed in this paper, is one of the main tools of our complexity analysis. Section 5 motivates and formalizes the concept, answers the why question, and develops some basic ESO theory.

Section 6 is devoted to the computation of β\beta and ww for partially separable ff and various special classes of uniform samplings S^\hat{S}. Typically we will have wi=Liw_{i}=L_{i}, while β\beta will depend on easily computable properties of ff and S^\hat{S}. For example, if S^\hat{S} is chosen as a subset of [n]{[n]} of cardinality τ\tau, with each subset chosen with the same probability (we say that S^\hat{S} is τ\tau-nice) then, assuming n>1n>1, we may choose w=Lw=L and β=1+(ω1)(τ1)n1\beta=1+\tfrac{(\omega-1)(\tau-1)}{n-1}, where ω\omega is the degree of partial separability of ff. More generally, if S^\hat{S} is any uniform sampling with the property S^=τ|\hat{S}|=\tau with probability 1, then we may choose w=Lw=L and β=min{ω,τ}\beta=\min\{\omega,\tau\}. Note that in both cases w=Lw=L and that the latter β\beta is always larger than (or equal to) the former one. This means, as we will see in Section 7, that we can give better complexity results for the former, more specialized, sampling. We analyze several more options for S^\hat{S} than the two just described, and compute parameters β\beta and ww that should be used with them (for a summary, see Table 4).

Step 5. The reason why, besides PCDM1, we also consider PCDM2, is the following: in some situations we are not able to analyze the iteration complexity of PCDM1 (non-strongly-convex FF where monotonicity of the method is not guaranteed by other means than by directly enforcing it by inclusion of Step 5). Let us remark that this issue arises for general Ω\Omega only. It does not exist for Ω=0\Omega=0, Ω()=λ1\Omega(\cdot)=\lambda\|\cdot\|_{1} and for Ω\Omega encoding simple constraints on individual blocks; in these cases one does not need to consider PCDM2. Even in the case of general Ω\Omega we sometimes get monotonicity for free, in which case there is no need to enforce it. Let us stress, however, that we do not recommend implementing PCDM2 as this would introduce too much overhead; in our experience PCDM1 works well even in cases when we can only analyze PCDM2.

Smmary of Contributions

In this section we summarize the main contributions of this paper (not in order of significance).

Problem generality. We give the first complexity analysis for parallel coordinate descent methods for problem (1) in its full generality.

Complexity. We show theoretically (Section 7) and numerically (Section 8) that PCDM accelerates on its serial counterpart for partially separable problems. In particular, we establish two complexity theorems giving lower bounds on the number of iterations kk sufficient for one or both of the PCDM variants (for details, see the precise statements in Section 7) to produce a random iterate xkx_{k} for which the problem is approximately solved with high probability, i.e., P(F(xk)Fϵ)1ρ\mathbf{P}(F(x_{k})-F^{*}\leq\epsilon)\geq 1-\rho. The results, summarized in Table 2, hold under the standard assumptions listed in Section 2.1 and the additional assumption that f,S^,βf,\hat{S},\beta and ww satisfy the following inequality for all x,hRNx,h\in\mathbf{R}^{N}:

This inequality, which we call Expected Separable Overapproximation (ESO), is the main new theoretical tool that we develop in this paper for the analysis of our methods (Sections 4-6 are devoted to the development of this theory).

The main observation here is that as the average number of block updates per iteration increases (say, τ^=E[S^]\hat{\tau}=\operatorname{\mathbf{E}}[|\hat{S}|]), enabled by the utilization of more processors, the leading term in the complexity estimate, n/τ^n/\hat{\tau}, decreases in proportion. However, β\beta will generally grow with τ^\hat{\tau}, which has an adverse effect on the speedup. Much of the theory in this paper goes towards producing formulas for β\beta (and ww), for partially separable ff and various classes of uniform samplings S^\hat{S}. Naturally, the ideal situation is when β\beta does not grow with τ^\hat{\tau} at all, or if it only grows very slowly. We show that this is the case for partially separable functions ff with small ω\omega. For instance, in the extreme case when ff is separable (ω=1\omega=1), we have β=1\beta=1 and we obtain linear speedup in τ^\hat{\tau}. As ω\omega increases, so does β\beta, depending on the law governing S^\hat{S}. Formulas for β\beta and ω\omega for various samplings S^\hat{S} are summarized in Table 4.

Algorithm unification. Depending on the choice of the block structure (as implied by the choice of nn and the matrices U1,,UnU_{1},\dots,U_{n}) and the way blocks are selected at every iteration (as given by the choice of S^\hat{S}), our framework encodes a family of known and new algorithmsAll the methods are in their proximal variants due to the inclusion of the term Ω\Omega in the objective. (see Table 3).

In particular, PCDM is the first method which “continuously” interpolates between serial coordinate descent and gradient (by manipulating nn and/or E[S^]\mathbf{E}[|\hat{S}|]).

Partial separability. We give the first analysis of a coordinate descent type method dealing with a partially separable loss / objective. In order to run the method, we need to know the Lipschitz constants LiL_{i} and the degree of partial separability ω\omega. It is crucial that these quantities are often easily computable/predictable in the huge-scale setting. For example, if f(x)=12Axb2f(x)=\tfrac{1}{2}\|Ax-b\|^{2} and we choose all blocks to be of size 11, then LiL_{i} is equal to the squared Euclidean norm of the ii-th column of AA and ω\omega is equal to the maximum number of nonzeros in a row of AA. Many problems in the big data setting have small ω\omega compared to nn.

Choice of blocks. To the best of our knowledge, existing randomized strategies for paralleling gradient-type methods (e.g., ) assume that S^\hat{S} (or an equivalent thereof, based on the method) is chosen as a subset of [n][n] of a fixed cardinality, uniformly at random. We refer to such S^\hat{S} by the name nice sampling in this paper. We relax this assumption and our treatment is hence much more general. In fact, we allow for S^\hat{S} to be any uniform sampling. It is possible to further consider nonuniform samplingsRevision note: See ., but this is beyond the scope of this paper.

In particular, as a special case, our method allows for a variable number of blocks to be updated throughout the iterations (this is achieved by the introduction of doubly uniform samplings). This may be useful in some settings such as when the problem is being solved in parallel by τ\tau unreliable processors each of which computes its update h(i)(xk)h^{(i)}(x_{k}) with probability pbp_{b} and is busy/down with probability 1pb1-p_{b} (binomial sampling).

Uniform, doubly uniform, nice, binomial and other samplings are defined, and their properties studied, in Section 4.

ESO and formulas for β\beta and ww. In Table 4 we list parameters β\beta and ww for which ESO inequality (19) holds. Each row corresponds to a specific sampling S^\hat{S} (see Section 4 for the definitions). The last 5 samplings are special cases of one or more of the first three samplings. Details such as what is ν,γ\nu,\gamma and “monotonic” ESO are explained in appropriate sections later in the text. When a specific sampling S^\hat{S} is used in the algorithm to select blocks in each iteration, the corresponding parameters β\beta and ww are to be used in the method for the computation of the update (see (17) and (18)).

En route to proving the iteration complexity results for our algorithms, we develop a theory of deterministic and expected separable overapproximation (Sections 5 and 6) which we believe is of independent interest, too. For instance, methods based on ESO can be compared favorably to the Diagonal Quadratic Approximation (DQA) approach used in the decomposition of stochastic optimization programs .

Parallelization speedup. Our complexity results can be used to derive theoretical parallelization speedup factors. For several variants of our method, in case of a non-strongly convex objective, these are given in Section 7.1 (Table 5). For instance, in the case when all block are updated at each iteration (we later refer to S^\hat{S} having this property by the name fully parallel sampling), the speedup factor is equal to nω\tfrac{n}{\omega}. If the problem is separable (ω=1\omega=1), the speedup is equal to nn; if the problem is not separable (ω=n\omega=n), there may be no speedup. For strongly convex FF the situation is even better; the details are given in Section 7.2.

Relationship to existing results. To the best of our knowledge, there are just two papers analyzing a parallel coordinate descent algorithm for convex optimization problems. In the first paper all blocks are of size 11, S^\hat{S} corresponds to what we call in this paper a τ\tau-nice sampling (i.e., all sets of τ\tau coordinates are updated at each iteration with equal probability) and hence their algorithm is somewhat comparable to one of the many variants of our general method. While the analysis in works for a restricted range of values of τ\tau, our results hold for all τ[n]\tau\in{[n]}. Moreover, the authors consider a more restricted class of functions ff and the special case Ω=λx1\Omega=\lambda\|x\|_{1}, which is simpler to analyze. Lastly, the theoretical speedups obtained in , when compared to the serial CDM method, depend on a quantity σ\sigma that is hard to compute in big data settings (it involves the computation of an eigenvalue of a huge-scale matrix). Our speedups are expressed in terms of natural and easily computable quantity: the degree ω\omega of partial separability of ff. In the setting considered by , in which more structure is available, it turns out that ω\omega is an upper boundRevision note requested by a reviewer: In the time since this paper was posted to arXiv, a number of follow-up papers were written analyzing parallel coordinate descent methods and establishing connections between a discrete quantity analogous to ω\omega (degree of partial/Nesterov separability) and a spectral quantity analogous to σ\sigma (largest eigenvalue of a certain matrix), most notably . See also , which uses a spectral quantity, which can be directly compared to ω\omega. on σ\sigma. Hence, we show that one can develop the theory in a more general setting, and that it is not necessary to compute σ\sigma (which may be complicated in the big data setting). The parallel CDM method of the second paper only allows all blocks to be updated at each iteration. Unfortunately, the analysis (and the method) is too coarse as it does not offer any theoretical speedup when compared to its serial counterpart. In the special case when only a single block is updated in each iteration, uniformly at random, our theoretical results specialize to those established in .

Computations. We demonstrate that our method is able to solve a LASSO problem involving a matrix with a billion columns and 2 billion rows on a large memory node with 24 cores in 2 hours (Section 8), achieving a 20×20\times speedup compared to the serial variant and pushing the residual by more than 30 degrees of magnitude. While this is done on an artificial problem under ideal conditions (controlling for small ω\omega), large speedups are possible in real data with ω\omega small relative to nn. We also perform additional experiments on real data sets from machine learning (e.g., training linear SVMs) to illustrate that the predictions of our theory match reality.

Code. The open source code with an efficient implementation of the algorithm(s) developed in this paper is published here: http://code.google.com/p/ac-dc/.

Block Samplings

In Step 3 of both PCDM1 and PCDM2 we choose a random set of blocks SkS_{k} to be updated at the current iteration. Formally, SkS_{k} is a realization of a random set-valued mapping S^\hat{S} with values in 2[n]2^{{[n]}}, the collection of subsets of [n][n]. For brevity, in this paper we refer to S^\hat{S} by the name sampling. A sampling S^\hat{S} is uniquely characterized by the probability mass function

that is, by assigning probabilities to all subsets of [n]{[n]}. Further, we let p=(p1,,pn)Tp=(p_{1},\dots,p_{n})^{T}, where

In Section 4.1 we describe those samplings for which we analyze our methods and in Section 4.2 we prove several technical results, which will be useful in the rest of the paper.

A sampling is proper if pi>0p_{i}>0 for all blocks ii. That is, from the perspective of PCDM, under a proper sampling each block gets updated with a positive probability at each iteration. Clearly, PCDM can not converge for a sampling that is not proper.

A sampling S^\hat{S} is uniform if all blocks get updated with the same probability, i.e., if pi=pjp_{i}=p_{j} for all i,ji,j. We show in (33) that, necessarily, pi=E[S^]np_{i}=\tfrac{\mathbf{E}[|\hat{S}|]}{n}. Further, we say S^\hat{S} is nil if P()=1\mathbf{P}(\emptyset)=1. Note that a uniform sampling is proper if and only if it is not nil.

All our iteration complexity results in this paper are for PCDM used with a proper uniform sampling (see Theorems 19 and 20) for which we can compute β\beta and ww giving rise to an inequality (we we call “expected separable overapproximation”) of the form (43). We derive such inequalities for all proper uniform samplings (Theorem 12) as well as refined results for two special subclasses thereof: doubly uniform samplings (Theorem 15) and nonoverlapping uniform samplings (Theorem 13). We will now give the definitions:

Doubly Uniform (DU) samplings. A DU sampling is one which generates all sets of equal cardinality with equal probability. That is, P(S)=P(S)\mathbf{P}(S^{\prime})=\mathbf{P}(S^{\prime\prime}) whenever S=S|S^{\prime}|=|S^{\prime\prime}|. The name comes from the fact that this definition postulates a different uniformity property, “standard” uniformity is a consequence. Indeed, let us show that a DU sampling is necessarily uniform. Let qj=P(S^=j)q_{j}=\mathbf{P}(|\hat{S}|=j) for j=0,1,,nj=0,1,\dots,n and note that from the definition we know that whenever SS is of cardinality jj, we have P(S)=qj/(nj)\mathbf{P}(S)=q_{j}/{n\choose j}. Finally, using this we obtain

It is clear that each DU sampling is uniquely characterized by the vector of probabilities qq; its density function is given by

Nonoverlapping Uniform (NU) samplings. A NU sampling is one which is uniform and which assigns positive probabilities only to sets forming a partition of [n]{[n]}. Let S1,S2,,SlS^{1},S^{2},\dots,S^{l} be a partition of [n]{[n]}, with Sj>0|S^{j}|>0 for all jj. The density function of a NU sampling corresponding to this partition is given by

Note that E[S^]=nl\mathbf{E}[|\hat{S}|]=\tfrac{n}{l}.

Let us now describe several interesting special cases of DU and NU samplings:

Nice sampling. Fix 1τn1\leq\tau\leq n. A τ\tau-nice sampling is a DU sampling with qτ=1q_{\tau}=1.

Interpretation: There are τ\tau processors/threads/cores available. At the beginning of each iteration we choose a set of blocks using a τ\tau-nice sampling (i.e., each subset of τ\tau blocks is chosen with the same probability), and assign each block to a dedicated processor/thread/core. Processor assigned with block ii would compute and apply the update h(i)(xk)h^{(i)}(x_{k}). This is the sampling we use in our computational experiments.

Independent sampling. Fix 1τn1\leq\tau\leq n. A τ\tau-independent sampling is a DU sampling with

where c1=(1n)τc_{1}=\left(\tfrac{1}{n}\right)^{\tau} and ck=(kn)τi=1k1(ki)cic_{k}=\left(\tfrac{k}{n}\right)^{\tau}-\sum_{i=1}^{k-1}{k\choose i}c_{i} for k2k\geq 2.

Interpretation: There are τ\tau processors/threads/cores available. Each processor chooses one of the nn blocks, uniformly at random and independently of the other processors. It turns out that the set S^\hat{S} of blocks selected this way is DU with qq as given above. Since in one parallel iteration of our methods each block in S^\hat{S} is updated exactly once, this means that if two or more processors pick the same block, all but one will be idle. On the other hand, this sampling can be generated extremely easily and in parallel! For τn\tau\ll n this sampling is a good (and fast) approximation of the τ\tau-nice sampling. For instance, for n=103n=10^{3} and τ=8\tau=8 we have q8=0.9723q_{8}=0.9723, q7=0.0274q_{7}=0.0274, q6=0.0003q_{6}=0.0003 and qk0q_{k}\approx 0 for k=1,,5k=1,\dots,5.

Binomial sampling. Fix 1τn1\leq\tau\leq n and 0<pb10<p_{b}\leq 1. A (τ,pb)(\tau,p_{b})-binomial sampling is defined as a DU sampling with

Notice that E[S^]=τpb\mathbf{E}[|\hat{S}|]=\tau p_{b} and E[S^2]=τpb(1+τpbpb)\mathbf{E}[|\hat{S}|^{2}]=\tau p_{b}(1+\tau p_{b}-p_{b}).

Interpretation: Consider the following situation with independent equally unreliable processors. We have τ\tau processors, each of which is at any given moment available with probability pbp_{b} and busy with probability 1pb1-p_{b}, independently of the availability of the other processors. Hence, the number of available processors (and hence blocks that can be updated in parallel) at each iteration is a binomial random variable with parameters τ\tau and pbp_{b}. That is, the number of available processors is equal to kk with probability qkq_{k}.

Case 1 (explicit selection of blocks): We learn that kk processors are available at the beginning of each iteration. Subsequently, we choose kk blocks using a kk-nice sampling and “assign one block” to each of the kk available processors.

Case 2 (implicit selection of blocks): We choose τ\tau blocks using a τ\tau-nice sampling and assign one to each of the τ\tau processors (we do not know which will be available at the beginning of the iteration). With probability qkq_{k}, kk of these will send their updates. It is easy to check that the resulting effective sampling of blocks is (τ,pb)(\tau,p_{b})-binomial.

Serial sampling. This is a DU sampling with q1=1q_{1}=1. Also, this is a NU sampling with l=nl=n and Sj={j}S^{j}=\{j\} for j=1,2,,lj=1,2,\dots,l. That is, at each iteration we update a single block, uniformly at random. This was studied in .

Fully parallel sampling. This is a DU sampling with qn=1q_{n}=1. Also, this is a NU sampling with l=1l=1 and S1=[n]S^{1}={[n]}. That is, at each iteration we update all blocks.

The following simple result says that the intersection between the class of DU and NU samplings is very thin. A sampling is called vacuous if P()>0\mathbf{P}(\emptyset)>0.

There are precisely two nonvacuous samplings which are both DU and NU: i) the serial sampling and ii) the fully parallel sampling.

Assume S^\hat{S} is nonvacuous, NU and DU. Since S^\hat{S} is nonvacuous, P(S^=)=0\mathbf{P}(\hat{S}=\emptyset)=0. Let S[n]S\subset{[n]} be any set for which P(S^=S)>0\mathbf{P}(\hat{S}=S)>0. If 1<S<n1<|S|<n, then there exists SSS^{\prime}\neq S of the same cardinality as SS having a nonempty intersection with SS. Since S^\hat{S} is doubly uniform, we must have P(S^=S)=P(S^=S)>0\mathbf{P}(\hat{S}=S^{\prime})=\mathbf{P}(\hat{S}=S^{\prime})>0. However, this contradicts the fact that S^\hat{S} is non-overlapping. Hence, S^\hat{S} can only generate sets of cardinalities 11 or nn with positive probability, but not both. One option leads to the fully parallel sampling, the other one leads to the serial sampling. ∎

2 Technical results

For a given sampling S^\hat{S} and i,j[n]i,j\in{[n]} we let

The following simple result has several consequences which will be used throughout the paper.

Let J[n]\emptyset\neq J\subset{[n]} and S^\hat{S} be any sampling. If θi\theta_{i}, i[n]i\in{[n]}, and θij\theta_{ij}, for (i,j)[n]×[n](i,j)\in{[n]}\times{[n]} are real constants, thenSum over an empty index set will, for convenience, be defined to be zero.

Proof. We prove the first statement, proof of the remaining statements is essentially identical:

The consequences are summarized in the next theorem and the discussion that follows.

Let J[n]\emptyset\neq J\subset{[n]} and S^\hat{S} be an arbitrary sampling. Further, let a,hRNa,h\in\mathbf{R}^{N}, wR+nw\in\mathbf{R}^{n}_{+} and let gg be a block separable function, i.e., g(x)=igi(x(i))g(x)=\sum_{i}g_{i}(x^{(i)}). Then

Moreover, the matrix P=def(pij)P\stackrel{{\scriptstyle\text{def}}}{{=}}(p_{ij}) is positive semidefinite.

Proof. Noting that JS^=iJS^1|J\cap\hat{S}|=\sum_{i\in J\cap\hat{S}}1, JS^2=(iJS^1)2=iJS^jJS^1|J\cap\hat{S}|^{2}=(\sum_{i\in J\cap\hat{S}}1)^{2}=\sum_{i\in J\cap\hat{S}}\sum_{j\in J\cap\hat{S}}1, a,h[S^]w=iS^wia(i),h(i)\langle a,h_{[\hat{S}]}\rangle_{w}=\sum_{i\in\hat{S}}w_{i}\langle a^{(i)},h^{(i)}\rangle, h[S^]w2=iS^wih(i)(i)2\|h_{[\hat{S}]}\|_{w}^{2}=\sum_{i\in\hat{S}}w_{i}\|h^{(i)}\|_{(i)}^{2} and

all five identities follow directly by applying Lemma 3. Finally, for any θ=(θ1,,θn)TRn\theta=(\theta_{1},\dots,\theta_{n})^{T}\in\mathbf{R}^{n},

The above results hold for arbitrary samplings. Let us specialize them, in order of decreasing generality, to uniform, doubly uniform and nice samplings.

Uniform samplings. If S^\hat{S} is uniform, then from (28) using J=[n]J={[n]} we get

Plugging (33) into (28), (30), (31) and (32) yields

Doubly uniform samplings. Consider the case n>1n>1; the case n=1n=1 is trivial. For doubly uniform S^\hat{S}, pijp_{ij} is constant for iji\neq j:

Substituting (38) and (33) into (29) then gives

Nice samplings. Finally, if S^\hat{S} is τ\tau-nice (and τ0\tau\neq 0), then E[S^]=τ\mathbf{E}[|\hat{S}|]=\tau and E[S^2]=τ2\mathbf{E}[|\hat{S}|^{2}]=\tau^{2}, which used in (39) gives

Moreover, assume that P(JS^=k)0\mathbf{P}(|J\cap\hat{S}|=k)\neq 0 (this happens precisely when 0kJ0\leq k\leq|J| and kτnJ+kk\leq\tau\leq n-|J|+k). Then for all iJi\in J,

Expected Separable Overapproximation

Recall that given xkx_{k}, in PCDM1 the next iterate is the random vector xk+1=xk+h[S^]x_{k+1}=x_{k}+h_{[\hat{S}]} for a particular choice of hRNh\in\mathbf{R}^{N}. Further recall that in PCDM2,

again for a particular choice of hh. While in Section 2 we mentioned how hh is computed, i.e., that hh is the minimizer of Hβ,w(x,)H_{\beta,w}(x,\cdot) (see (17) and (18)), we did not explain why is hh computed this way. The reason for this is that the tools needed for this were not yet developed at that point (as we will see, some results from Section 4 are needed). In this section we give an answer to this why question.

Given xkRNx_{k}\in\mathbf{R}^{N}, after one step of PCDM1 performed with update hh we get E[F(xk+1)    xk]=E[F(xk+h[S^])    xk]\mathbf{E}[F(x_{k+1})\;|\;x_{k}]=\mathbf{E}[F(x_{k}+h_{[\hat{S}]})\;|\;x_{k}]. On the the other hand, after one step of PCDM2 we have

So, for both PCDM1 and PCDM2 the following estimate holds,

A good choice for hh to be used in the algorithms would be one minimizing the right hand side of inequality (42). At the same time, we would like the minimization process to be decomposable so that the updates h(i)h^{(i)}, iS^i\in\hat{S}, could be computed in parallel. However, the problem of finding such hh is intractable in general even if we do not require parallelizability. Instead, we propose to construct/compute a “simple” separable overapproximation of the right-hand side of (42). Since the overapproximation will be separable, parallelizability is guaranteed; “simplicity” means that the updates h(i)h^{(i)} can be computed easily (e.g., in closed form).

From now on we replace, for simplicity and w.l.o.g., the random vector xkx_{k} by a fixed deterministic vector xRNx\in\mathbf{R}^{N}. We can thus remove conditioning in (42) and instead study the quantity E[F(x+h[S^])]\mathbf{E}[F(x+h_{[\hat{S}]})]. Further, fix hRNh\in\mathbf{R}^{N}. Note that if we can find β>0\beta>0 and wR++nw\in\mathbf{R}^{n}_{++} such that

we indeed find a simple separable overapproximation of E[F(x+h[S^])]\mathbf{E}[F(x+h_{[\hat{S}]})]:

where we recall from (18) that Hβ,w(x,h)=f(x)+f(x),h+β2hw2+Ω(x+h)H_{\beta,w}(x,h)=f(x)+\langle\nabla f(x),h\rangle+\tfrac{\beta}{2}\|h\|_{w}^{2}+\Omega(x+h).

That is, (44) says that the expected objective value after one parallel step of our methods, if block iS^i\in\hat{S} is updated by h(i)h^{(i)}, is bounded above by a convex combination of F(x)F(x) and Hβ,w(x,h)H_{\beta,w}(x,h). The natural choice of hh is to set

Note that this is precisely the choice we make in our methods. Since Hβ,w(x,0)=F(x)H_{\beta,w}(x,0)=F(x), both PCDM1 and PCDM2 are monotonic in expectation.

The above discussion leads to the following definition.

Let β>0\beta>0, wR++nw\in\mathbf{R}^{n}_{++} and let S^\hat{S} be a proper uniform sampling. We say that f:RNRf:\mathbf{R}^{N}\to\mathbf{R} admits a (β,w)(\beta,w)-ESO with respect to S^\hat{S} if inequality (43) holds for all x,hRNx,h\in\mathbf{R}^{N}. For simplicity, we write (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w).

Inflation. If (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w), then for ββ\beta^{\prime}\geq\beta and www^{\prime}\geq w, (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta^{\prime},w^{\prime}).

Reshuffling. Since for any c>0c>0 we have hcw2=chw2\|h\|_{cw}^{2}=c\|h\|_{w}^{2}, one can “shuffle” constants between β\beta and ww as follows:

Strong convexity. If (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w), then

Indeed, it suffices to take expectation in (14) with yy replaced by x+h[S^]x+h_{[\hat{S}]} and compare the resulting inequality with (43) (this gives βhw2μf(w)hw2\beta\|h\|_{w}^{2}\geq\mu_{f}(w)\|h\|_{w}^{2}, which must hold for all hh).

Recall that Step 5 of PCDM2 was introduced so as to explicitly enforce monotonicity into the method as in some situations, as we will see in Section 7, we can only analyze a monotonic algorithm. However, sometimes even PCDM1 behaves monotonically (without enforcing this behavior externally as in PCDM2). The following definition captures this.

Assume (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w) and let h(x)h(x) be as in (45). We say that the ESO is monotonic if F(x+(h(x))[S^])F(x)F(x+(h(x))_{[\hat{S}]})\leq F(x), with probability 1, for all xdomFx\in\operatorname{dom}F.

The following theorem will be useful in deriving ESO for uniform samplings (Section 6.1) and nonoverlapping uniform samplings (Section 6.2). It will also be useful in establishing monotonicity of some ESOs (Theorems 12 and 13).

Assume ff is partially separable (i.e., it can be written in the form (2)). Letting Supp(h)=def{i[n]  :  h(i)0}\operatorname{Supp}(h)\stackrel{{\scriptstyle\text{def}}}{{=}}\{i\in{[n]}\;:\;h^{(i)}\neq 0\}, for all x,hRNx,h\in\mathbf{R}^{N} we have

Proof. Let us fix xx and define ϕ(h)=deff(x+h)f(x)f(x),h\phi(h)\stackrel{{\scriptstyle\text{def}}}{{=}}f(x+h)-f(x)-\langle\nabla f(x),h\rangle. Fixing hh, we need to show that ϕ(h)θ2hL2\phi(h)\leq\frac{\theta}{2}\|h\|_{L}^{2} for θ=maxJJθJ\theta=\max_{J\in\mathcal{J}}\theta^{J}, where θJ=defJSupp(h)\theta^{J}\stackrel{{\scriptstyle\text{def}}}{{=}}|J\cap\operatorname{Supp}(h)|. One can define functions ϕJ\phi^{J} in an analogous fashion from the constituent functions fJf_{J}, which satisfy

Now, since ϕJ\phi^{J} depends on the intersection of JJ and the support of its argument only, we have

The argument in the last expression can be written as a convex combination of 1+θJ1+\theta^{J} vectors: the zero vector (with weight θθJθ\tfrac{\theta-\theta^{J}}{\theta}) and the θJ\theta^{J} vectors {θUih(i):iJSupp(h)}\{\theta U_{i}h^{(i)}:i\in J\cap\operatorname{Supp}(h)\} (with weights 1θ\tfrac{1}{\theta}):

Finally, we plug (53) into (52) and use convexity and some simple algebra:

Besides the usefulness of the above result in deriving ESO inequalities, it is interesting on its own for the following reasons.

Block Lipschitz continuity of f\nabla f. The DSO inequality (48) is a generalization of (12) since (12) can be recovered from (48) by choosing hh with Supp(h)={i}\operatorname{Supp}(h)=\{i\} for i[n]i\in{[n]}.

Global Lipschitz continuity of f\nabla f. The DSO inequality also says that the gradient of ff is Lipschitz with Lipschitz constant ω\omega with respect to the norm L\|\cdot\|_{L}:

Indeed, this follows from (48) via maxJJJSupp(h)maxJJJ=ω\max_{J\in\mathcal{J}}|J\cap\operatorname{Supp}(h)|\leq\max_{J\in\mathcal{J}}|J|=\omega. For ω=n\omega=n this has been shown in ; our result for partially separable functions appears to be new.

Tightness of the global Lipschitz constant. The Lipschitz constant ω\omega is “tight” in the following sense: there are functions for which ω\omega cannot be replaced in (54) by any smaller number. We will show this on a simple example. Let f(x)=12Ax2f(x)=\tfrac{1}{2}\|Ax\|^{2} with ARm×nA\in\mathbf{R}^{m\times n} (blocks are of size 1). Note that we can write f(x+h)=f(x)+f(x),h+12hTATAhf(x+h)=f(x)+\langle\nabla f(x),h\rangle+\tfrac{1}{2}h^{T}A^{T}Ah, and that L=(L1,,Ln)=diag(ATA)L=(L_{1},\dots,L_{n})=\operatorname{diag}(A^{T}A). Let D=Diag(L)D=\operatorname{Diag}(L). We need to argue that there exists AA for which σ=defmaxh0hTATAhhL2=ω\sigma\stackrel{{\scriptstyle\text{def}}}{{=}}\max_{h\neq 0}\tfrac{h^{T}A^{T}Ah}{\|h\|_{L}^{2}}=\omega. Since we know that σω\sigma\leq\omega (otherwise (54) would not hold), all we need to show is that there is AA and hh for which

Since f(x)=i=1m(AjTx)2f(x)=\sum_{i=1}^{m}(A_{j}^{T}x)^{2}, where AjA_{j} is the jj-th row of AA, we assume that each row of AA has at most ω\omega nonzeros (i.e., ff is partially separable of degree ω\omega). Let us pick AA with the following further properties: a) AA is a 0-1 matrix, b) all rows of AA have exactly ω\omega ones, c) all columns of AA have exactly the same number (kk) of ones. Immediate consequences: Li=kL_{i}=k for all ii, D=kInD=kI_{n} and ωm=kn\omega m=kn. If we let eme_{m} be the m×1m\times 1 vector of all ones and ene_{n} be the n×1n\times 1 vector of all ones, and set h=k1/2enh=k^{-1/2}e_{n}, then

establishing (55). Using similar techniques one can easily prove the following more general result: Tightness also occurs for matrices AA which in each row contain ω\omega identical nonzero elements (but which can vary from row to row).

2 ESO for a convex combination of samplings

Let S^1,S^2,,S^m\hat{S}_{1},\hat{S}_{2},\dots,\hat{S}_{m} be a collection of samplings and let qRmq\in\mathbf{R}^{m} be a probability vector. By jqjS^j\sum_{j}q_{j}\hat{S}_{j} we denote the sampling S^\hat{S} given by

This procedure allows us to build new samplings from existing ones. A natural interpretation of S^\hat{S} is that it arises from a two stage process as follows. Generating a set via S^\hat{S} is equivalent to first choosing jj with probability qjq_{j}, and then generating a set via S^j\hat{S}_{j}.

Let S^1,S^2,,S^m\hat{S}_{1},\hat{S}_{2},\dots,\hat{S}_{m} be arbitrary samplings, qRmq\in\mathbf{R}^{m} a probability vector and κ:2[n]R\kappa:2^{[n]}\to\mathbf{R} any function mapping subsets of [n]{[n]} to reals. If we let S^=jqjS^j\hat{S}=\sum_{j}q_{j}\hat{S}_{j}, then

E[κ(S^)]=j=1mqjE[κ(S^j)]\mathbf{E}[\kappa(\hat{S})]=\sum_{j=1}^{m}q_{j}\mathbf{E}[\kappa(\hat{S}_{j})],

E[S^]=j=1mqjE[S^j]\mathbf{E}[|\hat{S}|]=\sum_{j=1}^{m}q_{j}\mathbf{E}[|\hat{S}_{j}|],

P(iS^)=j=1mqjP(iS^j)\mathbf{P}(i\in\hat{S})=\sum_{j=1}^{m}q_{j}\mathbf{P}(i\in\hat{S}_{j}), for any i=1,2,,ni=1,2,\dots,n,

If S^1,,S^m\hat{S}_{1},\dots,\hat{S}_{m} are uniform (resp. doubly uniform), so is S^\hat{S}.

Statement (i) follows by writing E[κ(S^)]\mathbf{E}[\kappa(\hat{S})] as

Statement (ii) follows from (i) by choosing κ(S)=S\kappa(S)=|S|, and (iii) follows from (i) by choosing κ\kappa as follows: κ(S)=1\kappa(S)=1 if iSi\in S and κ(S)=0\kappa(S)=0 otherwise. Finally, if the samplings S^j\hat{S}_{j} are uniform, from (33) we know that P(iS^j)=E[S^j]/n\mathbf{P}(i\in\hat{S}_{j})=\mathbf{E}[|\hat{S}_{j}|]/n for all ii and jj. Plugging this into identity (iii) shows that P(iS^)\mathbf{P}(i\in\hat{S}) is independent of ii, which shows that S^\hat{S} is uniform. Now assume that S^j\hat{S}_{j} are doubly uniform. Fixing arbitrary τ{0}[n]\tau\in\{0\}\cup{[n]}, for every S[n]S\subset{[n]} such that S=τ|S|=\tau we have

As the last expression depends on SS via S|S| only, S^\hat{S} is doubly uniform. ∎

If we fix S[n]S\subset{[n]} and define k(S)=1k(S^{\prime})=1 if S=SS^{\prime}=S and k(S)=0k(S^{\prime})=0 otherwise, then statement (i) of Lemma8 reduces to (56).

All samplings arise as a combination of elementary samplings, i.e., samplings whose all weight is on one set only. Indeed, let S^\hat{S} be an arbitrary sampling. For all subsets SjS_{j} of [n]{[n]} define S^j\hat{S}_{j} by P(S^j=Sj)=1\mathbf{P}(\hat{S}_{j}=S_{j})=1 and let qj=P(S^=Sj)q_{j}=\mathbf{P}(\hat{S}=S_{j}). Then clearly, S^=jqjS^j\hat{S}=\sum_{j}q_{j}\hat{S}_{j}.

All doubly uniform samplings arise as convex combinations of nice samplings.

Often it is easier to establish ESO for a simple class of samplings (e.g., nice samplings) and then use it to obtain an ESO for a more complicated class (e.g., doubly uniform samplings as they arise as convex combinations of nice samplings). The following result is helpful in this regard.

Let S^1,,S^m\hat{S}_{1},\dots,\hat{S}_{m} be uniform samplings satisfying (f,S^j)ESO(βj,wj)(f,\hat{S}_{j})\sim ESO(\beta_{j},w_{j}) and let qRmq\in\mathbf{R}^{m} be a probability vector. If jqjS^j\sum_{j}q_{j}\hat{S}_{j} is not nil, then

First note that from part (iv) of Lemma 8 we know that S^=defjqjS^j\hat{S}\stackrel{{\scriptstyle\text{def}}}{{=}}\sum_{j}q_{j}\hat{S}_{j} is uniform and hence it makes sense to speak about ESO involving this sampling. Next, we can write

It now remains to use (43) and part (ii) of Lemma 8:

where w=jqjE[S^j]βjwjw=\sum_{j}q_{j}\mathbf{E}[|\hat{S}_{j}|]\beta_{j}w_{j}. In the third step we have also used the fact that E[S^]>0\mathbf{E}[|\hat{S}|]>0 which follows from the assumption that S^\hat{S} is not nil. ∎

3 ESO for a conic combination of functions

We now establish an ESO for a conic combination of functions each of which is already equipped with an ESO. It offers a complementary result to Theorem 9.

If (fj,S^)ESO(βj,wj)(f_{j},\hat{S})\sim ESO(\beta_{j},w_{j}) for j=1,,mj=1,\dots,m, then for any c1,,cm0c_{1},\dots,c_{m}\geq 0 we have

Proof. Letting f=jcjfjf=\sum_{j}c_{j}f_{j}, we get

Expected Separable Overapproximation (ESO) of Partially Separable Functions

Here we derive ESO inequalities for partially separable smooth functions ff and (proper) uniform (Section 6.1), nonoverlapping uniform (Section 6.2), nice (Section 6.3) and doubly uniform (Section 6.4) samplings.

Consider an arbitrary proper sampling S^\hat{S} and let ν=(ν1,,νn)T\nu=(\nu_{1},\dots,\nu_{n})^{T} be defined by

Proof. Let us use Theorem 7 with hh replaced by h[S^]h_{[\hat{S}]}. Note that maxJJJSupp(h[S^])maxJJJS^min{ω,S^}\max_{J\in\mathcal{J}}|J\cap\operatorname{Supp}(h_{[\hat{S}]})|\leq\max_{J\in\mathcal{J}}|J\cap\hat{S}|\leq\min\{\omega,|\hat{S}|\}. Taking expectations of both sides of (48) we therefore get

It remains to bound the last term in the expression above. Letting θi=Lih(i)(i)2\theta_{i}=L_{i}\|h^{(i)}\|_{(i)}^{2}, we have

The above lemma will now be used to establish ESO for arbitrary (proper) uniform samplings.

If, in addition, P(S^=τ)=1\mathbf{P}(|\hat{S}|=\tau)=1 (we say that S^\hat{S} is τ\tau-uniform), then

First, (60) follows from (57) since for a uniform sampling one has pi=E[S^]/np_{i}=\mathbf{E}[|\hat{S}|]/n for all ii. If P(S^=τ)=1\mathbf{P}(|\hat{S}|=\tau)=1, we get νi=min{ω,τ}\nu_{i}=\min\{\omega,\tau\} for all ii; (61) therefore follows from (60). Let us now establish monotonicity. Using the deterministic separable overapproximation (48) with h=h[S^]h=h_{[\hat{S}]},

Now let h(x)=argminhHβ,w(x,h)h(x)=\arg\min_{h}H_{\beta,w}(x,h) and recall that

So, by definition, (h(x))(i)(h(x))^{(i)} minimizes κi(t)\kappa_{i}(t) and hence, (h(x))[S^](h(x))_{[\hat{S}]} (recall (7)) minimizes the upper bound (63). In particular, (h(x))[S^](h(x))_{[\hat{S}]} is better than a nil update, which immediately gives F(x+(h(x))[S^])f(x)+iS^κi(0)+iS^Ωi(x(i))=F(x)F(x+(h(x))_{[\hat{S}]})\leq f(x)+\sum_{i\in\hat{S}}\kappa_{i}(0)+\sum_{i\notin\hat{S}}\Omega_{i}(x^{(i)})=F(x). ∎

Besides establishing an ESO result, we have just shown that, in the case of τ\tau-uniform samplings with a conservative estimate for β\beta, PCDM1 is monotonic, i.e., F(xk+1)F(xk)F(x_{k+1})\leq F(x_{k}). In particular, PCDM1 and PCDM2 coincide. We call the estimate β=min{ω,τ}\beta=\min\{\omega,\tau\} “conservative” because it can be improved (made smaller) in special cases; e.g., for the τ\tau-nice sampling. Indeed, Theorem 14 establishes an ESO for the τ\tau-nice sampling with the same ww (w=Lw=L), but with β=1+(ω1)(τ1)n1\beta=1+\tfrac{(\omega-1)(\tau-1)}{n-1}, which is better (and can be much better than) min{ω,τ}\min\{\omega,\tau\}. Other things equal, smaller β\beta directly translates into better complexity. The price for the small β\beta in the case of the τ\tau-nice sampling is the loss of monotonicity. This is not a problem for strongly convex objective, but for merely convex objective this is an issue as the analysis techniques we developed are only applicable to the monotonic method PCDM2 (see Theorem 19).

2 Nonoverlapping uniform samplings

Let S^\hat{S} be a (proper) nonoverlapping uniform sampling as defined in (23). If iSji\in S^{j}, for some j{1,2,,l}j\in\{1,2,\dots,l\}, define

and let γ=(γ1,,γn)T\gamma=(\gamma_{1},\dots,\gamma_{n})^{T}.

Note that, for example, if S^\hat{S} is the serial uniform sampling, then l=nl=n and Sj={j}S^{j}=\{j\} for j=1,2,,lj=1,2,\dots,l, whence γi=1\gamma_{i}=1 for all i[n]i\in{[n]}. For the fully parallel sampling we have l=1l=1 and S1={1,2,,n}S^{1}=\{1,2,\dots,n\}, whence γi=ω\gamma_{i}=\omega for all i[n]i\in{[n]}.

If S^\hat{S} a nonoverlapping uniform sampling, then

By Theorem 7, used with hh replaced by h[Sj]h_{[S^{j}]} for j=1,2,,lj=1,2,\dots,l, we get

Since S^=Sj\hat{S}=S^{j} with probability 1l\tfrac{1}{l},

which establishes (65). It now only remains to establish monotonicity. Adding Ω(x+h[S^])\Omega(x+h_{[\hat{S}]}) to (66) with SjS^{j} replaced by S^\hat{S}, we get F(x+h[S^])f(x)+f(x),h[S^]+β2h[S^]w2+Ω(x+h[S^])F(x+h_{[\hat{S}]})\leq f(x)+\langle\nabla f(x),h_{[\hat{S}]}\rangle+\tfrac{\beta}{2}\|h_{[\hat{S}]}\|_{w}^{2}+\Omega(x+h_{[\hat{S}]}). From this point on the proof is identical to that in Theorem 12, following equation (62). ∎

3 Nice samplings

In this section we establish an ESO for nice samplings.

If S^\hat{S} is the τ\tau-nice sampling and τ0\tau\neq 0, then

Proof. Let us fix xx and define ϕ\phi and ϕJ\phi^{J} as in the proof of Theorem 7. Since

Let us now adopt the convention that expectation conditional on an event which happens with probability 0 is equal to 0. Letting ηJ=defJS^\eta_{J}\stackrel{{\scriptstyle\text{def}}}{{=}}|J\cap\hat{S}|, and using this convention, we can write

Note that the last identity follows if we assume, without loss of generality, that all sets JJ have the same cardinality ω\omega (this can be achieved by introducing “dummy” dependencies). Indeed, in such a case P(ηJ=k)\mathbf{P}(\eta_{J}=k) does not depend on JJ. Now, for any k1k\geq 1 for which P(ηJ=k)>0\mathbf{P}(\eta_{J}=k)>0 (for some JJ and hence for all), using convexity of ϕJ\phi^{J}, we can now estimate

If we now sum the inequalities (70) for all JJJ\in\mathcal{J}, we get

Finally, (68) follows after plugging (71) into (69):

4 Doubly uniform samplings

We are now ready, using a bootstrapping argument, to formulate and prove a result covering all doubly uniform samplings.

If S^\hat{S} is a (proper) doubly uniform sampling, then

Letting qk=P(S^=k)q_{k}=\mathbf{P}(|\hat{S}|=k) and d=max{1,n1}d=\max\{1,n-1\}, we have

This theorem could have alternatively been proved by writing S^\hat{S} as a convex combination of nice samplings and applying Theorem 9. ∎

Note that Theorem 15 reduces to that of Theorem 14 in the special case of a nice sampling, and gives the same result as Theorem 13 in the case of the serial and fully parallel samplings.

Iteration Complexity

In this section we prove two iteration complexity theoremsThe development is similar to that in for the serial block coordinate descent method, in the composite case. However, the results are vastly different.. The first result (Theorem 19) is for non-strongly-convex FF and covers PCDM2 with no restrictions and PCDM1 only in the case when a monotonic ESO is used. The second result (Theorem 20) is for strongly convex FF and covers PCDM1 without any monotonicity restrictions.

Let us first establish two auxiliary results.

For all xdomFx\in\operatorname{dom}F, Hβ,w(x,h(x))minyRN{F(y)+βμf(w)2yxw2}H_{\beta,w}(x,h(x))\leq\min_{y\in\mathbf{R}^{N}}\{F(y)+\tfrac{\beta-\mu_{f}(w)}{2}\|y-x\|_{w}^{2}\}.

Let xx^{*} be an optimal solution of (1), xdomFx\in\operatorname{dom}F and let R=xxwR=\|x-x^{*}\|_{w}. Then

If μf(w)+μΩ(w)>0\mu_{f}(w)+\mu_{\Omega}(w)>0 and βμf(w)\beta\geq\mu_{f}(w), then for all xdomFx\in\operatorname{dom}F,

Part (i): Since we do not assume strong convexity, we have μf(w)=0\mu_{f}(w)=0, and hence

Minimizing the last expression in λ\lambda gives λ=min{1,(F(x)F)/(βR2)}\lambda^{*}=\min\left\{1,(F(x)-F^{*})/({\beta R^{2}})\right\}; the result follows. Part (ii): Letting μf=μf(w)\mu_{f}=\mu_{f}(w), μΩ=μΩ(w)\mu_{\Omega}=\mu_{\Omega}(w) and λ=(μf+μΩ)/(β+μΩ)1\lambda^{*}=(\mu_{f}+\mu_{\Omega})/(\beta+\mu_{\Omega})\leq 1, we have

The last inequality follows from the identity (μf+μΩ)(1λ)(βμf)λ=0(\mu_{f}+\mu_{\Omega})(1-\lambda^{*})-(\beta-\mu_{f})\lambda^{*}=0. ∎

We could have formulated part (ii) of the above result using the weaker assumption μF(w)>0\mu_{F}(w)>0, leading to a slightly stronger result. However, we prefer the above treatment as it gives more insight.

The following lemma will be used to finish off the proof of the complexity result of this section.

Fix x0RNx_{0}\in\mathbf{R}^{N} and let {xk}k0\{x_{k}\}_{k\geq 0} be a sequence of random vectors in RN\mathbf{R}^{N} with xk+1x_{k+1} depending on xkx_{k} only. Let ϕ:RNR\phi:\mathbf{R}^{N}\to\mathbf{R} be a nonnegative function and define ξk=ϕ(xk)\xi_{k}=\phi(x_{k}). Lastly, choose accuracy level 0<ϵ<ξ00<\epsilon<\xi_{0}, confidence level 0<ρ<10<\rho<1, and assume that the sequence of random variables {ξk}k0\{\xi_{k}\}_{k\geq 0} is nonincreasing and has one of the following properties:

E[ξk+1    xk](1ξkc1)ξk\mathbf{E}[\xi_{k+1}\;|\;x_{k}]\leq(1-\tfrac{\xi_{k}}{c_{1}})\xi_{k}, for all kk, where c1>ϵc_{1}>\epsilon is a constant,

E[ξk+1    xk](11c2)ξk\mathbf{E}[\xi_{k+1}\;|\;x_{k}]\leq(1-\tfrac{1}{c_{2}})\xi_{k}, for all kk such that ξkϵ\xi_{k}\geq\epsilon, where c2>1c_{2}>1 is a constant.

If property (i) holds and we choose K2+c1ϵ(1ϵξ0+log(1ρ))K\geq 2+\tfrac{c_{1}}{\epsilon}(1-\tfrac{\epsilon}{\xi_{0}}+\log(\tfrac{1}{\rho})), or if property (ii) holds, and we choose Kc2log(ξ0ϵρ)K\geq c_{2}\log(\tfrac{\xi_{0}}{\epsilon\rho}), then P(ξKϵ)1ρ\mathbf{P}(\xi_{K}\leq\epsilon)\geq 1-\rho.

This lemma was recently extended in so as to aid the analysis of a serial coordinate descent method with inexact updates, i.e., with h(x)h(x) chosen as an approximate rather than exact minimizer of H1,L(x,)H_{1,L}(x,\cdot) (see (17)). While in this paper we deal with exact updates only, the results can be extended to the inexact case.

Assume that (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w), where S^\hat{S} is a proper uniform sampling, and let α=E[S^]n\alpha=\tfrac{\mathbf{E}[|\hat{S}|]}{n}. Choose x0domFx_{0}\in\operatorname{dom}F satisfying

where xx^{*} is an optimal point of (1). Further, choose target confidence level 0<ρ<10<\rho<1, target accuracy level ϵ>0\epsilon>0 and iteration counter KK in any of the following two ways:

ϵ<min{2(βα)Rw2(x0,x),F(x0)F}\epsilon<\min\{2\left(\tfrac{\beta}{\alpha}\right)\mathcal{R}^{2}_{w}(x_{0},x^{*}),F(x_{0})-F^{*}\} and

If {xk}\{x_{k}\}, k0k\geq 0, are the random iterates of PCDM (use PCDM1 if the ESO is monotonic, otherwise use PCDM2), then P(F(xK)Fϵ)1ρ\mathbf{P}(F(x_{K})-F^{*}\leq\epsilon)\geq 1-\rho.

Since either PCDM2 is used (which is monotonic) or otherwise the ESO is monotonic, we must have F(xk)F(x0)F(x_{k})\leq F(x_{0}) for all kk. In particular, in view of (75) this implies that xkxwRw(x0,x)\|x_{k}-x^{*}\|_{w}\leq{\cal R}_{w}(x_{0},x^{*}). Letting ξk=F(xk)F\xi_{k}=F(x_{k})-F^{*}, we have

Consider case (i) and let c1=2βαmax{Rw2(x0,x),ξ0β}c_{1}=2\tfrac{\beta}{\alpha}\max\{{\cal R}^{2}_{w}(x_{0},x^{*}),\tfrac{\xi_{0}}{\beta}\}. Continuing with (78), we then get

for all k0k\geq 0. Since ϵ<ξ0<c1\epsilon<\xi_{0}<c_{1}, it suffices to apply Lemma 18(i). Consider now case (ii) and let c2=2βαRw2(x0,x)ϵc_{2}=2\tfrac{\beta}{\alpha}\frac{{\cal R}^{2}_{w}(x_{0},x^{*})}{\epsilon}. Observe now that whenever ξkϵ\xi_{k}\geq\epsilon, from (78) we get E[ξk+1    xk](11c2)ξk\mathbf{E}[\xi_{k+1}\;|\;x_{k}]\leq(1-\tfrac{1}{c_{2}})\xi_{k}. By assumption, c2>1c_{2}>1, and hence it remains to apply Lemma 18(ii). ∎

The important message of the above theorem is that the iteration complexity of our methods in the convex case is O(βα1ϵ)O(\tfrac{\beta}{\alpha}\tfrac{1}{\epsilon}). Note that for the serial method (PCDM1 used with S^\hat{S} being the serial sampling) we have α=1n\alpha=\tfrac{1}{n} and β=1\beta=1 (see Table 4), and hence βα=n\tfrac{\beta}{\alpha}=n. It will be interesting to study the parallelization speedup factor defined by

Table 5, computed from the data in Table 4, gives expressions for the parallelization speedup factors for PCDM based on a DU sampling (expressions for 4 special cases are given as well).

The speedup of the serial sampling (i.e., of the algorithm based on it) is 1 as we are comparing it to itself. On the other end of the spectrum is the fully parallel sampling with a speedup of nω\tfrac{n}{\omega}. If the degree of partial separability is small, then this factor will be high — especially so if nn is huge, which is the domain we are interested in. This provides an affirmative answer to the research question stated in italics in the introduction.

Let us now look at the speedup factor in the case of a τ\tau-nice sampling. Letting r=ω1max(1,n1)r=\tfrac{\omega-1}{\max(1,n-1)}\in (degree of partial separability normalized), the speedup factor can be written as

Note that as long as rk1τ1kτr\leq\tfrac{k-1}{\tau-1}\approx\tfrac{k}{\tau}, the speedup factor will be at least τk\tfrac{\tau}{k}. Also note that max{1,τω}s(r)min{τ,nω}\max\{1,\tfrac{\tau}{\omega}\}\leq s(r)\leq\min\{\tau,\tfrac{n}{\omega}\}. Finally, if a speedup of at least ss is desired, where s[0,nω]s\in[0,\tfrac{n}{\omega}], one needs to use at least 1r1/sr\frac{1-r}{1/s-r} processors. For illustration, in Figure 1 we plotted s(r)s(r) for a few values of τ\tau. Note that for small values of τ\tau, the speedup is significant and can be as large as the number of processors (in the separable case). We wish to stress that in many applications ω\omega will be a constant independent of nn, which means that rr will indeed be very small in the huge-scale optimization setting.

2 Iteration complexity: strongly convex case

In this section we assume that FF is strongly convex with respect to the norm w\|\cdot\|_{w} and show that F(xk)F(x_{k}) converges to FF^{*} linearly, with high probability.

Assume FF is strongly convex with μf(w)+μΩ(w)>0\mu_{f}(w)+\mu_{\Omega}(w)>0. Further, assume (f,S^)ESO(β,w)(f,\hat{S})\sim ESO(\beta,w), where S^\hat{S} is a proper uniform sampling and let α=E[S^]n\alpha=\tfrac{\mathbf{E}[|\hat{S}|]}{n}. Choose initial point x0domFx_{0}\in\operatorname{dom}F, target confidence level 0<ρ<10<\rho<1, target accuracy level 0<ϵ<F(x0)F0<\epsilon<F(x_{0})-F^{*} and

If {xk}\{x_{k}\} are the random points generated by PCDM1 or PCDM2, then P(F(xK)Fϵ)1ρ\mathbf{P}(F(x_{K})-F^{*}\leq\epsilon)\geq 1-\rho.

Proof. Letting ξk=F(xk)F\xi_{k}=F(x_{k})-F^{*}, we have

Note that 0<γ10<\gamma\leq 1 since 0<α10<\alpha\leq 1 and βμf(w)\beta\geq\mu_{f}(w) by (47). By taking expectation in xkx_{k}, we obtain E[ξk](1γ)kξ0\mathbf{E}[\xi_{k}]\leq(1-\gamma)^{k}\xi_{0}. Finally, it remains to use Markov inequality:

Instead of doing a direct calculation, we could have finished the proof of Theorem 20 by applying Lemma 18(ii) to the inequality E[ξk+1    xk](1γ)ξk\mathbf{E}[\xi_{k+1}\;|\;x_{k}]\leq(1-\gamma)\xi_{k}. However, in order to be able to use Lemma 18, we would have to first establish monotonicity of the sequence {ξk}\{\xi_{k}\}, k0k\geq 0. This is not necessary using the direct approach of Theorem 20. Hence, in the strongly convex case we can analyze PCDM1 and are not forced to resort to PCDM2. Consider now the following situations:

μf(w)=0\mu_{f}(w)=0. Then the leading term in (80) is 1+β/μΩ(w)α\tfrac{1+\beta/\mu_{\Omega}(w)}{\alpha}.

μΩ(w)=0\mu_{\Omega}(w)=0. Then the leading term in (80) is β/μf(w)α\tfrac{\beta/\mu_{f}(w)}{\alpha}.

μΩ(w)\mu_{\Omega}(w) is “large enough”. Then β+μΩ(w)μf(w)+μΩ(w)1\tfrac{\beta+\mu_{\Omega}(w)}{\mu_{f}(w)+\mu_{\Omega}(w)}\approx 1 and the leading term in (80) is 1α\tfrac{1}{\alpha}.

In a similar way as in the non-strongly convex case, define the parallelization speedup factor as the ratio of the leading term in (80) for the serial method (which has α=1n\alpha=\tfrac{1}{n} and β=1\beta=1) and the leading term for a parallel method:

First, note that the speedup factor is independent of μf\mu_{f}. Further, note that as μΩ(w)0\mu_{\Omega}(w)\to 0, the speedup factor approaches the factor we obtained in the non-strongly convex case (see (79) and also Table 5). That is, for large values of μΩ(w)\mu_{\Omega}(w), the speedup factor is approximately equal αn=E[S^]\alpha n=\mathbf{E}[|\hat{S}|], which is the average number of blocks updated in a single parallel iteration. Note that thuis quantity does not depend on the degree of partial separability of ff.

Numerical Experiments

In Section 8.1 we present preliminary but very encouraging results showing that PCDM1 run on a system with 24 cores can solve huge-scale partially-separable LASSO problems with a billion variables in 2 hours, compared with 41 hours on a single core. In Section 8.2 we demonstrate that our analysis is in some sense tight. In particular, we show that the speedup predicted by the theory can be matched almost exactly by actual wall time speedup for a particular problem.

In this experiment we solve a single randomly generated huge-scale LASSO instance, i.e., (1) with

where A=[a1,,an]A=[a_{1},\dots,a_{n}] has 2×1092\times 10^{9} rows and N=n=109N=n=10^{9} columns. We generated the problem using a modified primal-dual generator enabling us to choose the optimal solution xx^{*} (and hence, indirectly, FF^{*}) and thus to control its cardinality x0\|x^{*}\|_{0}, as well as the sparsity level of AA. In particular, we made the following choices: x0=105\|x^{*}\|_{0}=10^{5}, each column of AA has exactly 20 nonzeros and the maximum cardinality of a row of AA is ω=35\omega=35 (the degree of partial separability of ff). The histogram of cardinalities is displayed in Figure 2.

We solved the problem using PCDM1 with τ\tau-nice sampling S^\hat{S}, β=1+(ω1)(τ1)n1\beta=1+\tfrac{(\omega-1)(\tau-1)}{n-1} and w=L=(a122,,an22)w=L=(\|a_{1}\|^{2}_{2},\cdots,\|a_{n}\|_{2}^{2}), for τ=1,2,4,8,16,24\tau=1,2,4,8,16,24, on a single large-memory computer utilizing τ\tau of its 24 cores. The problem description took around 350GB of memory space. In fact, in our implementation we departed from the just described setup in two ways. First, we implemented an asynchronous version of the method; i.e., one in which cores do not wait for others to update the current iterate within an iteration before reading xk+1x_{k+1} and proceeding to another update step. Instead, each core reads the current iterate whenever it is ready with the previous update step and applies the new update as soon as it is computed. Second, as mentioned in Section 4, the τ\tau-independent sampling is for τn\tau\ll n a very good approximation of the τ\tau-nice sampling. We therefore allowed each processor to pick a block uniformly at random, independently from the other processors.

Choice of the first column of Table 6. In Table 6 we show the development of the gap F(xk)FF(x_{k})-F^{*} as well as the elapsed time. The choice and meaning of the first column of the table, τkn\tfrac{\tau k}{n}, needs some commentary. Note that exactly τk\tau k coordinate updates are performed after kk iterations. Hence, the first column denotes the total number of coordinate updates normalized by the number of coordinates nn. As an example, let τ1=1\tau_{1}=1 and τ2=24\tau_{2}=24. Then if the serial method is run for k1=24k_{1}=24 iterations and the parallel one for k2=1k_{2}=1 iteration, both methods would have updated the same number (τ1k1=τ2k2=24\tau_{1}k_{1}=\tau_{2}k_{2}=24) of coordinates; that is, they would “be” in the same row of Table 6. In summary, each row of the table represents, in the sense described above, the “same amount of work done” for each choice of τ\tau.

Progress to solving the problem. One can conjecture that the above meaning of the phrase “same amount of work done” would perhaps be roughly equivalent to a different one: “same progress to solving the problem”. Indeed, it turns out, as can be seen from the table and also from Figure 3(a), that in each row for all algorithms the value of F(xk)FF(x_{k})-F^{*} is roughly of the same order of magnitude. This is not a trivial finding since, with increasing τ\tau, older information is used to update the coordinates, and hence one would expect that convergence would be slower. It does seem to be slower—the gap F(xk)FF(x_{k})-F^{*} is generally higher if more processors are used—but the slowdown is limited. Looking at Table 6 and/or Figure 3(a), we see that for all choices of τ\tau, PCDM1 managed to push the gap below 101310^{-13} after 34n34n to 37n37n coordinate updates.

The progress to solving the problem during the final 1 billion coordinate updates (i.e., when moving from the last-but-one to the last nonempty line in each of the columns of Table 6 showing F(xk)FF(x_{k})-F^{*} ) is remarkable. The method managed to push the optimality gap by 9-12 degrees of magnitude. We do not have an explanation for this phenomenon; we do not give local convergence estimates in this paper. It is certainly the case though that once the method managed to find the nonzero places of xx^{*}, fast local convergence comes in.

Parallelization speedup. Since a parallel method utilizing τ\tau cores manages to do the same number of coordinate updates as the serial one τ\tau times faster, a direct consequence of the above observation is that doubling the number of cores corresponds to roughly halving the number of iterations (see Figure 3(b). This is due to the fact that ωn\omega\ll n and τn\tau\ll n. It turns out that the number of iterations is an excellent predictor of wall time; this can be seen by comparing Figures 3(b) and 3(c). Finally, it follows from the above, and can be seen in Figure 3(d), that the speedup of PCDM1 utilizing τ\tau cores is roughly equal to τ\tau. Note that this is caused by the fact that the problem is, relative to its dimension, partially separable to a very high degree.

2 Theory versus reality

In our second experiment we demonstrate numerically that our parallelization speedup estimates are in some sense tight. For this purpose it is not necessary to reach for complicated problems and high dimensions; we hence minimize the function 12Axb22\frac{1}{2}\|Ax-b\|_{2}^{2} with AR3000×1000A\in\mathbf{R}^{3000\times 1000}. Matrix AA was generated so that its every row contains exactly ω\omega non-zero values all of which are equal (recall the construction in point 3 at the end of Section 5.1).

We generated 4 matrices with ω=5,10,50\omega=5,10,50 and 100100 and measured the number of iterations needed for PCDM1 used with τ\tau-nice sampling to get within ϵ=106\epsilon=10^{-6} of the optimal value. The experiment was done for a range of values of τ\tau (between 1 core and 1000 cores).

The solid lines in Figure 4 present the theoretical speedup factor for the τ\tau-nice sampling, as presented in Table 5. The markers in each case correspond to empirical speedup factor defined as

As can be seen in Figure 4, the match between theoretical prediction and reality is remarkable! A partial explanation of this phenomenon lies in the fact that we have carefully designed the problem so as to ensure that the degree of partial separability is equal to the Lipschitz constant σ\sigma of f\nabla f (i.e., that it is not a gross overestimation of it; see Section 5.1). This fact is useful since it is possible to prove complexity results with ω\omega replaced by σ\sigma. However, this answer is far from satisfying, and a deeper understanding of the phenomenon remains an open problem.

3 Training linear SVMs with bad data for PCDM

In this experiment we test PCDM on the problem of training a linear Support Vector Machine (SVM) based on nn labeled training examples: (yi,Ai){+1,1}×Rd(y_{i},A_{i})\in\{+1,-1\}\times\mathbf{R}^{d}, i=1,2,,ni=1,2,\dots,n. In particular, we consider the primal problem of minimizing L2-regularized average hinge-loss,

and the dual problem of maximizing a concave quadratic subject to zero-one box constraints,

where ZRn×nZ\in\mathbf{R}^{n\times n} with Zii=yiyjAi,AjZ_{ii}=y_{i}y_{j}\langle A_{i},A_{j}\rangle. It is a standard practice to apply serial coordinate descent to the dual. Here we apply parallel coordinate descent (PCDM; with τ\tau-nice sampling of coordinates) to the dual; i.e., minimize the convex function ff subject to box constraints. In this setting all blocks are of size Ni=1N_{i}=1. The dual can be written in the form (1), i.e.,

where Ω(x)=0\Omega(x)=0 whenever x(i)x^{(i)}\in for all i=1,2,,ni=1,2,\dots,n, and Ω(x)=+\Omega(x)=+\infty otherwise.

We consider the rcv1.binary datasethttp://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#rcv1.binary. The training data has n=677,399n=677,399 examples, d=47,236d=47,236 features, 49,556,25849,556,258 nonzero elements and requires cca 1GB of RAM for storage. Hence, this is a small-scale problem. The degree of partial separability of ff is ω=291,516\omega=291,516 (i.e., the maximum number of examples sharing a given feature). This is a very large number relative to nn, and hence our theory would predict rather bad behavior for PCDM. We use PCDM1 with τ\tau-nice sampling ( approximating it by τ\tau-independent sampling for added efficiency) with β\beta following Theorem 14: β=1+(τ1)(ω1)n1\beta=1+\frac{(\tau-1)(\omega-1)}{n-1}.

The results of our experiments are summarized in Figure 5. Each column corresponds to a different level of regularization: λ{1,103,105}\lambda\in\{1,10^{-3},10^{-5}\}. The rows show the 1) duality gap, 2) dual suboptimality, 3) train error and 4) test error; each for 1,4 and 16 processors (τ=1,4,16\tau=1,4,16). Observe that the plots in the first two rows are nearly identical; which means that the method is able to solve the primal problem at about the same speed as it can solve the dual problemRevision comment: We did not propose primal-dual versions of PCDM in this paper, but we do so in the follow up work . In this paper, for the SVM problem, our methods and theory apply to the dual only..

Observe also that in all cases, duality gap of around 0.010.01 is sufficient for training as training error (classification performance of the SVM on the train data) does not decrease further after this point. Also observe the effect of λ\lambda on training accuracy: accuracy increases from about 92%92\% for λ=1\lambda=1, through 95.3%95.3\% for λ=103\lambda=10^{-3} to above 97.8%97.8\% with λ=105\lambda=10^{-5}. In our case, choosing smaller λ\lambda does not lead to overfitting; the test error on test dataset (# features =677,399, # examples = 20,242) increases as λ\lambda decreases, quickly reaching about 95%95\% (after 2 seconds of training) for λ=0.001\lambda=0.001 and for the smallest λ\lambda going beyond 97%97\%.

Note that PCDM with τ=16\tau=16 is about 2.5×\times faster than PCDM with τ=1\tau=1. This is much less than linear speedup, but is fully in line with our theoretical predictions. Indeed, for τ=16\tau=16 we get β=7.46\beta=7.46. Consulting Table 5, we see that the theory says that with τ=16\tau=16 processors we should expect the parallelization speedup to be PSF=τ/β=2.15PSF=\tau/\beta=2.15.

4 L​2𝐿2L2-regularized logistic regression with good data for PCDM

In our last experiment we solve a problem of the form (1) with ff being a sum of logistic losses and Ω\Omega being an L2 regularizer,

where (yj,Aj){+1,1}×Rn(y_{j},A_{j})\in\{+1,-1\}\times\mathbf{R}^{n}, j=1,2,,dj=1,2,\dots,d, are labeled examples.

We have used the the KDDB dataset from the same source as the rcv1.binary dataset considered in the previous experiment. The data contains n=29,890,095n=29,890,095 features and is divided into two parts: a training set with d=19,264,097d=19,264,097 examples (and 566,345,888566,345,888 nonzeros; cca 8.5 GB) and a testing with d=748,401d=748,401 examples (and 21,965,07521,965,075 nonzeros; cca 0.32 GB).

This training dataset is good for PCDM as each example depends on at most 75 features. That is, ω=75\omega=75, which is much smaller than nn. As before, we will use PCDM1 with τ\tau-nice sampling (approximated by τ\tau-independent sampling) for τ=1,2,4,8\tau=1,2,4,8 and set λ=1\lambda=1.

Figure 6 depicts the evolution of the regularized loss F(xk)F(x_{k}) throughout the run of the 4 versions of PCDM (starting with x0x_{0} for which F(x0)=13,352,855F(x_{0})=13,352,855). Each marker corresponds to approximately n/3n/3 coordinate updates (nn coordinate updates will be referred to as an “epoch”). Observe that as more processors are used, it takes less time to achieve any given level of loss; nearly in exact proportion to the increase in the number of processors.

Table 7 offers an alternative view of the same experiment. In the first 4 columns (F(x0)/F(xk)F(x_{0})/F(x_{k})) we can see that no matter how many processors are used, the methods produce similar loss values after working through the same number of coordinates. However, since the method utilizing τ=8\tau=8 processors updates 8 coordinates in parallel, it does the job approximately 8 times faster. Indeed, we can see this speedup in the table.

Let us remark that the training and testing accuracy stopped increasing after having trained the classifier for 1 epoch; they were 86.07%86.07\% and 88.77%88.77\%, respectively. This is in agreement with the common wisdom in machine learning that training beyond a single pass through the data rarely improves testing accuracy (as it may lead to overfitting). This is also the reason behind the success of light-touch methods, such as coordinate descent and stochastic gradient descent, in machine learning applications.

References

Appendix A Notation glossary