Stochastic Quasi-Gradient Methods: Variance Reduction via Jacobian Sketching
Robert M. Gower, Peter Richtárik, Francis Bach
Introduction
We consider the problem of minimizing the average of a large number of differentiable functions
where is –strongly convex and –smooth. In solving (1), we restrict our attention to first-order methods that use a (variance-reduced) stochastic estimate of the gradient to take a step towards minimizing (1) by iterating
In the context of machine learning, (1) is an abstraction of the empirical risk minimization problem; encodes the parameters/features of a (statistical) model, and is the loss of example/data point incurred by model . The goal is to find the model which minimizes the average loss on the observations.
Typically, is so large that algorithms which rely on scanning through all functions in each iteration are too costly. The need for incremental methods for the training phase of machine learning models has revived the interest in the stochastic gradient descent (SGD) method . SGD sets , where is an index chosen from uniformly at random. SGD therefore requires only a single data sample to complete a step and make progress towards the solution. Thus SGD scales well in the number of data samples, which is important in several machine learning applications since there many be a large number of data samples. On the downside, the variance of the stochastic estimates of the gradient produced by SGD does not vanish during the iterative process, which suggests that a decreasing stepsize regime needs to be put into place if SGD is to converge. Furthermore, for SGD to work efficiently, this decreasing stepsize regime needs to be tuned for each application area, which is costly.
Stochastic variance-reduced versions of SGD offer a solution to this high variance issue, which improves the theoretical convergence rate and solves the issue with ad hoc stepsize regimes. The first variance reduced method for empirical risk minimization is the stochastic average gradient (SAG) method of Schmidt, Le Roux and Bach . The analysis of SAG is notoriously difficult, which is perhaps due to the estimator of gradient being biased. Soon afterwards, the SAG gradient estimator was modified into an unbiased one, which resulted in the SAGA method . SAGA maintains a matrix of the latest gradients computed for each datapoint , and uses this matrix to construct a stochastic estimate of the gradient. The analysis of SAGA is dramatically simpler than that of SAG. Another popular method is SVRG of Johnson and Zhang (see also S2GD ). SVRG enjoys the same theoretical complexity bound as SAGA, but has a much smaller memory footprint. It is based on an inner-outer loop procedure. In the outer loop, a full pass over data is performed to compute the gradient of at the current point. In the inner loop, this gradient is modified with the use of cheap stochastic gradients, and steps are taken in the direction of the modified gradients. A notable recent addition to the family of variance reduced methods, developed by Nguyen et al , is known as SARAH. Unlike other methods, SARAH does not use an estimator that is unbiased in the last step. Instead, it is unbiased over a long history of the method.
A fundamentally different way of designing variance reduced methods is to use coordinate descent to solve the dual. This is what the SDCA method and its various extensions do. The key advantage of this approach is that the dual often has a seperable structure in the coordinate space, which in turn means that each iteration of coordinate descent is cheap. Furthermore, SDCA is a variance-reduced method by design since the coordinates of the gradient tend to zero as one approaches the solution. One of the downsides of SDCA is that it requires calculating Fenchel duals and their derivatives. This issue was later solved by introducing approximations and mapping the dual iterates to the primal space as pointed out in . This resulted in primal variants of SDCA such as dual-free SDCA . A primal-dual variant which enables the use of arbitrary minibatch strategies was developped by Qu et al , and is known as QUARTZ.
2 Gaps in our understanding of SAGA
Despite significant research into variance-reduced stochastic gradient descent methods for solving (1), there are still big gaps in our understanding of variance reduction. For instance, the current theory supporting the SAGA algorithm is far from complete.
SAGA with uniform probabilities enjoys the iteration complexity , where and is the smoothness constant of . While importance sampling versions of SAGA have proved in practice to produce a speed-up over uniform SAGA , a proof of this speed-up has been elusive. It was conjectured by Schmidt et al. that a properly designed importance sampling strategy for SAGA should lead to the rate , where . However, no such result was proved. This rate is achieved by, for instance, importance sampling variants of SDCA and QUARTZ . However, the analysis only applies to a more specialized version of problem (1) (e.g., one needs an explicit strongly convex regularizer). Second, existing minibatch variants of SAGA do not enjoy the same rate as that offered by methods such as SDCA and QUARTZ. Are the above issues with SAGA unavoidable, or is it the case that our understanding of the method is far from complete? Lastly, no minibatch variant of SAGA with importance sampling is known.
One of the contributions of this paper is giving positive answers to all of the above questions.
3 Jacobian sketching: a new approach to variance reduction
Our key contribution in this paper is the introduction of a novel approach—which we call Jacobian sketching—to designing and understanding variance-reduced stochastic gradient descent methods for solving (1). We refer to our method by the name JacSketch. We shall now briefly introduce some of the key insights motivating our our approach.
The starting point of our new approach is the following trivial observation: the gradient of at can be computed from the Jacobian by a simple linear transformation:
which is a stochastic gradient of at . In other words, by performing a random linear transformation of the Jacobian, we have arrived at the classical stochastic estimate of the gradient. This approach does not suffer from the first issue mentioned above as the Jacobian is not needed at all in order to compute . Likewise, it does not suffer from the second issue; namely, the cost of computing the stochastic gradient is merely , and we can avoid a costly pass through the data.For the purposes of this narrative it suffices to assume that stochastic gradients can be sampled at cost .
This equation generalizes both (5) and (6). The left hand side contains the sketched system matrix and the unknown matrix , and the right hand side contains a quantity we can measure (through a random linear measurement of the Jacobian, which we assume is cheap). Of course, the true Jacobian solves (8). However, in general, and in particular when which is the regime we want to be in for practical reasons, the system (8) will have infinite solutions.
In doing so, we have built a learning mechanism whose goal is to maintain good estimates of the Jacobian throughout the run of method (2). These estimates can be used to efficiently estimate the gradient by performing a linear transformation similar to (5), but with replaced by the latest estimate of the Jacobian. In practice, it is important to design sketching matrices so that the Jacobian sketch can be calculated efficiently.
The “sketch-and-project” strategy (1.3) for updating our Jacobian estimate is analogous to the way quasi-Newton methods update the estimate of the Hessian (or inverse Hessian) . From this perspective, our method can be viewed as a stochastic quasi-gradient method.The term “quasi-gradient methods” was popular in the 1980s , and refers to algorithms for solving certain stochastic optimization problems which rely on stochastic estimates of function values and their derivatives. In this paper we give the term a different meaning by drawing a direct link with quasi-Newton methods.
Problem (1.3) admits the explicit closed-form solution (see Lemma B.1):
is a projection matrix, and denotes the Moore-Penrose pseudoinverse.
The key insight of our work is to propose an efficient Jacobian learning mechanism based on ideas borrowed from recent results in randomized numerical linear algebra.
Having established our update of the Jacobian estimate, we now need to use this to form an estimate of the gradient. Unfortunately, using in place of in (5) leads to a biased gradient estimate (something we explore later in Section 2.5). To obtain an unbiased estimator of the gradient, we introduce a stochastic relaxation parameter and use
This strategy indeed works, as we show in detail in this paper. Under appropriate conditions (on the stepsize , properties of and randomness behind the sketch matrices and so on), the variance of diminishes to zero (e.g., see Lemma 3.10), which means that JacSketch is a variance-reduced method. We perform an analysis for smooth and strongly convex functions , and obtain a linear convergence result (Theorem 3.6). We summarize our complexity results in detail in Section 1.7.
4 SAGA as a special case of JacSketch
Of particular importance in this paper are minibatch sketches, which are sketches of the form , where is a random subset of , and is a random column submatrix of the identity matrix with columns indexed by . For minibatch sketches, JacSketch corresponds to minibatch variants of SAGA. Indeed, in this case, and if , we have , where (see Lemma 4.7). Therefore,
In view of (11), and since (see Lemma 4.7), the Jacobian estimate gets updated as follows
Standard uniform SAGA is obtained by setting with probability for each , and letting . SAGA with arbitrary probabilities is obtained by instead choosing with probability for each , and letting . However, virtually all minibatching and importance sampling strategies can be treated as special cases of our general approach.
The theory we develop answers the open questions raised earlier. In particular, we answer the conjecture of Schmidt et al. about the rate of SAGA with importance sampling in the affirmative. In particular, we establish the iteration complexity This complexity is obtained for different importance sampling distributions than that currently proposed in the literature for SAGA. In order to achieve this, we develop a new analysis technique which makes use of a stochastic Lyapunov function (see Section 5). That is, our Lyapunov function has a random element which is independent of the randomness inherited from the iterates of the method. This is unlike any other Lyapunov function used in the analysis of stochastic methods we are aware of. Further, we prove that SAGA converges with any initial matrix in place of the matrix of gradients of functions at the starting point. We also show that our results give better rates for minibatch SAGA than are currently known, even for uniform minibatch strategies. We also allow for a family of completely new uniform minibatching strategies which were not considered in connection with SAGA before, and consider also SAGA with importance sampling for minibatchesFor some prior results on importance sampling for minibatches, in the context of QUARTZ, see . (based on a partition of ). Lastly, as a special case, our method recovers standard gradient descent, together with the sharp iteration complexity of .
Our general approach also enables a novel reduced memory variant of SAGA as a special case. Let , and choose Since , the formula for is the same as in the case of SAGA, and is given by (16). What is notably different about this sketch (compared to ) is that, since the update of the Jacobian estimate (39) is given by
Thus, the same update is applied to all the columns of that belong to . Equivalently, this update can be written as
In particular, if only ever picks sets which correspond to a partition of , and we initialize so that all the columns belonging to the same partition are the same, then they will be the same within in each partition for all . In such a case, we do not need to maintain all the identical copies. Instead, we can update and use a condensed/compressed version of the Jacobian, with one column per partition set only, to reduce the total memory usage. This method, with non-uniform probabilities, is analyzed in our framework in Section 5.6.
5 Sketch and project
It has long been known, and was explored in detail by Needell, Srebro and Ward , that the randomized Kaczmarz method is a specific instantiation of SGD, applied to a suitable least-squares type function. In the context of sketch and project methods with arbitrary sketching matrices , this was explored by Richtárik and Takáč , who also demonstrated that the sketch and project method, and hence also our Jacobian learning iteration (1.3), can be interpreted as stochastic gradient descent applied to a suitable stochastic optimization problem. Therefore, and quite surprisingly:
In our Jacobian sketching framework, variance reduction is obtained by applying SGD to the problem of learning the Jacobian. So, our method uses SGD in two different ways: as a method for performing the step toward minimizing the loss (this is standard), and as a method for learning the Jacobian which is then used to lower the variance of the search direction (this is our new insight).
As a follow up to , Gower and Richtárik further extended their analysis in to arbitrary consistent linear systems (i.e., beyond systems with a single solution, such as (7)). Therein they show that the sketch and project method converges linearly to the projection of the starting iterate onto the solution space of the system, and also uncover a dual interpretation of the method as stochastic dual subspace ascent. Related ideas were later used to design stochastic algorithms for inverting matrices and computing the pseudoinverse of a rectangular matrix . For a compendium of some of the above papers on sketch and project, see also .
An accelerated (in the sense of Nesterov) sketch and project method was proposed and analyzed in . However, the analysis was restricted to a weak type of convergence. This was remedied by Tu et al. for positive definite systems and a special class of sketchings, by Richtárik and Takáč for general linear systems and general sketchings, and further extended to Euclidean setting and applied to matrix inversion and quasi-Newton updates by Gower et al. . A sketch and project method with the heavy ball momentum was studied in .
6 Controlled stochastic reformulation
Loosely motivated by , we shall explore an alternative narrative to the sketch-and-project motivation described above. In particular, the development of JacSketch can instead be motivated through the lens of controlled stochastic reformulations of (1).
Let us now very briefly outline the main idea. First, we will use the distribution from which the sketching matrices are drawn to define a stochastic optimization reformulation of problem (1). That is, we write as an expectation over some carefully constructed functions instead, where the expectation is taken over . We then add a “smart” zero function, also of the form of an expectation of some functions over , to this reformulation. However, this zero perturbation depends on . While this does not change the objective function, it affects the stochastic gradients in a positive way: it reduces their variance. We then apply an SGD step to this perturbed (or “controlled”) reformulation, followed by an update of the Jacobian (through sketch and project). This is iterated until convergence, and results in JacSketch. This alternative narrative is provided in Section 2.
7 Summary of complexity results
All convergence results obtained in this paper are summarized in Table 1.
Theorem 3.6 is our most general result, allowing for any(unbiased) sketch (see (15)), and any weight matrix . The resulting iteration complexity given by this theorem is
and is also presented in the first row of Table 1. This result depends on two expected smoothness constants (measuring the expected smoothness of the stochastic gradient of our stochastic reformulation; see Assumption 3.1) and (measuring the expected smoothness of the Jacobian; see Assumption 3.2). The complexity also depends on the stochastic condition number (see (48)) and the sketch residual (see (37) and (55)). We devote considerable effort to give simple formulas for these constants under some specialized settings (for special combinations of sketches and weight matrices ). In fact, the entire Section 4 is devoted to this. In particular, all rows of Table 1 where the last column mentions Theorem 3.6 arise as special cases of the general iteration complexity in the first row.
Gradient descent. As a starting point, in row 3 we highlight that one can recover gradient descent as a special case of JacSketch with the choice (with probability 1) and . We get the rate , which is tight.
SAGA with uniform sampling. Let us now focus on a slightly more interesting special case: row 5. We see that SAGA with uniform probabilities appears as a special case, and enjoys the rate , recovering an existing result.
SAGA with importance sampling. Unfortunately, the generality of Theorem 3.6 comes at a cost: we are not able to obtain an importance sampling version of SAGA as a special case which would have a better iteration complexity than uniform SAGA. This will be remedied by our second complexity theorem, which we shall discuss later below.
Minibatch SAGA. Rows 9-13 correspond to minibatch versions of SAGA. In particular, row 9 contains a general statement (albeit still a special case of the statement in row 1), covering virtually all minibatch strategies. Rows 10-13 specialize this result to two particular minibatch sketches (i.e., ), each with two choices of . The first sketch corresponds to samplings which choose from among all subsets of uniformly at random. This sampling is known in the literature as -nice sampling . The second sketch corresponds to being a –partition sampling. This sampling picks uniformly at random subsets of which form a partition of , and are all of cardinality . Notice that the complexities in rows 10 and 11 are comparable (each can be slightly better than the other, depending on the values of the smoothness constants ). On the other hand, in the case of –partition, the choice is better than : the complexity in row 13 is better than that in row 12. This is because
Optimal minibatch size for SAGA. Our analysis for mini-batch SAGA also gives the first iteration complexities that interpolate between the complexity of SAGA and the complexity of gradient descent, as increases from to . Indeed, consider the complexity in rows 10, 11 and 13 for and Our iteration complexity of mini-batch SAGA is the first result that is precise enough to inform an optimal mini-batch size (see Section 6.2). In contrast, the previous best complexity result for mini-batch SAGA interpolates between and as increases from to , and thus is not precise enough as to inform the best minibatch size. We make a more detailed comparison between our results and in Section 4.7.
Specialized theorem.
We now move to the second main complexity result of our paper: Theorem 5.2. The general complexity statement is listed in row 2 of Table 1:
Gradient descent. As a starting point, we point out that just like Theorem 3.6, Theorem 5.2 also recovers the correct complexity of gradient descent as a special case (this is when with probability 1); this can be seen in row 4. Indeed, in this case we have with probability 1 (hence, ), , and . Hence, (19) specializes to .
SAGA with importance sampling. The first remarkable special case of (19) is summarized in row 8, and corresponds to SAGA with importance sampling. The complexity obtained, , answers a conjecture of Schmidt et al. in the affirmative. In this case, the support of are the singletons , , for all , and . Optimizing the complexity bound over the probabilities , we obtain the importance sampling
Minibatch SAGA with importance sampling. In row 14 we state the complexity for a minibatch SAGA method with importance sampling. This is the first result for this method in the literature. Note that by comparing rows 13 and 14, we can conclude that the complexity of minibatch SAGA with importance sampling is better than for minibatch SAGA with uniform probabilities. Indeed, this is becauseWe prove inequality (20) in the appendix; see Lemma A.1.
8 Outline of the paper
We present an alternative narrative motivating the development of JacSketch in Section 2. This narrative is based on a novel technical tool which we call controlled stochastic optimization reformulations of problem (1). We then develop a general convergence theory of JacSketch in Section 3. This theory admits practically any sketches (including minibatch sketches mentioned in the introduction) and weight matrices . The main result in this section is Theorem 3.6. In Section 4 we specialize the general results to minibatch sketches. Here we also compute the various constants appearing in the general complexity result for JacSketch for specific classes of minibatch samplings. In Section 5 we develop an alternative theory for JacSketch, one based on a novel stochastic Lyapunov function. The main result in this section is Theorem 5.2. Computational experiments are included in Section 6.
9 Notation
We will introduce notation when and as needed. If the reader would like to recall any notation, for ease of reference we have a notation glossary in Section D. As a general rule, all matrices are written in upper-case bold letters. By we refer to the natural logarithm of .
Controlled Stochastic Reformulations
In this section we provide an alternative narrative behind the development of JacSketch; one through the lens of what we call controlled stochastic reformulations. These reformulations are a novel technical tool enabling us to view JacSketch from a novel perspective.
It will be useful to formalize the condition mentioned in Section 1.3 which leads to being an unbiased estimator of the gradient.
Let be a weighting matrix and let be the distribution from which the sketch matrices are drawn. There exists a random variable such that
When this assumption is satisfied, we say that constitutes an “unbiased sketch”, and we call the bias-correcting random variable. When the triple is obvious from the context, sometimes we shall simply say that is an unbiased sketch.
The first key insight of this section is that besides producing unbiased estimators of the gradient, unbiased sketches produce unbiased estimators of the loss function as well. Indeed, by simply observing that , we get
In other words, we can rewrite the finite-sum optimization problem (1) as an equivalent stochastic optimization problem where the randomness comes from rather than from the representation-specific uniform distribution over the loss functions:
The stochastic optimization problem (22) is a stochastic reformulation of the original problem (1). Further, the stochastic gradient of this reformulation is given by
With these simple observations, our options at designing stochastic gradient-type algorithms for (1) have suddenly broadened dramatically. Indeed, we can now solve the problem, at least in principle, by applying SGD to any stochastic reformulation:
But now we have a parameter to play with, namely, the distribution of . The choice of this parameter will influence both the iteration complexity of the resulting method as well as the cost of each iteration. We now give a few examples of possible choices of to illustrate this.
Let be equal to (or any other invertible matrix) with probability 1 and let be chosen arbitrarily. Then is bias-correcting since
With this setup, the SGD method (24) becomes gradient descent:
Let be picked at iteration . Then the SGD method (24) becomes SGD with non-uniform sampling:
Note that with this setup, and when for all , the stochastic reformulation is identical to the original finite-sum problem. This is the case because .
Let , where with probability . Let . Assume that the cardinality of the set does not depend on (and is equal to ). Then is bias-correcting since
Note that . Assume that set is picked in iteration .Then the SGD method (24) becomes minibatch SGD with non-uniform sampling:
Finally, note that gradient descent (25) is a special case of (27) if we set and for all other subsets of . Likewise, SGD with non-uniform probabilities (26) is a special case of (27) if we set for all and for all other subsets of .
2 The controlled stochastic reformulation
Though SGD applied to the stochastic reformulation can generate several known algorithms in special cases, there is no reason to believe that the gradient estimates will have diminishing variance (excluding the extreme case such as gradient descent). Here we handle this issue using control variates, a commonly used tool to reduce variance in Monte Carlo methods .
Given a random function , we introduce the controlled stochastic reformulation:
is an unbiased estimator of the gradient , we can apply SGD to the controlled stochastic reformulation instead, which leads to the method
Reformulation (22) and method (24) is recovered as a special case with the choice . However, we now have the extra freedom to choose so as to control the variance of this stochastic gradient. In particular, if and are sufficiently correlated, then (29) will have a smaller variance than For this reason, we choose a linear model for that mimicks the stochastic function
We collect this observation that (32) is unbiased in the following lemma for future reference.
If is an unbiased sketch (see Definition 2.1), then
Now it remains to choose the matrix , which we do by minimizing the variance of our gradient estimate.
3 The Jacobian estimate, variance reduction and the sketch residual
and we have used the weighted Frobenius norm with weight matrix (see (10)).
For most distributions of interest, the matrix is positive definiteExcluding such trivial cases as when is an invertible matrix and with probability one, in which case . Letting , we can bound the largest eigenvalue of matrix via Jensen’s inequality as follows:
Combined with (34), we get the the following bound on the variance of :
Let us now return to the identity (34) and its role in choosing . Minimizing the variance in a single step is overly ambitious, since it requires setting , which is costly. So instead, we propose to minimize (34) iteratively. But first, to make (34) more manageable, we upper-bound it using a norm defined by the weight matrix as follows
is the largest eigenvalue of . We refer to the constant as the sketch residual, and it is a key constant affecting the convergence rate of JacSketch as captured by Theorem 3.6. The sketch residual represents how much information is “lost” on average due to sketching and due to how well approximates . We develop formulae and estimates of the sketch residual for several specific sketches of interest in Section 4.5.
Consider the setup from Example 2.2 (gradient descent). That is, let be invertible with probability one and let be the bias-reducing variable. Then and hence , which means that .
We have switched from the norm to a user-controlled norm because minimizing under the norm will prove to be impractical because is a dense matrix for most all practical sketches. With this norm change we now have the option to set as a sparse matrix (e.g., the identity, or a diagonal matrix), as we explain in Remark 2.8 further down. However, the theory we develop allows for any symmetric positive definite matrix .
We can now minimize (36) iteratively by only using a single sketch of the true Jacobian at each iteration. Suppose we have a current estimate of the true Jacobian and a sketch of the true Jacobian . With this we can calculate an improved Jacobian estimate using a projection step
the solution of which, as it turns out, depends on through its sketch only. That is, we choose the next Jacobian estimate as close as possible to the true Jacobian while restricted to a matrix subspace that passes through . Thus in light of (36), the variance is decreasing. The explicit solution to (38) is given by
See Lemma B.1 in the appendix for the proof. Note that, as alluded to before, depends on through its sketch only. Note that (39) updates the Jacobian estimate by re-using the sketch which we also use when calculating the stochastic gradient (32).
Note that (39) gives the same formula for as (11) which we obtained by solving (1.3); i.e., by projecting onto the solution set of (8). This is not a coincidence. In fact, the optimization problems (1.3) and (38) are mutually dual. This is formally stated in Lemma B.1 which can be found in the appendix. In the context of solving linear systems, this was observed in . Therein, (1.3) is called the sketch-and-project method, whereas (38) is called the constrain-and-approximate problem. In this sense, the Jacobian sketching narrative we followed in Section 1.3 is dual to the Jacobian sketching narrative we are pursuing here.
Loosely speaking, the denser the weighting matrix , the higher the computational cost for updating the Jacobian using (39). Indeed, the sparsity pattern of controls how many elements of the previous Jacobian estimate need to be updated. This can be seen by re-arranging (39) as
4 JacSketch Algorithm
Combining formula (32) for the stochastic gradient of the controlled stochastic reformulation with formula (39) for the update of the Jacobian estimate, we arrive at our JacSketch algorithm (Algorithm 1).
From the point of view of the controlled stochastic reformulation, JacSketch can also be written in the form of Algorithm 2.
5 A window into biased estimates and SAG
We will now take a small detour from the main flow of the paper to develop an alternative viewpoint of Algorithm 1 and also make a bridge to biased methods such as SAG .
suggests that , where would give a good estimate of the gradient. To decrease the variance of , we can also use the same update of the Jacobian estimate (39) since
The issue with using as an estimator of the gradient is that it decreases the variance too aggressively, neglecting the bias. However, this can be fixed by trading off variance for bias. One way to do this is to introduce the random variable as a stochastic relaxation parameter
If is bias correcting, we recover the unbiased SAGA estimator (13). By allowing to be closer to one, however, we will get more bias and lower variance. We leave this strategy of building biased estimators for future work. It is conceivable that SAG could be analyzed using reasonably small modifications of the tools developed in this paper. Doing this would be important due to at least four reasons: i) SAG was the first variance-reduced method for problem (1), ii) the existing analysis of SAG is not satisfying, iii) one may be able to obtain a better rate, iv) one may be able to develop and analyze novel variants of SAG.
Convergence Analysis for General Sketches
In this section we establish a convergence theorem (Theorem 3.6) which applies to general sketching matrices (that is, arbitrary distributions from which they are sampled). By design, we keep the setting in this section general, and only deal with specific instantiations and special cases in Section 4.
We first formulate two expected smoothness assumptions tying together , its Jacobian and the distribution from which we pick sketch matrices . These assumptions, and the associated expected smoothness constants, play a key role in the convergence result.
Our first assumption concerns the expected smoothness of the stochastic gradients of the stochastic reformulation (22).A similar relation to (43) holds for the stochastic optimization reformulation of linear systems studied by Richtárik and Takáč . Therein, this relation holds as an identity with (see Lemma 3.3 in ). However, the function considered there is entirely different and, moreover, and for all .
There is a constant such that
It is easy to see from (23) and (32) that
Our second expected smoothness assumption concerns the Jacobian of .
There is a constant such that
where the norm is the weighted Frobenius norm defined in (10).
Therefore, (45) can be equivalently written in the form
which suggests that the above condition indeed measures the variation/smoothness of the Jacobian under a specific weighted Frobenius norm. To the best of our knowledge, the above expected smoothness conditions are new, and have not been considered in the literature before.
2 Stochastic condition number
By the stochastic condition number associated with and we mean the constant defined by
In the next lemma we show that for all distributions for which the expectation (48) exists.
For all distributions we have the bounds
In our convergence theorem we will assume that . This can be achieved by choosing a suitable distribution and it holds trivially for all the examples we develop. The condition essentially says that the distribution is sufficiently rich. This condition number was first proposed in in the context of randomized algorithms for solving linear systems. We refer the reader to that work for details on sufficient assumptions about guaranteeing . Below we give an example.
Let , and let be given by setting with probability . Then
3 Convergence theorem
Our main convergence result, which we shall present shortly, holds for -strongly convex functions. However, it turns out we can establish the result for a somewhat larger family of functions. This family is described next.
We are now ready to present the main result of this section.
Let . Let satisfy Assumption 3.5. Let Assumption 2.1 be satisfied (i.e, is an unbiased sketch and is the associated bias-correcting random variable). Let the expected smoothness assumptions be satisfied: Assumption 3.1 and Assumption 3.2. Assume that . Let the sketch residual be defined as in (37), i.e,
If we choose to be equal to the upper bound in (53), then
Recall that the iteration complexity expression from (55) is listed in row 1 of Table 1.
The Lyapunov function we use is simply the sum of the squared distance between to the optimal and the distance of our Jacobian estimate to the optimal Jacobian Hence, the theorem says that both the iterates and the Jacobian estimates converge.
4 Projection lemmas and the stochastic condition number κ𝜅\kappa
In this section we collect some basic results on projections. Recall from (12) that and from (46) that .
Proof: Using the pseudoinverse property we have that
and as a consequence (56) holds. Moreover,
Finally, taking expectation over (58) and (59) gives (57). ∎
By taking expectations in , we get
where in the last step we used the estimate
5 Key lemmas
We first establish two lemmas. The first lemma provides an upper bound on the quality of new Jacobian estimate in terms of the quality of the current estimate and function suboptimality. If the second term on the right hand side was not there, the lemma would be postulating a contraction on the quality of the Jacobian estimate.
Let Assumption 3.2 be satisfied. Then iterates of Algorithm 1 satisfy
Proof: Subtracting from both sides of (39) gives
Taking norms on both sides, then expectation with respect to and then using Lemma 3.8, we get
We now bound the second moment of . The lemma implies that as approaches and approaches , the variance of approaches zero. This is a key property of JacSketch which elevates it into the ranks of variance-reduced methods.
Let be an unbiased sketch. Let Assumption 3.1 be satisfied (i.e., assume that inequality (43) holds for some ). Then the second moment of the estimated gradient is bounded by
Proof: Adding and subtracting in (13) gives
Taking norms on both sides and using the bound gives
In view of Assumption 3.1 (combine (43) and (44)), we have
If we now let and , then we can continue:
where in the last step we have used the assumption that is bias-correcting:
It now only remains to substitute (66) and (67) into (65) to arrive at (64). ∎
6 Proof of Theorem 3.6
With the help of the above lemmas, we now proceed to the proof of the theorem. In view of the strong convexity assumption (50), we have
By using the relationship , the fact that is an unbiased estimate of the gradient , and using one-point strong convexity (69), we get
Next, applying Lemma 3.10 leads to the estimate
We now choose so that and , which can be written as
Minibatch Sketches
In this section we focus on special cases of Algorithm 1 where one computes for , where is a random subset (mini-batch) of chosen in each iteration according to some fixed probability law. As we have seen in the introduction, this is achieved by choosing .
where and for all .
We refer the reader to for a background reading on samplings and their properties.
The support of a sampling is the set of subsets of which are chosen by with positive probability: . We say that has uniform support if
for all . In such a case we say that the support is –uniform.
To illustrate the above concepts, we now list a few examples with .
The sampling defined by setting is non-vacuous, proper, –uniform ( for all and with probability 1), and has –uniform support. If we change the probabilities to and , the sampling is no longer uniform (since ), but it still has –uniform support, is proper and non-vacuous. Hence, a sampling with uniform support need not be uniform. On the other hand, a uniform sampling need not have uniform support. As an example, consider sampling defined via , . It is uniform (since for all ). However, while element appears in a single set of its support, elements and each appear in two sets. So, this sampling does not have uniform support.
A uniform sampling need not be –uniform for any . For example, the sampling defined by setting , and is uniform (since for all ), but as it assigns positive probabilities to sets of at least two different cardinalities, it is not –uniform for any .
Further, the sampling defined by setting , , , , , is non-vacuous, –uniform ( for all and with probability 1), and has –uniform support. The sampling defined by setting , , is non-vacuous, proper, –uniform ( for all and with probability 1) and has –uniform support.
Note that a sampling with uniform support is necessarily proper as long as . However, it need not be non-vacuous. For instance, the sampling defined by setting has –uniform support and is vacuous. From now on, we only consider samplings with the following properties.
is non-vacuous and has –uniform support with .
Note that if is a non-vacuous sampling with –uniform support, then its support is necessary a partition of . We shall pay specific attention to such samplings in Section 5 as for them we can develop a stronger analysis than that provided by Theorem 3.6.
2 Minibatch sketches and projections
In the next result we describe some basic properties of the projection matrix associated with a minibatch sketch .
. This is a diagonal matrix with the th diagonal element equal to 1 if , and if .
The stochastic condition number defined in (48) is given by
Let satisfy Assumption 4.6. Then the random variable
This follows by noting that is the diagonal matrix with diagonal entries corresponding to for , which in turn can be used to show that .
This follows from (i) by taking expectations of the diagonal elements of .
where the last equation follows from the assumption that the support of is –uniform. ∎
The following simple observation will be useful in the computation of the constant . The proof is straightforward and involves a double counting argument.
Let be a sampling satisfying Assumption 4.6. Moreover, assume that is –uniform. Then . Consequently, , where is the stochastic condition number associated with the minibatch sketch .
3 JacSketch for minibatch sampling = minibatch SAGA
As we have mentioned in Section 1.4 already, JacSketch admits a particularly simple form for minibatch sketches, and corresponds to known and new variants of SAGA. Assume that satisfies Assumption 4.6 and let . In view of Lemma 4.7(vi), this means that the random variable is bias-correcting, and due to Lemma 4.7(ii), we have . Therefore,
By Lemma 4.7(i), . In view of (11), the Jacobian estimate gets updated as follows
The resulting minibatch SAGA method is formalized as Algorithm 3.
Below we specialize the formula for to a few interesting special cases.
Standard uniform SAGA is obtained by setting with probability for each . Since the support of this sampling is –uniform, we set . This leads to the gradient estimate
However, we can use non-uniform probabilities instead. Let with probability for each . Since the support of this sampling is 1–uniform, we have . So, the gradient estimate has the form
Let be nonempty subsets of forming a partition . Let with probability . The support of this sampling is –uniform, and hence we can choose . This leads to the gradient estimate
Let be chosen uniformly at random from all subsets of of cardinality . That is, is the -nice sampling, and the probabilities are equal to . This sampling has –uniform support with . Thus, , and we have
Consider the same situation as in Example 4.12, but with . That is, we choose with probability , and . Then
Here we compute the expected smoothness constants and in the case of being a minibatch sketch , and assuming that is convex and smooth. We first formalize the notion of smoothness we will use.
The above assumption is somewhat non-standard. Note that, however, if we instead assume that each is convex and -smooth, then the above assumption holds for . In some cases, however, we may have better estimates of the constants than those provided by the averages of the values. The value of these constants will have a direct influence on and , which is why we work with this more refined assumption instead.
where in the last step we used the fact that ∎
where . If moreover, is -uniform, thenNote that , and hence has the form of a maximum over averages.
where in this last inequality we have used convexity of for . Since
the formula for now follows by comparing (86) to (43). In order to establish the formula for , we estimate
The specialized formulas (85) for –uniform sampling follow as special cases of the general formulas (84) by applying Lemma 4.8. ∎
In the next result we establish some inequalities relating the quantities , , and In particular, the results says that for a certain family of samplings (the same for which we have defined the quantity in (85)), the expected smoothed constant is lower-bounded by the average of over , and upper-bounded by .
Let be a –uniform sampling () with –uniform support (). Let . Then
The last inequality holds without the need to assume –uniformity.
Proof: Using the fact that has –uniform support, and utilizing a double-counting argument, we observe that . Multiplying both sides by , and since for all , we get To obtain (88), it now only remains to use the identity
which was shown in Lemma 4.8. The first inequality in (89) follows from (88) using standard arguments (identical to those that lead to the inequality ).
Let us now establish the second inequality in (89). Define . Again using a double-counting argument we observe that Multiplying both sides of this equality by and using identity (90), we get We will now establish the last inequality by proving that for any :
Note that we did not need to assume –uniformity to prove that . ∎
5 Estimating the sketch residual ρ𝜌\rho
In this section we compute the sketch residual for several classes of samplings . Let . We will assume throughout this section that is non-vacuous, has –uniform support (with ), and is –uniform.
Further, we assume that , and that the bias-correcting random variable is chosen as (see (75) and Lemma 4.8). In view of the above, since , the sketch residual is given by
where the last equality follows by permuting the multiplication of matrices within the
In the following text we calculate upper bounds for for –partition and –nice samplings. Note that Theorem 3.6 still holds if we use an upper bound of in place of .
If is the –partition sampling, then
Proof: Using Lemma 4.8, and since , we get . Consequently,
where and we used that is negative semidefinite. When , the above bound is tight. By Gershgorin’s theorem, every eigenvalue of the matrix is bounded by at least one of the inequalities for . Consequently, from (93) we have that ∎
Next we give an useful upper bound on for a large family of uniform samplings (for proof, see Appendix C).
Let be a collection of subsets of with the property that the number of sets containing distinct elements is the same for all . In particular, define
Now define a sampling by setting with probability . Moreover, assume that the support of is –uniform. Consider the minibatch sketch .
If , then
Note that as long as , the –nice sampling satisfies the assumptions of the above theorem. Indeed, is the support of consisting of all subsets of of size , , , and . As a result, bound (95) simplifies to
6 Calculating the iteration complexity for special cases
In this section we consider minibatch SAGA (Algorithm 3) and calculate its iteration complexity in special cases using Theorem 3.6 by pulling together the formulas for and established in previous sections. In particular, assume is –uniform and has –uniform support with . In this case, formula (85) for from Lemma 4.16 applies and we have and .
Moreover, by Lemma 4.8, . By Theorem 3.6, if we use the stepsize
then the iteration complexity is given by
Complexity (100) is listed in line 9 of Table 1. The complexities in lines 3, 5 and 10–13 arise as special cases of (100) for specific choices of :
In line 3 we have gradient descent. This arises for the choice and with probability 1. In this case, , and . So, (100) simplifies to
In line 5 we have uniform SAGA. We choose and with probability . We have and . In view of Theorem 4.18, . So, (100) simplifies to
In line 10 we choose and is the -nice sampling. In this case, Theorem 4.19 says that (see (98)). Therefore, (100) reduces to
In line 11 we choose and is the -nice sampling. Theorem 4.19 says that (see (97)). Therefore, (100) reduces to
To simplify the above expression, one may further use the bound . In Table 1 we have listed the complexity in this simplified form. Whether (103) or (104) is better depends on the constants . Indeed, when there exists such that , for then
thus (104) is smaller than (103). On the other extreme, when for all , then
so long as . In this case (104) is larger than (103).
In line 12 of Table 1 we let and is the -partition sampling. In view of Theorem 4.18, and hence (100) reduces to
In line 13 of Table 1 we let and is the -partition sampling. In view of Theorem 4.18, and hence (100) reduces to
Note that the bound in (106) is better than (105) because
7 Comparison with previous mini-batch SAGA convergence results
Recently in , a method that includes a mini-batch variant of SAGA was proposed. This work is the most closely related to our minibatch SAGA, and was developed independently from ours. The methods described in can be cast in our framework. In the language of our paper, in the authors update the Jacobian estimate according to (77), where is sampled according to a uniform probability with for all What do differently is that instead of introducing the bias-corecting random variable to maintain an unbiased gradient estimate, the gradient estimate is updated using the standard SAGA update (78) and this sampling process is done independently of how is sampled for the Jacobian update. Thus at every iteration a gradient is sampled to compute (78), but is then discarded and not used to update the Jacobian update so as to maintain the independence between and By introducing the bias-correcting random variable in our method we avoid the data-hungry strategy used in .
The analysis provided in shows that, by choosing the stepsize appropriately, the expectation of a Lyapunov function similar to (52) is less than after
iterations, where . When this gives an iteration complexity of which is essentially the same complexity as the standard SAGA method. The main issue with this complexity is that it decreases only very modestly as increases. In particular, on the extreme end when , since , we can approximate and the resulting complexity (107) becomes
Yet we know that corresponds to gradient descent, and thus the iteration complexity should be which is what we recover in the analysis of all our mini-batch variants. In Figures 3(a), 3(b) and 3(c) in the experiments in Section 6 we illustrate how (107) descreases very modestly as increases.
A Refined Analysis with a Stochastic Lyapunov Function
In this section we perform a refined analysis of JacSketch applied with a minibatch sketch for a special class of samplings which pick uniformly at random from a partition of into sets of size . This is only possible when is a multiple of .
In the terminology introduced in Section 4.1, a –partition sampling is non-vacuous, proper and –uniform. Its support is a partition of , and is –uniform. It satisfies Assumption 4.6.
Restricting our attention to –partition samplings will allow us to perform a more in-depth analysis of JacSketch using a stochastic Lyapunov function. Unlike Theorem 3.6, and as explained in Section 1.7, our main result in this section (Theorem 5.2) is capable of obtaining the conjectured rate for SAGA with importance sampling.
One of the key reasons why we restrict our attention to -partition samplings is the fact that
for . Recall from Lemma 4.7 that if , then . Consequently, for we have
This orthogonality property will be fundamental for controlling the convergence of the gradient estimate in Lemma 5.3.
Recall from (32) that the stochastic gradient of the controlled stochastic reformulation (28) of the original finite-sum problem (1) is given by
provided that we use the minibatch sketch and bias-correcting variable given by Lemma 4.7(vi). This object will appear in our Lyapunov function, evaluated at and . We are now ready to present the main result of this section.
be a minibatch sketch (i.e., )We can alternatively set and the same results will hold. , where is a –partition sampling with support ,
be –smooth and –strongly convex (for ) for all ,
, ,
be the iterates produced by JacSketch.
Consider the stochastic Lyapunov function
where is a stochastic Lyapunov constant. If we use a stepsize that satisfies
This means that if we choose the stepsize equal to the upper bound (112), then
2 Gradient estimate contraction
Here we will show that our gradient estimate contracts in the following sense.
Let be the –partition sampling, and be any non-negative random variable. Then
Proof: For simplicity, in this proof we let and . Rearranging (110), we have
First, it follows from (109) that expression III is zero. We now multiply expressions I and II by and bound certain conditional expectations of these terms. Since and are independent samplings, we have
Taking conditional expectation over expression II yields
where in the last equation we used the identity
which in turn is a specialization of (44) to the minibatch sketch and the specific choice of the bias-correcting variable . It remains to take expectation of (118) and (119), apply the tower property, and combine this with (117). ∎
In the next lemma we bound the second moment of our gradient estimate .
The second moment of the gradient estimate is bounded by
Proof: Adding and subtracting from (110) gives
Taking norm squared on both sides, and using the bound gives
Taking expectation of the term, we get
Recalling the setting of Theorem 5.2, we assume that each is –strongly convex and –smooth:
for all . It is known (see Section 2.1 in ) that the above conditions imply the following inequality:
Under the assumptions of Theorem 5.2 (in particular, assumptions on and ), we have
Proof: Applying (123) to the function gives
Taking expectation over both sides over , noting that , and recalling that is an unbiased estimator of , we get the result. ∎
5 Proof of Theorem 5.2
Next, we determine a bound on so that III . Choosing
guarantees that III , and thus the last term in term in (126) can be safely dropped. Next, to build a recurrence and conclude the convergence proof, we bound the stepsize so that II I; that is,
Since , in view of (127) and (128) the combined bound on is
Hence, we have established the recursion (113).
6 Calculating the iteration complexity in special cases
In this section we consider the special case of JacSketch analyzed via Theorem 5.2—minibatch SAGA with –partition sampling—and look at further special cases by varying the minibatch size and probabilities. Our aim is to justify the complexities appearing in Table 1. In view of Theorem 5.2 the iteration complexity is given by
where . Complexity (129) is listed in line 2 of Table 1. The complexities in lines 4, 6, 8 and 14 arise as special cases of (129) for specific choices of and probabilities .
In line 4 we have gradient descent. This is obtained by choosing (whence , and ), which is why (129) simplifies to
In line 6 we consider uniform SAGA. That is, we choose and for all . We have and . Therefore, (129) simplifies to
This is essentially the sameWith the difference being that in the iteration complexity is thus a small constant change. complexity result given in .
In line 8 we consider SAGA with importance sampling. This is the same setup as above, except we choose
which is the optimal choice minimizing the complexity bound in . With these optimal probabilities, the stepsize bound becomes and by choosing the maximum allowed stepsize the resulting iteration complexity is
Now consider the probabilities suggested in . Using our bound, these lead to the complexity
Comparing this with (133), we see that this non-uniform sampling offers a significant speed up over uniform sampling if However, our rate (133) is always better than both (131) and (134). The rate we establish was conjectured to hold for a “properly” designed SAGA method in ; and we resolve this conjecture.
Finally, in line 14 of Table 1 we optimize over probabilities directly; that is we extend the importance sampling described above to any . Minimizing the complexity bound over the probabilities, and noting that , this leads to the rate
This iteration complexity also applies to the reduced memory variant of SAGA (18). This is because Theorem 5.2 also holds for sketches where is a –partition sampling. To see this, note that our analysis in this section relies on the orthogonality property (109) which also holds for since (for ) we have:
Lemmas 5.3, 5.4 and 5.5 depend on the sketch through only, which in turn depends on the sketch through , and it is easy to see that if either or , we have
Experiments
We perform several experiments to validate the theory, and also test the practical relavance of non-uniform SAGA (79) with the optimized probability distribution (132). All of our code for these experiments was written in Julia and can be found on github in https://github.com/gowerrobert/StochOpt.jl.
In our experiments we test either ridge regression
First we compare non-uniform SAGA using the new optimized importance probabilities (132) against using the probabilities as suggested in . When is significantly smaller than for all then the two sampling are very similar. But when is relatively large, then the optimized probabilities (132) can be much closer to a uniform distribution as compared to using . We illustrate this by solving a ridge regression problem (136), using generated data such that
where the elements of and are sampled from the standard Gaussian distribution , and the elements of are sampled from . s It is not hard to see that the smoothness constants are given by for . We scale the columns of so that and for and set the regularization parameter Consequently, , for , and . In this case the iteration complexity of non-uniform SAGA with the optimal probabilities (133) is given by
The complexity (134) which results from using the probabilities is given by
Now we consider the regime where in which case and consequently (139) and in contrast (140)
Thus the iteration complexity (140) will grow quadratically while (139) grows linearly in . We illustrate this in Figures 1(a), 1(b) and 1(c) where we set , and , respectively. In all figures we see that SAGA-opt (SAGA with optimized probabilities) is the fastest method. On the other hand SAGA-Li (SAGA with ) stalls in Figure 1(b) and 1(c) when is larger, performing even worst as compared to the standard SAGA method with uniform probabilities (SAGA-uni).
These experiments, together with our theoretical results, leads us to the following observation regarding data pre-processing and data scaling
A standard good practice for pre-processing in classification or regression problems is to scale the data so that the standard deviation of each feature equals one. Which in our setting is equivalent to scaling the rows of so that for In contrast, the iteration complexity of SAGA indicates that one should scale the columns of so that for Fortunately, both the columns and rows of can be simultaneously scaled using the Sinkhorn algorithm to solve the matrix scaling problem and
2 Optimal mini-batch size
Our analysis of the mini-batch SAGA is precise enough as to inform an optimal mini-batch size. For instance, consider –nice sampling and the resulting iteration complexity (104). Theorem 4.16 suggests that for any , the terms within the maximum in (104) are bounded by
Moreover, the upper and lower bounds are realized for and , respectively. Consequently, for small, we have . On the other hand, for large we have Furthermore, decreases super-linearly in while tends to decrease more modestly. Consequently, the point where overtakes is often the best for the overall complexity of the method. To better appreciate these observations, we plot the evolution of the iteration complexity (104), the total complexity and the iteration complexity as predicted by Hofmann et al. (see (107)) as increases in Figures 3(a), 3(b) and 3(c) for three different linear least squares problems. Since each step of mini-batch SAGA computes stochastic gradients, s the total complexity is times the iteration complexity. In each figure we can see that our iteration complexity initially decreases super-linearly, then at some point the complexity is dominated by and the iteration complexity decreases sublinearly. Up to this point we can observe an improvement in overall total complexity. This is in contrast to the iteration complexity given by Hofmann et al. that shows practically no improvement as increases.
Though our analysis predicts only modest improvements in total complexity, and suggests that or is optimal, we must bear in mind that this corresponds to and of the data for these small dimensional problems. We conjecture that for larger problems, this improvement in total complexity will also be larger.
To use these insights in practice, we need to be able to efficiently determine the which corresponds to the point at which the convergence regimes switches from being dominated by to being dominated by . This surmounts to choosing so that
Estimating and is often possible, but the cost of computing has a combinatorial dependency on and Thus to have a practical way of choosing , we first need to bound . This can be done for losses with linear classifiers using concentration bounds. We leave this for future work.
3 Comparative experiments
We now compare the performance of SAGA-opt to several known methods such as SVRG , grad (gradient descent with fixed stepsizes) and AMprev (an improved version of SVRG that uses second order information) . For the stepsize of SAGA-opt and SAG-opt, we found the stepsize given by theory to be a bit too conservative. Instead do we away with the and used instead. For the remaining methods we used a grid search over for
To illustrate how biased gradient estimates can perform well in practice (despite lack of proper theoretical understanding of these methods), we also test SAG-opt: a method that uses the same Jacobian updates as SAGA-opt, but instead uses the biased gradient estimate . See Section 2.5 for more details on biased gradient estimates.
In Figures 3(a), 3(b) and 3(c) we compare the methods on three logistic regression problems (137) based on three different data sets taken from LIBSVM . In all these problems the two methods with optimized non-uniform sampling SAG-opt and SAGA-opt were faster in terms of both epochs and time. The next best method was AM-prev, followed by SVRG and grad. It is interesting to see how well SAG-opt performs in practice, despite having biased gradient estimates. This is why we believe it is important to advance the analyse of biased gradient estimates as future work.
Conclusion
We now provide a brief summary of some of the key contributions of this paper and a few selected pointers to possible future research directions.
We developed and analyzed JacSketch—a novel family of variance reduced methods based on Jacobian sketching—and provided a link between variance reduction for empirical risk minimization and recent results from the field of randomized numerical linear algebra on sketch-and-project type methods for solving linear systems. In particular, it turns out that variance reduction is obtained by taking an SGD step on a stochastic optimization problem whose solution is the unknown Jacobian. As a consequence of our analysis, we resolved the conjecture of in the affirmative by proving a properly designed importance sampling for SAGA leading to the iteration complexity of . For this purpose we developed a new proof technique using a stochastic Lyapunov function. Our complexity result for uniform mini-batch SAGA perfectly interpolates between the best known convergence rates of SAGA and gradient descent, and is sufficiently precise as to inform the choice of the batch size that minimizes the over all complexity of the method. Additionally we design and analyse a reduced memory variant of SAGA as a special case.
2 Future work
For future work we see many possible avenues including the following.
One may wish to explore combinations of a weight matrix and different sketches to design new efficient methods further improving iteration complexity. For this the weighting matrix will have to be highly structured (e.g., block diagonal or very sparse) so that the Jacobian update (39) can be computed efficiently.
Bias-variance trade-off.
One can try to explore the bias-variance trade-off as opposed to merely focus on the extremes only: SAG (minimum variance) and SAGA (no bias). There is also no empirical evidence that unbiased estimators outperform the biased ones.
Johnson-Lindenstrauss sketches.
One can design completely new methods using different sparse sketches, such as the fast Johnson-Lindenstrauss transform or the Achlioptas transform . The resulting method can then be analyzed through Theorem 3.6. But first these sketches need to be adapted to ensure we get an efficient method. In particular, computing is only efficient if is row sparse, i.e., most of the rows of contain zeros only.
References
Appendix A Proof of Inequality (20)
Let be a sampling whose support is a partition of . Moreover, assume all sets of this partition have cardinality . Then
Proof: By assumption, . The first inequality follows from On the other hand,
Appendix B Duality of Sketch-and-Project and Constrain-and-Approximate
and the constrain-and-approximate problem
Proof: Let so that (143) becomes
It follows from one of the properties of pseudoinverseThe least norm solution to is given by . that the least norm solution of the above is given by Substituting , multiplying on the right by gives
Now it remains to use another pseudoinverse property: . We use it in (147) with , which gives (145). Next we show using duality that (144) is equivalent to (143). Consider the Lagrangian of (143), namely
Adding and subtracting to the right hand side and completing the square gives
Keeping in mind the constraint (149), maximizing the above over gives (144). ∎
Appendix C Proof of Theorem 4.19
where are the -th roots of unity and is the imaginary number. From (151) we see that there are only two distinct eigenvalues. Namely, for we have
The other eigenvalue is given by any since