Near-optimal Local Convergence of Alternating Gradient Descent-Ascent for Minimax Optimization

Guodong Zhang, Yuanhao Wang, Laurent Lessard, Roger Grosse

INTRODUCTION

Since the seminal work of von Neumann (von Neumann, 1928), minimax optimization in the form of min⁡xmax⁡yf(x,y)\min_{\mathbf{x}}\max_{\mathbf{y}}f(\mathbf{x},\mathbf{y}) has been a major focus of research in mathematics, economics and computer science (von Neumann and Morgenstern, 1944; Başar and Olsder, 1998; Roughgarden, 2010). Recently, minimax optimization has gained tremendous attention in machine learning as it offers a flexible paradigm that goes beyond ordinary loss function minimization. In particular, there is an increasing set of models that can be formulated as minimax problems, including (but not limited to) generative adversarial networks (Goodfellow et al., 2014; Arjovsky et al., 2017), adversarial training (Madry et al., 2018), robust optimization (Ben-Tal et al., 2009) and primal-dual reinforcement learning (Du et al., 2017; Yang et al., 2020c).

The most natural and frequently used method for solving minimax problems is a generalization of gradient descent known as gradient descent-ascent (GDA), with either simultaneous or alternating updates of the two players, referred to as Sim-GDA and Alt-GDA, respectively, throughout the sequel. Unlike gradient descent, which converges to a local minimum for minimization problems under a broad range of conditions (Lee et al., 2016, 2017), it is known that GDA with constant step-sizes can fail to converge for general smooth functions (Mescheder et al., 2017), even for unconstrained bilinear games (Gidel et al., 2019b; Bailey and Piliouras, 2018). Even when it does converge, GDA may exhibit rotational behaviors (Mescheder et al., 2017; Letcher et al., 2019; Schaefer and Anandkumar, 2019) and hence converge slowly (see Figure 1). To combat these issues, several algorithms have been introduced specifically for smooth minimax games, including consensus optimization (Mescheder et al., 2017), symplectic gradient adjustment (Letcher et al., 2019), negative momentum (NM) (Gidel et al., 2019b; Zhang and Wang, 2021), optimistic gradient descent-ascent (OGDA) (Popov, 1980; Rakhlin and Sridharan, 2013; Daskalakis et al., 2018; Mertikopoulos et al., 2019) and extra-gradient (EG) (Korpelevich, 1976).

In theory, many of these algorithms enjoy improved convergence rates compared to GDA. In particular, both OGDA and EG are near-optimal for SCSC minimax problems (Mokhtari et al., 2020b). However, in practice, GDA and its adaptive variants are still the go-to algorithms for many applications (e.g., GAN optimization and offline policy evaluation (Yang et al., 2020c)). Here, the catch is that the overwhelming majority of existing theoretical analyses focus on simultaneous algorithms where players update their strategies at the same time, as simultaneous updates are easier to analyze and can often be formulated as solving a variational inequality problem (Harker and Pang, 1990; Gidel et al., 2019a; Zhang et al., 2021). This is in stark contrast to our common practice where alternating algorithms are actually used. Nonetheless, our understanding of alternating algorithms in minimax optimization is severely limited to simple bilinear games. Despite it being a very natural question to ask, the convergence properties of Alt-GDA for SCSC minimax games and many other settings remain largely unknown. The key difficulty is that every iteration of an alternating algorithm is a composition of two half updates, which greatly complicates analysis.

Our contributions. In this paper, we take a step towards understanding Alt-GDA and closing the gap between theory and practice. We first revisit the convergence properties of Alt-GDA in bilinear games for completeness. We then discuss our main contributions on proving near-optimal convergence rates of Alt-GDA. In more detail:

We prove that, for SCSC minimax gamesThe SCSC setting is fundamental. Via reduction (Lin et al., 2020; Yang et al., 2020b), an efficient algorithm for this setting implies efficient algorithms for other settings, including strongly convex-concave, convex-concave, and non-convex-concave settings., Alt-GDA achieves an iteration complexity of O(κ)\mathcal{O}(\kappa) locally (κ\kappa is the condition number), which is quadratically better than the O(κ2)\mathcal{O}(\kappa^{2}) bound for Sim-GDA and even matches EG/OGDA. Importantly, the complexity bound for Alt-GDA in this setting is near-optimal as it matches the coarse lower bound in (Azizian et al., 2020b, Corollary 1).

We further prove that both Sim-GDA and Alt-GDA attain linear convergence when the minimax problem has only strong concavity in y\mathbf{y} but no strong convexity in x\mathbf{x} by assuming non-singularity of the coupling matrix.

We show that Alt-GDA can converge with the same rate O(κ)\mathcal{O}(\kappa) globally for a class of SCSC minimax games with a bilinear coupling term. This is done by using theory of IQC to automatically search for a Lyapunov function.

Lastly, we validate our theory on quadratic minimax games. Empirically, we demonstrate that alternating updates could speed up GAN training dramatically (which matches the existing results in Goodfellow et al. (2014); Radford et al. (2015)) and perform on par with optimistic updates though GAN objective is generally nonconvex-nonconcave.

PRELIMINARIES

We begin by presenting the fundamental two-player zero-sum game that we will consider in the sequel. To be specific, our problem of interest is the following unconstrained minimax optimization problem:

We are usually interested in finding a Nash equilibrium (von Neumann and Morgenstern, 1944): a set of parameters from which no player can (unilaterally) improve its objective function. In this work, we focus on the case of ff being a convex-concave and smooth function. Here we state the assumption formally.

The function ff is continuously differentiable and LL-smooth in x\mathbf{x} and y\mathbf{y}. Furthermore, we assume ff is convex in x\mathbf{x} and concave in y\mathbf{y}.

For completeness, we state the definition of smooth function. We note that the smoothness assumption is standard for convergence analysis in the literature.

A differentiable function ϕ:d→\phi:^{d}\rightarrow is LL-smooth if it has LL-Lipschitz gradient on d, i.e., for any x1,x2∈d\mathbf{x}_{1},\mathbf{x}_{2}\in^{d}, we have ∥∇ϕ(x1)−∇ϕ(x2)∥≤L∥x1−x2∥\|\nabla\phi(\mathbf{x}_{1})-\nabla\phi(\mathbf{x}_{2})\|\leq L\|\mathbf{x}_{1}-\mathbf{x}_{2}\|.

One of the nice properties of working with convex-concave problems is that there often exists at least one global Nash equilibrium (x∗,y∗)(\mathbf{x}^{*},\mathbf{y}^{*}) such that for any x∈m,y∈n\mathbf{x}\in^{m},\mathbf{y}\in^{n} we have

2 Gradient Descent-Ascent Family

We now present two algorithms we will discuss in this paper, Sim-GDA and Alt-GDA. The de-facto standard algorithm for finding Nash equilibria of general smooth two-player minimax games is simultaneous gradient descent-ascent (Sim-GDA) which is a direct generalization of gradient descent to minimax games. In particular, it updates both players x\mathbf{x} and y\mathbf{y} simultaneously:

where η\eta is the step sizeUsing separate step sizes for two players does not improve the worst-case convergence rate.. Succinctly, Sim-GDA updates (2) can be defined as the repeated application of a nonlinear operator in the form of zt+1=FηSim(zt)≜zt−ηV(zt)\mathbf{z}_{t+1}=F_{\eta}^{\textup{Sim}}(\mathbf{z}_{t})\triangleq\mathbf{z}_{t}-\eta V(\mathbf{z}_{t}) with z=[x⊤,y⊤]⊤\mathbf{z}=[\mathbf{x}^{\top},\mathbf{y}^{\top}]^{\top} and V(z)=[∇xf(x,y)⊤,−∇yf(x,y)⊤]⊤V(\mathbf{z})=[\nabla_{\mathbf{x}}f(\mathbf{x},\mathbf{y})^{\top},-\nabla_{\mathbf{y}}f(\mathbf{x},\mathbf{y})^{\top}]^{\top}, the gradient vector field. By contrast, Alt-GDA takes advantage of the fact that the iterates xt+1\mathbf{x}_{t+1} and yt+1\mathbf{y}_{t+1} are computed sequentially:

Similarly, we can write the updates as zt+1=FηAlt(zt)\mathbf{z}_{t+1}=F_{\eta}^{\textup{Alt}}(\mathbf{z}_{t}).

3 Local Convergence Rates

We stress that local convergence analysis has been widely adopted in smooth game optimization (see e.g., Gidel et al. (2019b); Wang et al. (2019); Azizian et al. (2020b); Zhang and Wang (2021); Liang and Stokes (2019); Fiez and Ratliff (2021)). Under certain conditions on a fixed point operator FF, linear convergence is guaranteed in a neighborhood around a fixed point z∗\mathbf{z}^{*} (i.e. local convergence).

For a continuously differentiable nonlinear operator FF with the fixed point z∗\mathbf{z}^{*}, if the spectral radius ρF≜ρ(∇F(z∗))<1\rho_{F}\triangleq\rho(\nabla F(\mathbf{z}^{*}))<1, then for any z0\mathbf{z}_{0} in a neighborhood of z∗\mathbf{z}^{*}, the iterates of zt\mathbf{z}_{t} converge to z∗\mathbf{z}^{*} with a linear rate of O((ρF+ϵ)t)\mathcal{O}((\rho_{F}+\epsilon)^{t}) for any ϵ>0\epsilon>0.

With this theorem, one can obtain local convergence rate of an algorithm by just computing the spectral radius of ∇Fη(z∗)\nabla F_{\eta}(\mathbf{z}^{*}), which is a constant matrix depending on η\eta in our setting. In the paper, we focus on the worst-case convergence rate which is defined (up to a ϵ\epsilon difference) as follows:

where the inner maximization is over all possible instances within the whole problem class M\mathcal{M}.

4 Revisiting Alt-GDA for Bilinear Games

In this section, we revisit the unconstrained bilinear games (Gidel et al., 2019b; Daskalakis and Panageas, 2018; Liang and Stokes, 2019; Mokhtari et al., 2020a) for which Sim-GDA diverges with any finite step size. Formally, the bilinear game is given by

where we ignore the linear terms without loss of generality. Here, the Nash equilibrium is (x∗,y∗)(\mathbf{x}^{*},\mathbf{y}^{*}) satisfying B⊤x∗=0\mathbf{B}^{\top}\mathbf{x}^{*}=\mathbf{0} and By∗=0\mathbf{B}\mathbf{y}^{*}=\mathbf{0}. To measure convergence, one could monitor the distance to the equilibrium:

We aim to understand the difference between the dynamics of simultaneous and alternating methods. Practitioners have been widely using the latter instead of the former when optimizing GANs despite the rich optimization literature on simultaneous methods.

For Sim-GDA, the eigenvalues of I−∇FηSim\mathbf{I}-\nabla F_{\eta}^{\textup{Sim}} are all pure imaginary. As a result, we have the spectral radius as ρ(∇FηSim)=1+η2σmax2(B)\rho(\nabla F_{\eta}^{\textup{Sim}})=1+\eta^{2}\sigma_{\text{max}}^{2}(\mathbf{B}). Therefore, we have

For any η>0\eta>0, the iterates of Sim-GDA diverges as

This theorem states that the iterates of Sim-GDA diverge linearly for any positive constant step-size η\eta. By contrast, the iterates of Alt-GDA stay bounded due to the sequential update rule which significantly shifts the eigenvalues of the Jacobian. Specifically, the eigenvalues of ∇FηAlt\nabla F_{\eta}^{\textup{Alt}} are roots of the polynomial (x−1)2+η2λx(x-1)^{2}+\eta^{2}\lambda x with λ∈Sp(B⊤B)\lambda\in\text{Sp}(\mathbf{B}^{\top}\mathbf{B}). As a consequence, the spectral radius of ∇FηAlt\nabla F_{\eta}^{\textup{Alt}} is upper bounded by 11 for some η\eta and hence the iterates of Alt-GDA stays bounded.

For any 0<η≤2σmax(B)0<\eta\leq\frac{2}{\sigma_{\text{max}}(\mathbf{B})}, the iterates of Alt-GDA stay bounded

Similar results can be found in the literature (see e.g., Gidel et al. (2019b); Zhang and Yu (2020)). In addition, one can show that for bilinear games, Alt-GDA is a symplectic integrator applied on the continuous dynamics (Bailey et al., 2020), which preserves energy and volume.

NEAR-OPTIMAL LOCAL CONVERGENCE IN SCSC SETTING

Bilinear games, as discussed previously, are somewhat simplistic in that they obey a conservation law and can be easily solved by performing gradient descent on the Hamiltonian (Letcher et al., 2019; Azizian et al., 2020b). In this section, we consider a different class of games whose Jacobian has both symmetric and antisymmetric components, and are therefore arguably harder to solve. In particular, we assume f(x,y)f(\mathbf{x},\mathbf{y}) is SCSC and smooth, which implies

We let L≜max⁡{Lx,Ly,Lxy}L\triangleq\max\{L_{\mathbf{x}},L_{\mathbf{y}},L_{\mathbf{x}\mathbf{y}}\} and μ≜min⁡{μx,μy}\mu\triangleq\min\{\mu_{\mathbf{x}},\mu_{\mathbf{y}}\} and define the condition number κ≜L/μ\kappa\triangleq L/\mu. Accordingly, one can define κx≜L/μx\kappa_{\mathbf{x}}\triangleq L/\mu_{\mathbf{x}} and κy≜L/μy\kappa_{\mathbf{y}}\triangleq L/\mu_{\mathbf{y}}. We now briefly summarize some known results about convergence of Sim-GDA in this setting. The worst-case convergence rate (4) of Sim-GDA reduces to ρ(I−η∇V(z∗))\rho(\mathbf{I}-\eta\nabla V(\mathbf{z}^{*})), which is equivalent to

With the step size η=μ2L2\eta=\frac{\mu}{2L^{2}}, we have ρ(∇FηSim(z∗))<1−14κ2\rho(\nabla F_{\eta}^{\textup{Sim}}(\mathbf{z}^{*}))<1-\frac{1}{4\kappa^{2}}. Hence, Sim-GDA converges locally at a linear rate O((1−14κ2)t)\mathcal{O}\left(\left(1-\frac{1}{4\kappa^{2}}\right)^{t}\right).

This theorem suggests that Sim-GDA converges to the equilibrium linearly with an iteration complexity of O(κ2)\mathcal{O}(\kappa^{2}), which is known to be tight (Azizian et al., 2020b) but much slower than the O(κ)\mathcal{O}(\kappa) iteration complexity of extra-gradient (EG) or optimistic gradient-descent-ascent (OGDA) (Gidel et al., 2019a; Mokhtari et al., 2020a; Azizian et al., 2020a; Zhang et al., 2021).

To understand why, we note the maximization over λ\lambda in (7) is attained by λ=μ+2L2−μ2i\lambda=\mu+\sqrt{2L^{2}-\mu^{2}}i, which has a large imaginary component. It is easy to show (see e.g., Mescheder et al. (2017)) that the largest feasible step size in (7) is inversely proportional to (∣λ∣/ℜ(λ))2(|\lambda|/\Re(\lambda))^{2}. Hence, the step size has to be extremely small in the presence of eigenvalues with large imaginary parts, which in turn, leads to slow convergence. In a nutshell, the culprits of slow convergence in Sim-GDA are eigenvalues of the Jacobian of the associated vector field VV with large imaginary parts. We stress that eigenvalues with large imaginary components contribute to a strong “rotational force”. To improve convergence, many algorithms have been introduced to suppress the rotational force, including EG, OGDA, and NM. Indeed, all three of these algorithms improve the convergence rate by some margin in theory. Nevertheless, GDA (or its adaptive variant) is still the go-to algorithm in practice.

We believe the reason these alternative algorithms haven’t been adopted widely is that practical algorithms for cases such as GANs are typically based on Alt-GDA rather than Sim-GDA. Surprisingly, despite the popularity of Alt-GDA, its convergence properties haven’t been analyzed in this setting. While it is perhaps intuitive that Alt-GDA should perform better than Sim-GDA due to its use of fresher gradient information, we show that, in fact, Alt-GDA achieves a quadratic speedup over Sim-GDA locally and matches the convergence rate of EG and OGDA.

Local convergence analyses of Sim-GDA, EG and OGDA are based on matrix spectral calculation, and in principle one can apply this to Alt-GDA as well. However, bounding the spectral radius is much harder for Alt-GDA, since the algorithm involves two half steps, and the spectral radius of the matrix product can’t be bounded straightforwardly in terms of the spectral radii of the two factors. This is likely why the convergence rate of Alt-GDA remained unknown. By treating complex eigenvalues differently and adopting a fined-grained analysis, we arrive at the following bounds for the eigenvalues of ∇FηAlt(z∗)\nabla F^{\textup{Alt}}_{\eta}(\mathbf{z}^{*}):

With the step size η≤12L\eta\leq\frac{1}{2L}, the eigenvalues of ∇FηAlt(z∗)\nabla F^{\textup{Alt}}_{\eta}(\mathbf{z}^{*}) satisfy

In stark contrast to Sim-GDA, for which the complex eigenvalues of ∇FηSim\nabla F_{\eta}^{\textup{Sim}} can have magnitude as large as 1−2ημ+2η2L2\sqrt{1-2\eta\mu+2\eta^{2}L^{2}}, the complex eigenvalues of ∇FηAlt\nabla F_{\eta}^{\textup{Alt}} are much smaller in magnitude and are even smaller than the real eigenvalues as shown in Theorem 5. As a result, we are allowed to use a larger step size, which gives an improved convergence rate (see Figure 2 for details).

Following immediately from Theorem 5, we have the following Corollary. {cor} With η=12L\eta=\frac{1}{2L}, we have ρ(∇FηAlt(z∗))≤1−12κ\rho(\nabla F_{\eta}^{\textup{Alt}}(\mathbf{z}^{*}))\leq 1-\frac{1}{2\kappa}. Hence by Theorem 1, Alt-GDA converges locally at a linear rate O((1−12κ+ϵ)t)\mathcal{O}\left(\left(1-\frac{1}{2\kappa}+\epsilon\right)^{t}\right) with ϵ>0\epsilon>0 an arbitrarily small constant. In particular, this corollary suggests that the iteration complexity of Alt-GDA matches the coarse lower iteration complexity boundThe fine-grained bound (Zhang et al., 2019b) is Ω(κxκy)\Omega(\sqrt{\kappa_{\mathbf{x}}\kappa_{\mathbf{y}}}). One could achieve this bound by using a accelerated proximal point framework (Yang et al., 2020b) with Alt-GDA in the inner-loop. Ω(κ)\Omega(\kappa) (Azizian et al., 2020b, Corollary 1) up to a constant, implying Alt-GDA is near-optimal (at least locally). This is the first time that one can rigorously show the Alt-GDA converges faster than Sim-GDA by more than a constant, let alone quadratically faster.

Furthermore, it implies that the convergence rate of Alt-GDA is no worse than its rate for pure cooperative games with B≜∇xy2f=0\mathbf{B}\triangleq\nabla_{\mathbf{x}\mathbf{y}}^{2}f=\mathbf{0}. Put differently, the adversarial component (the existence of coupling matrix B\mathbf{B}) does not make the optimization any harder for Alt-GDA. We remark that this is not true for Sim-GDA because in that case, the coupling matrix B\mathbf{B} introduces complex eigenvalues with large imaginary parts, which slow down convergence.

ACCELERATION WITHOUT STRONG CONVEXITY

We have shown that Alt-GDA achieves a near-optimal local convergence rate for SCSC minimax games. In this section, we further consider the case that has only strong concavity in the player y\mathbf{y} but no strong convexity in x\mathbf{x}. In particular, it is equivalent to assuming

This setting was investigated in empirical policy evaluation where no strong convex regularization is applied on the primal variables (Du et al., 2017). They showed that the non-singularity of the coupling matrix B≜∇xy2f(x∗,y∗)\mathbf{B}\triangleq\nabla_{\mathbf{x}\mathbf{y}}^{2}f(\mathbf{x}^{*},\mathbf{y}^{*}) can help achieve linear convergence for Sim-GDA. Technically, the coupling matrix B\mathbf{B} has to be full-row rank (i.e., λmin(BB⊤)>0\lambda_{\text{min}}(\mathbf{B}\mathbf{B}^{\top})>0) and we simply assume μxy≜σmin(B)>0\mu_{\mathbf{x}\mathbf{y}}\triangleq\sigma_{\text{min}}(\mathbf{B})>0. Then for Sim-GDA, we have the eigenvalues of its Jacobian as follows:

Let η≤1L\eta\leq\frac{1}{L}, the eigenvalues of ∇FηSim(z∗)\nabla F^{\textup{Sim}}_{\eta}(\mathbf{z}^{*}) satisfy the following bound

To be noted, our eigenvalue bounds in Theorem 6 are slightly different from that in Du et al. (2017) as they allow step size separation for player x\mathbf{x} and y\mathbf{y}. As a result, we get the following local convergence rate by optimizing over the step-size η\eta. {cor} With η=μy4L2\eta=\frac{\mu_{\mathbf{y}}}{4L^{2}}, we have ρ(∇FηSim(z∗))<1−116max⁡{κyκxy2,κy2}\rho(\nabla F_{\eta}^{\textup{Sim}}(\mathbf{z}^{*}))<1-\frac{1}{16\max\{\kappa_{\mathbf{y}}\kappa_{\mathbf{x}\mathbf{y}}^{2},\kappa_{\mathbf{y}}^{2}\}}. Hence, Sim-GDA converges locally at a linear rate O((1−116max⁡{κyκxy2,κy2})t)\mathcal{O}\left(\left(1-\frac{1}{16\max\{\kappa_{\mathbf{y}}\kappa_{\mathbf{x}\mathbf{y}}^{2},\kappa_{\mathbf{y}}^{2}\}}\right)^{t}\right). This corollary suggests that the convergence rate of Sim-GDA could match the rate in Theorem 4 if the coupling matrix is well-conditioned (i.e., κxy≈1\kappa_{\mathbf{x}\mathbf{y}}\approx 1), albeit the absence of strong convexity in x\mathbf{x}. Naturally, this begs the question: whether we can derive similar results for Alt-GDA that improves upon the rate bound of Sim-GDA. We answer this question in the affirmative. In particular, we have the following bounds for the eigenvalues of ∇FηAlt\nabla F^{\textup{Alt}}_{\eta}.

Let η≤12L\eta\leq\frac{1}{2L}, the eigenvalues of ∇FηAlt(z∗)\nabla F^{\textup{Alt}}_{\eta}(\mathbf{z}^{*}) satisfy the following bound

Compare the eigenvalue bound of Alt-GDA to Sim-GDA, one may notice that the main difference is the complex eigenvalues. Similar to the SCSC setting, the complex eigenvalues of Alt-GDA are much smaller in magnitude, thus allowing us to use larger step sizes. Consequently, we have a better convergence rate for Alt-GDA (see Figure 1 for detailed comparisons). {cor} Choosing η=12L\eta=\frac{1}{2L}, we have we have ρ(∇FηAlt(z∗))≤1−14max⁡{κxy2,κy}\rho(\nabla F_{\eta}^{\textup{Alt}}(\mathbf{z}^{*}))\leq 1-\frac{1}{4\max\{\kappa_{\mathbf{x}\mathbf{y}}^{2},\kappa_{\mathbf{y}}\}}. Hence, Alt-GDA converges locally at a linear rate O((1−14max⁡{κxy2,κy}+ϵ)t)\mathcal{O}((1-\frac{1}{4\max\{\kappa_{\mathbf{x}\mathbf{y}}^{2},\kappa_{\mathbf{y}}\}}+\epsilon)^{t}) with ϵ>0\epsilon>0 a small constant. Compared with the bound of Sim-GDA in Theorem 4, one can see that Alt-GDA converges much faster than Sim-GDA, especially when κy\kappa_{\mathbf{y}} is large.

GLOBAL CONVERGENCE FOR BILINEARLY-COUPLED MINIMAX GAMES

So far, we derived local convergence rates of Alt-GDA in different settings. Nonetheless, the global convergence results remain largely unknown. Unlike local convergence analysis, we have to switch to Lyapunov theory for global convergence analysis. Finding a right Lyapunov function for Alt-GDA turns out to be extremely hard and we resort to integral quadratic constraints (IQC) theory (Lessard et al., 2016; Zhang et al., 2021) for a computer-aided proofSee the blog by Adrien Taylor for more details about computer-aided analyses (https://francisbach.com/computer-aided-analyses/).. Basically, we view the algorithm as an interconnected dynamical system with nonlinear feedback (i.e., the gradient) and model the nonlinear feedback with quadratic constraintsBoth convexity and smoothness can be characterized tightly with quadratic constraints.. Then it allows us to automatically search for a quadratic Lyapunov function for certifying the worst-case convergence rate by solving a semi-definite program (SDP). Due to space constraints, we refer the reader to Appendix B for all the details.

In particular, we analyze Alt-GDA for bilinearly-coupled minimax games with the following form:

where we assume both ff and gg are μ\mu-strongly-convex and LL-smooth, ∥B∥2≤L\|\mathbf{B}\|_{2}\leq L. This problem is a special case of the minimax games that is amenable to IQC analysis. This problem has been studied extensively Chambolle and Pock (2011); Du and Hu (2019); Xie et al. (2021). However, the convergence properties of Alt-GDA again remain unknown.

Using the IQC framework, we are able to search for the best possible convergence rate of Alt-GDA for every given condition number κ\kappa by solving a SDP. However, the size of the SDP is proportional to mm and nn. This can be problematic in cases where mm (or nn) is large because it can be computationally costly to solve large SDPs. Fortunately, we prove that the high dimensional problem isn’t any harder than than the case of m=n=1m=n=1, so we can reduce the problem to a SDP with m=n=1m=n=1, which is easy to solve.

Using the IQC framework to analyze the convergence rate of Alt-GDA on problem (8), we can simply assume m=n=1m=n=1 if B\mathbf{B} is diagonal. Let ρm,n\rho_{m,n} be the IQC-certified rate for problem (8) with x∈m\mathbf{x}\in^{m} and y∈n\mathbf{y}\in^{n}, then we have ρm,n≤ρ1,1\rho_{m,n}\leq\rho_{1,1}.

In Figure 3, we plot the IQC-certified iteration complexity as a function of condition number. We observe that the bound for Alt-GDA does improve upon that of Sim-GDA, especially when the condition number is large. In particular, the complexity of Alt-GDA scales linearly with the condition number, suggesting its iteration complexity is O(κ)\mathcal{O}(\kappa). This implies that Alt-GDA does accelerate the convergence globally for this class of problem.

RELATED WORK

The discussion of simultaneous and alternating updates in iterative algorithms dates back to the Jacobi and Gauss–Seidel methods in numerical linear algebra (Saad, 2003). The Jacobi method makes simultaneous updates and is therefore naturally amenable to parallelization. On the other hand, the Gauss-Seidel method updates sequentially, so that each update leverages fresh information, and therefore is typically more stable and converges in fewer iterations. In minimax optimization, there is an analogous trade-off between simultaneous and alternating updates.

The discussion of alternating algorithms is lacking and is largely limited to simple bilinear games. Gidel et al. (2019b) showed that Alt-GDA stays bounded and negative momentum with alternating updates converges linearly in bilinear games. Later, Bailey et al. (2020) extended the analysis of Alt-GDA to no-regret online learning, albeit just for simple bilinear games. Zhang and Yu (2020) provided some evidence that alternating versions of many popular algorithms outperform their simultaneous counterpart in bilinear games. Very recently, Yang et al. (2020a) established the global convergence of Alt-GDA in a subclass of nonconvex-nonconcave objectives satisfying a so-called two-sided Polyak-Łojasiewicz inequality. Xu et al. (2020); Boţ and Böhm (2020) proved convergence rates for alternating (proximal) GDA for nonconvex-concave minimax problems. However, it remains unclear whether these alternating methods improve the convergence compared to their simultaneous counterparts in the above two settings.

By contrast, there is a large body of work on simultaneous methods in minimax optimization. For the strongly convex-strongly concave case, Tseng (1995) and Nesterov and Scrimali (2011) proved that their algorithms find an ϵ\epsilon-saddle point with a gradient complexity of O(κln⁡(1/ϵ))\mathcal{O}(\kappa\ln(1/\epsilon)) using a variational inequality approach. Using a different approach, Gidel et al. (2019a) and Mokhtari et al. (2020a) derived the same convergence results for OGDA. Particularly, Mokhtari et al. (2020a) gave a unified analysis of OGDA and EG from the perspective of proximal point methods. Later, Zhang et al. (2021) provided a unified and automated framework for analyzing various first-order methods using the theory of integral quadratic constraints from control theory. Very recently, Ibrahim et al. (2020); Zhang et al. (2019b) established fine-grained lower complexity bounds among all the first-order algorithms in this setting, and these bounds were later achieved by Lin et al. (2020); Wang and Li (2020). For the convex-concave setting, it is known that the optimal rate of convergence for first-order methods is O(1/T)\mathcal{O}(1/T), and this rate is achieved by both the EG and OGDA 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 O(1/T)\mathcal{O}(1/\sqrt{T}) bound for the last iterate of EG and OGDA.

EXPERIMENTS

In this section, we compare the performance of Alt-GDA with Sim-GDA along with other three popular algorithms (EG, OGDA and NM) so as to verify our theoretical results on the convergence rate of Alt-GDA. In particular, we focus on the following quadratic minimax problem:

where we set the dimension d=100d=100. We note both linear regression (Du and Hu, 2019) and robust least squares (Yang et al., 2020a) problems admit this minimax formulation. The matrices A\mathbf{A} and C\mathbf{C} are set to have eigenvalues {1i}i=1d\{\tfrac{1}{i}\}_{i=1}^{d}. For matrix B\mathbf{B}, we set it to be a random matrix with entries sampling from a Gaussian distribution (either N(0,0.01)\mathcal{N}(0,0.01) or N(0,1)\mathcal{N}(0,1)). In the case of B\mathbf{B} sampled from N(0,1)\mathcal{N}(0,1), the resulting gradient vector field has a strong rotational force since the off-diagonal blocks of its Jacobian dominates (see (10) in the Appendix). For all algorithms, the iterates start with x0=1\mathbf{x}_{0}=\mathbf{1} and y0=1\mathbf{y}_{0}=\mathbf{1}. Figure 4 shows that the distance to the optimum of Sim-GDA, Alt-GDA, OGDA, EG and NMWe implemented the simultaneous version of negative momentum (NM). For alternating NM, the optimal damping value of NM is roughly zero, making it the same algorithm as Alt-GDA. versus the number of iterations for this problem. For all methods, we tune their hyperparameters by grid-search. We notice that all methods converge linearly to the optimum. As expected, Alt-GDA performs significantly better than Sim-GDA and yields a convergence rate that is better than its worst-case rate (black dashed line). Moreover, we find that Alt-GDA outperforms OGDA and EG by a visible margin. This is surprising, in that OGDA and EG take another memory buffer for accelerating the convergence.

Furthermore, we study how the convergence rates (or iteration complexities) scale with the condition numbers. To this end, we randomly sampleWe let the eigenvalues of matrices A\mathbf{A} and C\mathbf{C} be {1ni}i=1d\{\tfrac{1}{n_{i}}\}_{i=1}^{d} where nin_{i} are evenly spaced from 11 to NN, where NN is in [10,103][\sqrt{10},10^{3}]. We sample all entries of B\mathbf{B} from standard normal distribution N(0,1)\mathcal{N}(0,1) and then normalize it. matrices A,B,C\mathbf{A},\mathbf{B},\mathbf{C} and compute the condition number by κ=max⁡{∣λi∣}min⁡{ℜ(λi)}\kappa=\frac{\max\{|\lambda_{i}|\}}{\min\{\Re(\lambda_{i})\}} where λi\lambda_{i} are eigenvalues of the Jacobian J\mathbf{J} of the gradient vector field in (10). Once we have all these three matrices, we can compute the spectral radius ρ\rho of all algorithms with tuned step-sizes and momentum value. We plot −1/log⁡(ρ)-1/\log(\rho) versus the condition number κ\kappa in Figure 4 (right) to get a sense of how the relative iteration complexity scales as a function of condition number. We find that the iteration complexity of Alt-GDA scales linearly with the condition number, matching our prediction in Corollary 3. On the other hand, Sim-GDA takes roughly κ2\kappa^{2} iterations to convergence, as predicted in Theorem 4. In addition, Alt-GDA is slightly better than OGDA and EG as its curve is below that of OGDA and EG, albeit with the same slope.

2 Generative Adversarial Networks

In this section, we investigate the effect of alternating updates on training generative adversarial networks. The purpose of this section is to show that the insights gained from our analyses carry over to GAN training despite the fact that the GAN objective is generally nonconvex-nonconcave. In addition, we note that while GAN training is a stochastic problem, stochastic problems are sometimes in a curvature-dominated regime where the convergence behavior resembles that of the deterministic problems (Zhang et al., 2019a).

We first compare alternating algorithms with their simultaneous counterparts on CIFAR10 (Krizhevsky et al., 2009) image generation task with the WGAN-GP (Gulrajani et al., 2017) objective and a DCGAN (Radford et al., 2015) architecture. In particular, we choose SGD and AMSGrad (Reddi et al., 2018) as our base optimizers. For more implementation details, please see Appendix D. We evaluate all algorithms with Fréchet Inception DistanceInception score (Salimans et al., 2016) is also a popular metric, however it was shown by Chavdarova et al. (2021) that it is less consistent with the sample quality, so we instead use FID score here. (FID) (Heusel et al., 2017). Figure 5(c) and 5(d) summarize our results. With SGD as our optimizerWe also include the results with exponential moving average (EMA)., we observe that alternating SGD not only converges faster, but also converges to a better point with lower FID score. Although both alternating version and simultaneous version of AMSGrad converges to models with similar FID scores, the alternating version again converges with many fewer iterations, matching our prediction. In addition, we generate samples from trained Generators at iteration 30000 with SGD optimizer (see Figure 5(a) and 5(b)). It is easy to see that the model trained with alternating updates generates better samples given the same compute budget.

Furthermore, we compare simultaneous methods and alternating methods on a deep ResNet (Miyato et al., 2018). We also include optimistic updates (Daskalakis et al., 2018) in the training, which is the key component of OGDASee Appendix D for detailed update rule.. We report all results in Figure 6. The first observation is that alternating algorithms take fewer iterations to converge regardless of whether optimism is used, and sometimes converge to models with better FID scores (similar to DCGAN results). Second, we observe that the use of optimism only helps for simultaneous algorithms, suggesting that alternating updates and optimistic updates play similar roles in improving GAN training. This could be explained by our theoretical results that Alt-GDA enjoys a similar convergence rate to OGDA.

CONCLUSION

In this paper, we take an important step towards understanding alternating algorithms in minimax optimization by analyzing Alt-GDA in three distinct settings. In particular, we show theoretically that Alt-GDA outperforms its simultaneous counterpart by a big margin in all three settings. Unexpectedly, Alt-GDA achieves a near-optimal convergence rate locally for strongly convex-strongly concave smooth minimax games, matching the known coarse lower bound. Moreover, the acceleration effect of Alt-GDA remains when the minimax problem has only strong concavity in the dual variables.

Our numerical simulations on toy quadratic games verified our claims. Further, we demonstrate empirically that alternating updates could significantly speed up GAN training though GAN objective is generally nonconvex-nonconcave. More interestingly, we show that the use of optimism only helps for simultaneous algorithms. We believe that the default use of alternating update rule in GAN training was an important reason for its success.

References

Appendix A Technical Proofs

For notational convenience, we define the gradient vector field of minimax games V(z)=[∇xf(x,y)⊤,−∇yf(x,y)⊤]⊤V(\mathbf{z})=[\nabla_{\mathbf{x}}f(\mathbf{x},\mathbf{y})^{\top},-\nabla_{\mathbf{y}}f(\mathbf{x},\mathbf{y})^{\top}]^{\top} and its associated Jacobian matrix at Nash equilibrium z∗\mathbf{z}^{*}:

For the bilinear games, the spectral radius of ∇FηAlt\nabla F_{\eta}^{\textup{Alt}} is easy to bound. In particular, we have

Here, we define the SVD decomposition of B\mathbf{B} as B=UB^V⊤\mathbf{B}=\mathbf{U}\hat{\mathbf{B}}\mathbf{V}^{\top} where B^\hat{\mathbf{B}} is diagonal, hence we have ρ(∇FηAlt)\rho(\nabla F_{\eta}^{\textup{Alt}}) equivalent to the spectral radius of the following matrix

A.2 Proof of Theorem 4

To prove Theorem 4, we first claim that all eigenvalues of J\mathbf{J} in (10) fall within the following set:

We first prove ℜλ≥μ\Re\lambda\geq\mu. Let λ≜a+bi\lambda\triangleq a+bi be a complex eigenvalue of J\mathbf{J} such that Jv=λv\mathbf{J}\mathbf{v}=\lambda\mathbf{v}. In general, the eigenvector v\mathbf{v} is a complex vector and we let v=u+wi\mathbf{v}=\mathbf{u}+\mathbf{w}i. Then, one can show

where u1∈m\mathbf{u}_{1}\in^{m} is the first half of the vector u\mathbf{u} and u2∈n\mathbf{u}_{2}\in^{n} is the second half (the same for w1,w2\mathbf{w}_{1},\mathbf{w}_{2}). As we know that A⪰μxI⪰μI\mathbf{A}\succeq\mu_{\mathbf{x}}\mathbf{I}\succeq\mu\mathbf{I} and C⪰μyI⪰μI\mathbf{C}\succeq\mu_{\mathbf{y}}\mathbf{I}\succeq\mu\mathbf{I}, we have

We next prove ∣λ∣≤2L|\lambda|\leq\sqrt{2}L. To this end, it suffices to show λmax(J⊤J)≤2L2\lambda_{\text{max}}(\mathbf{J}^{\top}\mathbf{J})\leq 2L^{2}. Recall the definition of J\mathbf{J} in (10), we have

Because we assume A⪯LxI⪯LI\mathbf{A}\preceq L_{\mathbf{x}}\mathbf{I}\preceq L\mathbf{I}, C⪯LyI⪯LI\mathbf{C}\preceq L_{\mathbf{y}}\mathbf{I}\preceq L\mathbf{I} and ∥B∥2≤Lxy≤L\|\mathbf{B}\|_{2}\leq L_{\mathbf{x}\mathbf{y}}\leq L, we have

Therefore, we get ∣λ∣≤2L|\lambda|\leq\sqrt{2}L. Now the convergence rate bound of Sim-GDA reduces to the following problem:

where the maximum modulus is achieved at the point λ=μ+2L2−μ2i\lambda=\mu+\sqrt{2L^{2}-\mu^{2}}i. Hence, we have

By invoking Theorem 1, we finish our proof.

A.3 Proof of Theorem 5

By definition, we have the Jacobian matrix of Alt-GDA updates in the following form:

Without loss of generality, we assume matrices A\mathbf{A} and C\mathbf{C} to be diagonal with eigenvalues [α]i[\alpha]_{i} and [β]j[\beta]_{j}. We have the characteristic polynomial:

In the case of λ\lambda being real, it is easy to show that for any η≤12L\eta\leq\frac{1}{2L}, we have

We prove that by contradiction. Suppose λ>max⁡{1−ηαmin,1−ηβmin}≥0\lambda>\max\{1-\eta\alpha_{\text{min}},1-\eta\beta_{\text{min}}\}\geq 0, then we have

Suppose λ<−max⁡{1−ηαmin,1−ηβmin}≤0\lambda<-\max\{1-\eta\alpha_{\text{min}},1-\eta\beta_{\text{min}}\}\leq 0, we have

For bilinear games where C=0\mathbf{C}=\mathbf{0}, we have M⪰0\mathbf{M}\succeq\mathbf{0} and hence λ\lambda is impossible to be smaller than −1-1. On the other hand, since we have η≤12L\eta\leq\frac{1}{2L}, we know M⪰0\mathbf{M}\succeq\mathbf{0}, contradiction again. Therefore, we proved that ∣λ∣≤max⁡{1−ηαmin,1−ηβmin}|\lambda|\leq\max\{1-\eta\alpha_{\text{min}},1-\eta\beta_{\text{min}}\}.

In the case of λ\lambda being complex, we let λ=a+bi\lambda=a+bi with b≠0b\neq 0 and v\mathbf{v} be the eigenvector associated with λ\lambda such that Mv=λv\mathbf{M}\mathbf{v}=\lambda\mathbf{v}. Then we have the following identities:

Plugging the value of M\mathbf{M}, we have

where Δj=(a−1+ηαj)2+b2\Delta_{j}=(a-1+\eta\alpha_{j})^{2}+b^{2}. It follows from (31) and (30) that

A.4 Proof of Theorem 6

Recall that the Jacobian matrix ∇FηSim(z∗)\nabla F_{\eta}^{\textup{Sim}}(\mathbf{z}^{*}) of Sim-GDA:

To bound its spectral radius, we first compute its characteristic polynomial and simplify it with the Schur complement.

In the case of λ\lambda being real, for η≤1L\eta\leq\frac{1}{L}, one can prove that λ\lambda is within the range (0,1)(0,1) by contradiction argument. Without loss of generality, we assume matrices A\mathbf{A} and C\mathbf{C} to be diagonal with eigenvalues [α]i[\alpha]_{i} and [β]j[\beta]_{j}. Let assume λ>1−ηβmin\lambda>1-\eta\beta_{\text{min}}, then we claim that λ≤1−ηLλmin(BB⊤)\lambda\leq 1-\frac{\eta}{L}\lambda_{\text{min}}(\mathbf{B}\mathbf{B}^{\top}). The key is (by λ<1\lambda<1)

Therefore, we have a upper bound for M≜I−ηA−η2B(λI−(I−ηC))−1B⊤)\mathbf{M}\triangleq\mathbf{I}-\eta\mathbf{A}-\eta^{2}\mathbf{B}(\lambda\mathbf{I}-(\mathbf{I}-\eta\mathbf{C}))^{-1}\mathbf{B}^{\top})

Hence, λ\lambda, as one of the eigenvalues of M\mathbf{M}, has to be smaller than 1−ηLλmin(BB⊤)1-\frac{\eta}{L}\lambda_{\text{min}}(\mathbf{B}\mathbf{B}^{\top}). In summary, we proved that

In the case of λ\lambda being complex, we claim that ℜ(λ)≤1−η2μy\Re(\lambda)\leq 1-\frac{\eta}{2}\mu_{\mathbf{y}}. Let λ=a+bi\lambda=a+bi with b≠0b\neq 0 and v\mathbf{v} be the eigenvector associated with λ\lambda such that Mv=λv\mathbf{M}\mathbf{v}=\lambda\mathbf{v}. Then we have the following identities:

Plugging the value of M\mathbf{M}, we have

Therefore, we proved our claim that ℜ(λ)=a≤1−η2βmin\Re(\lambda)=a\leq 1-\frac{\eta}{2}\beta_{\text{min}}.

Then, we could prove J=1η(I−∇FηSim(z∗))\mathbf{J}=\frac{1}{\eta}(\mathbf{I}-\nabla F_{\eta}^{\textup{Sim}}(\mathbf{z}^{*})) has the operator norm ∥J∥≤2L\|\mathbf{J}\|\leq\sqrt{2}L by the same argument in (18). Consequently, we have ∣ℑ(λ)∣≤η2L2−14μy2|\Im(\lambda)|\leq\eta\sqrt{2L^{2}-\frac{1}{4}\mu_{\mathbf{y}}^{2}}. Follows immediately, we have

A.5 Proof of Theorem 7

As in the proof of Theorem 5, we analyze the eigenvalues of ∇FηAlt(z∗)\nabla F_{\eta}^{\textup{Alt}}(\mathbf{z}^{*}). Recall ∇FηAlt(z∗)\nabla F_{\eta}^{\textup{Alt}}(\mathbf{z}^{*}) has the following form:

Notice that this matrix in (45) is slightly different from the one defined in (21), but they have the same eigen-spectrum. Without loss of generality, we assume matrices A\mathbf{A} and C\mathbf{C} to be diagonal with eigenvalues [α]i[\alpha]_{i} and [β]j[\beta]_{j}. We then have the characteristic polynomial:

In the case of λ\lambda being real, for any η≤12L\eta\leq\frac{1}{2L}, it is easy to show that λ\lambda, as one of the eigenvalues of M\mathbf{M}, is within (0,1)(0,1). Let us first assume λ>1−ηβmin\lambda>1-\eta\beta_{\text{min}}, we have B(I−ηC)(λI−I+ηC)−1B⊤⪰0\mathbf{B}(\mathbf{I}-\eta\mathbf{C})(\lambda\mathbf{I}-\mathbf{I}+\eta\mathbf{C})^{-1}\mathbf{B}^{\top}\succeq\mathbf{0}. Hence, we have

As a consequence, we know ∣λ∣≤1−η2μxy2|\lambda|\leq 1-\eta^{2}\mu_{\mathbf{x}\mathbf{y}}^{2}.

In the case of λ\lambda being complex, we could reuse the result of (33)

Appendix B Details about IQC framework

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 ϕ:d→d\phi:^{d}\rightarrow^{d},

At each iteration t=0,1,...t=0,1,..., ut∈du_{t}\in^{d} is the control input, yt∈dy_{t}\in^{d} is the output, and ξt∈nd\xi_{t}\in^{nd} is the state for algorithms with nn step of memory. The state matrices A,B,C,DA,B,C,D differ for various algorithms. For most algorithms we consider in the paper, they have the general form:

where Id\mathbf{I}_{d} and 0d\mathbf{0}_{d} are the identity and zero matrix of size d×dd\times d, respectively. Often, the nonlinear function ϕ\phi is the troublesome function we wish to analyze. Although we do not know ϕ\phi exactly, we assume to have some knowledge of the constraints it imposes on the input-output pair (y,u)(y,u). For example, we may assume ϕ\phi to be LL-Lipschitz, which implies ∥ut−u∗∥2≤L∥yt−y∗∥2\|u_{t}-u^{*}\|_{2}\leq L\|y_{t}-y^{*}\|_{2} for all tt with u∗=ϕ(y∗)u^{*}=\phi(y^{*}) as a fixed point. In matrix form, this is

We can also characterize strong convexity of ff and gg by similar quadratic constraints. Notably, the above constraint is very special in that it only manifests itself as separate quadratic constraints on each (yt,ut)(y_{t},u_{t}). It is possible to specify quadratic constraints that couple different tt values. To achieve that, we follow Lessard et al. (2016) and adopt auxiliary sequences ζ,s\zeta,s together with a map Ψ\Psi characterized by matrices (AΨ,BΨy,BΨu,CΨ,DΨy,DΨu)(A_{\Psi},B_{\Psi}^{y},B_{\Psi}^{u},C_{\Psi},D_{\Psi}^{y},D_{\Psi}^{u}):

The equations (52) define an affine map s=Ψ(y,u)s=\Psi(y,u), where sts_{t} could be a function of all past yiy_{i} and uiu_{i} with i≤ti\leq t. We consider the quadratic form (st−s∗)⊤M(st−s∗)(s_{t}-s^{*})^{\top}M(s_{t}-s^{*}) for a given matrix MM with s∗s^{*} and ξ∗\xi^{*} fixed points of (52). We note that the quadratic form is a function of (y0,…,yt,u0,…,ut)(y_{0},\dots,y_{t},u_{0},\dots,u_{t}) that is determined by our choice of (Ψ,M)(\Psi,M). In particular, we can recover constraint (51) with

Combining the dynamics (50) with the map Ψ\Psi (by eliminating yty_{t}), 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 a quadratic Lyapunov function in order to establish a rate bound.

Consider the dynamical system (50). Suppose the vector field FF satisfies the IQC (Ψ,M)(\Psi,M) and define (A^,B^,C^,D^)(\hat{A},\hat{B},\hat{C},\hat{D}) according to (53)–(55), we have the following linear matrix inequality (LMI):

If this LMI is feasible for some P≻0P\succ 0, λ≥0\lambda\geq 0 and ρ>0\rho>0, we have

Consequently, for any ξ0\xi_{0} and ζ0=ζ∗\zeta_{0}=\zeta^{*}, we obtain

The LMI (56) can be extended to the case of multiple constraints with (Ψi,Mi)(\Psi_{i},M_{i}) (see (Lessard et al., 2016, Page 12) for details).

To apply Theorem 9, we seek to solve the semidefinite program (SDP) of finding the minimal ρ\rho such that the LMI (56) 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.

Recall that we are concerned with the bilinear saddle point problem:

For Alt-GDA, it has the following update rule:

We can frame it as a linear dynamical system in feedback with the state matrices:

In our case, we have ξt=yt=[xt⊤,yt⊤]⊤\xi_{t}=y_{t}=[\mathbf{x}_{t}^{\top},\mathbf{y}_{t}^{\top}]^{\top} and ut=[∇xf(x),−∇yg(y)]u_{t}=[\nabla_{\mathbf{x}}f(\mathbf{x}),-\nabla_{\mathbf{y}}g(\mathbf{y})]. Further, we use the weighted off-by-one IQC defined in Lessard et al. (2016) with the following representation (let d=m+nd=m+n):

With all these matrices defined, we can solve the SDP problem (56) with bisection search on ρ\rho. However, we can only solve SDPs with relatively small mm and nn in practice. Towards this end, we prove that we can reduce any problem of (8) to the case with m=n=1m=n=1, which is numerically easy to solve. First, we assume without loss of generality that m≤nm\leq n and B∈m×n\mathbf{B}\in^{m\times n} is diagonal. In the case that B\mathbf{B} is not diagonal, we can do singular value decomposition to get B=UB^V⊤\mathbf{B}=\mathbf{U}\hat{\mathbf{B}}\mathbf{V}^{\top} where B^∈m×n\hat{\mathbf{B}}\in^{m\times n} is diagonal and then absorb U∈m×m\mathbf{U}\in^{m\times m} and V∈n×n\mathbf{V}\in^{n\times n} into x\mathbf{x} and y\mathbf{y} to get the following equivalent problem:

where x^=U⊤x\hat{\mathbf{x}}=\mathbf{U}^{\top}\mathbf{x} and y^=V⊤y\hat{\mathbf{y}}=\mathbf{V}^{\top}\mathbf{y}. Further, one can show f′(x)=f(Ux)f^{\prime}(\mathbf{x})=f(\mathbf{U}\mathbf{x}) (or g′(y)=g(Vy)g^{\prime}(\mathbf{y})=g(\mathbf{V}\mathbf{y})) is also LL-smooth and μ\mu-strongly convex as ff (or gg) is. This is because U\mathbf{U} and V\mathbf{V} are both orthogonal matrices. Therefore, we can assume B\mathbf{B} to be diagonal without loss of generality. Next, we prove that the IQC-certified rate of Alt-GDA for (8) is no worse than the rate of the same problem with m=n=1m=n=1. Formally, we have the following theorem.

For IQC, we basically search for a quadratic Lyapunov function by solving a SDP problem (56). By (61)-(63), we have the linear matrix inequality (LMI) as follows:

Given that B\mathbf{B} is diagonal, one can show that both [A^,B^]\begin{bmatrix}\hat{A},\hat{B}\end{bmatrix} and [C^,D^]\begin{bmatrix}\hat{C},\hat{D}\end{bmatrix} have very special structure. In particular, we can permute them column-wise and row-wise to get block-diagonal matrices:

where both U\mathbf{U} and V\mathbf{V} are permutation matrices. In more detail, the (1,1)(1,1) block is repeated r=min⁡(m,n)r=\min(m,n) times, where B11\mathbf{B}_{11} is replaced by Bii\mathbf{B}_{ii}, i=1,…,ri=1,\dots,r in each successive block, and the smaller block is repeated d−rd-r times. Also we can do the same for [C^,D^]=UQ2V\begin{bmatrix}\hat{C},\hat{D}\end{bmatrix}=\mathbf{U}\mathbf{Q}_{2}\mathbf{V} and [I,0]=UQ3V\begin{bmatrix}\mathbf{I},\mathbf{0}\end{bmatrix}=\mathbf{U}\mathbf{Q}_{3}\mathbf{V}. Each diagonal block of Q3\mathbf{Q}_{3} is either [I4,04×2]\begin{bmatrix}\mathbf{I}_{4},\mathbf{0}_{4\times 2}\end{bmatrix} or [I2,02×1]\begin{bmatrix}\mathbf{I}_{2},\mathbf{0}_{2\times 1}\end{bmatrix}. Hence, we can write (65) in the following form:

It is easy to see that U⊤MU\mathbf{U}^{\top}M\mathbf{U} has the same block-diagonal structure as Q1\mathbf{Q}_{1} and Q2\mathbf{Q}_{2}. If we further restrict U⊤PU\mathbf{U}^{\top}P\mathbf{U} to have the same block-diagonal structure as Q1\mathbf{Q}_{1} and Q2\mathbf{Q}_{2}, then it suffices to pick a ρ\rho so that each diagonal block of the LMI (68) holds. Moreover, the LMI of each diagonal block is the LMI of the case m=n=1m=n=1, except for the last n−mn-m blocks, for which we have

This is the LMI for minimizing a μ\mu-strongly convex LL-smooth function (see Lessard et al. (2016)), which has a better convergence rate compared to our minimax problem (i.e., any feasible ρ\rho of the LMI for 1-dimension minimax problem is also feasible for (69)) because it is a special case of (8) with B=0\mathbf{B}=0 in the 1-dimensional case. So far, we show that as long as the LMI for the case of m=n=1m=n=1 holds, then the general case also holds since the general case can be decomposed into many 1-dimensional problems. This completes the proof. ∎

Appendix C Additional Results on SVHN

Appendix D Implementation Details for Generative Adversarial Networks

For our experiments, we used the PyTorchhttps://pytorch.org/ deep learning framework. For experiments, we compute the FID score using the provided implementation in Tensorflowhttps://github.com/bioinf-jku/TTUR for consistency with related works.

Optimistic update rule: the simultaneous version of optimistic gradient descent-ascent takes the following form:

By comparison, the alternating version iterates as follows:

Loss functions: For DCGAN experiments, we used WGAN-GP objective (Gulrajani et al., 2017). For ResNet experiments, we used the hinge version of the adversarial non-saturating loss, see Miyato et al. (2018). As a reference, our ResNet architectures for CIFAR-10 and SVHN (Netzer et al., 2011) have approximately 8585 layers in total for the generator and discriminator, including the nonlinearity and the normalization layers. This ResNet architecture was also used in Chavdarova et al. (2021), see Appendix E 2.2 of Chavdarova et al. (2021).