Robust Accelerated Gradient Methods for Smooth Strongly Convex Functions
Necdet Serhat Aybat, Alireza Fallah, Mert Gurbuzbalaban, Asuman Ozdaglar
Introduction
For many large-scale convex optimization and machine learning problems, first-order methods have been the leading computational approach for computing low-to-medium accuracy solutions because of their cheap iterations and mild dependence on the problem dimension and data size. The typical analysis of first-order methods assumes the availability of exact gradient information and provides statements on the rate of convergence to the optimal solution as the main performance criterion. However, in many applications, the gradient contains deterministic or stochastic errors either because the gradient is computed by inexactly solving an auxiliary problem , or the method itself involves errors with respect to the full gradient as in standard incremental gradient, stochastic gradient, and stochastic approximation methods . When there are persistent errors in gradients, the iterates do not converge and could oscillate in a neighborhood of the optimal solution or may even diverge . This makes robustness of the algorithms to gradient errors (in terms of solution accuracy) another important performance objective . In particular, even though accelerated gradient method proposed by Nesterov converges faster than gradient descent (GD) in the absence of noise for convex problems , it was shown that they are less robust to errors, i.e., accelerated methods require higher precision gradient information than GD to achieve the same solution accuracy .
In this paper, we study the trade-offs between convergence rate and robustness to gradient errors in designing a first-order algorithm. We focus on GD and Nesterov’s accelerated gradient (AG) method for minimizing strongly convex smooth functions when the gradient has stochastic errors and investigate how the parameters of each algorithm should be set to achieve a particular trade-off between these two performance objectives. To study this question systematically, we employ tools from control theory whereby we represent each of the algorithms as a dynamical system. This approach has attracted recent attention and has already led to a number of insights for the design and analysis of optimization algorithms . The novelty of our work is to use this approach to provide explicit characterizations of robustness, which can then be placed in a computationally tractable optimization problem for selecting the algorithm parameters to systematically achieve a desired trade-off.
We first focus on problems with a strongly convex quadratic objective function. For this case, the rate of convergence of any of the two algorithms we study is given by the spectral radius of the “state-transition" matrix in the dynamical system representation. To characterize robustness, we consider the asymptotic expected suboptimality for the centered iterate sequence (output vector of the dynamical system) per unit noise which is a measure of the asymptotic accuracy of the iterates. For the quadratic case we show that this limit exists and can be characterized using the norm of a transformed linear dynamical system. The norm is a fundamental measure for quantifying robustness of a linear system to noise and admits various definitions and characterizations. We focus on a particular representation of the norm that requires the solution of a discrete Lyapunov equation. This representation leads to explicit expressions for robustness of GD and AG.
Using this result, we study the rate and robustness trade-off of the GD method for minimizing quadratic strongly convex functions. The spectral radius of the state-transition matrix corresponding to GD dynamics, hence, the rate of convergence for GD, can be expressed in terms of the smallest and largest eigenvalues of the positive definite matrix defining the Hessian of the strongly convex quadratic objective. We show that our robustness measure admits a tractable characterization for GD in terms of the spectrum of . We also show a fundamental lower bound on the robustness level of an algorithm for any achievable convergence rate.
We next consider the AG method defined by two parameters: stepsize and momentum parameter . Our first step is to characterize the stability region of the method, i.e., the set of nonnegative for which the spectral radius of the state-transition matrix is less than or equal to one. Similar to GD, we then provide an explicit characterization of the norm of the dynamical system representation of AG. We use these explicit expressions for both GD and AG within an optimization problem for selecting the parameters to minimize the robustness measure subject to a given upper bound on the convergence rate. Our results show that AG with properly selected parameters is superior to GD in the sense that AG can achieve the same rate with GD while being more robust to noise; similarly, AG can be tuned to be faster than GD while achieving the same robustness level. This behavior contrasts with the comparison of GD and AG in the deterministic gradient error setting in , which shows GD performance degrades gracefully while AG may accumulate error. These results show the random and deterministic noise settings have different behavior.
In addition to the above cited papers, Devolder’s Ph.D. thesis is closely related to our paper. Chapters 4 and 6 of this thesis, considered smooth weakly convex functions under a deterministic oracle model whereas Chapter 7 focused on a stochastic oracle model; these general oracles can model inexactness in the gradients as well as function evaluations. In the deterministic oracle case, Devolder shows that primal gradient method (PGM) and the dual gradient method (DGM) on smooth weakly convex objectives exhibit slow convergence with a rate but without accumulation of errors (the total effect of errors after iterations is equal to the individual error of each first-order information); whereas accelerated gradient methods converge faster with rate but suffers from accumulation of errors at a linear rate . Based on these observations, Devolder et al. design a novel family of first-order methods called intermediate gradient methods (IGM) for solving smooth weakly convex problems; these methods have an intermediate speed and intermediate sensitivity to gradient errors, i.e., faster than classical gradient methods and more robust to noise than the accelerated gradient methods. In the stochastic oracle case, Devolder developed a class of accelerated gradient methods for weakly convex functions with decaying stepsize rules and showed that the expected suboptimality admits the convergence rate as opposed to the rate of PGM and DGM, where is the distance of the initial point to the optimal solution, is the Lipschitz constant for the gradient of the objective and is the level of the stochastic noise [13, Ch. 7]. In his thesis, Devolder studied also smooth and strongly convex objectives under the same deterministic oracle model, showing that both PGM and DGM converge with a rate that is proportional to without accumulation of errors where is the strong convexity constant, whereas accelerated gradient converges faster proportional to while the error accumulation behaves like up to a constant [13, Chapter 5]. On the other hand, the smooth and strong convex objectives subject to stochastic errors was left as future work [13, Ch. 8.1.1]; and this is the setting considered in our paper where we focus on stochastic additive gradient errors for strongly convex objectives, which arises in a number of problems in machine learning and large-scale optimization . In this setting, Ghadimi and Lan propose an accelerated method called AC-SA for solving strongly convex composite optimization problems obtaining an optimal rate matching the lower complexity bounds for stochastic optimization. Flammarion and Bach considered accelerated versions of gradient descent for quadratic optimization that attain the optimal rates for both the bias and variance terms, respectively, in the performance bounds. Michalowsky and Ebenbauer posed the design of deterministic gradient algorithms as a state feedback problem and used robust control theory and linear matrix inequalities to study them. Mohammadi et al. examined the sensitivity of accelerated algorithms to stochastic noise for strongly convex quadratic functions in terms of the steady-state variance of the optimization variable. Finally, Dvurechensky et al. consider composite convex optimization problems with inexact first-order oracles having both deterministic and stochastic errors; indeed, their inexact oracle is an extension of the one adopted in to include stochastic errors. For this setting, Dvurechensky et al. propose a stochastic version of the intermediate gradient method in and analyze the convergence rate in terms of expected suboptimality and error accumulation due to inexact oracle; the proposed algorithm in has complexity bounds matching the optimal lower complexity bounds for composite convex problems with stochastic inexact oracle as in . Finally, Hu et al. analyze the stochastic gradient method under deterministic noise and study the effect of the stepsize on the convergence rate and the asymptotic neighborhood of convergence. These papers focus on convergence rate of the algorithms, whereas our goal is to define robustness and design algorithms to successfully trade-off different objectives. Furthermore, we make some connections between the robustness of a first-order method and its behavior when perturbed from the optimal solution and show that AG is more resilient to perturbations in the sense that it recovers the optimal point with less energy compared to GD for sufficiently small stepsizes. We will also demonstrate in our numerical experiments that the framework we propose is competitive in practice with the existing state-of-the-art algorithms from the literature and can outperform them in some problems, illustrating the potential of the proposed framework in practice. In fact, in a companion paper, we use our framework to develop a universally optimal multi-stage stochastic gradient algorithm for stochastic optimization which achieves the lower bounds without assuming a known bound for suboptimality or the variance of the gradient noise.
(see e.g. ) where the gradient is represented as a column vector. The ratio is called the condition number of . In many places, we also use the following relation for strongly convex smooth functions.
For our subsequent analysis, we represent the preceding relation in matrix form:
Optimization Algorithms as Dynamical Systems
Our goal is to design first-order algorithms with certain rate-robustness balance to solve
when the gradient is corrupted by random errors in the form of additive white noise. We denote the unique optimal solution of problem (3) by . We will focus on Gradient Descent (GD) and Accelerated Gradient Descent (AG) and show how the parameters of these algorithms can be tuned to optimize various performance metrics.
Our analysis builds on a dynamical system representation of these algorithms. A discrete-time dynamical system with a feedback rule can be expressed as
which can be cast as (4) by setting , and letting
On the other hand, when implemented on (3), the AG method with constant stepsize and momentum parameter generates the iterates as follows for :
Setting and defining the state vector , AG iterations can be rewritten as in (4) for
For both algorithms, the iterates are captured by the state of the dynamical system representation.
where , , , and are selected according to (6) for GD or (8) for AG.Although our focus in this paper will be primarily on GD and AG dynamics under noise, it will be clear from our discussion that our ideas naturally extend to many other algorithms that admit such a dynamical system representation including the heavy-ball and the robust momentum methods . Except for Section 5 where we study deterministic perturbations, we assume throughout this paper that the sequence of random variables satisfies the following assumption.
It is worth emphasizing that robustness can also be studied in the solution space. Indeed, let be a random iterate sequence corresponding to (9) where models the additive noise sequence and satisfies Assumption 2.1. Due to the noise injected at each step, the sequence will oscillate around the optimal solution with a non-zero variance; therefore, another natural metric to measure robustness is the worst-case limiting distance to the optimal solution along all possible iterate subsequences, i.e.,
Quadratic Functions
where is the optimal solution to problem (3). Plugging the formula for the gradient from (12) into (9), we obtain
where is the state-transition matrix given by .
Recall the robustness definition given in (10). In the next lemma, we focus on the suboptimality sequence, for quadratic and we show that the limit,
exists; moreover, for some such that , we have
The limit in (16) can be evaluated by using the tools from standard theory arising in robust control of dynamical systems (see e.g. ) as we shall explain below. The -norm is a well-known fundamental metric for quantifying the robustness of a linear dynamical system to noise in control engineering and has been widely used in designing the parameters of control systems subject to noise. Given arbitrary matrices and , consider a linear system as in (4) but without feedback . Suppose there exists and such that and . The -norm of this linear system, denoted by , measures the stationary variance of the output response to unit white noise input , i.e.,
The norm admits alternative definitions, which are all equivalent for linear systems (see e.g. ). When it is clear from the context, we will remove the dependency of the norm to the system matrices . The -norm can be computed as
(see e.g. ). Moreover, if is positive definite and is discrete-time stable (i.e., ), the solution admits the following formula:
(see e.g. ). We will show in the following lemma that the limit in (16) exists for quadratic objectives. Our proof technique is based on relating to the norm of a transformed linear system as follows: We first rewrite the suboptimality in terms of the iterates :
where we used the fact that , and is the Cholesky decomposition of . If we consider the system defined by matrices , it follows from the definition of the norm (18) and (22) that
holds for some explicitly given positive constant that depends on the initialization . Furthermore, when is symmetric, for every .
where the last equality comes from recursively using the first equality. This implies
where is the spectral norm, and the first inequality in (28) follows from the Von Neumann’s trace inequality which states that for any two matrices and with singular values and , respectively, we have. Finally, it follows from the Gelfand’s formula that there exists a sequence of non-negative numbers such that for every , and . Note that when is symmetric, we have so that we can choose . Inserting this bound into (28), we obtain the desired result. ∎
2 Gradient descent (GD) method
The dynamical system representation of GD, choosing the as in (6) yields
As shown in Lemma 3.1, the convergence rate of GD is given by . For GD, we will suppress the dependence of on and use the notation to highlight the effect of the stepsize . Since is symmetric, can be computed as
is a necessary condition for global linear convergence; otherwise, . In particular, it is well-known that the fastest rate is achieved for the stepsize
which leads to a convergence rate of . The choice of the stepsize not only affects the rate (see (29)) but also the robustness of the GD algorithm to gradient noise. The following proposition provides an analytical characterization of the robustness of the GD method as a function of the stepsize, which we denote by to highlight its dependence on .
Let be a quadratic function of the form . Consider the GD iterations given by (5) with constant stepsize . Then the robustness of the GD method is given by
where are the eigenvalues of .
We first show that without loss of generality we can assume is a diagonal matrix. Let be the eigenvalue decomposition of where is a unitary matrix and is a diagonal matrix containing the eigenvalues of . Multiplying by and from left and right leads to
where is a diagonal matrix. Similarly, we multiply the Lyapunov equation (24) from left and right by and , which yields , where we have used the fact that for the dynamical system representation of the GD method (see (6)). It follows from (32) that , which when plugged into the Lyapunov equation above, yields . This means that the matrix solves the Lyapunov equation obtained by replacing by in (24). Furthermore, the Cholesky decomposition of is equal to ; thus, the robustness , corresponding to , is equal to
where we used for GD for the first equality and the fact that the Cholesky decomposition of is to obtain the second equality. Therefore, robustness would be invariant if we were to replace by and solve the Lyapunov equation (24) for instead of . With this replacement, it is easy to verify that the solution of the Lyapunov equation is as and are both diagonal. Plugging this solution into implies which completes the proof. ∎
Proposition 3.2 also shows that the robustness for the GD method is an increasing function of . This means choosing a smaller stepsize leads to GD being more robust which has been previously observed in the literature for both additive and multiplicative deterministic noise .
Having explicit expressions for both convergence rate and robustness for GD (see (29) and (31)), given an allowable deviation from the optimal convergence rate , a natural approach to account for the trade-off between these two measures is to choose the stepsize that results in the most robust algorithm satisfying the rate constraints, i.e., optimizing
This problem is equivalent to the following convex problem for (which ensures that the upper bound on the rate is less than one and the optimization problem (33) admits a solution):
Indeed, is a nondecreasing convex function for and is convex in ; therefore, both and in (31) are convex for and is increasing in . Moreover, (34) satisfies the Slater condition. Thus, strong duality implies that there exists (which is a function of ) such that the above minimization problem is equivalent to the following unconstrained problem:
The parameter determines the trade-off between rate and robustness. For small , the dominant term in the cost would be so that we expect the optimal stepsize to be small since is an increasing function of . On the other hand, for large enough , the convergence rate is the dominant term in the cost; therefore, one would expect the optimal stepsize (that solves the problem (35)) to be close to which corresponds to the fastest achievable rate (see (30)). In order to get more intuition about the effect of the choice of the stepsize parameter, we next give an illustrative example in dimension to show the behavior of the optimal as the tradeoff parameter is varied from zero to infinity. For computational tractability, we consider the unconstrained version of the problem given in (35).In Proposition A.1 of the appendix, we derive the first-order conditions for that allows it to be computed up to an arbitrary accuracy.
In dimension , let and consider the parameters
The first-order optimality conditions for (35) is derived in Proposition A.1 which is equivalent to a polynomial root finding problem in for a polynomial of degree . The roots of polynomials can be found up to arbitrary accuracy by calculating the eigenvalues of the corresponding companion matrix , for instance using the roots function in Matlab. After a careful examination of all the roots, we conclude that the optimal stepsize that minimizes the cost is which gives the rate and robustness . This point is marked on Figure 1 below which shows the robustness level as a function of the optimal convergence rate when we change from zero (corresponds to the rightmost point in the curve) to infinity (corresponds to the uppermost point in the curve) for the parameters in (36).
The left and the middle panels of Figure 1 show the convergence rate and robustness corresponding to the optimal stepsize as a function of the trade-off parameter . As goes to , the robustness term is more dominant which requires a smaller stepsize; therefore, goes to and thus goes to . As becomes larger, convergence rate becomes more important, and the stepsize also becomes larger to ensure faster convergence. In particular, as goes to infinity, goes to given in (30)leading to the fastest rate, .
Finally, the rightmost panel of Figure 1 illustrates the trade-off between the rate and robustness. We se that for small , the optimal stepsize is smaller which implies improved robustness but slower convergence. As grows, we achieve faster rate at the expense of being less robust to the additive gradient noise. In addition, the points corresponding to the fastest rate, i.e., , and standard parameter choice for GD has been marked on this trade-off curve.
We see from Figure 1 that smaller values of (or equivalently smaller values of ) are accompanied by larger values of . This suggests that the product cannot be too small for any choice of the stepsize . The next lemma shows that there are some fundamental limits (lower bounds) on how robust the GD can be.
Let and be given by (29) and (31), respectively. Then, the following inequality holds \mathcal{J}(\alpha)\geq\big{(}1-\rho^{2}(\alpha)\big{)}\sum_{i=1}^{d}\frac{1}{8\lambda_{i}} for any choice of the stepsize .
It follows from (29) that for every , we have . This implies that . Multiplying both sides by and summing over all yields . Given the explicit characterization of in Proposition 3.2 (see (31)) we obtain
The right hand side of (37) admits a lower bound as follows:
where the last inequality follows from the fact that . Using the lower bound (38) along with (37) completes the proof. ∎
3 Accelerated gradient (AG) method
The dynamical system representation of AG, given in (8) leads to
We will first formulate an analogous problem to (35) for the AG method to design the parameters in a way to find a trade-off between the rate and the robustness. Because AG has the pair as design parameters, the analogue of (35) is
where is the robustness to the noise for the system (14), is the convergence rate of AG with parameters and is the set of all possible choices of the tuple so that the AG iterations are globally convergent, i.e.,
We call , the stability region of , in analogy with the stability region of numerical methods that arise in the discretization of continuous-time differential equations.
We next provide an explicit characterization for the convergence rate and robustness of AG for any given parameters . The convergence rate of the AG method as a function of and is well-known. Diagonalizing the matrix using the eigenvalue decomposition of , it can be shown after some computations that the rate admits the following formula
where is defined by (39) and is defined for as follows:
(see e.g. [33, Appendix A], [38, Section 4.3]). The explicit expression (42) for the rate allows us to characterize the set in the next proposition whose proof can be found in the appendix. We illustrate the set in Figure 2 for different choices of the parameters and .We note that the stability region of a second-order difference equation that arises in accelerated algorithms that are sublinearly convergent for weakly convex quadratic functions has been studied in , however these results do not apply to the set as we do not require the rate to be accelerated (we consider not only accelerated rates but also any rate less than one) and we consider strongly convex functions instead of weakly convex functions.
Let be the stability set of Nesterov’s accelerated method defined by (41). Then its closure is given by the union of the following three sets:
with the convention that is the empty set if .
The next proposition gives a characterization of the robustness of AG whose proof can be found in the Appendix C.
Let be a quadratic function of the form . Consider the AG iterations given by (7) with parameters . Then the robustness of the AG method is given by
where are the eigenvalues of and
In the special case, choosing reduces to the formula (31) derived for GD.
Since we have an exact characterization of , we can derive the optimality conditions for the problem (40) by an approach similar to Proposition A.1, where the optimizer can be characterized as a root of some polynomial. In dimension , given parameters and , the optimizer is easy to compute. However, in high dimensions, this is computationally expensive as it would require determining all the eigenvalues of which can be as expensive as optimizing the objective function . Nevertheless, exploiting the convexity properties of the function , we develop a tractable upper bound for that only depends on and , hence tractable. Moreover, in the numerical experiments section, we present experiments illustrating that this approach can lead to good performance in terms of trading the speed and the robustness of an algorithm.
To develop this upper bound, first, we show in Lemma D.1 that the function defined in (46) is convex in for fixed . Therefore, its maximum is attained at one of the endpoints of this interval, i.e.,
Substituting this upper bound in (45) and (40) leads to
This objective only depends on and and is differentiable everywhere in the interior of the stability region except when the first term is not differentiable, i.e., when , or the second term is not differentiable, i.e., when or or . Furthermore, following a similar approach as in Example 3.4, the first order optimality conditions with respect to and results in low-order polynomials (that are independent of the dimension ) which can be solved efficiently up to any accuracy. Thus, other than checking the non-differentiable points of , the bottleneck in computational complexity is determined by computing the roots of a polynomial with a small degree (whose degree is independent from the dimension ), which is easy to compute even in high dimensions.
Strongly Convex Functions
The goal is to extend the definitions of rate and robustness from the quadratic case to general strongly convex functions. We will use
(provided also in (10)) to define the robustness of an algorithm and study the convergence rate of the expected suboptimality to an interval around zero with radius . For both GD and AG, our main results provide upper bounds of the form:
where , , and are non-negative numbers all of which depend on algorithm parameters and the initial point . Clearly, is an upper bound on ; we will show in this section that our bounds are tight. Moreover, we also recover the fastest known rates in the literature in the absence of noise (=0). Our upper bounds only depend on and , and are computationally tractable and explicit in some cases. With these upper bounds, one can formulate an optimization problem similar to that of the previous section to find the algorithm parameters that can achieve a particular trade-off between rate and robustness.
2 Rate and robustness trade-off analysis using Lyapunov functions
We use a Lyapunov function approach to provide a bound as in (51) for both GD and AG methods. In particular, we consider a family of Lyapunov functions parameterized by a non-negative constant and a positive semidefinite matrix as
where , and study the change in the Lyapunov function along generated by the dynamical system representation (49).
Consider the Lyapunov function where . Then, we have
for every ; hence, it follows from (57) and (58) along with (55) that
This MI based approach has been used in the literature to study the convergence rate of first-order methods, e.g., . Here we use it to characterize their rate and robustness under additive gradient noise.
3 Gradient descent (GD) method for strongly convex functions
which admits the dynamical system representation in (49) with as in (6). The next theorem extends the result of Proposition 3.2 to general strongly convex functions and characterize the behavior of under additive gradient error.
holds where and . Then for all :
Noting that for GD, it follows from (2) with and that (58) holds for and . Moreover, (61) implies that (57) holds for and ; therefore, (59) yields
With for GD, we have and this completes the proof. ∎
Note that for a fixed , a smaller makes both terms of (62) smaller as is an increasing function of . If , it was shown in that there exist such that the MI in (61) holds; moreover, for a given fixed, the smallest for which such a positive exists is equal to
as in (29) given for quadratic functions. Using in (62) leads to the following upper bound for GD. Trivially, . More details are provided in Appendix E as a supplementary material.
where and is given in (64). As a consequence,
Using the fact that for together with Proposition 4.3 yields the desired result. ∎
Note that by substituting in (65), we obtain . This bound is tight, as Proposition 3.2 implies that for quadratic functions .
4 Accelerated Gradient (AG) method for strongly convex functions
We next consider the AG algorithm with gradient noise given by
As before, these iterations admit the dynamical system representation in (49) with as in (8). We use the following result which extends Lemma 3 in to the case with noisy gradient.
Setting and in the second inequality in (1) leads to
Similarly, setting and in (1) yields to
Note that ; hence, (69) implies
Next, in a similar way, setting and in (1), and summing the second inequality with (68) leads to
Multiplying (70) by and (71) by , and summing them will lead to the desired result. ∎
for and defined in Lemma 4.5. Then the following bounds hold for all :
Using (2) for and along with the fact yields
This inequality along with Lemma 4.5 implies that (58) holds for and . Moreover, (72) implies that (57) holds for this . Therefore, (59) holds and completes the proof. ∎
where . As a consequence, .
Using this result, the next corollary characterizes the rate and robustness of the AG method with a particular parameterization.
where , and ; hence, .
Therefore, the desired result follows from Corollary 4.7. ∎
5 Approximating the rate and robustness trade-off curve
In particular, for GD, the best robustness level while asking for linear convergence with rate or faster is obtained by solving
where is given in (64). The function is convex and piecewise linear in over the interval with a unique minimum at and it satisfies on the boundary points. Therefore, it follows from this property that, given , there are exactly two values such that which we can explicitly compute as or . The former value is strictly smaller as and here. From the formula (65), we have . Clearly one should select the smaller value to minimize the robustness bound, i.e., a choice of leads to rate with a robustness bound , i.e., .
For AG, we can also write an analogous optimization problem in order to trade rate with robustness:
The first approach is similar to the one we used for GD. In particular, consider Corollary 4.9, for , choosing implies that . We get for
with \epsilon\in\big{[}0,\sqrt{\frac{\sqrt{\kappa}}{\sqrt{\kappa}-1}}-1\big{)} to make sure the rate is smaller than . Thus, choosing with guarantees the rate . In addition, Corollary 4.9 implies the robustness bound for this case.
with and defined in Corollary 4.7, and as given above. In fact, for a fixed , this is a small dimensional convex SDP problem and can be solved easily.
Thus, we first grid the AG parameter space, i.e., and for given trade-off parameter , we solve many 4-dimensional SDPs, i.e., for each ,
and this bound can be achieved for some choices of . For large , we have clearly . In Figure 3, we plot the latter quantity versus the convergence rate (marked in purple color) to demonstrate the rate-robustness curve for AG in the case of quadratic objective functions. We observe from Figure 3 that our bounds for the quadratic case are tighter than those for general strongly convex functions as expected.
Asymptotic stability of the optimum with respect to perturbations
Our discussion so far has focused on the robustness of first-order methods with respect to random noise in the gradients, which we quantify by defined in (10). Our robustness measure is based on the norm of an associated linear dynamical system. It is well known that the norm of a dynamical system is closely related to the asymptotic stability of the equilibrium (which is characterized by the optimal solution to (3) in our setup) in the sense that it quantifies how quickly the system can converge back to the equilibrium if it is unsettled from its equilibrium in the direction of a coordinate . More specifically, for each , let be the iterate sequence corresponding to (49) whenever for where is the -th basis vector, i.e., we perturb the system from its equilibrium with an impulse input in the direction of . Let
where is the norm of the sequence . It is worth noting that is the same as the iterate sequence of the noiseless system (4) with initial state , and .
For GD, the following bound holds for all
where is defined in (64). Moreover, for AG, given , setting , the perturbation stability can be bounded as .
Recall that is the same as the iterate sequence of the noiseless system (4) with initial state . Hence, Proposition 4.3 with implies that
for some and for any and stepsize . Thus, , which implies for all since for GD. Therefore, we have . Moreover, given any stepsize for GD, using (64), which is the smallest value for which (88) holds, we obtain (87). On the other hand, for AG, using Corollary 4.9 with and the fact that , we get for and , where we used for . Thus,
Numerical Experiments
Our first set of experiments concern a further study of Example 3.4 for comparing AG and GD in terms of performance. In the leftmost plot of Figure 4, we vary the trade-off parameter from to for AG and plot the robustness level versus the rate corresponding to the optimal parameters , we also plot the analogous curve for GD (the same curve from Figure 1) to compare. We observe that for the same achievable convergence rate, the optimized AG parameters lead to more robust algorithms compared to the optimized GD algorithms as AG has an additional parameter to optimize robustness over. This shows that AG can improve GD in terms of both convergence rate and robustness at the same time when gradients are subject to white noise. This result is in contrast with the deterministic gradient error setting in , which shows that GD performance degrades gracefully while AG may accumulate error. Therefore, our results suggest that AG algorithms can tolerate random noise better than deterministic noise to preserve their accelerated rates, which is also inline with the theoretical findings of . Also it is interesting to note that the popular choice of parameters (blue and red dots), as well as the parameters that lead to the optimal (fastest) rate (green and purple dots) lie on curves that trade robustness with rate in an optimal fashion.
Next, we illustrate the tightness of our upper bound provided in (47) to the (true) robustness level . This upper bound results in a small scale optimization problem (48) that allows trading-off robustness and the convergence rate in a way that computationally tractable, even in high dimensions. The middle plot of Figure 4 shows the convergence rate and robustness obtained by solving (40) versus solving (48). The objective is a random quadratic function in dimension with parameters . Our results show that for any trade-off parameter our upper bound is within a factor of of true parameters, illustrating the accuracy of this approximation to the optimal parameters for different levels of robustness, especially the approximation is more accurate when the trade-off parameter is larger (in which case the convergence rate is closer to 1). We obtain quantitatively similar results repeating this experiment with other randomly generated quadratic functions.
Next, we illustrate our framework to trade-off robustness and convergence rate on a quadratic optimization problem, similar to the one considered in where it is shown that AG algorithms with standard choice of parameters have difficulty to handle random gradient noise. We consider the quadratic function in dimension where is the Laplacian of a cyclic graph, is a regularization parameter to make the problem strongly convex and is a random vector. As it can be seen in the rightmost plot of Figure 4, we show that when properly modified, AG can be both faster and more robust in comparison with GD.
In the leftmost plot of Figure 5, we compare the tuned AG with other algorithms such as AC-SA and the Flammarion-Bach algorithm . For this purpose, we consider the same quadratic test problem from in dimension , where the eigenvalues of its Hessian are set equal to for . Our results show that modified AG can trade robustness with the convergence rate successfully and can improve upon AC-SA and Flammarion-Bach algorithm on this example.
Conclusion
We consider the gradient descent (GD) and accelerated gradient (AG) methods for optimizing strongly convex functions. We developed a computationally tractable framework to design their parameters in a way to trade between two conflicting performance measures: the convergence rate and the robustness to additive white noise in the gradient computations measured in terms of final asymptotic variance of the algorithm output. For strongly convex quadratics, we show that this robustness measure is equal to the norm of a dynamical system associated to the optimization algorithm and give an explicit characterization of this quantity. Our results show that for the same achievable rate, AG can always be tuned to be more robust. Similarly, for the same robustness level, we show that AG can be tuned to be always faster than GD. We also give fundamental lower bounds on the achievable robustness level for gradient descent for a given achievable rate. We show how our analysis can be extended to smooth strongly convex functions and we derive upper bounds on the robustness measures for GD and AG.
Acknowledgments
The work of Necdet Serhat Aybat is partially supported by NSF Grant CMMI-1635106. Alireza Fallah is partially supported by Siebel Scholarship. Mert Gürbüzbalaban acknowledges support from the grants NSF DMS-1723085 and NSF CCF-1814888.
References
There exists an optimizer to the minimization problem (35). Furthermore, any optimizer is either or it satisfies one of the following two conditions:
Therefore, by examining the values of at the points that satisfy this equality and inequality constraints, we can determine the optimal stepsize .
The optimal cannot be attained on the boundary points of the interval as is not finite at these points. Therefore, it suffices to solve the optimization problem over the open interval where is differentiable with respect to except when , i.e. when . For , we can write-down the first-order conditions of optimality which leads to (89) and (90). ∎
Appendix B Proof of Proposition 3.6
In the light of the formula (42) that characterizes , the closure of the stability set admits the representation where for we define
We first write as a union of two disjoint sets depending on the signature of : where
It follows from the definition of in (43) that if and only if ; and when this condition holds, if and only if Therefore,
We next focus on . Note that if and only if
If (94) is satisfied, then if and only if . There are two cases:
1) and : In this case, if and only if , where . By squaring both sides, this is if and only if, The first inequality holds if whereas the second inequality holds if The first inequality is more binding, if it holds the second inequality holds too. Therefore,
2) and : In this case, if and only if where . After squaring both sides, this is if and only if
where the first inequality simplifies to . (96) along with (94) means which implies ; therefore,
To complete the proof, due to the representation (91), it suffices to compute the intersection . There are several cases to consider depending on the value of :
1) First, consider . In this case , and hence (98) implies if whereas if . Nevertheless, if then , so the first case always holds; hence, .
2) Now, assume . Then , and thus (98) yields where the second inequality again simplifies to .
3) The last possible case happens when , and so is possible. In this case , and so using (98), we just need to check Considering all these cases along with the fact that (98) shows cannot be greater than completes the proof.
Appendix C Proof of Proposition 3.7
Similar to the analysis for GD, we can assume without loss of generality that is diagonal. The proof is also similar. Consider be the eigenvalue decomposition of . Then in (39) can be written as
Replacing from (99) in Lyapunov equation (20) implies
Let be the permutation matrix associated with the permutation over the set that satisfies for and for . It is well-known that permutation matrices satisfy ; therefore, multiplying Lyapunov equation (20) by and from left and right, respectively, leads to
where . It follows from (39) that
and are the eigenvalues of . Since , is a by diagonal matrix with on entries and zero elsewhere. Hence, that solves (103) is a block diagonal matrix in the form: , where satisfies the equality
for all . This is equivalent to the linear system:
Solving this system of equations, we obtain:
The can be computed using
The matrix is block diagonal with matrices on its diagonal. Therefore, using (104), the robustness measure is equal to
We next show that appearing in the definition of the for the AG algorithm is convex with respect to .
Let where is the stability region of the dynamical system representation of AG given by (41). The function defined by (46) is convex on the interval .
Appendix E Defining rate and robustness based on iterates
The robustness can be evaluated precisely for GD and AG method same as what we did in Section 3 for . For GD method with constant stepsize , the robustness to noise in terms of iterates is denoted as to show the dependence to . The following proposition, which can be proved similar to Proposition 3.2, shows the explicit characterization of .
Let be a quadratic function of the form . Consider the GD iterations given by (5) with constant stepsize . Then the robustness of the GD method in terms of iterates is given by
where are the eigenvalues of .
For AG, with constant stepsize and momentum parameter , we denote the robustness to noise in terms of iterates as . The following theorem, which can be proved similar to Proposition 3.7, provides an explicit formula for in terms of the eigenvalues of .
Let be a quadratic function of the form . Consider the AG iterations given by (7) with parameters . Then the robustness of the AG method in terms of iterates is given by
where are the eigenvalues of and
As discussed in Section 3, the admits a tractable upper bound in the form of which only depends on and .
where is the same as (51) and also and are non-negative numbers and depend on algorithm parameters and initial point . For instance, Proposition 4.3 implies that (112) holds for GD, i.e., for all ,
Similarly, we can derive (112) for AG by using Proposition 4.6.