The Limit Points of (Optimistic) Gradient Descent in Min-Max Optimization

Constantinos Daskalakis, Ioannis Panageas

Introduction

The celebrated min-max theorem was a founding stone in the development of Game Theory , and is intimately related to strong linear programming duality , Blackwell’s approachability theory , and the theory of no-regret learning . The theorem states that if f(x,y)f(\mathbf{x},\mathbf{y}) is a convex-concave function, and X\cal X, Y\cal Y are compact and concave subsets of Euclidean space, then

If f(x,y)f(\mathbf{x},\mathbf{y}) represents the payment of the X\cal X player to the Y\cal Y player under choices of strategies xX\mathbf{x}\in{\cal X} and yY\mathbf{y}\in{\cal Y} by these two players, the min-max theorem reassures us that an equilibrium of the game exists, and that the equilibrium payoffs to both players are unique.

What does not follow directly from the min-max theorem is whether there exist dynamics via which players would arrive at equilibrium if they were to follow some simple rule to update their current strategies. This has been the topic of a long line of investigation starting with Julia Robinson’s celebrated analysis of fictitious play , and leading to the development of no-regret learning .

Renewed interest in this problem has been recently motivated by the task of training Generative Adversarial Networks (GANs) , where two deep neural networks, the generator and the discriminator, are trained in tandem using first order methods, aiming at solving a min-max problem, of the following form, albeit typically with a non convex-concave objective function f(x,y)f(\mathbf{x},\mathbf{y}):

Here x\mathbf{x} represents the parameters of the generator deep neural net, y\mathbf{y} represents the parameters of the discriminator neural net, and f(x,y)f(\mathbf{x},\mathbf{y}) is some measure of how close the distribution generated by the generator appears to the true distribution from the perspective of the discriminator.

Min-max optimization in non convex-concave settings is a central problem for many research communities, however our knowledge is very limited from optimization perspective. Moreover, for such applications of first-order methods to min-max problems in Machine Learning, it is especially important that the last-iterate maintained by the min and the max dynamics converges to a desirable solution. Unfortunately, even when f(x,y)f(\mathbf{x},\mathbf{y}) is convex-concave, it is rare that guarantees are known for the last iterate (see for continuous time learning dynamics that may cycle). Some guarantees are known for continuous-time dynamics , but for discrete-time dynamics it is typically only shown that the average-iterates converge to min-max equilibrium. Recent work of shows that, while Gradient Descent/Ascent (GDA) dynamics performed by the min/max players may diverge, the Optimistic version dynamics of exhibit last iterate convergence to min-max solutions (which we shall call Optimistic Gradient Descent/Ascent (OGDA)), whenever f(x,y)f(\mathbf{x},\mathbf{y}) is linear in x\mathbf{x} and y\mathbf{y}. The goal of our paper is to understand the limit points of GDA and OGDA dynamics (points that last iterate might converge to) for general functions f(x,y)f(\mathbf{x},\mathbf{y}). In particular, we answer the following questions:

are the stable limit points of GDA and OGDA locally min-max solutions?

how do the stable limit points of GDA and OGDA relate to each other?

We provide answers to these questions after defining our dynamics of interest formally.

with some constant step size α>0\alpha>0Note that α>0\alpha>0 for the rest of this paper.. However, there are examples (functions ff and initial points (x0,y0)(\mathbf{x}_{0},\mathbf{y}_{0})) in which the system of equations (3) cycles (see ). To break down this behavior, the authors in analyzed another optimization algorithm which is called Optimistic Gradient Descent/Ascent (OGDA)We note that OGDA has some resemblance with Polyak’s heavy ball method. However, one important difference is that OGDA has “negative momentum” while the heavy ball method has “positive momentum.”, the equations of which boil down to the following:

One of their key results was to show convergence to the minmax\min\max solution for the case of bilinear objective functions, namely f(x,y)=xAyf(\mathbf{x},\mathbf{y})=\mathbf{x}^{\top}A\mathbf{y}.

Our contribution and techniques: In this paper we analyze Gradient Descent/Ascent (GDA) and Optimistic Gradient Descent/Ascent (OGDA) dynamics applied to min-max optimization problems. Our starting point is to show that both dynamics avoid their unstable fixed points (GDA-unstable and OGDA-unstable respectively, as defined in Section 1.1). This is shown by using techniques from dynamical systems, following the line of work of recent papers in Optimization and Machine Learning . In a nutshell we show that the update rules of both dynamics are local diffeomorphismsA local diffeomorphism is a function that locally is invertible, smooth and its (local) inverse is also smooth. and we then make use of Center-Stable manifold theorem A.1. These results are given as Theorems 2.2, 3.2. One important step in our approach is the construction of a dynamical system for OGDA in order to apply dynamical systems’ techniques.

We next study the set of stable fixed points of GDA dynamics and their relation to locally min-max solutions, called local min-max.In optimization literature they are called local saddles.). Informally, a local min-max critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) satisfies the following: compared to value f(x,y)f(\mathbf{x}^{*},\mathbf{y}^{*}), if we fix x\mathbf{x}^{*} and perturb y\mathbf{y}^{*} infinitesimally, the value of ff does not increase and similarly if we fix y\mathbf{y}^{*} and perturb x\mathbf{x}^{*} infinitesimally, the value of ff does not decrease. We show that the set of stable fixed points of GDA is a superset of the set of local min-max and there are functions in which this inclusion is strict. This is given in Lemmas 2.4, 2.7, 2.5.

Finally, we analyze OGDA dynamics which is a bit trickier than GDA due to the nature of the dynamics, namely the existence of memory in the dynamics: the next iterate depends on the gradient of the current and previous point. We construct a dynamical system that captures OGDA dynamics (see Equation (12)), using a construction that is commonly employed in differential equations. Importantly, we establish a mapping (relation) between the eigenvalues of the Jacobian of the update rules of both GDA and OGDA, showing that OGDA stable fixed points is a superset of GDA stable ones (under mild assumptions on the stepsize), namely (we suggest the reader to see first Remark 1.5 to avoid confusion):

We note that the inclusion above are strict.

1 Important Definitions

We have already stated our min-max problem of interest (2) as well as the Gradient Descent/Ascent (GDA) dynamics (3) and Optimistic Gradient Descent/Ascent (OGDA) dynamics (4) that we plan to analyze. We provide some further definitions.

Let ww be continuously differentiable. We call a fixed point z\mathbf{z} linearly stable or just stable if, for the Jacobian JJ of ww computed at z\mathbf{z}, it holds that its spectral radius ρ(J)\rho(J) is at most one and otherwise we call it linearly unstable or just unstable.

A fixed point z\mathbf{z} of ww is called Lyapunov stable if, for every ϵ>0\epsilon>0, there exists a δ=δ(ϵ)>0\delta=\delta(\epsilon)>0 such that if xBδ\mathbf{x}\in\mathcal{B}_{\delta} with Bδ={yS:yz<δ}\mathcal{B}_{\delta}=\{\mathbf{y}\in\mathcal{S}:\left\|\mathbf{y}-\mathbf{z}\right\|<\delta\}Ball of radius δ\delta. we have that wn(x)z<ϵ\left\|w^{n}(\mathbf{x})-\mathbf{z}\right\|<\epsilon for every n0n\geq 0. That is, if dynamics starts close enough to z\mathbf{z}, it remains close for all times.

A fixed point z\mathbf{z} of ww is called (locally) asymptotically stable (or attracting) if it is Lyapunov stable and there exists a δ>0\delta>0 such that, for all xBδ\mathbf{x}\in\mathcal{B}_{\delta} we have that wn(x)z0\left\|w^{n}(\mathbf{x})-\mathbf{z}\right\|\to 0 as nn\to\infty. That is, there is a small neighborhood around z\mathbf{z} so that, for all initializations in that neighborhood, the dynamics converges to z\mathbf{z}.

We call a fixed point z\mathbf{z} hyperbolic iff the Jacobian JJ of ww computed at z\mathbf{z} has no eigenvalues with absolute value 11.

If the Jacobian of the update rule at a stable fixed point z\mathbf{z} has spectral radius less than one, then the fixed point is asymptotically stable. Therefore, if a fixed point z\mathbf{z} is hyperbolic, then linear stability implies asymptotic stability.

It is easy to see that a fixed point of the GDA dynamics (3) arises whenever (xt+1,yt+1)=(xt,yt)(\mathbf{x}_{t+1},\mathbf{y}_{t+1})=(\mathbf{x}_{t},\mathbf{y}_{t}), or in other words whenever (xt,yt)=(x,y)(\mathbf{x}_{t},\mathbf{y}_{t})=(\mathbf{x},\mathbf{y}) such that f(x,y)=0\nabla f(\mathbf{x},\mathbf{y})=\mathbf{0}.

Since the OGDA dynamics (4) has memory, it is more appropriate to think of the dynamics as mapping a quadruple (xt,yt,xt1,yt1)(\mathbf{x}_{t},\mathbf{y}_{t},\mathbf{x}_{t-1},\mathbf{y}_{t-1}) to a quadruple (xt+1,yt+1,xt,yt)(\mathbf{x}_{t+1},\mathbf{y}_{t+1},\mathbf{x}_{t},\mathbf{y}_{t}). In this case, a fixed point arises whenever (xt+1,yt+1,xt,yt)=(xt,yt,xt1,yt1)(\mathbf{x}_{t+1},\mathbf{y}_{t+1},\mathbf{x}_{t},\mathbf{y}_{t})=(\mathbf{x}_{t},\mathbf{y}_{t},\mathbf{x}_{t-1},\mathbf{y}_{t-1}), or in other words whenever (xt,yt,xt1,yt1)=(x,y,x,y)(\mathbf{x}_{t},\mathbf{y}_{t},\mathbf{x}_{t-1},\mathbf{y}_{t-1})=(\mathbf{x},\mathbf{y},\mathbf{x},\mathbf{y}) and f(x,y)=0\nabla f(\mathbf{x},\mathbf{y})=\mathbf{0}.

Given Proposition 1.4, it follows that spectral analysis of the Jacobian of the fixed points can give us qualitative information about the local behavior of the dynamics. Unless otherwise specified, throughout this paper, whenever we say “stable” we mean linearly stable. GDA/OGDA-stable critical points are critical points that are stable with respect to GDA/OGDA dynamics (for fixed stepsize α\alpha, otherwise are unstable). Moreover since different choices of stepsize α\alpha might give different stability for GDA and OGDA dynamics, we are interested in the case α\alpha is “sufficiently” small. Therefore in the sections we characterize the GDA/OGDA-stable critical points, a point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is classified as GDA/OGDA-stable if there exists a sufficiently small number β>0\beta>0 such that for all stepsizes 0<α<β0<\alpha<\beta we have that the (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a stable fixed point of GDA/OGDA dynamics (in case there exists a small β>0\beta>0 so that for all stepsizes 0<α<β0<\alpha<\beta we have that (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is an unstable fixed point of GDA/OGDA dynamics, it is classified as GDA/OGDA-unstable).

Optimization.

We use the following standard terminology.

For a min-max problem (2) where ff is twice continuously differentiable,

A point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a critical point of ff if f(x,y)=0\nabla f(\mathbf{x}^{*},\mathbf{y}^{*})=\mathbf{0}.

A critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is isolated if there is a neighborhood UU around (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) where (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is the only critical point.If the critical points are isolated then they are countably many or finite. Otherwise it is called non-isolated.

A critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a local min-max point if there exists a neighborhood UU around (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) so that for all (x,y)U(\mathbf{x},\mathbf{y})\in U we have that f(x,y)f(x,y)f(x,y)f(\mathbf{x}^{*},\mathbf{y})\leq f(\mathbf{x}^{*},\mathbf{y}^{*})\leq f(\mathbf{x},\mathbf{y}^{*}).In optimization literature these critical points are also called local saddle points. If UU is the whole domain then we call it global min-max.

A critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a strongly local min-max point if λmin(xx2f(x,y))>0\lambda_{\min}(\nabla^{2}_{\mathbf{x}\mathbf{x}}f(\mathbf{x}^{*},\mathbf{y}^{*}))>0 and λmax(yy2f(x,y))<0\lambda_{\max}(\nabla^{2}_{\mathbf{y}\mathbf{y}}f(\mathbf{x}^{*},\mathbf{y}^{*}))<0.

2 Formal Statement of Results

We present our main results for GDA and OGDA, to be proven in Sections 2 and 3. Some of our claims make use of the following assumptions about the objective function ff of (2):

2f\nabla^{2}f (the Hessian of ff) is invertible for all x,y\mathbf{x},\mathbf{y}.

GDA is non-imaginary at a critical point (x,y)(x^{*},y^{*}) of ff iff

has no eigenvalue whose real part is . HH captures the difference 1α(J(x,y)In+m)\frac{1}{\alpha}(J(\mathbf{x}^{*},\mathbf{y}^{*})-\mathbf{I}_{n+m}) where JJ is the Jacobian of GDA dynamics and In+m\mathbf{I}_{n+m} the identity matrix.

Our two main results are stated as follows:

Assume ff is twice differentiable and f\nabla f is Lipschitz with constant LL.

Let (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) be a local min max critical point that satisfies Assumption 1.8. For α>0\alpha>0 sufficiently small it holds that (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is GDA-stable fixed point. There is a function with critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) which violates Assumption 1.8, (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is local min-max but not GDA-stable for any 0<α<1L0<\alpha<\frac{1}{L} (Lemmas 2.4, 2.7 and 2.6).

Additionally, if (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a strongly local min max critical point then Assumption 1.8 is satisfied and for α>0\alpha>0 sufficiently small we get (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is GDA-stable (Remark 2.8).

Finally there is a function with a critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) which is not local min-max but it is GDA-stable (for sufficiently small α>0\alpha>0, Lemma 2.5).

Let (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) be a GDA-stable fixed point. For 0<α<12L0<\alpha<\frac{1}{2L} it holds that (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is OGDA-stable. Moreover the inclusion is strict, i.e., there is a function with critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) which is OGDA-stable but not GDA-stable (for small enough α>0\alpha>0, Lemmas 3.4 and 3.5).

Assume ff is twice differentiable and f\nabla f is Lipschitz with constant LL. The set of initial vectors (x0,y0)(\mathbf{x}_{0},\mathbf{y}_{0}) so that GDA converges to (linearly) GDA-unstable fixed points (critical points) is of measure zero. Under Assumption 1.7, the set of initial vectors (x1,y1,x0,y0)(\mathbf{x}_{1},\mathbf{y}_{1},\mathbf{x}_{0},\mathbf{y}_{0}) so that OGDA converges to (linearly) OGDA-unstable fixed points (critical points) is of measure zero. These statements are captured by Theorems 2.2 and 3.2.

Analysis of Gradient Descent/Ascent

In this section we analyze the local behavior (which carries over to a global characterization under Lemma 2.1 and Center-stable manifold theorem A.1) of GDA dynamics (3). In all our statements (theorems, lemmas etc) we work with real-valued function ff that is twice differentiable and we also assume f\nabla f is Lipschitz with constant LL and that the stepsize satisfies 0<α<1L0<\alpha<\frac{1}{L} (unless stated otherwise in the statement of a lemma/theorem).

We need to show the following lemma in order to use the stable manifold theorem (see Theorem A.1).

Let ff be twice differentiable and f\nabla f is Lipschitz with constant LL. Assume that 0<α<1L0<\alpha<\frac{1}{L}. The update rule of the GDA dynamics (3) is a local diffeomorphism.

Let h(x,y)h(\mathbf{x},\mathbf{y}) be the update rule of the dynamics (3). It suffices to show that the Jacobian JGDAJ_{\textrm{GDA}} of hh is invertible and by the use of Inverse Function theorem, the claim follows. After straightforward calculations we get

It suffices to show that the matrix below does not have an eigenvalue that is equal to 1/α-1/\alpha (by just subtracting the identity matrix),

If the function f\nabla f is L-Lipschitz, it follows that 2f2L\left\|\nabla^{2}f\right\|_{2}\leq L (Lemma 6 in ). Therefore by equation (9) we have that ρ(HGDA)HGDA22f2L<1α\rho(H_{\textrm{GDA}})\leq\left\|H_{\textrm{GDA}}\right\|_{2}\leq\left\|\nabla^{2}f\right\|_{2}\leq L<\frac{1}{\alpha}. The claim follows. ∎

Let ff be twice differentiable and f\nabla f is Lipschitz with constant LL. Assume that 0<α<1L0<\alpha<\frac{1}{L} and let hh be the update rule of the GDA dynamics (3), (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) be a GDA-unstable critical point and WGDA(x,y)W_{\textrm{GDA}}(x^{*},y^{*}) be its stable set, i.e.,

It holds that WGDA(x,y)W_{\textrm{GDA}}(x^{*},y^{*}) is of Lebesgue measure zero. Moreover if WGDAW_{\textrm{GDA}} is union of the stable sets of all GDA-unstable critical points, then WGDAW_{\textrm{GDA}} has also measure zero (namely the proof works for non-isolated critical points).

The following corollary is immediate from Theorem 2.2.

2 Characterizing GDA-stability

Assume that 0<α<1L0<\alpha<\frac{1}{L} and let (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) be a local min-max critical point of ff and matrix HH (see equations (5)) computed at (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) has real eigenvalues. It holds that (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is GDA-stable.

By definition of local min-max, it holds that xx2f\nabla_{\mathbf{x}\mathbf{x}}^{2}f is positive semi-definite and also yy2f\nabla_{\mathbf{y}\mathbf{y}}^{2}f is negative semi-definite. Hence the symmetric matrix below (matrix HGDAH_{\textrm{GDA}} is given by equation (8))

is negative semi-definite. We use the Ky Fan inequality which states that the sequence (in decreasing order) of the eigenvalues of 12(HGDA+HGDA)\frac{1}{2}(H_{\textrm{GDA}}+H_{\textrm{GDA}}^{\top}) majorizes the real part of the sequence of the eigenvalues of HGDAH_{\textrm{GDA}} (see , page 4). By assumption that HGDAH_{\textrm{GDA}} has real eigenvalues we conclude that λmax(HGDA)12λmax(HGDA+HGDA)0\lambda_{\max}(H_{\textrm{GDA}})\leq\frac{1}{2}\lambda_{\max}(H_{\textrm{GDA}}+H_{\textrm{GDA}}^{\top})\leq 0 since HGDA+HGDAH_{\textrm{GDA}}+H_{\textrm{GDA}}^{\top} is negative semi-definite. Therefore the spectrum of I+αHGDAI+\alpha H_{\textrm{GDA}} lies in $,thus, thus(\mathbf{x}^{*},\mathbf{y}^{*})$ is GDA-stable. ∎

The converse of Lemma 2.4 is false. There are functions with critical points that are GDA-stable but not local min-max. An example is f(x,y)=18x212y2+610xyf(x,y)=-\frac{1}{8}x^{2}-\frac{1}{2}y^{2}+\frac{6}{10}xySee Figure 1..

We provide an example with two variables (so that we can also give a figure). Let f(x,y)=18x212y2+610xyf(x,y)=-\frac{1}{8}x^{2}-\frac{1}{2}y^{2}+\frac{6}{10}xy. Computing the Jacobian of the update rule of dynamics (3) at point (0,0)(0,0) we get that

Both eigenvalues of JGDAJ_{\textrm{GDA}} have magnitude less than 1 (for any 0<α<1L0<\alpha<\frac{1}{L} where L1.34L\leq 1.34). Finally matrix HGDAH_{\textrm{GDA}} has real eigenvalues. Therefore there exists a neighborhood UU of (0,0)(0,0) so that for all (x0,y0)U(x_{0},y_{0})\in U, we get that limt(xt,yt)=(0,0)\lim_{t}(x_{t},y_{t})=(0,0) for GDA dynamics (3). However it is clear that (0,0)(0,0) is not a local min-max. See also Figure 1 for a pictorial illustration of the result. ∎

We end Section 2 by characterizing the case in which HH has complex eigenvalues.

There are functions with critical points that are not GDA-stable but are local min-max when matrix HH (see equations (5)) has imaginary eigenvalues.

Let f(x,y)=xyf(x,y)=xy. It is clear that critical point (0,0)(0,0) is a local min-max point. Computing the Jacobian of the update rule of dynamics (3) at point (0,0)(0,0) we get that

For any α>0\alpha>0 we have that the eigenvalues of JGDAJ_{\textrm{GDA}} are 1±αi1\pm\alpha i,We denote i:=1i:=\sqrt{-1}. so they have magnitude greater than 11 (and is clear that HGDAH_{\textrm{GDA}} has complex eigenvalues). It is easy to see that xt+12+yt+12=(1+α2)(xt2+yt2)x_{t+1}^{2}+y_{t+1}^{2}=(1+\alpha^{2})(x_{t}^{2}+y_{t}^{2}), i.e., inductively we have

We complete the characterization for the relation between GDA-stable critical points and local min-max with the following lemma:

Let (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) be a local min-max critical point of ff and matrix HH (see equations (5)) computed at (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) has all its eigenvalues with real part nonzero (i.e., Assumption 1.8). There is a small enough step-size α>0\alpha>0 so that (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is GDA-stable.

The proof follows the steps of the proof of Lemma 2.4. Similarly, using Ky Fan inequality we know that for any eigenvalue λ\lambda of HGDAH_{\textrm{GDA}} it holds that

Hence we conclude that Re(λ)\textrm{Re}(\lambda). Additionally, the corresponding eigenvalue of JGDAJ_{\textrm{GDA}} is 1+αλ1+\alpha\lambda. By choosing α<minλ{Re(λ)λ2}\alpha<\min_{\lambda}\{-\frac{\textrm{Re}(\lambda)}{|\lambda|^{2}}\}, it is easy to see that 1+αλ2=1+αRe(λ)+α2λ2<1|1+\alpha\lambda|^{2}=1+\alpha\textrm{Re}(\lambda)+\alpha^{2}|\lambda|^{2}<1 for all the eigenvalues λ\lambda of HGDAH_{\textrm{GDA}}, hence the eigenvalues of JGDAJ_{\textrm{GDA}} have magnitude less than one. ∎

If the critical point (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is strongly local min-max then λmax(H)<0\lambda_{\max}(H)<0 and hence (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is attracting under GDA dynamics, i.e., it holds that \mboxStronglyLocalminmax    \mboxGDAstable\mbox{Strongly Local min-max}\;\subset\;\mbox{GDA-stable}.

Optimistic Gradient Descent/Ascent

The results of the previous section cannot carry over to Optimistic Gradient Descent/Ascent due to the fact that the dynamics has memory and is more challenging to analyze. Here we show that Optimistic Gradient Descent/Ascent avoid OGDA-unstable critical points and we also relate the eigenvalues of the Jacobian of OGDA to the eigenvalues of the Jacobian of GDA. In particular we show that \mboxGDAstable \mboxOGDAstable\mbox{GDA-stable}\ \subset\mbox{OGDA-stable} (inclusion strict). In the beginning we will construct a dynamical system that captures the dynamics of OGDA (4).

We define the function FF to be F(x,y,z,w)=f(x,y)F(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})=f(\mathbf{x},\mathbf{y}) for all (x,y,z,w)X×Y×X×Y(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})\in\mathcal{X}\times\mathcal{Y}\times\mathcal{X}\times\mathcal{Y} (think of the last two vector components as dummy for function FF, its value does not depend on them). Hence it is clear that zF(x,y,z,w)=0\nabla_{\mathbf{z}}F(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})=\mathbf{0} and wF(x,y,z,w)=0\nabla_{\mathbf{w}}F(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})=\mathbf{0}. The same holds for xF(z,w,x,y)=0\nabla_{\mathbf{x}}F(\mathbf{z},\mathbf{w},\mathbf{x},\mathbf{y})=\mathbf{0} and yF(z,w,x,y)=0\nabla_{\mathbf{y}}F(\mathbf{z},\mathbf{w},\mathbf{x},\mathbf{y})=\mathbf{0}.

We define the following function gg which consists of 4 components:

It is not hard to check that (xt+1,yt+1,xt,yt)=g(xt,yt,xt1,yt1),(\mathbf{x}_{t+1},\mathbf{y}_{t+1},\mathbf{x}_{t},\mathbf{y}_{t})=g(\mathbf{x}_{t},\mathbf{y}_{t},\mathbf{x}_{t-1},\mathbf{y}_{t-1}), so gg captures exactly the dynamics of OGDA (4). The idea behind the construction of the dynamical system above is common in the literature of ODEs (ordinal differential equations) where in order to solve (typically to understand the qualitative behavior) a higher order ODE, one approach is to express it as a linear system of ODEs.

2 Analyzing OGDA via system (12)

As in the case of GDA, we need to show the following key lemma in order to use the Center-stable manifold theorem.

Let ff is real-valued C2C^{2} and f\nabla f is Lipschitz with constant LL and 0<α<1L0<\alpha<\frac{1}{L}. Under the Assumption 1.7 we get that the update rule gg of the OGDA dynamics (12) is a local diffeomorphism.

It suffices to show that the Jacobian of gg, denoted by JOGDAJ_{\textrm{OGDA}} is invertible and then by Inverse Function theorem the claim follows. After calculations the Jacobian boils down to the following (we set F(x,y,z,w)=F(z,w,x,y)F^{\prime}(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})=F(\mathbf{z},\mathbf{w},\mathbf{x},\mathbf{y})) :

Observe that for α=0\alpha=0, the matrix JGDAJ_{\textrm{GDA}} is not invertible, as opposed to the case of GDA which is the identity matrix In+m\mathbf{I}_{n+m} and hence is invertible. It is easy to see that for α=0\alpha=0, then g(x,y,z,w)=(x,y,x,y)g(\mathbf{x},\mathbf{y},\mathbf{z},\mathbf{w})=(\mathbf{x},\mathbf{y},\mathbf{x},\mathbf{y}), namely it is not even 111-1 (not even locally).

The null space of JOGDAJ_{\textrm{OGDA}} is the same as the null space of the following matrix HOGDAH_{\textrm{OGDA}} (after row and column operations)

It is clear that under the assumption that the Hessian is invertible (see Assumption 1.7), we get that

Again as in Section 2, we are able to prove the following measure zero argument using Lemma 3.1 and Center-Stable manifold theorem.

Let ff be twice differentiable and f\nabla f is Lipschitz with constant LL. Suppose that Assumption 1.7 holds and 0<α<1L0<\alpha<\frac{1}{L}. Let gg be the update rule of the OGDA dynamics (4), (x,y,x,y)(\mathbf{x}^{*},\mathbf{y}^{*},\mathbf{x}^{*},\mathbf{y}^{*}) be a OGDA-unstable critical point and WOGDA(x,y,x,y)W_{\textrm{OGDA}}(x^{*},y^{*},x^{*},y^{*}) be its stable set, i.e.,

It holds that WOGDA(x,y,x,y)W_{\textrm{OGDA}}(x^{*},y^{*},\mathbf{x}^{*},\mathbf{y}^{*}) is of Lebesgue measure zero. Moreover if WOGDAW_{\textrm{OGDA}} is union of the stable sets of all OGDA-unstable critical points, then WOGDAW_{\textrm{OGDA}} has also measure zero (namely the proof works for non-isolated critical points).

The following corollary is immediate from Theorem 3.2.

3 Characterizing OGDA-stability

In this subsection we provide an analysis for the eigenvalues of the Jacobian matrix JOGDAJ_{\textrm{OGDA}} of the update rule gg of the system (12). We begin by claiming that the set of GDA-stable critical points is a subset of the set of OGDA-critical points. We manage to show this by constructing a mapping between the eigenvalues of JGDAJ_{\textrm{GDA}} and JOGDAJ_{\textrm{OGDA}}.

Let ff be twice differentiable and f\nabla f be L-Lipschitz. Assume that 0<α<12L0<\alpha<\frac{1}{2L} and suppose (x,y)(\mathbf{x}^{*},\mathbf{y}^{*}) is a critical point that is GDA-stable (i.e., stable according to dynamics (3)). The critical point (x,y,x,y)(\mathbf{x}^{*},\mathbf{y}^{*},\mathbf{x}^{*},\mathbf{y}^{*}) is stable according to OGDA dynamics (4).

A fixed point of the dynamics (4) is of the form (x,y,x,y)(\mathbf{x},\mathbf{y},\mathbf{x},\mathbf{y}) (see Remark 1.5). The Jacobian of the update rule gg becomes as follows:

We would like to find a relation between the eigenvalues of matrix (16) and matrix (6) (relate the Jacobian of both dynamics GDA and OGDA). We start with the matrix

The absolute value of the determinant of a matrix remains invariant under row/column operations (add a multiple of a row/column to another row/column or exchange rows/columns). After such operations, the determinant of the matrix above has determinant in absolute value equal to (we assume that λ0\lambda\neq 0)

The determinant above is equal to λm+np(λ)\lambda^{m+n}p(\lambda), where

It is clear that λ=12\lambda=\frac{1}{2} is not an eigenvalue of JOGDAJ_{\textrm{OGDA}}. Let qGDA(λ)q_{\textrm{GDA}}(\lambda) be the characteristic polynomial of JGDAJ_{\textrm{GDA}} (6, Jacobian of GDA dynamics at (x,y)(\mathbf{x},\mathbf{y})). The characteristic polynomial qOGDAq_{\textrm{OGDA}} of JOGDAJ_{\textrm{OGDA}} ends up being equal to

Let rr be an eigenvalue of matrix HGDAH_{\textrm{GDA}} (8), i.e., r+1r+1 is an eigenvalue of JGDAJ_{\textrm{GDA}}. From relation (17) it turns out that the roots of the polynomial

are eigenvalues of the matrix JOGDAJ_{\textrm{OGDA}}. For α<12L\alpha<\frac{1}{2L} it holds that r<12|r|<\frac{1}{2} and it turns out that all the roots of the quadratic equation (18) have magnitude at most one (see Mathematica code in Section A.1 for a proof of the inequality). ∎

We conclude the subsection with the following claim and a remark.

There are functions with critical points that are OGDA-stable but not GDA-stable.

The easiest example is f(x,y)=xyf(x,y)=xy. It is clear that the Jacobian of GDA dynamics (3) is given by

which has eigenvalues 1±αi1\pm\alpha i (magnitude greater than one) and hence the critical point (0,0)(0,0) is GDA-unstable. However, the Jacobian of OGDA dynamics (4) is given by

which has the four eigenvalues 12(1±18α2±44α4α2)\frac{1}{2}(1\pm\sqrt{1-8\alpha^{2}\pm 4\sqrt{4\alpha^{4}-\alpha^{2}}}). For 0<α<1/20<\alpha<1/2 all the four eigenvalues have magnitude less than or equal to 1, hence (0,0)(0,0) is OGDA-stable (see mathematica code A.2 for the inequality claim). Another example which is not bilinear (Assumption 1.7 is satisfied) is the function 12x2+12y2+4xy\frac{1}{2}x^{2}+\frac{1}{2}y^{2}+4xy (this is used in the example section). ∎

We would like to note that some of our results (e.g., Lemma 3.1 and Theorem 3.2) are not applicable to a generic bilinear function f(x,y)=xAyf(\mathbf{x},\mathbf{y})=\mathbf{x}^{\top}A\mathbf{y}, since if AA is not a square matrix, the Hessian 2f\nabla^{2}f is not invertible (they are applicable only when AA is square matrix and invertible).

Examples and Experiments

The function f1(x,y)=18x212y2+610xyf_{1}(x,y)=-\frac{1}{8}x^{2}-\frac{1}{2}y^{2}+\frac{6}{10}xy has the property that the critical point (0,0)(0,0) is GDA-stable but not local min-max (see Lemma 2.5). Moreover, consider f2(x,y)=12x2+12y2+4xyf_{2}(x,y)=\frac{1}{2}x^{2}+\frac{1}{2}y^{2}+4xy. This function has the property that the critical point (0,0)(0,0) is GDA-unstable and is easy to check that is not a local min-max. We construct the polynomial function f(x,y)=f1(x,y)(x1)2(y1)2+f2(x,y)x2y2f(x,y)=f_{1}(x,y)(x-1)^{2}(y-1)^{2}+f_{2}(x,y)x^{2}y^{2}. Function ff has the property that around (0,0)(0,0) behaves like f1f_{1} and around (1,1)(1,1) behaves like f2f_{2}. The GDA dynamics of ff can be seen in Figure 2. However more critical points are created. There are five critical points, i.e, (0,0),(0,1),(1,0),(1,1),(0.3301,0.3357)(0,0),(0,1),(1,0),(1,1),(0.3301,0.3357) (in interval RR, the last critical point is computed approximately). In Table 1 we observe that the critical point (0,0)(0,0) is stable for OGDA but unstable for GDA (essentially OGDA has more attracting critical points). Moreover, our theorems of avoiding unstable fixed points are verified with this experiment. Note that there are some initial conditions that GDA and OGDA dynamics don’t converge (3% and 9.8% respectively).

2 Higher dimensional

Let f(x,y):=p(x,y)(i=15xi3+yi3)+w(x,y)f(\mathbf{x},\mathbf{y}):=p(\mathbf{x},\mathbf{y})\cdot(\sum_{i=1}^{5}x_{i}^{3}+y_{i}^{3})+w(\mathbf{x},\mathbf{y}), where pp is the random 3-degree polynomial as mentioned above and w(x,y)=i=15(xi2yi2)w(\mathbf{x},\mathbf{y})=\sum_{i=1}^{5}(x_{i}^{2}-y_{i}^{2}). It is clear that ff locally at (0,...,0)(0,...,0) behaves like function ww (which has 0\mathbf{0} as a local min-max critical point). We run for 10000 uniformly random points in RR and it turns out that 87% of initial points converge to 0\mathbf{0} in OGDA as opposed to GDA which 79.3% fraction converged. This experiment indicates qualitative difference between the two methods, where the area of region of attraction in OGDA is a bit larger.

Conclusion

In this paper we made a step towards understanding first order methods which are used to solve min-max optimization problems, by analyzing the local behavior of GDA and OGDA dynamics around critical points. Our paper is an indication that important first order methods we analyze fail to converge to only local min-max solutions(standard concept in optimization literature). Whether or not local min-max solutions is a good concept is out of the scope of this paper. Local min-max solutions might not be all equally good and some may be bad, which is really important in applications such as training GANs. Nevertheless, even for minimization problems, finding good local minima is a hard task that is not well understood in the literature (most first order methods guarantee convergence to some local minimum, without guarantees about its quality). A forteriori guaranteeing good solutions in a min-max problem is a harder proposition and an important open question.

References

Appendix A Missing theorems and proofs

Let xx^{*} be a fixed point for the CrC^{r} local diffeomorphism g:XXg:\mathcal{X}\to\mathcal{X}. Suppose that E=EsEuE=E_{s}\oplus E_{u}, where EsE_{s} is the span of the eigenvectors corresponding to eigenvalues of magnitude less than or equal to one of Dg(x)Dg(x^{*}), and EuE_{u} is the span of the eigenvectors corresponding to eigenvalues of magnitude greater than one of Dg(x)Dg(x^{*})Jacobian of function gg.. Then there exists a CrC^{r} embedded disk WloccsW^{cs}_{loc} of dimension dim(Es)dim(E^{s}) that is tangent to EsE_{s} at xx^{*} called the local stable center manifold. Moreover, there exists a neighborhood BB of xx^{*}, such that g(Wloccs)BWloccsg(W^{cs}_{loc})\cap B\subset W^{cs}_{loc}, and k=0gk(B)Wloccs\cap_{k=0}^{\infty}g^{-k}(B)\subset W^{cs}_{loc}.

It follows the general line of the papers . We assume that the update rule of GDA, OGDA dynamics is a diffeomorphism (as proved in Lemmas 2.1 and 3.1). The proof is generic and has appeared in . Let AA be the set of unstable critical points xx^{*} of a dynamical system with update rule a function g:XXg:\mathcal{X}\to\mathcal{X} (in C2C^{2}). For each xAx^{*}\in A, there is an associated open neighborhood BxB_{x^{*}} promised by the Stable Manifold Theorem A.1. xABx\cup_{x^{*}\in A}B_{x^{*}} forms an open cover, and since X\mathcal{X} is second-countable we can extract a countable subcover, so that xABx=i=1Bxi\cup_{x^{*}\in A}B_{x^{*}}=\cup_{i=1}^{\infty}B_{x^{*}_{i}}.

Define W={x0:limkxkA}W=\{x_{0}:\lim_{k}x_{k}\in A\} (stable set of AA). Fix a point x0Wx_{0}\in W. Since xkxAx_{k}\to x^{*}\in A, then for some non-negative integer TT and all tTt\geq T, gt(x0)xABxg^{t}(x_{0})\in\cup_{x^{*}\in A}B_{x^{*}}. Since we have a countable sub-cover, gt(x0)Bxig^{t}(x_{0})\in B_{x^{*}_{i}} for some xiAx^{*}_{i}\in A and all tTt\geq T. This implies that gt(x0)k=0 gk(Bxi)g^{t}(x_{0})\in\cap_{k=0}^{\infty}\ g^{-k}(B_{x^{*}_{i}}) for all tTt\geq T. By Theorem A.1, Sik=0gk(Bxi)S_{i}\triangleq\cap_{k=0}^{\infty}g^{-k}(B_{x^{*}_{i}}) is a subset of the local center stable manifold which has co-dimension at least one, and SiS_{i} is thus measure zero.

Finally, gT(x0)Sig^{T}(x_{0})\in S_{i} implies that x0gT(Si)x_{0}\in g^{-T}(S_{i}). Since TT is unknown we union over all non-negative integers, to obtain x0j=0gj(Si)x_{0}\in\cup_{j=0}^{\infty}g^{-j}(S_{i}). Since x0x_{0} was arbitrary, we have shown that Wi=1j=0gj(Si)W\subset\cup_{i=1}^{\infty}\cup_{j=0}^{\infty}g^{-j}(S_{i}). Using Lemma 1 of page 5 in and that countable union of measure zero sets is measure zero, WW has measure zero.

A.2 Mathematica code for proving claim in Lemma 3.5