A simpler approach to obtaining an O(1/t) convergence rate for the projected stochastic subgradient method
Simon Lacoste-Julien, Mark Schmidt, Francis Bach
Introduction
We consider a strongly convex function defined on a convex set . We denote by its strong convexity constant. Following , we consider a stochastic approximation scenario where only unbiased estimates of subgradients of are available, with the projected stochastic subgradient method.
More precisely, we assume that we have an increasing sequence of -fields , such that is -measurable and such that for all ,
is the orthogonal projection on ,
We denote by the unique minimizer of on .
Motivating example
Convergence analysis
Following standard proof techniques , we have:
The last inequality is obtained from the -strong convexity of . Thus, by re-arranging the function values on the LHS and taking expectations on both sides, we get:
With , then inequality (2) becomes
and by summing from to , we obtain:
2 New analysis
With and multiplying inequality (2) by , we obtain:
By summing from to these -weighted inequalities, we obtain a similar telescoping sum, but this time the term with stays constant across the sum:
So by using the weighted average instead of a uniform average, we get a rate instead of . Note that these averaging schemes are efficiently implemented in an online fashion as:
For the proposed weighted averaging scheme, (compare with for the uniform averaging scheme).
Experiments
To test the empirical performance of the averaging scheme, we performed a series of experiments using the support vector machine optimization problem
where is in an Euclidean space and .
We performed experiments on a set of freely available benchmark binary classification data sets. The quantum (, ) and protein (, ) data sets were obtained from the KDD Cup 2004 website,http://osmot.cs.cornell.edu/kddcup the sido data set (, ) was obtained from the Causality Workbench website,http://www.causality.inf.ethz.ch/home.php while the rcv1 (, ), covertype (, ), and news (, ) data sets were obtained from the LIBSVM data website.http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets We added a (regularized) bias term to all data sets, and for dense features we standardized so that they would have a mean of zero and a variance of one. We set the regularization parameter to , although we found that the relative performance of the methods was not particularly sensitive to this choice. We didn’t use any projection ( is the whole space). Our experiments compared the following averaging strategies:
1: Averaging all iterates with uniform weight.
0.5: Averaging the second half of the iterates with uniform weight, as proposed in .
D: Averaging all iterates since the last iteration that was a power of 2 with uniform weight (the ‘doubling trick’), also proposed in .
W: Averaging all iterates with a weight of , as discussed in this note.
W2: Averaging all iterates with a weight of , which puts even further emphasis on recent iterations.
We plot the performance of these different averaging strategies in Figure 1, which shows the objective function against the number of effective passes through the data (the number of iterations divided by ). This figure uses a step size of for all methods as we found this gave better performance than a step size of , although we include the performance of W with the latter step-size for comparison. In Figure 1, we observe the following trends:
0: Not averaging at all is typically among the worst strategies. However, this proved to be the best strategy on the sido data set. This may be because the method is still far from the solution after passes through the data.
1: Uniform averaging of all iterates is always the worst strategy.
0.5: Uniform averaging of the second half of the iterates is typically among the best strategies, provided we are in fact in the second half of the iterates.
D: The doubling trick typically gave among the best performance across the methods.
W: The proposed weighting typically performed between the doubling trick and not averaging.
W2: Weighting the iterates by always outperformed weighting them by .
Discussion
We note that the averaging of linear approximations of (rather than the iterates) by is also used in the optimization strategy of Nesterov , which achieves an optimal convergence rate for optimizing (deterministic) objectives with Lipschitz-continuous gradients (see step 3 for their Equation 3.11).
At the same time that we first posted this note, Shamir and Zhang independently proposed a similar weighted average scheme in which they call ‘polynomial-decay averaging’. They consider a running average scheme as in (4), but with the more general , where the integer parameterizes the different schemes.We note that the index is shifted by one between this note and their paper as their initial point is whereas ours is . We also note that they use the misnomer ‘gradient descent’ for their algorithm despite using subgradients which don’t necessarily yield a descent direction. yields the standard uniform averaging scheme, whereas yields the simple weighted average analyzed in Section 3.2. The general gives a weight of for each iterate, similar to what was mentioned in the previous paragraph, but with a different exact formula. They provide in a proof of a rate of for . The proof that we give in Section 3.2 can be seen as complementary and is especially much simpler (as well as giving a tighter constant). We also note that the rate of for the last iterate (scheme 0 above) is proven for the first time in .
While this paper focuses on the non-smooth case, it is still interesting to relate results to the smooth case (see, e.g., and references therein), where in the strongly convex case, averaging with longer step sizes—i.e., of the form with —leads to better and more robust rates. Can larger step sizes improve results for the non-smooth case?
Appendix A Finite variance bound for SVM
Applying Minkowski inequality again, we get