Title: ON THE INSUFFICIENCY OF EXISTING MOMENTUM SCHEMES FOR STOCHASTIC OPTIMIZATION

Abstract: Momentum based stochastic gradient methods such as heavy ball (HB) and Nesterov's accelerated gradient descent (NAG) method are widely used in practice for training deep networks and other supervised learning models, as they often provide significant improvements over stochastic gradient descent (SGD). Rigorously speaking, "fast gradient" methods have provable improvements over gradient descent only for the deterministic case, where the gradients are exact. In the stochastic case, the popular explanations for their wide applicability is that when these fast gradient methods are applied in the stochastic case, they partially mimic their exact gradient counterparts, resulting in some practical gain. This work provides a counterpoint to this belief by proving that there exist simple problem instances where these methods cannot outperform SGD despite the best setting of its parameters. These negative problem instances are, in an informal sense, generic; they do not look like carefully constructed pathological instances. These results suggest (along with empirical evidence) that HB or NAG's practical performance gains are a by-product of mini-batching. Furthermore, this work provides a viable (and provable) alternative, which, on the same set of problem instances, significantly improves over HB, NAG, and SGD's performance. This algorithm, referred to as Accelerated Stochastic Gradient Descent (ASGD), is a simple to implement stochastic algorithm, based on a relatively less popular variant of Nesterov's Acceleration. Extensive empirical results in this paper show that ASGD has performance gains over HB, NAG, and SGD. The code implementing the ASGD Algorithm can be found here 1 . * part of the work was done during an internship at Microsoft Research, India. 1 link to the ASGD code: https://github.com/rahulkidambi/AccSGD 1 0 0 σ 2 2 . Let κ and κ denote the computational and statistical condition numbers -see Jain et al. (2017) for definitions. For the problem above, we have κ = cσ 2 1 σ 2 2
and κ = c. Then we obtain following convergence rates for SGD and ASGD when applied to the above given problem instance:

1. INTRODUCTION:

First order optimization methods, which access a function (to be optimized) through its gradient or an unbiased approximation of its gradient, are the workhorses for modern large scale optimization problems, which include training the current state-of-the-art deep neural networks. Gradient descent (Cauchy, 1847) is the simplest first order method that is used heavily in practice. However, it is known that for the class of smooth convex functions as well as some simple non-smooth problems (Nesterov, 2012a) ), gradient descent is suboptimal (Nesterov, 2004) and there exists a class of algorithms called fast gradient/momentum based methods which achieve optimal convergence guarantees. The heavy ball method (Polyak, 1964 ) and Nesterov's accelerated gradient descent (Nesterov, 1983) are two of the most popular methods in this category.

On the other hand, training deep neural networks on large scale datasets have been possible through the use of Stochastic Gradient Descent (SGD) (Robbins & Monro, 1951) , which samples a random subset of training data to compute gradient estimates that are then used to optimize the objective function. The advantages of SGD for large scale optimization and the related issues of tradeoffs between computational and statistical efficiency was highlighted in Bottou & Bousquet (2007) .

The above mentioned theoretical advantages of fast gradient methods (Polyak, 1964; Nesterov, 1983) (albeit for smooth convex problems) coupled with cheap to compute stochastic gradient estimates led to the influential work of Sutskever et al. (2013) , which demonstrated the empirical advantages possessed by SGD when augmented with the momentum machinery. This work has led to widespread adoption of momentum methods for training deep neural nets; so much so that, in the context of neural network training, gradient descent often refers to momentum methods.

But, there is a subtle difference between classical momentum methods and their implementation in practice -classical momentum methods work in the exact first order oracle model (Nesterov, 2004) , i.e., they employ exact gradients (computed on the full training dataset), while in practice (Sutskever et al., 2013) , they are implemented with stochastic gradients (estimated from a randomly sampled mini-batch of training data). This leads to a natural question:

"Are momentum methods optimal even in the stochastic first order oracle (SFO) model, where we access stochastic gradients computed on a small constant sized minibatches (or a batchsize of 1?)"

Even disregarding the question of optimality of momentum methods in the SFO model, it is not even known if momentum methods (say, Polyak (1964) ; Nesterov (1983) ) provide any provable improvement over SGD in this model. While these are open questions, a recent effort of Jain et al. (2017) showed that improving upon SGD (in the stochastic first order oracle) is rather subtle as there exists problem instances in SFO model where it is not possible to improve upon SGD, even information theoretically. Jain et al. (2017) studied a variant of Nesterov's accelerated gradient updates (Nesterov, 2012b) for stochastic linear regression and show that their method improves upon SGD wherever it is information theoretically admissible. Through out this paper, we refer to the algorithm of Jain et al. (2017) as Accelerated Stochastic Gradient Method (ASGD) while we refer to a stochastic version of the most widespread form of Nesterov's method (Nesterov, 1983) as NAG; HB denotes a stochastic version of the heavy ball method (Polyak, 1964) . Critically, while Jain et al. (2017) shows that ASGD improves on SGD in any information-theoretically admissible regime, it is still not known whether HB and NAG can achieve a similar performance gain.

A key contribution of this work is to show that HB does not provide similar performance gains over SGD even when it is informationally-theoretically admissible. That is, we provide a problem instance where it is indeed possible to improve upon SGD (and ASGD achieves this improvement), but HB cannot achieve any improvement over SGD. We validate this claim empirically as well. In fact, we provide empirical evidence to the claim that NAG also do not achieve any improvement over SGD for several problems where ASGD can still achieve better rates of convergence. This raises a question about why HB and NAG provide better performance than SGD in practice (Sutskever et al., 2013) , especially for training deep networks. Our conclusion (that is well supported by our theoretical result) is that HB and NAG's improved performance is attributed to mini-batching and hence, these methods will often struggle to improve over SGD with small constant batch sizes. This is in stark contrast to methods like ASGD, which is designed to improve over SGD across both small or large mini-batch sizes. In fact, based on our experiments, we observe that on the task of training deep residual networks (He et al., 2016a) on the cifar-10 dataset, we note that ASGD offers noticeable improvements by achieving 5 -7% better test error over HB and NAG even with commonly used batch sizes like 128 during the initial stages of the optimization.

1.1. CONTRIBUTIONS:

The contributions of this paper are as follows.

1. In Section 3, we prove that HB is not optimal in the SFO model. In particular, there exist linear regression problems for which the performance of HB (with any step size and momentum) is either the same or worse than that of SGD while ASGD improves upon both of them.

2. Experiments on several linear regression problems suggest that the suboptimality of HB in the SFO model is not restricted to special cases -it is rather widespread. Empirically, the same holds true for NAG as well (Section 5).

3. The above observations suggest that the only reason for the superiority of momentum methods in practice is mini-batching, which reduces the variance in stochastic gradients and moves the SFO closer to the exact first order oracle. This conclusion is supported by em-Algorithm 1 HB: Heavy ball with a SFO Require: Initial w 0 , stepsize δ, momentum α 1: w -1 ← w 0 ; t ← 0 /*Set w -1 to w 0 */ 2: while w t not converged do 3: 

w t+1 ← w t -δ • ∇f t (w t )+α•(w t -w t-1 ) /*

v t+1 ← w t -δ • ∇f t (w t ) /*SGD step*/ 4: w t+1 = (1 + α)v t+1 -αv t /*

2. NOTATION:

We denote matrices by bold-face capital letters and vectors by lower-case letters. f (w) = 1/n i f i (w) denotes the function to optimize w.r.t. model parameters w. ∇f (w) denotes exact gradient of f at w while ∇f t (w) denotes a stochastic gradient of f . That is, ∇f t (w t ) = ∇f it (w) where i t is sampled uniformly at random from [1, . . . , n]. For linear regression, f i (w) = 0.5 • (b iw, a i ) 2 where b i ∈ is the target and a i ∈ d is the covariate, and ∇f t (w t ) = -(b t -w t , a t )a t . In this case, H = E aa denotes the Hessian of f and κ = λ1(H) λ d (H) denotes it's condition number. Algorithm 1 provides a pseudo-code of HB method (Polyak, 1964) . w t -w t-1 is the momentum term and α denotes the momentum parameter. Next iterate w t+1 is obtained by a linear combination of the SGD update and the momentum term. Algorithm 2 provides pseudo-code of a stochastic version of the most commonly used form of Nesterov's accelerated gradient descent (Nesterov, 1983) .

3. SUBOPTIMALITY OF HEAVY BALL METHOD:

In this section, we show that there exists linear regression problems where the performance of HB (Algorithm 1) is no better than that of SGD, while ASGD significantly improves upon SGD's performance. Let us now describe the problem instance.

Fix w * ∈ R 2 and let (a, b) ∼ D be a sample from the distribution such that:

a = σ 1 • z • e 1 w.p. 0.5 σ 2 • z • e 2 w.p. 0.5, and b = w * , a ,

where e 1 , e 2 ∈ R 2 are canonical basis vectors, σ 1 > σ 2 > 0. Let z be a random variable such that E z 2 = 2 and E z 4 = 2c ≥ 4. Hence, we have:

E (a (i) ) 2 = σ 2 i , E (a (i) ) 4 = cσ 4 i , for i = 1, 2. Now, our goal is to minimize: f (w) def = 0.5 • E ( w * , a -b) 2 , Hessian H def = E aa = σ 2

Algorithm 3 Accelerated stochastic gradient descent -ASGD Input: Initial w 0 , short step δ, long step parameter κ ≥ 1, statistical advantage parameter ξ ≤ √ κ 1: w0 ← w 0 ; t ← 0 /*Set running average to w 0 */ 2: α ← 1 -0.7 2 •ξ κ /*Set momentum value*/ 3: while w t not converged do 4:

wt+1 ← α • wt + (1 -α) • w t -κ•δ 0.7 • ∇f t (w t )

/*Update the running average as a weighted average of previous running average and a long step gradient */ 5: 

w t+1 ← 0.7 0.7+(1-α) • w t -δ • ∇f t (w t ) + 1-α 0.7+(1-α) • wt+1 /*

E f w SGD t -f (w * ) ≤ exp -t κ f (w 0 ) -f (w * ) .

On the other hand, ASGD achieves the following superior rate.

Corollary 2 (of Theorem 1 of Jain et al. (2017) ). Let w ASGD t be the t th iterate of ASGD on the above problem with starting point w 0 and appropriate parameters. The error of w ASGD t can be bounded as,

E f w ASGD t -f (w * ) ≤ poly(κ) exp -t √ κκ f (w 0 ) -f (w * ) .

Note that for a given problem/input distribution κ = c is a constant while κ = cσ 2 1 σ 2 2 can be arbitrarily large. Note that κ > κ = c. Hence, ASGD improves upon rate of SGD by a factor of √ κ. The following proposition, which is the main result of this section, establishes that HB (Algorithm 1) cannot provide a similar improvement over SGD as what ASGD offers. In fact, we show no matter the choice of parameters of HB, its performance does not improve over SGD by more than a constant. Proposition 3. Let w HB t be the t th iterate of HB (Algorithm 1) on the above problem with starting point w 0 . For any choice of stepsize δ and momentum α ∈ [0, 1], ∃T large enough such that ∀t ≥ T , we have,

E f w HB t -f (w * ) ≥ C(κ, δ, α) • exp -500t κ f (w 0 ) -f (w * ) ,

where C(κ, δ, α) depends on κ, δ and α (but not on t).

Thus, to obtain w s.t. w -w * ≤ , HB requires Ω(κ log 1 ) samples and iterations. On the other hand, ASGD can obtain -approximation to w * in O( √ κ log κ log 1 ) iterations. We note that the gains offered by ASGD are meaningful when κ > O(c) (Jain et al., 2017) ; otherwise, all the algorithms including SGD achieve nearly the same rates (upto constant factors). While we do not prove it theoretically, we observe empirically that for the same problem instance, NAG also obtains nearly same rate as HB and SGD. We conjecture that a lower bound for NAG can be established using a similar proof technique as that of HB (i.e. Proposition 3). We also believe that the constant in the lower bound described in proposition 3 can be improved to some small number (≤ 5).

4. ALGORITHM:

We will now present and explain an intuitive version of ASGD (pseudo code in Algorithm 3). The algorithm takes three inputs: short step δ, long step parameter κ and statistical advantage parameter ξ. The short step δ is precisely the same as the step size in SGD, HB or NAG. For convex problems, this scales inversely with the smoothness of the function. The long step parameter κ is intended to give an estimate of the ratio of the largest and smallest curvatures of the function; for convex functions, this is just the condition number. The statistical advantage parameter ξ captures trade off between statistical and computational condition numbers -in the deterministic case, ξ = √ κ and ASGD is equivalent to NAG, while in the high stochasticity regime, ξ is much smaller. The algorithm maintains two iterates: descent iterate w t and a running average wt . The running average is a weighted average of the previous average and a long gradient step from the descent iterate, while the descent iterate is updated as a convex combination of short gradient step from the descent iterate and the running average. The idea is that since the algorithm takes a long step as well as short step and an appropriate average of both of them, it can make progress on different directions at a similar pace. Appendix B shows the equivalence between Algorithm 3 and ASGD as proposed in Jain et al. (2017) . Note that the constant 0.7 appearing in Algorithm 3 has no special significance. Jain et al. (2017) require it to be smaller than 1/6 but any constant smaller than 1 seems to work in practice.

5. EXPERIMENTS:

We now present our experimental results exploring performance of SGD, HB, NAG and ASGD. Our experiments are geared towards answering the following questions:

• Even for linear regression, is the suboptimality of HB restricted to specific distributions in Section 3 or does it hold for more general distributions as well? Is the same true of NAG? • What is the reason for the superiority of HB and NAG in practice? Is it because momentum methods have better performance that SGD for stochastic gradients or due to minibatching? Does this superiority hold even for small minibatches? • How does the performance of ASGD compare to that of SGD, HB and NAG, when training deep networks?

Section 5.1 and parts of Section 5.2 address the first two questions. Section 5.2 and 5.3 address Question 2 partially and the last question. We use Matlab to conduct experiments presented in Section 5.1 and use PyTorch (pytorch, 2017) for our deep networks related experiments. Pytorch code implementing the ASGD algorithm can be found at https://github.com/rahulkidambi/AccSGD.

5.1. LINEAR REGRESSION:

In this section, we will present results on performance of the four optimization methods (SGD, HB, NAG, and ASGD) for linear regression problems. We consider two different class of linear regression problems, both of them in two dimensions. Given κ which stands for condition number, we consider the following two distributions:

Discrete: a = e 1 w.p. 0.5 and a = 2 κ • e 2 with 0.5; e i is the i th standard basis vector.

Gaussian : a ∈ R 2 is distributed as a Gaussian random vector with covariance matrix

1 0 0 1 κ .

We fix a randomly generated w * ∈ R 2 and for both the distributions above, we let b = w * , a . We vary κ from {2 4 , 2 5 , ..., 2 12 } and for each κ in this set, we run 100 independent runs of all four methods, each for a total of t = 5κ iterations. We define that the algorithm converges if there is no error in the second half (i.e. after 2.5κ updates) that exceeds the starting error -this is reasonable since we expect geometric convergence of the initial error.

Unlike ASGD and SGD, we do not know optimal learning rate and momentum parameters for NAG and HB in the stochastic gradient model. So, we perform a grid search over the values of the learning rate and momentum parameters. In particular, we lay a 10 × 10 grid in [0, 1] × [0, 1] for learning rate and momentum and run NAG and HB. Then, for each grid point, we consider the subset of 100 trials that converged and computed the final error using these. Finally, the parameters that yield the minimal error are chosen for NAG and HB, and these numbers are reported. We measure convergence performance of a method using: We compute the rate (1) for all the algorithms with varying condition number κ. Given a rate vs κ plot for a method, we compute it's slope (denoted as γ) using linear regression. Table 1 presents the estimated slopes (i.e. γ) for various methods for both the discrete and the Gaussian case. The slope values clearly show that the rate of SGD, HB and NAG have a nearly linear dependence on κ while that of ASGD seems to scale linearly with √ κ.

EQUATION

5.2. DEEP AUTOENCODERS FOR MNIST:

In this section, we present experimental results on training deep autoencoders for the mnist dataset, and we closely follow the setup of Hinton & Salakhutdinov (2006) . This problem is a standard benchmark for evaluating the performance of different optimization algorithms e.g., Martens (2010) ; Sutskever et al. (2013) ; Martens & Grosse (2015) ; Reddi et al. (2017) . The network architecture follows previous work (Hinton & Salakhutdinov, 2006) and is represented as 784 -1000 -500 -250-30-250-500-1000-784 with the first and last 784 nodes representing the input and output respectively. All hidden/output nodes employ sigmoid activations except for the layer with 30 nodes which employs linear activations and we use MSE loss. Initialization follows the scheme of Martens (2010) , also employed in Sutskever et al. (2013) ; Martens & Grosse (2015) . We perform training with two minibatch sizes -1 and 8. The runs with minibatch size of 1 were run for 30 epochs while the runs with minibatch size of 8 were run for 50 epochs. For each of SGD, HB, NAG and ASGD, a grid search over learning rate, momentum and long step parameter (whichever is applicable) was done and best parameters were chosen based on achieving the smallest training error in the same protocol followed by Sutskever et al. (2013) . The grid was extended whenever the best parameter fell at the edge of a grid. For the parameters chosen by grid search, we perform 10 runs with different seeds and averaged the results. The results are presented in Figures 2 and 3 . Note that the final loss values reported are suboptimal compared to those in published literature e.g., Sutskever et al. (2013) ; while Sutskever et al. (2013) report results after 750000 updates with a large batch size of 200 (which implies a total of 750000 × 200 = 150M gradient evaluations), whereas, our results are after 1.8M updates of SGD with a batch size 1 (which is just 1.8M gradient evaluations).

Effect of minibatch sizes: While HB and NAG decay the loss faster compared to SGD for a minibatch size of 8 (Figure 2 ), this superior decay rate does not hold for a minibatch size of 1 (Figure 3 ). This supports our intuitions from the stochastic linear regression setting, where we demonstrate that HB and NAG are suboptimal in the stochastic first order oracle model. Comparison of ASGD with momentum methods: While ASGD performs slightly better than NAG for batch size 8 in the training error (Figure 2 ), ASGD decays the error at a faster rate compared to all the three other methods for a batch size of 1 (Figure 3 ).

5.3. DEEP RESIDUAL NETWORKS FOR CIFAR-10:

We will now present experimental results on training deep residual networks (He et al., 2016b) with pre-activation blocks He et al. (2016a) for classifying images in cifar-10 ( Krizhevsky & Hinton, 2009) ; the network we use has 44 layers (dubbed preresnet-44). The code for this section was downloaded from preresnet (2017). One of the most distinct characteristics of this experiment compared to our previous experiments is learning rate decay. We use a validation set based decay scheme, wherein, after every 3 epochs, we decay the learning rate by a certain factor (which we grid search on) if the validation zero one error does not decrease by at least a certain amount (precise numbers are provided in the appendix since they vary across batch sizes). Due to space constraints, we present only a subset of training error plots. Please see Appendix C.3 for some more plots on training errors.

Effect of minibatch sizes: Our first experiment tries to understand how the performance of HB and NAG compare with that of SGD and how it varies with minibatch sizes. Figure 4 presents the test zero one error for minibatch sizes of 8 and 128. While training with batch size 8 was done for 40 epochs, with batch size 128, it was done for 120 epochs. We perform a grid search over all parameters for each of these algorithms. See Appendix C.3 for details on the grid search parameters. We observe that final error achieved by SGD, HB and NAG are all very close for both batch sizes.

While NAG exhibits a superior rate of convergence compared to SGD and HB for batch size 128, this superior rate of convergence disappears for a batch size of 8.

Comparison of ASGD with momentum methods::

The next experiment tries to understand how ASGD compares with HB and NAG. The errors achieved by various methods when we do grid search over all parameters are presented in Table 2 . Note that the final test errors for batch size 128 are better than those for batch size 8 since the former was run for 120 epochs while the latter was run only for 40 epochs (due to time constraints). While the final error achieved by ASGD is similar/favorable compared to all other methods, we are also interested in understanding whether ASGD has a superior convergence speed. For this experiment, we need to address the issue of differing learning rates used by various algorithms and different iterations where they decay learning rates. So, for each of HB and NAG, we choose the learning rate and decay factors by grid search, use these values for ASGD and do grid search only over long step parameter κ and momentum α for ASGD. The results are presented in Figures 5 and 6 . For batch size 128, ASGD decays error at a faster rate compared to both HB and NAG.

For batch size 8, while we see a superior convergence of ASGD compared to NAG, we do not see this superiority over HB. The reason for this turns out to be that the learning rate for HB, which we also use for ASGD, turns out to be quite suboptimal for ASGD. So, for batch size 8, we also compare fully optimized (i.e., grid search over learning rate as well) ASGD with HB. The superiority of ASGD over HB is clear from this comparison. These results suggest that ASGD decays error at a faster rate compared to HB and NAG across different batch sizes.

6. RELATED WORK:

First order oracle methods: The primary method in this family is Gradient Descent (GD) (Cauchy, 1847). As mentioned previously, GD is suboptimal for smooth convex optimization (Nesterov, 2004), and this is addressed using momentum methods such as the Heavy Ball method (Polyak, 1964 ) (for quadratics), and Nesterov's Accelerated gradient descent (Nesterov, 1983) .

Stochastic first order methods and noise stability: The simplest method employing the SFO is SGD (Robbins & Monro, 1951) ; the effectiveness of SGD has been immense, and its applicability goes well beyond optimizing convex objectives. Accelerating SGD is a tricky proposition given the instability of fast gradient methods in dealing with noise, as evidenced by several negative results which consider statistical (Proakis, 1974; Polyak, 1987; Roy & Shynk, 1990) , numerical (Paige, 1971; Greenbaum, 1989) While HB (Polyak, 1964) and NAG (Nesterov, 1983 ) are known to be effective in case of exact first order oracle, for the SFO, the theoretical performance of HB and NAG is not well understood.

Understanding Stochastic Heavy Ball: Understanding HB's performance with inexact gradients has been considered in efforts spanning several decades, in many communities like controls, optimization and signal processing. Polyak (1987) considered HB with noisy gradients and concluded that the improvements offered by HB with inexact gradients vanish unless strong assumptions on the inexactness was considered; an instance of this is when the variance of inexactness decreased as the iterates approach the minimizer. Proakis (1974) ; Roy & Shynk (1990) ; Sharma et al. (1998) suggest that the improved non-asymptotic rates offered by stochastic HB arose at the cost of worse asymptotic behavior. We resolve these unquantified improvements on rates as being just constant factors over SGD, in stark contrast to the gains offered by ASGD. Loizou & Richtárik (2017) state their method as Stochastic HB but require stochastic gradients that nearly behave as exact gradients; indeed, their rates match that of the standard HB method (Polyak, 1964) . Such rates are not information theoretically possible (see Jain et al. ( 2017)), especially with a batch size of 1 or even with constant sized minibatches.

Accelerated and Fast Methods for finite-sums::

There have been developments pertaining to faster methods for finite-sums (also known as offline stochastic optimization): amongst these are methods such as SDCA (Shalev-Shwartz & Zhang, 2012) , SAG (Roux et al., 2012) , SVRG (Johnson & Zhang, 2013) , SAGA (Defazio et al., 2014) , which offer linear convergence rates for strongly convex finite-sums, improving over SGD's sub-linear rates (Rakhlin et al., 2012) . These methods have been improved using accelerated variants (Shalev-Shwartz & Zhang, 2014; Frostig et al., 2015a; Lin et al., 2015; Defazio, 2016; Allen-Zhu, 2016) . Note that these methods require storing the entire training set in memory and taking multiple passes over the same for guaranteed progress. Furthermore, these methods require computing a batch gradient or require memory requirements (typically Ω(| training data points|)). For deep learning problems, data augmentation is often deemed necessary for achieving good performance; this implies computing quantities such as batch gradient (or storage necessities) over this augmented dataset is often infeasible. Such requirements are mitigated by the use of simple streaming methods such as SGD, ASGD, HB, NAG. For other technical distinctions between the offline and online stochastic methods refer to Frostig et al. (2015b) .

Practical methods for training deep networks: Momentum based methods employed with stochastic gradients (Sutskever et al., 2013) have become standard and very popular in practice. These schemes tend to outperform standard SGD on several important practical problems. As previously mentioned, we attribute this improvement to effect of mini-batching rather than improvement offered by HB or NAG in the SFO model. Schemes such as Adagrad (Duchi et al., 2011) , RM-SProp (Tieleman & Hinton, 2012) , Adam (Kingma & Ba, 2014) represent an important and useful class of algorithms. The advantages offered by these methods are orthogonal to the advantages offered by fast gradient methods; it is an important direction to explore augmenting these methods with ASGD as opposed to standard HB or NAG based acceleration schemes. Chaudhari et al. (2017) proposed Entropy-SGD, which is an altered objective that adds a local strong convexity term to the actual empirical risk objective, with an aim to improve generalization. However, we do not understand convergence rates for convex problems or the generalization ability of this technique in a rigorous manner. Chaudhari et al. (2017) propose to use SGD in their procedure but mention that they employ the HB/NAG method in their implementation for achieving better performance. Naturally, we can use ASGD in this context. Path normalized SGD (Neyshabur et al., 2015) is a variant of SGD that alters the metric on which the weights are optimized. As noted in their paper, path normalized SGD could be improved using HB/NAG (or even the ASGD method).

7. CONCLUSIONS AND FUTURE DIRECTIONS:

In this paper, we show that the performance gain of HB over SGD in stochastic setting is attributed to mini-batching rather than the algorithm's ability to accelerate with stochastic gradients. Concretely, we provide a formal proof that for several easy problem instances, HB does not outperform SGD despite large condition number of the problem; we observe this trend for NAG in our experiments.

In contrast, ASGD (Jain et al., 2017) provides significant improvement over SGD for these problem instances. We observe similar trends when training a resnet on cifar-10 and an autoencoder on mnist. This work motivates several directions such as understanding the behavior of ASGD on domains such as NLP, and developing automatic momentum tuning schemes (Zhang et al., 2017) .

A SUBOPTIMALITY OF HB: PROOF OF PROPOSITION 3

Before proceeding to the proof, we introduce some additional notation. Let θ (j)

t+1 denote the concatenated and centered estimates in the j th direction for j = 1, 2.

θ (j) t+1 def = w (j) t+1 -(w * ) (j) w (j) t -(w * ) (j) , j = 1, 2.

Since the distribution over x is such that the coordinates are decoupled, we see that θ

(j)

t+1 can be written in terms of θ (j) t as:

θ (j) t+1 = A (j) t+1 θ (j) t , with A (j) t+1 = 1 + α -δ(a (j) t+1 ) 2 -α 1 0 . Let Φ (j) t+1 def = E θ (j) t+1 ⊗ θ (j)

t+1 denote the covariance matrix of θ (j)

t+1 . We have Φ

(j) t+1 = B (j) Φ (j) t

with, B (j) defined as

B (j) def =     E (1 + α -δ(a (j) ) 2 ) 2 E -α(1 + α -δ(a (j) ) 2 ) E -α(1 + α -δ(a (j) ) 2 α 2 E (1 + α -δ(a (j) ) 2 ) 0 -α 0 E (1 + α -δ(a (j) ) 2 ) -α 0 0 1 0 0 0     =     (1 + α -δσ 2 j ) 2 + (c -1)(δσ 2 j ) 2 -α(1 + α -δσ 2 j ) -α(1 + α -δσ 2 j ) α 2 (1 + α -δσ 2 j ) 0 -α 0 (1 + α -δσ 2 j ) -α 0 0 1 0 0 0     .

We prove Proposition 3 by showing that for any choice of stepsize and momentum, either of the two holds:

• B (1) has an eigenvalue larger than 1, or,

• the largest eigenvalue of B (2) is greater than 1 -500 κ .

This is formalized in the following two lemmas. 2) has an eigenvalue of magnitude ≥ 1 -500 κ .

Lemma 4. If the stepsize δ is such that δσ 2 1 ≥ 2(1-α 2 ) c+(c-2)α , then B (1) has an eigenvalue ≥ 1. Lemma 5. If the stepsize δ is such that δσ 2 1 < 2(1-α 2 ) c+(c-2)α , then B (

Given this notation, we can now consider the j th dimension without the superscripts; when needed, they will be made clear in the exposition. Denoting x def = δσ 2 and t def = 1 + α -x, we have:

B =    t 2 + (c -1)x 2 -αt -αt α 2 t 0 -α 0 t -α 0 0 1 0 0 0    A.1 PROOF

The analysis goes via computation of the characteristic polynomial of B and evaluating it at different values to obtain bounds on its roots.

Lemma 6. The characteristic polynomial of B is:

D(z) = z 4 -(t 2 + (c -1)x 2 )z 3 + (2αt 2 -2α 2 )z 2 + (-t 2 + (c -1)x 2 )α 2 z + α 4 .

Proof. We first begin by writing out the expression for the determinant:

Det(B -zI) = t 2 + (c -1)x 2 -z -αt -αt α 2 t -z -α 0 t -α -z 0 1 0 0 -z .

expanding along the first column, we have:

Det(B -zI) = (t 2 + (c -1)x 2 -z)(α 2 z -z 3 ) -t(-αtz 2 + α 2 tz) + t(-αt(αz) + z • αtz) -(z • α 2 z -α 4 ) = (t 2 + (c -1)x 2 -z)(α 2 z -z 3 ) -2t(α 2 tz -αtz 2 ) -(α 2 z 2 -α 4 ).

Expanding the terms yields the expression in the lemma.

The next corollary follows by some simple arithmetic manipulations.

Corollary 7. Substituting z = 1 -τ in the characteristic equation of Lemma 6, we have:

EQUATION

Proof of Lemma 4. The first observation necessary to prove the lemma is that the characteristic polynomial D(z) approaches ∞ as z → ∞, i.e., lim z→∞ D(z) = +∞.

Next, we evaluate the characteristic polynomial at 1, i.e. compute D(1). This follows in a straightforward manner from corollary (7) by substituting τ = 0 in equation ( 2), and this yields,

D(1) = (1 -α)x • 2(1 -α 2 ) -x(1 -α) -(c -1)x(1 + α) .

As α < 1, x = δσ 2 > 0, we have the following by setting D(1) ≤ 0 and solving for x:

x ≥ 2(1 -α 2 ) c + (c -2)α .

Since D(1) ≤ 0 and D(z) ≥ 0 as z → ∞, there exists a root of D(•) which is ≥ 1.

Remark 8. The above characterization is striking in the sense that for any c > 1, increasing the momentum parameter α naturally requires the reduction in the step size δ to permit the convergence of the algorithm, which is not observed when fast gradient methods are employed in deterministic optimization. For instance, in the case of deterministic optimization, setting c = 1 yields δσ 2 1 < 2(1 + α). On the other hand, when employing the stochastic heavy ball method with x (j) = 2σ 2 j , we have the condition that c = 2, and this implies,

δσ 2 1 < 2(1-α 2 ) 2 = 1 -α 2 .

We now prove Lemma 5. We first consider the large momentum setting. Lemma 9. When the momentum parameter α is set such that 1 -450/κ ≤ α ≤ 1, B has an eigenvalue of magnitude ≥ 1 -450 κ .

Proof. This follows easily from the fact that det(B)

= α 4 = 4 j=1 λ j (B) ≤ (λ max (B)) 4 , thus implying 1 -450/κ ≤ α ≤ |λ max (B)|.

Remark 10. Note that the above lemma holds for any value of the learning rate δ, and holds for every eigen direction of H. Thus, for "large" values of momentum, the behavior of stochastic heavy ball does degenerate to the behavior of stochastic gradient descent.

We now consider the setting where momentum is bounded away from 1.

Corollary 11. Consider B (2) , by substituting τ = l/κ, x = δλ min = c(δσ 2 1 )/κ in equation (2) and accumulating terms in varying powers of 1/κ, we obtain:

G(l) def = c 3 (δσ 2 1 ) 2 l 3 κ 5 + l 4 -2c(δσ 2 1 )l 3 (1 + α) + (2α -3c)c 2 (δσ 2 1 ) 2 l 2 κ 4 + -(3 + α)(1 -α)l 3 -2(1 + α)(2α -3)c(δσ 2 1 )l 2 + (3c -4α + (2 -c)α 2 )c 2 (δσ 2 1 ) 2 l κ 3 + (3 -4α -α 2 + 2α 3 )l 2 -2c(δσ 2 1 )l(3 -α)(1 -α 2 ) -c 2 (δσ 2 1 ) 2 (1 -α)(c + (c -2)α) κ 2 + -(1 -α) 2 (1 -α 2 )l + 2c(δσ 2 1 )(1 -α)(1 -α 2 ) κ (3) Lemma 12. Let 2 < c < 3000, 0 ≤ α ≤ 1 -450 κ , l = 1 + 2c(δσ 2 1 ) 1-α . Then, G(l) ≤ 0. Proof. Since (δσ 2 1 ) ≤ 2(1-α 2 ) c+(c-2)α , this implies (δσ 2 1 ) 1-α ≤ 2(1+α) c+(c-2)α ≤ 4 c , thus implying, 1 ≤ l ≤ 9.

Substituting the value of l in equation ( 3), the coefficient of

O(1/κ) is -(1 -α) 3 (1 + α).

We will bound this term along with

(3 -4α -α 2 + 2α 3 )l 2 /κ 2 = (1 -α) 2 (3 + 2α)l 2 /κ 2 to obtain: -(1 -α) 3 (1 + α) κ + (1 -α) 2 (3 + 2α)l 2 κ 2 ≤ -(1 -α) 3 (1 + α) κ + 405(1 -α) 2 κ 2 ≤ (1 -α) 2 κ 405 κ -(1 -α 2 ) ≤ (1 -α) 2 κ 405 κ -(1 -α) ≤ - 45 • 450 2 κ 4 ,

where, we use the fact that α < 1, l ≤ 9. The natural implication of this bound is that the terms that are lower order, such as O(1/κ 4 ) and O(1/κ 5 ) will be negative owing to the large constant above.

Let us verify that this is indeed the case by considering the terms having powers of O(1/κ 4 ) and O(1/κ 5 ) from equation (3):

c 3 (δσ 2 1 ) 2 l 3 κ 5 + l 4 -2c(δσ 2 1 )l 3 (1 + α) + (2α -3c)c 2 (δσ 2 1 ) 2 l 2 κ 4 - 45 • 450 2 κ 4 ≤ c 3 (δσ 2 1 ) 2 l 3 κ 5 + l 4 κ 4 - 45 • 450 2 κ 4 ≤ cl 3 κ 5 + (9 4 -(45 • 450 2 )) κ 4 ≤ 9 3 c + 9 4 -(45 • 450 2 ) κ 4

The expression above evaluates to ≤ 0 given an upperbound on the value of c. The expression above follows from the fact that l ≤ 9, κ ≥ 1.

Next, consider the terms involving O(1/κ 3 ) and O(1/κ 2 ), in particular,

(3c -4α + (2 -c)α 2 )c 2 (δσ 2 1 ) 2 l κ 3 - c 2 (δσ 2 1 ) 2 (1 -α)(c + (c -2)α) κ 2 ≤ c 2 (δσ 2 1 ) 2 κ 2 l(3c + 2) κ -(1 -α)(c + (c -2)α) ≤ c 2 (δσ 2 1 ) 2 κ 2 5cl κ -(1 -α)(c + (c -2)α) ≤ c 2 (δσ 2 1 ) 2 κ 2 5cl κ -(1 -α)c ≤ c 3 (δσ 2 1 ) 2 κ 2 5l κ - 450 κ ≤ c 3 (δσ 2 1 ) 2 κ 2 • -405 κ ≤ 0. Next, -2(1 + α)(2α -3)c(δσ 2 1 )l 2 κ 3 - 2c(δσ 2 1 )l(3 -α)(1 -α 2 ) κ 2 ≤ 2(1 + α)c(δσ 2 1 )l κ 2 -(2α -3)l κ -(3 -α)(1 -α) ≤ 2(1 + α)c(δσ 2 1 )l κ 2 3l κ -2(1 -α) ≤ 2(1 + α)c(δσ 2 1 )l κ 2 3l κ - 2 • 450 κ ≤ 2(1 + α)c(δσ 2 1 )l κ 2 3 • 27 κ - 2 • 450 κ ≤ 0.

In both these cases, we used the fact that α ≤ 1 -450 κ implying -(1 -α) ≤ -450 κ . Finally, other remaining terms are negative.

Before rounding up the proof of the proposition, we need the following lemma to ensure that our lower bounds on the largest eigenvalue of B indeed affect the algorithm's rates and are true irrespective of where the algorithm is begun. Note that this allows our result to be much stronger than typical optimization lowerbounds that rely on specific initializations to ensure a component along the largest eigendirection of the update operator, for which bounds are proven. Lemma 13. For any starting iterate w 0 = w * , the HB method produces a non-zero component along the largest eigen direction of B.

Proof. We note that in a similar manner as other proofs, it suffices to argue for each dimension of the problem separately. But before we start looking at each dimension separately, let us consider the j th dimension, and detail the approach we use to prove the claim: the idea is to examine the subspace spanned by covariance E θ (j)

• ⊗ θ (j)

• of the iterates θ

EQUATION

2 , ..., for every starting iterate θ (j) 0 = [0, 0] and prove that the largest eigenvector of the expected operator B (j) is not orthogonal to this subspace. This implies that there exists a non-zero component of E θ (j) • ⊗ θ (j)

• in the largest eigen direction of B (j) , and this decays at a rate that is at best λ max (B (j) ).

Since B (j) ∈ R 4×4 , we begin by examining the expected covariance spanned by the iterates θ

EQUATION

3 . Let w j) . Now, this implies θ

(j) 0 -(w * ) (j) = w (j) -1 -(w * ) (j) = k (

EQUATION

H (j) 1 = (a (j) 1 ) 2 .

This implies that k just appears as a scale factor. This in turn implies that in order to analyze the subspace spanned by the covariance of iterates θ

EQUATION

1 , ..., we can assume k (j) = 1 without any loss in generality. This implies, θ (j) 0 = [1, 1] . Note that with this in place, we see that we can now drop the superscript j that represents the dimension, since the analysis decouples across the dimensions j ∈ {1, 2}. Furthermore, let the entries of the vector θ k be represented as

θ k def = [θ k1 θ k2 ] Next, denote 1 + α -δ H k = tk . This implies, A k = tk -α 1 0 .

Furthermore,

EQUATION

)

Let us consider the vectorized form of Φ j = E [θ j ⊗ θ j ], and we denote this as vec(Φ j ). Note that vec(Φ j ) makes Φ j become a column vector of size 4 × 1. Now, consider vec(Φ j ) for j = 0, 1, 2, 3 and concatenate these to form a matrix that we denote as D, i.e.

D = [vec(Φ 0 ) vec(Φ 1 ) vec(Φ 2 ) vec(Φ 3 )] .

Now, since we note that Φ j is a symmetric 2 × 2 matrix, D should contain two identical rows implying that it has an eigenvalue that is zero and a corresponding eigenvector that is 0 -1/ √ 2 1/ (2) 0 . It turns out that this is also an eigenvector of B with an eigenvalue α. Note that det(B) = α 4 . This implies there are two cases that we need to consider: (i) when all eigenvalues of B have the same magnitude (= α). In this case, we are already done, because there exists at least one non zero eigenvalue of D and this should have some component along one of the eigenvectors of B and we know that all eigenvectors have eigenvalues with a magnitude equal to λ max (B). Thus, there exists an iterate which has a non-zero component along the largest eigendirection of B. (ii) the second case is the situation when we have eigenvalues with different magnitudes. In this case, note that det(B) = α 4 < (λ max (B)) 4 implying λ max (B) > α. In this case, we need to prove that D spans a three-dimensional subspace; if it does, it contains a component along the largest eigendirection of B which will round up the proof. Since we need to understand whether D spans a three dimensional subspace, we can consider a different (yet related) matrix, which we call R and this is defined as:

Given the expressions for {θ j } 3 j=0 (by definition of θ 0 and using equation 4), we can substitute to see that R has the following expression:

R =   1 E ( t1 -α) 2 E ( t2 ( t1 -α) -α) 2 1 E t1 -α E (( t2 ( t1 -α) -α))( t1 -α) 1 1 E ( t1 -α) 2   .

If we compute and prove that det(R) = 0, we are done since that implies that R has three non-zero eigenvalues.

This implies, we first define the following: let q γ = (t -γ) 2 + (c -1)x 2 . Then, R can be expressed as:

det(R) = det   1 q α q 0 q α -2αt(t -α) + α 2 1 t -α tq α -α(t -α) 1 1 q α   = det   1 q α q α (q 0 -q α ) -2αt(t -α) + α 2 1 t -α tq α -α(t -α) -(t -α)q α 1 1 0   = det   1 q α -1 q α (q 0 -q α ) -2αt(t -α) + α 2 1 t -α -1 tq α -α(t -α) -(t -α)q α 1 0 0   = det   0 q α -1 q α (q 0 -q α ) -2αt(t -α) + α 2 0 t -α -1 tq α -α(t -α) -(t -α)q α 1 0 0   Note: (i) q α -1 = (t -α) 2 -1 + (c -1)x 2 = (1 -x) 2 -1 + (c -1)x 2 = -2x + x 2 + (c -1)x 2 = -2x + cx 2 . (ii) t -α -1 = -x (iii) α(q α -(t-α)) = α((t-α) 2 -(t-α)+(c-1)x 2 ) = α((1-x)(-x)+(c-1)x 2 ) = αx(-1+cx) (iv) q 0 -q α = t 2 -(t -α) 2 = α(2t -α) = 2tα -α 2 .

Then,

(2αt -α 2 )q α -2αt(t -α) + α 2 = 2tα(q α -(t -α)) + α 2 (1 -q α ) = 2tα(-x + cx 2 ) -α 2 (-2x + cx 2 ) = -2tαx + 2xα 2 + 2tαcx 2 -cα 2 x 2 = 2αx(-t + α) + cαx 2 (2t -α) = -2αx(1 -x) + 2cαx 2 (1 -x) + cα 2 x 2 = 2αx(1 -x)(-1 + cx) + cα 2 x 2 .

Then,

det(R) = det   0 x(cx -2) 2αx(1 -x)(-1 + cx) + cα 2 x 2 0 -x αx(cx -1) 1 0 0   = x 2 αdet 0 (cx -2) cαx + 2(1 -x)(cx -1) 0 -1 cx -1 1 0 0 = x 3 αdet 0 c cα -2(cx -1) 0 -1 cx -1 1 0 0 Then, det(R) = x 3 α c(-1 + cx) -2(-1 + cx) + cα = αx 3 (c -2)(-1 + cx) + cα

Note that this determinant can be zero when

EQUATION

We show this is not possible by splitting our argument into two parts, one about the convergent regime of the algorithm (where, δσ 2 1 < 2(1-α 2 ) c+(c-2)α ) and the other about the divergent regime. Let us first provide a proof for the convergent regime of the algorithm. For this regime, let the chosen δ be represented as δ + . Now, for the smaller eigen direction, x = δ + λ min = cδ + σ 2 1 /κ. Suppose α was chosen as per equation 5,

cα c -2 = 1 - c 2 δ + σ 2 1 κ =⇒ δ + σ 2 1 = κ c 2 - κα c(c -2)

.

We will now prove that δ

+ σ 2 1 = κ c ( 1 c -α c-2

) is much larger than one allowed by the convergence of the HB updates, i.e., δσ 2

1 < 2(1-α 2 ) c+(c-2)α ≤ 2(1-α 2 ) c . In particular, if we prove that κ c ( 1 c -α c-2 ) > 2(1-α 2 ) c

for any admissible value of α, we are done.

κ c ( 1 c - α c -2 ) > 2(1 -α 2 ) c ⇔ κ c - κα c -2 > 2 -2α 2 ⇔ κ c - κα c -2 > κ c - κα c > 2 -2α 2 ⇔ κ -κα > 2c -2cα 2 ⇔ 2cα 2 -κα + (κ -2c) > 0.

The two roots of this quadratic equation are α + = κ 2c -1 and α -= 1. Note that κ ≥ κ = c; note that there is not much any method gains over SGD if κ = O(c). And, for any κ ≥ 4c, note, α + > α -, indicating that the above equation holds true if α > α + = κ 2c -1 or if α < α -= 1. The latter condition is true and hence the proposition that δ

+ σ 2 1 > 2(1-α 2 ) c+(c-2)α is true.

We need to prove that the determinant does not vanish in the divergent regime for rounding up the proof to the lemma. Now, let us consider the divergent regime of the algorithm, i.e., when, δσ 2 1 > 2(1-α 2 ) c+(c-2)α . Furthermore, for the larger eigendirection, the determinant is zero when δσ

2 1 = 1-cα c-2 c = 1 c -α c-2 (obtained by substituting x = δσ 2 1 in equation 5). If we show that 2(1-α 2 ) c+(c-2)α > 1 c -α c-2

for all admissible values of c, we are done. We will explore this in greater detail:

2(1 -α 2 ) c + (c -2)α > 1 c - α c -2 2(1 -α 2 ) ≥ 1 + c -2 c α - c c -2 α -α 2 ⇔ 1 -α 2 ≥ -4(c -1) c(c -2) α ⇔ c 2 -2c -α 2 c 2 + 2cα 2 ≥ -4cα + 4α ⇔ c 2 (1 -α 2 ) -2c(1 -α 2 -2α) -4α ≥ 0.

considering the quadratic in the left hand size and solving it for c, we have:

c ± = 2(1 -α 2 -2α) ± 4(1 -α 2 -2α) 2 + 16α(1 -α 2 ) 2(1 -α 2 ) = (1 -α 2 -2α) ± (1 -α 2 -2α) 2 + 4α(1 -α 2 ) (1 -α 2 ) = (1 -α 2 -2α) ± 1 + α 4 + 4α 2 -2α 2 -4α + 4α 3 + 4α(1 -α 2 ) (1 -α 2 ) = (1 -α 2 -2α) ± (1 + α 2 ) (1 -α 2 )

This holds true iff

c ≤ c -= -2α(1 + α) 1 -α 2 = -2α 1 -α , or iff, c ≥ c + = 2(1 -α) 1 -α 2 = 2 1 + α .

Which is true automatically since c > 2. This completes the proof of the lemma.

We are now ready to prove Lemma 5.

Proof of Lemma 5. Combining Lemmas 9 and 12, we see that no matter what stepsize and momentum we choose, B (j) has an eigenvalue of magnitude at least 1 -500 κ for some j ∈ {1, 2}. This proves the lemma.

B EQUIVALENCE OF ALGORITHM 3 AND ASGD:

We begin by writing out the updates of ASGD as written out in Jain et al. (2017) , which starts with two iterates a 0 and d 0 , and from time t = 0, 1, ...T -1 implements the following updates:

EQUATION

Next, we specify the step sizes β 1 = c 2 3 / √ κ κ, α 1 = c 3 /(c 3 + β), γ 1 = β/(c 3 λ min ) and δ 1 = 1/R 2 , where κ = R 2 /λ min . Note that the step sizes in the paper of Jain et al. (2017) with c 1 in their paper set to 1 yields the step sizes above. Now, substituting equation 8 in equation 9 and substituting the value of γ 1 , we have:

EQUATION

We see that d t+1 is precisely the update of the running average wt+1 in the ASGD method employed in this paper.

We now update b t to become b t+1 and this can be done by writing out equation 6 at t + 1, i.e:

EQUATION

By substituting the value of α 1 we note that this is indeed the update of the iterate as a convex combination of the current running average and a short gradient step as written in this paper. In this paper, we set c 3 to be equal to 0.7, and any constant less than 1 works. In terms of variables, we note that α in this paper's algorithm description maps to 1 -β 1 .

C MORE DETAILS ON EXPERIMENTS:

In this section, we will present more details on our experimental setup.

C.1 LINEAR REGRESSION:

In this section, we will present some more results on our experiments on the linear regression problem. Just as in Appendix A, it is indeed possible to compute the expected error of all the algorithms among SGD, HB, NAG and ASGD, by tracking certain covariance matrices which evolve as linear systems. For SGD, for instance, denoting Φ SGD The largest magnitude of the eigenvalues of these matrices indicate the rate of decay achieved by the particular algorithm -smaller it is compared to 1, faster the decay.

We now detail the range of parameters explored for these results: the condition number κ was varied from {2 4 , 2 5 , .., 2 28 } for all the optimization methods and for both the discrete and gaussian problem. For each of these experiments, we draw 1000 samples and compute the empirical estimate of the fourth moment tensor. For NAG and HB, we did a very fine grid search by sampling 50 values in the interval (0, 1] for both the learning rate and the momentum parameter and chose the parameter setting that yielded the smallest λ max (B) that is less than 1 (so that it falls in the range of convergence of the algorithm). As for SGD and ASGD, we employed a learning rate of 1/3 for the Gaussian case and a step size of 0.9 for the discrete case. The statistical advantage parameter of ASGD was chosen to be 3κ/2 for the Gaussian case and 2κ/3 for the Discrete case, and the a long step parameters of 3κ and 2κ were chosen for the Gaussian and Discrete case respectively. The reason it appears as if we choose a parameter above the theoretically maximal allowed value of the advantage parameter is because the definition of κ is different in this case. The κ we speak about for this experiment is λ max /λ min unlike the condition number for the stochastic optimization problem. In a manner similar to actually running the algorithms (the results of whose are presented in the main paper), we also note that we can compute the rate as in equation 1 and join all these rates using a curve and estimate its slope (in the log scale). This result is indicated in table 3.

Figure 7 presents these results, where for each method, we did grid search over all parameters and chose parameters that give smallest λ max . We see the same pattern as in Figure 1 from actual runs -SGD,HB and NAG all have linear dependence on condition number κ, while ASGD has a dependence of √ κ. 

C.2 AUTOENCODERS FOR MNIST:

We begin by noting that the learning rates tend to vary as we vary batch sizes, which is something that is known in theory (Jain et al., 2016) . Furthermore, we extend the grid especially whenever our best parameters of a baseline method tends to land at the edge of a grid. The parameter ranges explored by our grid search are:

Batch Size 1: (parameters chosen by running for 20 epochs)

• SGD: learning rate: {0.01, 0.01 √ 10, 0.1, 0.1 √ 10, 1, √ 10, 5, 10, 20, 10 √ 10, 40, 60, 80, 100.

• NAG/HB: learning rate: {0.01 √ 10, 0.1, 0.1 √ 10, 1, √ 10, 10}, momentum {0, 0.5, 0.75, 0.9, 0.95, 0.97}.

• ASGD: learning rate: {2.5, 5}, long step {100.0, 1000.0}, advantage parameter {2.5, 5.0, 10.0, 20.0}.

Batch Size 8: (parameters chosen by running for 50 epochs)

• SGD: learning rate: {0.001, 0.001 √ 10.0, 0.01, 0.01 √ 10, 0.1, 0.1 √ 10, 1, √ 10, 5, 10 , 10 √ 10, 40, 60, 80, 100, 120, 140}.

• NAG/HB: learning rate: {5.0, 10.0, 20.0, 10 √ 10, 40, 60}, momentum {0, 0.25, 0.5, 0.75, 0.9, 0.95}.

• ASGD: learning rate {40, 60}. For a long step of 100, advantage parameters of {1.5, 2, 2.5, 5, 10, 20}. For a long step of 1000, we swept over advantage parameters of {2.5, 5, 10}. 

:



Figures and Tables:

Figure 1: Plot of 1/rate (refer equation (1)) vs condition number (κ) for various methods for the linear regression problem. Discrete distribution in the left, Gaussian to the right.

Figure 2: Training loss (left) and test loss (right) while training deep autoencoder for mnist with minibatch size 8. Clearly, ASGD matches performance of NAG and outperforms SGD on the test data. HB also outperforms SGD.

Figure 3: Training loss (left) and test loss (right) while training deep autoencoder for mnist with minibatch size 1. Interestingly, SGD, HB and NAG, all decrease the loss at a similar rate, while ASGD decays at a faster rate.

Figure 4: Test zero one loss for batch size 128 (left), batch size 8 (center) and training function value for batch size 8 (right) for SGD, HB and NAG.

Figure 5: Test zero one loss for batch size 128 (left), batch size 8 (center) and training function value for batch size 8 (right) for ASGD compared to HB. In the above plots, both ASGD and ASGD-Hb-Params refer to ASGD run with the learning rate and decay schedule of HB. ASGD-Fully-Optimized refers to ASGD where learning rate and decay schedule were also selected by grid search.

Figure 6: Test zero one loss for batch size 128 (left), batch size 8 (center) and training function value for batch size 8 (right) for ASGD compared to NAG. In the above plots, ASGD was run with the learning rate and decay schedule of NAG. Other parameters were selected by grid search.

and adversarial errors(d'Aspremont, 2008;Devolder et al., 2014). A result ofJain et al. (2017) developed the first provably accelerated SGD method for linear regression which achieved minimax rates, inspired by a method ofNesterov (2012b). Schemes ofGhadimi & Lan (2012; 2013);Dieuleveut et al. (2016), which indicate acceleration is possible with noisy gradients do not hold in the SFO model satisfied by algorithms that are run in practice (seeJain et al. (2017) for more details).

B is a linear operator acting on d × d matrices such thatB • M def = M -δHM -δM H + δ 2 E x, M x xx .Similarly, HB, NAG and ASGD also have corresponding operators (see Appendix A for more details on the operator corresponding to HB).

Figure 7: Expected rate of error decay (equation 1) vs condition number for various methods for the linear regression problem. Left is for discrete distribution and right is for Gaussian distribution.

Figure 8: Training loss for batch sizes 128 and 8 respectively for SGD, HB and NAG.

Figure 9: Training function value for ASGD compared to HB for batch sizes 128 and 8 respectively.

Figure 10: Training function value for ASGD compared to NAG for batch size 128 and 8 respectively.

Algorithm 2 NAG: Nesterov's AGD with a SFO Require: Initial w 0 , stepsize δ, momentum α 1: v 0 ← w 0 ; t ← 0 /*Set v 0 to w 0 */ 2: while w t not converged do

Table content: <table><tr><td/><td/><td>3:</td></tr><tr><td/><td colspan="2">Sum of stochastic gradient step and mo-</td></tr><tr><td/><td>mentum*/</td></tr><tr><td>4:</td><td>t ← t + 1</td></tr><tr><td colspan="2">Ensure: w t</td><td>/*Return the last iterate*/</td></tr></table>

We present an intuitive and easier to tune version of ASGD (see Section 4) and show that ASGD can provide significantly faster convergence to a reasonable accuracy than SGD, HB, NAG, while still providing favorable or comparable asymptotic accuracy as these methods, particularly on several deep learning problems.

Table content: <table><tr><td/><td/><td>Sum of SGD</td></tr><tr><td/><td colspan="2">step and previous iterate*/</td></tr><tr><td>5:</td><td>t ← t + 1</td></tr><tr><td colspan="2">Ensure: w t</td><td>/*Return the last iterate*/</td></tr><tr><td colspan="3">pirical evidence through training deep residual networks on cifar-10, with a batch size of 8</td></tr><tr><td>(see Section 5.3).</td><td/></tr><tr><td>4.</td><td/></tr></table>



Table content: <table><tr><td colspan="3">Algorithm Slope -discrete Slope -Gaussian</td></tr><tr><td>SGD</td><td>0.9302</td><td>0.8745</td></tr><tr><td>HB</td><td>0.8522</td><td>0.8769</td></tr><tr><td>NAG</td><td>0.98</td><td>0.9494</td></tr><tr><td>ASGD</td><td>0.5480</td><td>0.5127</td></tr></table>

Final test errors achieved by various methods for batch sizes of 128 and 8. The hyperparameters have been chosen by grid search.

Table content: <table><tr><td colspan="3">Algorithm Final test error -batch size 128 Final test error -batch size 8</td></tr><tr><td>SGD</td><td>8.32 ± 0.21</td><td>9.57 ± 0.18</td></tr><tr><td>HB</td><td>7.98 ± 0.19</td><td>9.28 ± 0.25</td></tr><tr><td>NAG</td><td>7.63 ± 0.18</td><td>9.07 ± 0.18</td></tr><tr><td>ASGD</td><td>7.23 ± 0.22</td><td>8.52 ± 0.16</td></tr></table>

Peer review (iclr2018):
 I only got access to the paper after the review deadline; and did not have a chance to read it until now. Hence the lateness and brevity. The paper is reasonably well written, and tackles an important problem. I did not check the mathematics. Besides the missing literature mentioned by other reviewers (all directly relevant to the current paper), the authors should also comment on the availability of accelerated methods inn the finite sum / ERM setting. There, the questions this paper is asking are resolved, and properly modified stochastic methods exist which offer acceleration over SGD (and not through minibatching). This paper does not comment on these developments. Look at accelerated SDCA (APPROX, ASDCA), accelerated SVRG (Katyusha) and so on. Provided these changes are made, I am happy to suggest acceptance.