A Unified Analysis of First-Order Methods for Smooth Games via Integral Quadratic Constraints
Guodong Zhang, Xuchan Bao, Laurent Lessard, Roger Grosse
Introduction
Gradient-based optimization algorithms have played a prominent role in machine learning and underpinned a significant fraction of the recent successes in deep learning (Krizhevsky et al., 2012; Silver et al., 2017). Typically, the training of many models can be formulated as a single-objective optimization problem, which can be efficiently solved by gradient-based optimization methods. However, there are a growing number of models that involve multiple interacting objectives. For example, generative adversarial networks (Goodfellow et al., 2014; Radford et al., 2015; Arjovsky et al., 2017), adversarial training (Madry et al., 2018) and primal-dual reinforcement learning (Du et al., 2017; Dai et al., 2018) all require the joint minimization of several objectives. Hence, there is a surge of interest in coupling machine learning and game theory by modeling problems as smooth games.
Smooth games, and the closely related framework of variational inequalities, are generalizations of the standard single-objective optimization framework, allowing us to model multiple players and objectives. However, new issues and challenges arise in solving smooth games or variational inequalities. Due to the conflict of optimizing different objectives, standard gradient-based algorithms may exhibit rotational behaviors (Mescheder et al., 2017; Letcher et al., 2019) and hence converge slowly. To combat this problem, several algorithms have been introduced specifically for smooth games, including negative momentum (NM) (Gidel et al., 2019), optimistic gradient method (OG) (Popov, 1980; Rakhlin and Sridharan, 2013; Daskalakis et al., 2018; Mertikopoulos et al., 2018) and extra-gradient (EG) (Korpelevich, 1976; Nemirovski, 2004). While these algorithms were motivated by provable convergence bounds, many such analyses were limited to quadratic problems with linear dynamics, or to proving local convergence (so that the dynamics could be linearized) (Gidel et al., 2019; Azizian et al., 2020b; Zhang and Wang, 2021). Other analyses proved global convergence rates, but relied on deep insightDesigning a Lyapunov function is largely regarded as a black art. The proofs of OG/EG are based on the insight that they both approximate the proximal point method (Mokhtari et al., 2020a). Typically these insights do not generalize to other algorithms. to design Lyapunov functions on a case-by-case basis (Gidel et al., 2018; Azizian et al., 2020a; Mokhtari et al., 2020a).
In this paper, we aim to provide a systematic framework for analyzing first-order methods in solving smooth and strongly-monotone games using techniques from control theory. In particular, we view common optimization algorithms as feedback interconnections and adopt the theory of integral quadratic constraints (IQCs) (Megretski and Rantzer, 1997) to model the nonlinearities and uncertainties in the system. While enforcing common assumptions in optimization would seem to require infinitely many IQCs, Lessard et al. (2016) showed that it was possible to certify tight convergence bounds for first-order optimization algorithms using a small number of IQCs. The result of their analysis was a largely mechanical procedure for converting questions about convergence into small semidefinite programs which could be solved efficiently. We perform an analogous analysis in the more complex setting of smooth games, arriving at a very different, but similarly compact, set of IQCs. Particularly, we show that only a few pointwise IQCs are sufficient to certify tight convergence bounds for a variety of algorithms — an even more parsimonious description than in the optimization setting. The end result of our analysis is a unified and automated method for analyzing convergence of first-order methods for smooth games.
Using this framework, we are able to recover or even improve known convergence bounds for a variety of algorithms, which we summarize as follows:
We recover the known convergence rate of the gradient method for smooth and strongly-monotone games by solving a semidefinite program (SDP) analytically.
Similarly, we derive an analytical convergence bound for the proximal point method that is sharper than the best available result (Mokhtari et al., 2020a, Theorem 2).
We derive a slightly improved convergence rate for the optimistic gradient method (even though the existing analysis (Gidel et al., 2018) is fairly involved).
We emphasize that all of the above results are obtainable from our unified framework through a mechanical procedure of deriving and solving an SDP. Beyond these results, we can gain new insights and derive new results that were previously unknown and are difficult to obtain using existing approaches:
We prove that, for time-varying systems, the gradient method with optimal step size achieves the fastest provable convergence rate with quadratic Lyapunov functions among any algorithm representable as a linear time-invariant system with finite state.
We provide the first global convergence rate guarantee for the negative momentum method for smooth and strongly-monotone games, matching the known lower bound (Zhang and Wang, 2021).
We also show that the optimistic gradient method achieves the optimal convergence rate provable in our framework among algorithms with one step of memory (6).
Further, we adapt the IQC framework to analyze stochastic games. We model stochasticity using the strong growth condition (Schmidt and Roux, 2013; Vaswani et al., 2019), which has been used to model multiplicative noise in the optimization setting, but has not been investigated in the game setting. The key is to model optimization algorithms as stochastic jump systems as in Hu et al. (2017). We demonstrate that GD is robust to noise in the sense that it can attain the same convergence rate as the deterministic case (where the constant depends on noise level). By contrast, OG and NM are degraded to an convergence rate, in contrast with their and rates in the deterministic setting. We show this is an instance of a more general phenomenon: with large enough noise, no first-order algorithm with at most one step of memory can be proved under our analysis to improve upon GD’s convergence rate. (This is in contrast to the setting of smooth and strongly convex optimization, where such acceleration has been proved (Jain et al., 2018; Vaswani et al., 2019).) Nonetheless, we exhibit an algorithm which achieves acceleration in the stochastic setting by querying the vector field twice for each batch of data.
We believe our IQC framework is a powerful tool for exploratory algorithmic research, since it allows us to quickly ask and answer a variety of questions about the convergence of algorithms for smooth games.
For the general monotone setting (without strong monotonicity), it is known that the optimal rate of convergence for first-order methods is , and this rate is achieved by both the EG and OG algorithms (Nemirovski, 2004; Tseng, 2008; Hsieh et al., 2019; Mokhtari et al., 2020b) for the averaged (ergodic) iterates. Later, (Golowich et al., 2020b, a) derived a bound for the last iterate of EG and OG.
Beyond the monotone setting, non-monotone games (e.g., nonconvex-nonconcave minimax problems) have recently gained more attention due to their generality. However, there might be no Nash (or even local Nash) equilibria in that setting due to the loss of strong duality. To overcome that, different notions of equilibrium were introduced by taking into account the sequential structure of games (Jin et al., 2020; Fiez et al., 2019; Farnia and Ozdaglar, 2020; Mangoubi and Vishnoi, 2020). In that setting, the main challenge is to find the right equilibrium and some algorithms (Wang et al., 2019; Adolphs et al., 2019; Mazumdar et al., 2019) have been proposed to achieve that.
For smooth game optimization, there are also many algorithms using high-order information. For example, consensus optimization (Mescheder et al., 2017), Hamiltonian gradient descent (Letcher et al., 2019; Abernethy et al., 2019), competitive gradient descent (Schäfer and Anandkumar, 2019), follow-the-ridge (Wang et al., 2019) and LEAD (Hemmat et al., 2020) all used second-order information to accelerate the convergence. Currently, our IQC framework is primarily designed for first-order algorithms. Exploring new types of IQCs that can be used to analyze algorithms using high-order information would be an interesting future direction.
Preliminaries
We begin by presenting the basic variational inequality framework that we consider in the sequel. Let be a nonempty convex subset of d, and let be a continuous mapping on d. In its most general form, the variational inequality (VI) problem (Harker and Pang, 1990) associated to and can be stated as:
In the case of , it reduces to finding such that . To provide some intuition about variational inequalities, we discuss two important examples below:
Suppose that for a smooth function on d, then the variational inequality problem amounts to finding the critical points of . In the case where is convex, any solution of (1) is a global minimizer.
Consider a convex-concave minimax optimization problem (saddle-point problem). Our objective is to solve the problem , where is a smooth function. It is easy to show that minimax optimization is a special case of (1) with , where .
To be noted, the vector field in Example 2 is not necessarily conservative, i.e., it might not be the gradient of any function. In addition, if in minimax problem is convex-concave, any solution of (1) is a global Nash Equilibrium (Von Neumann and Morgenstern, 1944):
In this work, we are particularly interested in the case of being a strongly-convex-strongly-concave and smooth function, which basically implies that the vector field is strongly-monotone and Lipschitz (see Fallah et al. (2020, Lemma 2.6) for more details). Here we state our assumptions formally.
The vector field is -strongly-monotone:
In the context of variational inequalites, Lipschitzness and (strong) monotonicity are fairly standard and have been used in many classical works (Tseng, 1995; Chen and Rockafellar, 1997; Nesterov, 2007; Nemirovski, 2004). With these two assumptions in hand, we define the condition number , which measures the hardness of the problem. In the following, we turn to suitable optimization techniques for the variational inequality.
2 Optimization Algorithms as Dynamical Systems
Borrowing the notations from Lessard et al. (2016), we frame various first-order algorithms as a unified linear dynamical systemThis linear dynamical system can represent any first-order methods. in feedback with a nonlinearity ,
At each iteration , is the control input, is the output, and is the state for algorithms with step of memory. The state matrices differ for various algorithms. For most algorithms we consider in the paper, they have the general form:
where and are the identity and zero matrix of size , respectively. One can then reduce linear dynamical system (5) to a second-order difference equation by setting and , which we term algorithms with one step of memory:
where is a constant step size. By choosing different , we can recover different methodsOne can also model EG using the same dynamical system (5), but it does not fit into (6). (see Table 1). For instance, optimistic gradient method (OG) (Daskalakis et al., 2018) is typically written in the following form ( and ).
For smooth and strongly-monotone games, Azizian et al. (2020b, Corollary 1) showed a lower bound on convergence rate for any algorithm of the form (5):
Also, one can show that the lower bound for GD is and the lower bound for NM (Zhang and Wang, 2021) is where is a constant independent of .
3 IQCs for Exponential Convergence Rates
We now present the theory of IQCs and connect it with exponential convergence. IQCs provide a convenient framework for analyzing interconnected dynamical systems that contain components that are nonlinear, uncertain, or otherwise difficult to model. The idea is to replace these troublesome components by quadratic constraints on its inputs and outputs that are known to be satisfied by all possible instances of the component.
In our case, the vector field is the troublesome function we wish to analyze (currently, the IQC framework is limited to first-order algorithms). Although we do not know exactly, we assume to have some knowledge of the constraints it imposes on the input-output pair . For example, we already assume to be -Lipschitz, which implies for all with as a fixed point. In matrix form, this is
Notably, the above constraint is very special in that it only manifests itself as separate quadratic constraints on each . It is possible to specify quadratic constraints that couple different values. To achieve that, we follow Lessard et al. (2016) and adopt auxiliary sequences together with a map characterized by matrices :
The equations (10) define an affine map , where could be a function of all past and with . We consider the quadratic form for a given matrix with and fixed points of (10). We note that the quadratic form is a function of that is determined by our choice of . In particular, we can recover constraint (9) with
In general, this sort of quadratic constraints are called IQCs. There are different types of IQCs (see Lessard et al. (2016, Definition 3)), but we will only need pointwise IQCs as quadratic Lyapunov functions turn out to be expressive enough.
A Pointwise IQC defined by satisfies
Combining the dynamics (5) with the map (by eliminating ), we obtain
With these definitions in hand, we now state the main result of verifying exponential convergence. Basically, we build a Linear Matrix Inequality (LMI) to guide the search for the parameters of quadratic Lyapunov function in order to establish a rate bound. {thm}[] Consider the dynamical system (5). Suppose the vector field satisfies the pointwise IQC and define according to (11)–(13). Consider the following linear matrix inequality (LMI):
If this LMI is feasible for some , and Note that is not necessarily smaller than ., we have
Consequently, for any and , we obtain
The LMI (14) can be extended to the case of multiple constraints with (see Lessard et al. (2016, Page 12) for details). {rem} The positive definite quadratic function is a Lyapunov function that certifies exponential convergence. This is the main difference from Lessard et al. (2016, Theorem 4) in that the function in their case cannot serve as a Lyapunov function because it does not strictly decrease over all trajectories.
To apply Theorem 1, we seek to solve the semidefinite program (SDP) of finding the minimal such that the LMI (14) is feasible. For simple algorithms, one can typically solve the SDP analytically. Nevertheless, one may only get a numerical proof when the algorithm of interest is complicated and the resulting SDP is hard to solve. The solution yields the best convergence rate that can be certified by quadratic Lyapunov functions. We remark that it automatically searches for a quadratic Lyapunov function for proving exponetial convergence by solving the SDP. This is extremely convenient compared to designing ad-hoc Lyapunov functions on an algorithm-by-algorithm basis. Moreover, by inspecting the corresponding of constraint , we could tell if the constraint or assumption is redundant or not. Moreover, this framework makes it easy to analyze the performance of optimization algorithms for time-varying systems, as we will show in the next section.
IQCs for Variational Inequalities
To apply Theorem 1 to smooth and strongly-monotone variational inequalities, we will derive two sets of IQCs describing the vector field : sector IQCs and off-by-one pointwise IQCs. According to Assumptions 1 and 2, the constraints (3) and (4) hold over the whole domain. Hence, it has essentially infinite number of constraints and is therefore hard to use. The key idea of the following two sets of IQCs is to find the necessary conditions (but not sufficient) of smoothness and strongly-monotonicity by discretizing the constraints to finite number of pairs. This is equivalent to a relaxation to the original problem since functions which are not -Lipschitz and -strongly-monotone can potentially satisfy the discretized conditions. Hence in principle, we need to make the discretized conditions to be as close to the original necessary and sufficient conditions as possible.
We first introduce two sector IQCs, which takes the discretization of with the output of iteration and the output of the stationary state. {lem}[Sector IQCs] Suppose vector field is -strongly monotone and -Lipschitz for all , if , then satisfies the pointwise IQCs defined by
We have corresponding quadratic inequalities:
As we will show in the next few sections, the introduced set of sector IQCs is far from sufficient for some algorithms because it allows the vector field to be time-varyingIn convex optimization (Hazan, 2016), it is equivalent to allowing the losses to be adversarially chosen., therefore leading to very conservative estimate of convergence rates. As a remedy, we can add pairs to enforce the consistency of the vector field over time, which leads to the following off-by-one pointwise IQCs. We stress that the proposed off-by-one pointwise IQC is different from the one in Lessard et al. (2016, Lemma 8) in that their off-by-one IQC is a more complicated -hard IQC (see Definition 3 in Lessard et al. (2016) for details) rather than a pointwise IQC. This is due to the fact that the first-order oracle in convex minimization involves the function value and they have to use the -hard IQC to get tight bounds. {lem}[Off-by-one pointwise IQCs] Suppose is -strongly monotone and -Lipschitz. If , then satisfies the pointwise IQCs defined by
We have corresponding quadratic inequalities:
In principle, a convex combination of the sector and off-by-one pointwise IQCs is still not sufficient, though we can further add off-by- pointwise IQCs (i.e., ) to make it less conservative. To exactly characterize the nonlinearity of vector field , it requires us to introduce the following interpolation condition (insipred by Taylor et al. (2017)):
Let be an index set, and consider the set of tuples . Then set is -interpolable if and only if there exists a -strongly monotone and -Lipschitz vector field such that for all .
At first glance, it might seem that all pairs of indices and satisfying (3) and (4) would be necessary and sufficient for -interpolation. However, it was shown in Ryu et al. (2020, Proposition 3) that it is not the case. In other words, including all off-by- pointwise IQCs () is still not sufficient to fully describe the nonlinearity. So in general, the rate bounds certified by our IQC framework could be loose even with all off-by- IQCs and one might like to use as many IQCs as possible to make the obtained bounds less conservative. Nevertheless, we find in practice that it is possible to certify tight convergence bounds using only a small number of IQCs for algorithms we consider. In particular, the sector IQCs in Lemma 3 are sufficientWe mean the obtained rate bound matches the known lower bound exactly. to provide a tight bound for GD, and adding more IQCs will not improve the rate bound obtained by our IQC frameworkIn particular, the corresponding of newly added constraint after solving the SDP would be zero up to numerical precision, manifesting the constraint is redundant.. Formally, we offer the following conjecture based on our numerical simulations:
For first-order algorithms with steps of memory, we only need off-by- pointwise IQCs up to to get the tightest convergence rate in our framework. In other words, adding off-by- pointwise IQCs with in SDP (14) will not improve the bound.
We numerically verified our conjecture for GD and algorithms with one step of memory (see Figure 11)We also tested on some algorithms with two step of memory with randomly sampled parameters.. For instance, we notice that a combination of the sector and off-by-one pointwise IQCs is enough for algorithms with one step of memory (6). Interestingly, such combination is far from enough to get tight bounds for minimization problem.
We first warm up with the simplest algorithm – GD. The recursion is given by
We will analyze this algorithm by applying Theorem 1. The first thing is to find proper IQCs for GD. By the assumptions, we know the vector field is -strongly monotone and -Lipschitz. We may start with the sector IQCs defined in Lemma 3As we argue in Conjecture 1, adding more IQCs probably will not improve the bound of GD..
By exploiting the structure of the problem (see Lessard et al. (2016, section 4.2)), we are able to reduce the problem to the following SDP by simply setting without loss of generality:
We remark that the SDP (21) is independent of the dimension . Using Schur complements (Haynsworth, 1968), it is equivalent to
By analyzing the lower bound on in (22), one can easily show that . Optimizing over , we get , matching the lower bound of convergence rate of GD (Azizian et al., 2020b). Notably, we only impose sector-bounded constraints in this section, which means the vector field can change over time (time-varying system).
After giving the warm-up example, we now present a deep result of GD for its optimality on time-varying systems. Particularly, we show that GD with stepsize achieves the fastest possible worst-case convergence rate not only among all tunings of GD, but among any algorithm where depends linearly on for some fixed . {thm}[] With only the sector IQCs (i.e., the system can be time-varying), the best worst-case convergence rate in solving SDP (14) is achieved by GD with stepsize among all algorithms representable as a linear time-invariant system with finite state. To put it differently, when the system is time-varying, we cannot improve our upper bound by using more complex algorithms.
2 Analysis of Proximal Point Method
While GD is discretizing vector field flow with forward Euler method and suffers from overshotting problem, proximal point method (PPM) (Rockafellar, 1976; Parikh and Boyd, 2014) adopts backward Euler method and is more stable.
Although PPM is in general not efficiently implementable, it is largely regarded as a “conceptual” guiding principle for accelerating optimization algorithms (Drusvyatskiy, 2017; Ahn, 2020). Indeed, Mokhtari et al. (2020a) showed that both OG and EG are approximating PPM in the context of smooth games. Nevertheless, the convergence analysis of PPM is in general more involved than gradient descent method. Here we follow the same IQC pipeline to analyze its convergence rate. Notably, PPM can still be expressed as a discrete linear system as in (5) but with the matrix . Similar to GD, we impose the sector IQCs and reduce the problem to the following SDP:
Our goal is to find the minimal such that this LMI is feasible. To achieve that, we can use Schur complements and optimize to lower bound . Towards this end, we are able to prove the exponential convergence of PPM by solving the LMI (24). {thm}[] Under Assumption 1 and 2, PPM converges linearly with any positive .
As opposed to the rate bound of GD, the convergence rate does not depend on the Lipschitz constant and is strictly smaller than for all positive stepsize . Moreover, our bound is better than the one in Mokhtari et al. (2020a, Theorem 2) with rate . It is important to know that PPM can converge arbitrarily faster with large , but the computation of would become expensive.
3 Accelerating Smooth Games With Optimism
Optimistic gradient method (OG) was shown to be an approximation to PPM (Mokhtari et al., 2020a) and it approximates with a lookahead step. From this standpoint, one may expect OG to inherit the merits of PPM and potentially improve upon plain gradient method. In this section, we analyze OG with our IQC framework and show that indeed it converges faster than GD, as also shown in Gidel et al. (2018). In particular, we study the recursion of (7). In this case, OG is also an approximation to Extra-gradient (EG) (Korpelevich, 1976) method by using past gradient (Gidel et al., 2018; Hsieh et al., 2019): {prop}[] OG is an approximation to EG but using the past gradient:
Rewriting OG as a variant of EG, one can derive the following convergence result. {thm}[Gidel et al. (2018)] Under Assumption 1 and 2, if we take , then
Theorem 26 suggests that OG has an iteration complexity of , which indeed accelerates GD substantially. Notably, this also implies that OG is near optimal in the sense that it matches the lower bound (8) up to a constant (Azizian et al., 2020b, Corollary 1). However, the proof of Theorem 26 is quite involved and relies on a cleverly designed Lyapunov function. Here, we improve the rate bound using IQC machinery.
We compute the rate bounds using Theorem 1 with either the sector IQCs in Lemma 3 or a combination of the sector and off-by-one pointwise IQCs in Lemma 5. In contrast to GD, the SDP problem induced by OG is not analytically solvable anymore, thus we use bisection search to find the optimal rate . For fixed and , the SDP (14) become an LMI and can be efficiently solved using interior-point methods (Boyd et al., 2004). For all simulations in the paper, we use CVXPY (Diamond and Boyd, 2016) package with Mosek solver.
With the sector IQCs alone, we observe that OG may diverge if we take in the sense that the best rate achieved is even for very small condition numbers. To understand why, recall from Lemma 3 that the sector IQCs allow for to be different at each iteration. Unlike GD, OG is not robust to having a changing . We further conjecture that the divergence of OG is caused by the aggressive step size choice (compared to in GD), we therefore tune the step size for OG. Figure 2 shows the certified convergence rates of OG. We find that the optimal step size for OG in that setting is much smaller than . Moreover, its iteration complexity scales quadratically with condition number and is perhaps worse than GD by a constant. This matches the prediction of Theorem 3.1 that GD is provably optimal for time-varying systems.
On the other hand, if we add off-by-one pointwise IQCs to the LMI, the bound for OG does improve upon that of GD, especially when the condition number is large (see red solid lines in Figure 2). This suggests that enforcing the consistency of two consecutive vector field quries is important for the acceleration of OG. In this case, the complexity of OG scales linearly with condition number, matching existing bounds. Moreover, the convergence rate improves upon that of Gidel et al. (2018) (see Theorem 26) by roughly a constant factor of , highlighting the usefulness of IQCs for certifying sharp bounds.
Lastly, we may ask the question how OG performs over the family of algorithms with one step of memory (6). This is easy to carry out numerically since one can search for the minimal for different combinations of . To be precise, we conduct grid search over and interestingly it turns out that the optimal parameters are and , corresponding exactly to OG (see Figure 3). In other words, OG appears likely to be optimal within the family of algorithms with one step of memory.
4 Global Convergence of Negative Momentum
𝛽1\beta+1 for clarity. In the preceding sections, we recovered or improved previously known convergence rates of GD, PPM and OG either analytically or numerically. One may further ask whether we can provide the convergence rates of some algorithms which were unknown before based on our IQC analysis. We answer this question in the affirmative for deriving a novel convergence bound of negative momentum, which essentially refers to Polyak momentum with a negative damping parameter.
Negative momentum was first studied in Gidel et al. (2019) on simple bilinear games. Later, it was shown by Zhang and Wang (2021) that negative momentum converges locally with an iteration complexity of for smooth and strongly-monotone variational inequality problems. More importantly, Zhang and Wang (2021) showed that the bound is tight asymptotically by proving a lower bound of . Yet, it is unclear whether negative momentum can converge globally with the same rate. In general, it is highly non-trivial to prove an explicit global convergence rate for Polyak momentum. For example, Ghadimi et al. (2015) can only show that Polyak momentum converges globally with properly chosen parameters but no explicit rate was provided.
Using a combination of the sector and off-by-one pointwise IQCs, we evaluate the rates of negative momentum numerically by doing bisection search on and grid search on the parameter and step size . We report the results in Figure 4. Unexpectedly, the complexity curve of negative momentum has a slope of , suggesting it attains the same complexity of globally. Also, the rate matches the known lower bound tightly (see the dashed line in Figure 4). This is surprising, in that Polyak momentum fails to achieve the same accelerated convergence rate (i.e., its local convergence rate) globally in the convex optimization setting (Lessard et al., 2016). Furthermore, we find that the optimal step size and momentum parameter follow simple functions of condition number . According to our simulations, the optimal step size is roughly while the optimal momentum value is , as shown in Figure 4. To the best of our knowledge, we provide the first global convergence rate guarantee for negative momentum using our IQC framework, something which is otherwise difficult to prove.
IQCs for Stochastic Games
For this inequality to hold, if , then for all . This noise model is an instance of multiplicative noise in the sense that the perturbation noise is a function of the state . Note that this noise model has been shown to hold for overparameterized models (Ma et al., 2018; Liu and Belkin, 2018) and underlies exponential convergence of stochastic gradient based algorithms (see Strohmer and Vershynin (2009); Moulines and Bach (2011); Ma et al. (2018)). It is also possible to include additive noise by using the bias-variance decomposition (Bach and Moulines, 2013; Fallah et al., 2020). For numerical tractability, we here focus on the finite-sum setting with examples. Later, we will show in Theorem 33 that the convergence rate is independent of for all . In that case, we can model optimization algorithms as stochastic jump systems (Costa et al., 2006):
For the gradient method, the matrix is simply where is a one-hot vector with -entry being . Similar to the deterministic system, we can impose quadratic constraints by designing and matrix . For example, in the case of , we can enforce -Lipschitzness of together with the strong growth condition as follows (where we ignore the dimension since we can factorize all the matrices as Kronecker products):
Again, combining the dynamics (30) with , we have the following compact form:
Assuming is drawn uniformly in an i.i.d manner, we have {thm}[Hu et al. (2017, Theorem 1)] Consider the stochastic jump system (30). Suppose satisfies the pointwise IQC specified by , and consider the following LMI:
If this LMI is feasible with and , then the following inequality holds,
We now analyze the dynamics of GD to determine if it is robust to noisy gradients. It is easy to show (without using Theorem 31) that with properly scaled step size, GD maintains the iteration complexity of which we derived for the deterministic case. {thm}[GD with the strong growth condition] Under Assumptions 1 and 2, if we further assume the vector field satisfies the strong growth condition (28) with parameter and take , then we have
Compared to the rate of deterministic setting, the rate in Theorem 4.1 is worse by the constant factor . And as expected, the noisier the vector field computation (i.e., larger ), the slower the convergence. Nevertheless, the scaling with the condition number matches the deterministic setting, manifesting the robustness of GD.
To sanity check our IQC framework, we also compute the rate bounds using Theorem 31 by setting for convenience. We note that the result is independent of the value of , choosing makes the SDP problem easy to solve. We observe that the numerical rates obtained by our IQC framework match the prediction of Theorem 4.1 exactly, as shown in Figure 5. This also implies that the upper bound in Theorem 4.1 is probably sharp.
2 The Brittleness of Optimistic Gradient Method and Negative Momentum
As discussed in the last section, GD is robust to multiplicative noise when it satisfies the strong growth condition (28). It is natural to ask whether the same is true of OG and NM. Namely, are they able to match their respective deterministic convergence rates and hence accelerate GD in the stochastic setting?
We compute the convergence rates of OG using Theorem 31 together with the sector and off-by-one IQCs. We search for the optimal step size using grid-search. As shown in Figure 6, the convergence rate of optimally tuned OG deteriorates as we use and the complexity is roughly when . In other words, the convergence rate of OG is no better than that of GD in the stochastic setting.
We also analyze negative momentum (NM) using Theorem 31 with the momentum parameter and tuned step size. Figure 7 shows the plots of convergence rate and iteration complexity for different noise levels. Similar to OG, NM suffers as we gradually increase the noise level from to . In particular, its complexity scales quadratically as a function of condition number when . This is to be expected by analogy with the minimization case that momentum method is fragile to injected noise.
3 Is It Possible to Accelerate GD in the Stochastic Setting?
𝛽1\beta+1 or in log space uniformly from . For , we search over . We use VI for the abbreviation of variational inequality and MIN for minimization. Accelerated Stochastic Gradient Descent (ASGD) (Jain et al., 2018) is a variant of the Nesterov Accelerated Gradient which is able to accelerate SGD for minimizing strongly-convex functions under the strong growth condition. We provide a detailed proof for the acceleration effect of ASGD in Appendix B.2. In the last section, we showed that both OG and NM fail to accelerate GD in the presence of noise. One may ask: does there exist any algorithm with only one step of memory that can achieve acceleration in the stochastic setting? In this section, we first show that acceleration is impossible if the algorithm queries each batch of data only once before moving on to the next one. We then answer our question in the affirmative by showing there exists an algorithm achieving acceleration by querying each batch of data twice.
We first search over algorithms with one step of memory (6) by doing a grid search over values of and for every particular condition number . In particular, we set to be since the slope of resulting curve stays unchanged with larger . This experiment is easy to carry out in our framework, because choosing new values of and simply amounts to changing parameters in the LMI. We find that no algorithm is provable (under our IQC model) to obtain a faster convergence rate than the rate obtained for GD (see Figure 8). This is in stark contrast to minimizing a strongly-convex function, where there is an algorithm with one step of memory accelerating GD under the strong growth condition (Jain et al., 2018; Vaswani et al., 2019). More importantly, we do match the rate of this algorithm by conducting the same grid search over and (see red solid line).
The previous result inspires us to re-examine the reason why OG can accelerate GD in the first place when is noiseless. By inspecting in the final solution of the LMI (14)In all four quadratic constraints, only the strongly-monotone sector IQC and the Lipschitz off-by-one pointwise IQC are used with non-zero ., we notice the convergence analysis of deterministic OG heavily relies on the following property:
where we used the -Lipschitz assumption of . However, when the stochastic update is used, this property no longer holds. Recall the OG update in the stochastic setting:
According to Proposition 3.3, OG can be rewritten as the following form:
Observe that two different stochastic operators and are used, so (35) need not hold for any value of . One can fix this problem by sharing the same stochastic operator (e.g. using the same batch of data) to compute the updates, which we term same-batch OG. This fix was first proposed in Mishchenko et al. (2020) for extra-gradient.
To prove convergence, we have to replace Assumption (1) and (2) with stronger assumptions ( could depend on ):
Basically, we allow different to have distinct Lipschitz and monotone constants. With minor modifications to our IQC analysis (see Appendix B.3 for details), we can show same-batch OG (38) accelerates GD with an iteration complexity of , as seen in Figure 9. We remark that assumptions (39) are less restrictive than the ones used in (Mishchenko et al., 2020) where they require to be almost surely strongly-monotone and Lipschitz.
Discussion
Smooth game optimization has recently emerged as a new paradigm for many models in machine learning due to its flexibility to model multiple players and their interactions. Nevertheless, the dynamics of games are more complicated than their single-objective counterparts, and raise new algorithmic challenges. We believe a unified and systematic analysis framework is crucial, since it could save us from the pain of analyzing algorithms in a case-by-case manner. To this end, we argue that the introduced IQC framework is a very powerful tool to study game dynamics, especially when the system contains nonlinear and uncertain ingredients.
We note that our current framework is limited to strongly-monotone and smooth games, but other techniques from control theory (e.g., dissipativity theory (Hu and Lessard, 2017b)) may allow us to certify sublinear rates in general monotone games. Similarly to Lessard et al. (2016), our IQC framework could also be extended to the non-smooth setting. However, the numerical results might be less interpretable because most algorithms fail to attain linear convergence in the non-smooth setting. Another limitation is that our IQC framework is not generally applicable for algorithms accessing higher-order information (e.g., competitive gradient descent (Schäfer and Anandkumar, 2019)). Nevertheless, for algorithms that can be written as a first-order method on modified utility functions (e.g., consensus optimization (Mescheder et al., 2017)Consensus optimization can be viewed as gradient descent algorithm on modified objectives that include additional gradient norm penalties.), it is possible to apply our IQC framework for tight convergence analysis. Exploring new types of IQCs that can be used to analyze algorithms using high-order information would be an interesting future direction.
So far for all the algorithms we analyzed, we have shown that our IQC framework provides tight bound certification as long as the algorithm can fit into the variational inequality framework. To be noted, our framework can also be used to analyze the extra-gradient method which we did not discuss in the paper. Nonetheless, for problems with additional structure (e.g., the bilinear saddle point problem ), additional modifications are required to take into account the structural information for tight bounds.
Finally, one of the biggest limitations of our IQC framework is that it provides only a numerical proof, except in simpler cases where the SDP can be solved analytically. However, as noted in Lessard et al. (2016), it might be possible to find analytical proofs for complex SDPs using tools from algebraic geometry (Grayson and Stillman, 2002; Rostalski and Sturmfels, 2010). Furthermore, there might exist examples that require large numbers of IQCs to get tight bounds, making the corresponding SDPs hard to solve. In our own investigations, a handful of IQCs have sufficed to obtain tight bounds, and we expect that other limited memory algorithms can be analyzed with similarly compact IQCs.
We thank Bryan Van Scoy and Yuanhao Wang for many helpful discussions. We thank Shengyang Sun, Xuechen Li and Guojun Zhang for detailed comments on early drafts. We also thank Adrien Taylor for pointing out a mistake of the necessary and sufficient condition for -interpolation in the first version of our paper. Besides, we thank the anonymous JMLR reviewers for their useful feedback on earlier versions of this manuscript.
GZ would like to thank for the supports from Borealis AI fellowship and Ontario Graduate Scholarship. RG acknowledges support from the CIFAR Canadian AI Chairs program.
A Proofs for Theoretical Results
Proof Let be a set of sequences that satisfies (13). Suppose is a solution of SDP (14). Multiply (14) on the left and right by and its transpose, respectively. Making use of (13) and (10), we obtain
Because satisfies the pointwise IQC definied by , therefore we obtain
for all and consequently . Recall from (13) that and , we therefore have
A.2 Proofs for Section 3
Proof Two quadratic inequalities follows immediately from (3) and (4).
Proof We note two quadratic inequalities follows immediately from (3) and (4) by using . To verify the IQC factorization, we note the state equations for given in Lemma 5 are
and it follows that and are equivalent to quadratic constraints (19), as required.
Proof To prove the Theorem, we need to first define a family of algorithms which are expressive enough. Following on Hu and Lessard (2017a); Lessard and Seiler (2020), we will consider algorithms set up as in Figure 10(a).
The iterative algorithm must contain a pure integrator, i.e., its transfer function must take the form . where is an LTI system that represents the algorithm. Assume has a state space representation . Let Without loss of generality, we assume the whole system is single-input and single-output. and be the state of integrator and , respectively. The order of , denoted , is unspecified at this point, i.e., the algorithm may have a finite but arbitrary amount of memory. A realization of the whole algorithm then is given by
We remark that this family of algorithms is very general and can easily represent most algorithms. For example, we can recover momentum method by taking .
Under current assumptions about , we know that we have the following quadratic constraint on the input-output pair if we only consider the sector IQCs:
where and are non-negative scalars. An crucial step is now to diagonalize the quadratic constraint. In particular, we perform a loop transformation as shown in Figure 10(b). After the transformation, the constraint becomes
Notice that the input to is transformed in the form: . Therefore, we obtain the following state space realization of in terms of :
Combining it with the map defined in Lemma 3, we have
By Theorem 1, iterates converge with rate if there exists such that
According to Schur complements, we can write the equivalent condition:
where . Substituting (44) into (46), we obtain
where . We need to introduce a Lemma to further simplify the problem: {lem}[Gahinet and Apkarian (1994)] Given a symmetric matrix and two matrices of column dimension , consider the problem of finding some matrix of compatible dimensions such that
Denote by any matrices whose columns form bases for the null spaces of and respectively. Then there exists satisfying (48) if and only if
By this Lemma, we know that (47) is feasible if and only if a pair of conditions hold. In that case, the conditions are:
Using Schur complements again, we have ()
Optimizing over yields , which is exactly the convergence rate of GD in this setting.
Proof By Theorem 1, we get the following SDP by setting :
Using Schur complements, the SDP is equivalent to
For notational convenience, we let and then we have
We notice that yields the smallest value when . Therefore, we have
where the last inequality follows from the fact that . We finish the proof.
Notice that , we then get
We therefore conclude that OG is an approximation to EG using the past gradient.
where we used the Lipschtiz assumption of vector field . Also by strongly monotonicity, we have
where we used the Lipschitz assumption again. Finally, combining (59) and (A.2), we get
A.3 Proofs for Section 4
Proof Let be a set of sequences that satisfies (31). Take the Lynapunov function with the form , we then have the following relation:
Multiply (32) on the left and right by and its transpose, respectively. We then have for all
Proof For algorithms with one step of memory, we impose the sector and off-by-one pointwise IQCs. Along with the strong growth condition (28), it yields the following state-space matrices in (31):
By Theorem 31, we have the following condition to hold:
By Schur complements, we have the following two equivalent conditions:
Note that the first condition is independent of , so we only need to check the second one. After some basic manipulations, we have the second condition as follows:
where is a scalar that does not depend on . If , then we know that one necessary condition for (65) to hold is . Let , we have
To further simplify (66), we need to introduce the following Lemma. {lem} For to hold (), we have and . This Lemma can be proved immediately by showing that the matrix has eigenvalues and . One caveat is that this Lemma only hold for . Hence, one can show the necessary and sufficient condition of (66) is as follows.
It is important to note that two conditions in (67) are all independent of the choice of . Therefore, we conclude that for any choice of , if the LMI (32) is feasible for a particular , then it is feasible for all . In other words, the feasible set of the LMI (32) is invariant to the choice of , which further implies the optimal of the corresponding SDP is independent of . This completes the proof.
We then take the expectation over and obtain
where we used the strongly-monotone assumption in the first inequality, Lipschitz assumption and the strong growth condition in the second inequality. By repeatedly taking expectation over , we conclude
B Additional Results
B.2 Proof of ASGD under the Strong Growth Condition
We note that the original ASGD (Jain et al., 2018) was proposed for least squares regression, here we generalize the result to general smooth and strongly-convex functions under the strong growth condition. {thm}[AGSD] Under -smoothness and -strong-convexity, if f satisfies the strong growth condition with constant , then ASGD in the form of (6) with the following choice of parameters:
results in the following convergence rate:
Proof To begin with, we rewrite ASGD in the following form:
We note that the equations (70) can be compactly written as a second-order difference equation in the form of (6). We choose for convenience. In addition, we also stress that all stationary states are the same in the sense of . Without loss of generality, we assume the minimal loss . Now we choose the Lyapunov function of , then it suffice to prove
where the first inequality we used the -smoothness of and the second inequality we used the strong growth condition. Further, we consider the other term .
where we used Jensen inequality in the first inequality and then the strong growth condition in the second inequality. Next, we observe that
where we used the -strong-convexity of . Plugging (75) back into (73), we have
Recall that our goal is to prove is a valid Lyapunov function and also it decreases at every iteration. To achieve that, we have to choose the value of carefully. By inspecting (72) and (76), we find the following parameters might work:
Therefore, we could choose , , , . Comparing (70) to (6), we find that this choice of parameters exactly corresponds to (68). Hence, we finish the proof. {rem} By setting to be (i.e., deterministic setting), the algorithm of ASGD is exactly Nesterov’s accelerated method (NAG) (Nesterov, 1983) and we also recover the convergence rate of NAG.
B.3 IQC Analysis for Sample-batch Optimistic Gradient Method
Recall the same-batch OG update in the finite-sum setting
To model this algorithm as a discrete dynamical system, we need to take . We then have the state matrices as follows (in the case of )
where is a one-hot vector with -entry being . We also have the map in the following form for sector IQCs:
Similarly, for off-by-one pointwise IQCs, we have
In addition, we have the following matrices describing the assumptions:
Finally, by (31) and Theorem 31, we can reduce the problem to a small SDP.