Gradient descent GAN optimization is locally stable

Vaishnavh Nagarajan, J. Zico Kolter

Introduction

Since their introduction a few years ago, Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) have gained prominence as one of the most widely used methods for training deep generative models. GANs have been successfully deployed for tasks such as photo super-resolution, object generation, video prediction, language modeling, vocal synthesis, and semi-supervised learning, amongst many others (Ledig et al., 2017; Wu et al., 2016; Mathieu et al., 2016; Nguyen et al., 2017; Denton et al., 2015; Im et al., 2016).

At the core of the GAN methodology is the idea of jointly training two networks: a generator network, meant to produce samples from some distribution (that ideally will mimic examples from the data distribution), and a discriminator network, which attempts to differentiate between samples from the data distribution and the ones produced by the generator. This problem is typically written as a min-max optimization problem of the following form:

For the purposes of this paper, we will shortly consider a more general form of the optimization problem, which also includes the recent Wasserstein GAN (WGAN) (Arjovsky et al., 2017) formulation.

Despite their prominence, the actual task of optimizing GANs remains a challenging problem, both from a theoretical and a practical standpoint. Although the original GAN paper included some analysis on the convergence properties of the approach (Goodfellow et al., 2014), it assumed that updates occurred in pure function space, allowed arbitrarily powerful generator and discriminator networks, and modeled the resulting optimization objective as a convex-concave game, therefore yielding well-defined global convergence properties. Furthermore, this analysis assumed that the discriminator network is fully optimized between generator updates, an assumption that does not mirror the practice of GAN optimization. Indeed, in practice, there exist a number of well-documented failure modes for GANs such as mode collapse or vanishing gradient problems.

In this paper, we consider the “gradient descent” formulation of GAN optimization, the setting where both the generator and the discriminator are updated simultaneously via simple (stochastic) gradient updates; that is, there are no inner and outer optimization loops, and neither the generator nor the discriminator are assumed to be optimized to convergence. Despite the fact that, as we show, this does not correspond to a convex-concave optimization problem (even for simple linear generator and discriminator representations), we show that:

Under suitable conditions on the representational powers of the discriminator and the generator, the resulting GAN dynamical system is locally exponentially stable.

That is, for some region around an equilibrium point of the updates, the gradient updates will converge to this equilibrium point at an exponential rate. Interestingly, our conditions can be satisfied by the traditional GAN but not by the WGAN, and we indeed show that WGANs can have non-convergent limit cycles in the gradient descent case.

Our theoretical analysis also suggests a natural method for regularizing GAN updates by adding an additional regularization term on the norm of the discriminator gradient. We show that the addition of this term leads to locally exponentially stable equilibria for all classes of GANs, including WGANs. The additional penalty is highly related to (but also notably different from) recent proposals for practical GAN optimization, such as the unrolled GAN (Metz et al., 2017) and the improved Wasserstein GAN training (Gulrajani et al., 2017). In practice, the approach is simple to implement, and preliminary experiments show that it helps avert mode collapse and leads to faster convergence.

Background and related work

Although the theoretical analysis of GANs has been far outpaced by their practical application, there have been some notable results in recent years, in addition to the aforementioned work in the original GAN paper. For the most part, this work is entirely complementary to our own, and studies a very different set of questions. Arjovsky and Bottou (2017) provide important insights into instability that arises when the supports of the generated distribution and the true distribution are disjoint. In contrast, in this paper we delve into an equally important question of whether the updates are stable even when the generator is in fact very close to the true distribution (and we answer in the affirmative). Arora et al. (2017), on the other hand, explore questions relating to the sample complexity and expressivity of the GAN architecture and their relation to the existence of an equilibrium point. However, it is still unknown as to whether, given that an equilibrium exists, the GAN update procedure will converge locally.

From a more practical standpoint, there have been a number of papers that address the topic of optimization in GANs. Several methods have been proposed that introduce new objectives or architectures for improving the (practical and theoretical) stability of GAN optimization (Arjovsky et al., 2017; Poole et al., 2016). A wide variety of optimization heuristics and architectures have also been proposed to address challenges such as mode collapse (Salimans et al., 2016; Metz et al., 2017; Che et al., 2017; Radford et al., 2016). Our own proposed regularization term falls under this same category, and hopefully provides some context for understanding some of these methods. Specifically, our regularization term (motivated by stability analysis) captures a degree of “foresight” of the generator in the optimization procedure, similar to the unrolled GANs procedure (Metz et al., 2017). Indeed, we show that our gradient penalty is closely related to 11-unrolled GANs, but also provides more flexibility in leveraging this foresight. Finally, gradient-based regularization has been explored for GANs, with one of the most recent works being that of Gulrajani et al. (2017), though their penalty is on the discriminator rather than the generator as in our case.

Finally, there are several works that have simultaneously addressed similar issues as this paper. Of particular similarity to the methodology we propose here are the works by Roth et al. (2017) and Mescheder et al. (2017). The first of these two present a stabilizing regularizer that is based on a gradient norm, where the gradient is calculated with respect to the datapoints. Our regularizer on the other hand is based on the norm of a gradient calculated with respect to the parameters. Our approach has some strong similarities with that of the second work noted above; however, the authors there do not establish or disprove stability, and instead note the presence of zero eigenvalues (which we will treat in some depth) as a motivation for their alternative optimization method. Thus, we feel the works as a whole are quite complementary, and signify the growing interest in GAN optimization issues.

Thus, to understand stability of the stochastic approximation algorithm, it suffices to understand the stability and convergence of the deterministic differential equation. Though such analysis is typically used to show global asymptotic convergence of the stochastic approximation algorithm to an equilibrium point (assuming the related ODE also is globally asymptotically stable), it can also be used to analyze the local asymptotic stability properties of the stochastic approximation algorithm around equilibrium points.Note that the local analysis does not show that the stochastic approximation algorithm will necessarily converge to an equilibrium point, but still provides a valuable characterization of how the algorithm will behave around these points. This is the technique we follow throughout this entire work, though for brevity we will focus entirely on the analysis of the continuous time ordinary differential equation, and appeal to these standard results to imply similar properties regarding the discrete updates.

Given the above consideration, our focus will be on proving stability of the dynamical system around equilbrium points, i.e. points θ⋆\boldsymbol{\mathbf{\theta}}^{\star} for which h(θ⋆)=0h(\boldsymbol{\mathbf{\theta}}^{\star})=0.Note that this is a slightly different usage of the term equilibrium as typically used in the GAN literature, where it refers to a Nash equilibrium of the min max optimization problem. These two definitions (assuming we mean just a local Nash equilibrium) are equivalent for the ODE corresponding to the min-max game, but we use the dynamical systems meaning throughout this paper, that is, any point where the gradient update is zero. Specifically, we appeal to the well known linearization theorem (Khalil, 1996, Sec 4.3), which states that if the Jacobian of the dynamical system J=∂h(θ)/∂θ∣θ=θ⋆\boldsymbol{\mathbf{J}}=\left.{\partial h(\theta)}/{\partial\theta}\right|_{\theta=\theta^{\star}} evaluated at an equilibrium point is Hurwitz (has all strictly negative eigenvalues, Re(λi(J))<0,  ∀i=1,…,n{\rm Re}(\lambda_{i}(\boldsymbol{\mathbf{J}}))<0,\;\forall i=1,\dots,n), then the ODE will converge to θ⋆\theta^{\star} for some non-empty region around θ⋆\theta^{\star}, at an exponential rate. This means that the system is locally asymptotically stable, or more precisely, locally exponentially stable (see Definition A.1 in Appendix A).

Thus, an important contribution of this paper is a proof of this seemingly simple fact: under some conditions, the Jacobian of the dynamical system given by the GAN update is a Hurwitz matrix at an equilibrium (or, if there are zero-eigenvalues, if they correspond to a subspace of equilibria, the system is still asymptotically stable). While this is a trivial property to show for convex-concave games, the fact that the GAN is not convex-concave leads to a substantially more challenging analysis.

In addition to this, we provide an analysis that is based on Lyapunov’s stability theorem (described in Appendix A). The crux of the idea is that to prove convergence it is sufficient to identify a non-negative “energy” function for the linearized system which always decreases with time (specifically, the energy function will be a distance from the equilibrium, or from the subspace of equilibria). Most importantly, this analysis provides insights into the dynamics that lead to GAN convergence.

GAN optimization dynamics

This section comprises the main results of this paper, showing that under proper conditions the gradient descent updates for GANs (that is, updating both the generator and discriminator locally and simultaneously), is locally exponentially stable around “good” equilibrium points (where “good” will be defined shortly). This requires that the GAN loss be strictly concave, which is not the case for WGANs, and we indeed show that the updates for WGANs can cycle indefinitely. This leads us to propose a simple regularization term that is able to guarantee exponential stability for any concave GAN loss, including the WGAN, rather than requiring strict concavity.

For the remainder of the paper, we consider a slightly more general formulation of the GAN optimization problem than the one presented earlier, given by the following min/max problem:

Assuming the generator and discriminator networks to be parameterized by some set of parameters, θD\boldsymbol{\mathbf{\theta}}_{D} and θG\boldsymbol{\mathbf{\theta}}_{G} respectively, we analyze the simple stochastic gradient descent approach to solving this optimization problem. That is, we take simultaneous gradient steps in both θD\boldsymbol{\mathbf{\theta_{D}}} and θG\boldsymbol{\mathbf{\theta_{G}}}, which in our “ODE method” analysis leads to the following differential equation:

2 Why is proving stability hard for GANs?

Before presenting our main results, we first highlight why understanding the local stability of GANs is non-trivial, even when the generator and discriminator have simple forms. As stated above, GAN optimization consists of a min-max game, and gradient descent algorithms will converge if the game is convex-concave – the objective must be convex in the term being minimized and concave in the term being maximized. Indeed, this was a crucial assumption in the convergence proof in the original GAN paper. However, for virtually any parameterization of the real GAN generator and discriminator, even if both representations are linear, the GAN objective will not be a convex-concave game:

The GAN objective in Equation 2 can be a concave-concave objective i.e., concave with respect to both the discriminator and generator parameters, for a large part of the discriminator space, including regions arbitrarily close to the equilibrium.

To see why, consider a simple GAN over 1 dimensional data and latent space with linear generator and discriminator, i.e. D(x)=θDx+θD′D(x)=\theta_{D}x+\theta_{D}^{\prime} and G(z)=θGz+θG′G(z)=\theta_{G}z+\theta_{G}^{\prime}. Then the GAN objective is:

Because ff is concave, by inspection we can see that VV is concave in θD\theta_{D} and θD′\theta_{D}^{\prime}; but it is also concave (not convex) in θG\theta_{G} and θG′\theta_{G}^{\prime}, for the same reason. Thus, the optimization involves concave minimization, which in general is a difficult problem. To prove that this is not a peculiarity of the above linear discriminator system, in Appendix B, we show similar observations for a more general parametrization, and also for the case where f′′(x)=0f^{\prime\prime}(x)=0 (which happens in the case of WGANs).

However, as we will show, gradient descent GAN optimization is locally asymptotically stable, even for natural parameterizations of generator-discriminator pairs (which still make up concave-concave optimization problems). Furthermore, at equilibrium, although the zero-discriminator property means that the generator is not stable “independently”, the joint dynamical system of generator and discriminator is locally asymptotically stable around certain equilibrium points.

3 Local stability of general GAN systems

This section contains our first technical result, establishing that GANs are locally stable under proper local conditions. Although the proofs are deferred to the appendix, the elements that we do emphasize here are the conditions that we identified for local stability to hold. Indeed, because the proof rests on these conditions (some of which are fairly strong), we want to highlight them as much as possible, as they themselves also convey valuable intuition as to what is required for GAN convergence.

To formalize our conditions, we denote the support of a distribution with probability density function (p.d.f) pp by supp(p){\rm supp}(p) and the p.d.f of the generator θG\boldsymbol{\mathbf{\theta_{G}}} by pθGp_{\boldsymbol{\mathbf{\theta_{G}}}}. Let Bϵ(⋅)B_{\epsilon}(\cdot) denote the Euclidean L2L_{2}-ball of radius of ϵ\epsilon. Let λmax⁡(⋅)\lambda_{\max}(\cdot) and λmin⁡(+)(⋅)\lambda_{\min}^{(+)}(\cdot) denote the largest and the smallest non-zero eigenvalues of a non-zero positive semidefinite matrix. Let Col(⋅){\sf Col}(\cdot) and Null(⋅){\sf Null}(\cdot) denote the column space and null space of a matrix respectively. Finally, we define two key matrices that will be integral to our analyses:

Here, the matrices are evaluated at an equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta_{D}^{\star}}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}) which we will characterize shortly. The significance of these terms is that, as we will see, KDD\boldsymbol{\mathbf{K}}_{DD} is proportional to the Hessian of the GAN objective with respect to the discriminator parameters at equilibrium, and KDG\boldsymbol{\mathbf{K}}_{DG} is proportional to the off-diagonal term in this Hessian, corresponding to the discriminator and generator parameters. These matrices also occur in similar positions in the Jacobian of the system at equilibrium.

We now discuss conditions under which we can guarantee exponential stability. All our conditions are imposed on both (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta_{D}^{\star}}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}) and all equilibria in a small neighborhood around it, though we do not state this explicitly in every assumption. First, we define the “good” equilibria we care about as those that correspond to a generator which matches the true distribution and a discriminator that is identically zero on the support of this distribution. As described next, implicitly, this also assumes that the discriminator and generator representations are powerful enough to guarantee that there are no “bad” equilibria in a local neighborhood of this equilibrium.

pθG⋆=pdatap_{\boldsymbol{\mathbf{\theta^{\star}_{G}}}}=p_{\rm data} and DθD⋆(x)=0D_{\boldsymbol{\mathbf{\theta^{\star}_{D}}}}(x)=0, ∀  x∈supp(pdata)\forall\;x\in{\rm supp}(p_{\rm data}).

The assumption that the generator matches the true distribution is a rather strong assumption, as it limits us to the “realizable” case, where the generator is capable of creating the underlying data distribution. Furthermore, this means the discriminator is (locally) powerful enough that for any other generator distribution it is not at equilibrium (i.e., discriminator updates are non-zero). Since we do not typically expect this to be the case, we also provide an alternative non-realizable assumption below that is also sufficient for our results i.e., the system is still stable. In both the realizable and non-realizable cases the requirement of an all-zero discriminator remains. This implicitly requires even the generator representation be (locally) rich enough so that when the discriminator is not identically zero, the generator is not at equilibrium (i.e., generator updates are non-zero). Finally, note that these conditions do not disallow bad equilibria outside of this neighborhood, which may potentially even be unstable.

Assumption I. (Non-realizable) The discriminator is linear in its parameters θD\boldsymbol{\mathbf{\theta_{D}}} and furthermore, for any equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}), DθD⋆(x)=0D_{\boldsymbol{\mathbf{\theta^{\star}_{D}}}}(x)=0, ∀  x∈supp(pdata)∪supp(pθG⋆)\forall\;x\in{\rm supp}(p_{\rm data})\cup{\rm supp}(p_{\boldsymbol{\mathbf{\theta^{\star}_{G}}}}).

Our goal next is to identify strong curvature conditions that can be imposed on the objective VV (or a function related to the objective), though only locally at equilibrium. First, we will require that the objective is strongly concave in the discriminator parameter space at equilibrium (note that it is concave by default). However, on the other hand, we cannot ask the objective to be strongly convex in the generator parameter space as we saw that the objective is not convex-concave even in the nicest scenario, even arbitrarily close to equilbrium. Instead, we identify another convex function, namely the magnitude of the update on the equilibrium discriminator i.e., ∥∇θDV(θD,θG)∣θD=θD⋆∥2\|\left.\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}V(\boldsymbol{\mathbf{\theta}}_{D},\boldsymbol{\mathbf{\theta}}_{G})\right|_{\boldsymbol{\mathbf{\theta}}_{D}=\boldsymbol{\mathbf{\theta}}_{D}^{\star}}\|^{2}, and require that to be strongly convex in the generator space at equilibrium. Since these strong curvature assumptions will allow only systems with a locally unique equilibrium, we will state them in a relaxed form that accommodates a local subspace of equilibria. Furthermore, we will state these assumptions in two parts, first as a condition on ff, second as a condition on the parameter space.

First, the condition on ff is straightforward, making it necessary that the loss ff be concave at ; as we will show, when this condition is not met, there need not be local asymptotic convergence.

The function ff satisfies f′′(0)<0f^{\prime\prime}(0)<0, and f′(0)≠0f^{\prime}(0)\neq 0

Next, to state conditions on the parameter space while also allowing systems with multiple equilibria locally, we first define the following property for a function, say gg, at a specific point in its domain: along any direction either the second derivative of gg must be non-zero or all derivatives must be zero. For example, at the origin, g(x,y)=x2+x2y2g(x,y)=x^{2}+x^{2}y^{2} is flat along yy, and along any other direction at an angle α≠0\alpha\neq 0 with the yy axis, the second derivative is 2sin⁡2α2\sin^{2}\alpha. For the GAN system, we will require this property, formalized in Property I, for two convex functions whose Hessians are proportional to KDD\boldsymbol{\mathbf{K}}_{DD} and KDGTKDG\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}. We provide more intuition for these functions below.

Here is an intuitive explanation of what these two non-negative functions represent and how they relate to the objective. The first function is a function of θD\boldsymbol{\mathbf{\theta_{D}}} which measures how far θD\boldsymbol{\mathbf{\theta_{D}}} is from an all-zero state, and the second is a function of θG\boldsymbol{\mathbf{\theta_{G}}} which measures how far θG\boldsymbol{\mathbf{\theta_{G}}} is from the true distribution; at equilibrium these functions are zero. We will see later that given f′′(0)<0f^{\prime\prime}(0)<0, the curvature of the first function at θD⋆\boldsymbol{\mathbf{\theta^{\star}_{D}}} is representative of the curvature of V(θD,θG⋆)V(\boldsymbol{\mathbf{\theta_{D}}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}) in the discriminator space; similarly, given f′(0)≠0f^{\prime}(0)\neq 0 the curvature of the second function at θG⋆\boldsymbol{\mathbf{\theta_{G}^{\star}}} is representative of the curvature of the magnitude of the discriminator update on θD⋆\boldsymbol{\mathbf{\theta}}_{D}^{\star} in the generator space. The intuition behind why this particular relation holds is that, when θG\boldsymbol{\mathbf{\theta_{G}}} moves away from the true distribution, while the second function in Assumption III increases, θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}} also becomes more suboptimal for that generator; as a result, the magnitude of update on θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}} increases too. Note that we show in Lemma C.2, that the Hessian of the two functions in Assumption III in the discriminator and the generator space respectively, are proportional to KDD\boldsymbol{\mathbf{K}}_{DD} and KDGTKDG\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}.

The above relations involving the two functions and the GAN objective, together with Assumption III, basically allow us to consider systems with reasonable strong curvature properties, while also allowing many equilibria in a local neighborhood in a specific sense. In particular, if the curvature of the first function is flat along a direction u\boldsymbol{\mathbf{u}} (which also means that KDDu=0\boldsymbol{\mathbf{K}}_{DD}\boldsymbol{\mathbf{u}}=0) we can perturb θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}} slightly along u\boldsymbol{\mathbf{u}} and still have an ‘equilibrium discriminator’ as defined in Assumption I i.e., ∀x∈supp(pθG⋆)\forall x\in{\rm supp}(p_{\boldsymbol{\mathbf{\theta^{\star}_{G}}}}), DθD(x)=0D_{\boldsymbol{\mathbf{\theta_{D}}}}(x)=0. Similarly, for any direction v\boldsymbol{\mathbf{v}} along which the curvature of the second function is flat (i.e., KDGv=0\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{v}}=0), we can perturb θG⋆\boldsymbol{\mathbf{\theta_{G}^{\star}}} slightly along that direction such that θG\boldsymbol{\mathbf{\theta_{G}}} remains an ‘equilibrium generator’ as defined in Assumption I i.e., pθG=pdata{p_{\theta_{G}}}={p_{\rm data}}. We prove this formally in Lemma C.2. Perturbations along any other directions do not yield equilibria because then, either θD\boldsymbol{\mathbf{\theta}}_{D} is no longer in an all-zero state or θG\boldsymbol{\mathbf{\theta}}_{G} does not match the true distribution. Thus, we consider a setup where the rank deficiencies of KDD\boldsymbol{\mathbf{K}}_{DD}, KDGTKDG\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG} if any, correspond to equivalent equilibria (which typically exist for neural networks, though in practice they may not correspond to ‘linear’ perturbations as modeled here).

Our final assumption is on the supports of the true and generated distributions: we require that all the generators in a sufficiently small neighborhood of the equilibrium have distributions with the same support as the true distribution. Following this, we briefly discuss a relaxation of this assumption.

∃ϵG>0\exists\epsilon_{G}>0 such that ∀θG∈BϵG(θG⋆)\forall\boldsymbol{\mathbf{\theta_{G}}}\in B_{\epsilon_{G}}(\boldsymbol{\mathbf{\theta^{\star}_{G}}}), supp(pθG)=supp(pdata){\rm supp}(p_{\boldsymbol{\mathbf{\theta_{G}}}})={\rm supp}(p_{\rm data}).

This may typically hold if the support covers the whole space X\mathcal{X}; but when the true distribution has support in some smaller disjoint parts of the space X\mathcal{X}, nearby generators may correspond to slightly displaced versions of this distribution with a different support. For the latter scenario, we show in Appendix C.1 that local exponential stability holds under a certain smoothness condition on the discriminator. Specifically, we require that DθD⋆(⋅)D_{\boldsymbol{\mathbf{\theta}}_{D}^{\star}}(\cdot) be zero not only on the support of θG⋆\boldsymbol{\mathbf{\theta}}_{G}^{\star} but also on the support of small perturbations of θG⋆\boldsymbol{\mathbf{\theta}}_{G}^{\star} as otherwise the generator will not be at equilibrium. (Additionally, we also require this property from the discriminators that lie within a small perturbation of θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}} in the null space of KDD\boldsymbol{\mathbf{K}}_{DD} so that they correspond to equilibrium discriminators.) We note that while this relaxed assumption accounts for a larger class of examples, it is still strong in that it also restricts us from certain simple systems. Due to space constraints, we state and discuss the implications of this assumption in greater detail in Appendix C.1.

The dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 3 is locally exponentially stable with respect to an equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}) when the Assumptions I, II, III, IV hold for (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}) and other equilibria in a small neighborhood around it. Furthermore, the rate of convergence is governed only by the eigenvalues λ\lambda of the Jacobian J\boldsymbol{\mathbf{J}} of the system at equilibrium with a strict negative real part upper bounded as:

If Im(λ)=0{\rm Im}(\lambda)=0, then Re(λ)≤2f′′(0)f′2(0)λmin⁡(+)(KDD)λmin⁡(+)(KDGTKDG)4f′′2(0)λmin⁡(+)(KDD)λmax⁡(KDD)+f′(0)2λmin⁡(+)(KDGTKDG){\rm Re}(\lambda)\leq\frac{2f^{\prime\prime}(0)f^{\prime 2}(0)\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DD})\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}{4f^{\prime\prime 2}(0)\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DD})\lambda_{\max}(\boldsymbol{\mathbf{K_{DD}}})+f^{\prime}(0)^{2}\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}

If Im(λ)≠0{\rm Im}(\lambda)\neq 0, then Re(λ)≤f′′(0)λmin⁡(+)(KDD){\rm Re}(\lambda)\leq f^{\prime\prime}(0)\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DD})

The vast majority of our proofs are deferred to the appendix, but we briefly describe the intuition here. It is straightforward to show that the Jacobian J\boldsymbol{\mathbf{J}} of the system at equilibrium can be written as:

Recall that we wish to show this is Hurwitz. First note that JDD\boldsymbol{\mathbf{J}}_{DD} (the Hessian of the objective with respect to the discriminator) is negative semi-definite if and only if f′′(0)<0f^{\prime\prime}(0)<0. Next, a crucial observation is that JGG=0\boldsymbol{\mathbf{J}}_{GG}=0 i.e, the Hessian term w.r.t. the generator vanishes because for the all-zero discriminator, all generators result in the same objective value. Fortunately, this means at equilibrium we do not have non-convexity in θG\boldsymbol{\mathbf{\theta}}_{G} precluding local stability. Then, we make use of the crucial Lemma G.2 we prove in the appendix, showing that any matrix of the form [−QP;−PT0]\begin{bmatrix}-\boldsymbol{\mathbf{Q}}&\boldsymbol{\mathbf{P}};&-\boldsymbol{\mathbf{P}}^{T}&0\end{bmatrix} is Hurwitz provided that −Q-\boldsymbol{\mathbf{Q}} is strictly negative definite and P\boldsymbol{\mathbf{P}} has full column rank.

However, this property holds only when KDD\boldsymbol{\mathbf{K}}_{DD} is positive definite and KDG\boldsymbol{\mathbf{K}}_{DG} is full column rank. Now, if KDD\boldsymbol{\mathbf{K}}_{DD} or KDG\boldsymbol{\mathbf{K}}_{DG} do not have this property, recall that the rank deficiency is due to a subspace of equilibria around (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}). Consequently, we can analyze the stability of the system projected to an subspace orthogonal to these equilibria (Theorem A.4). Additionally, we also prove stability using Lyapunov’s stability (Theorem A.1) by showing that the squared L2L_{2} distance to the subspace of equilibria always either decreases or only instantaneously remains constant.

In order to illustrate our assumptions in Theorem 3.1, in Appendix D we consider a simple GAN that learns a multi-dimensional Gaussian using a quadratic discriminator and a linear generator. In a similar set up, in Appendix E, we consider the case where f(x)=xf(x)=x i.e., the Wasserstein GAN and so f′′(x)=0f^{\prime\prime}(x)=0, and we show that the system can perennially cycle around an equilibrium point without converging. A simple two-dimensional example is visualized in Section 4. Thus, gradient descent WGAN optimization is not necessarily asymptotically stable.

4 Stabilizing optimization via gradient-based regularization

Motivated by the considerations above, in this section we propose a regularization penalty for the generator update, which uses a term based upon the gradient of the discriminator. Crucially, the regularization term does not change the parameter values at the equilibrium point, and at the same time enhances the local stability of the optimization procedure, both in theory and practice. Although these update equations do require that we differentiate with respect to a function of another gradient term, such “double backprop” terms (see e.g., Drucker and Le Cun (1992)) are easily computed by modern automatic differentiation tools. Specifically, we propose the regularized update

The intuition of this regularizer is perhaps most easily understood by considering how it changes the Jacobian at equilibrium (though there are other means of motivating the update as well, discussed further in Appendix F.2). In the Jacobian of the new update, although there are now non-antisymmetric diagonal blocks, the block diagonal terms are now negative definite:

As we show below in Theorem 3.2 (proved in Appendix F), as long as we choose η\eta small enough so that I+2ηJDD⪰0I+2\eta\boldsymbol{\mathbf{J}}_{DD}\succeq 0, this guarantees the updates are locally asymptotically stable for any concave ff. In addition to stability properties, this regularization term also addresses a well known failure state in GANs called mode collapse, by lending more “foresight” to the generator. The way our updates provide this foresight is very similar to the unrolled updates proposed in Metz et al. (2017), although, our regularization is much simpler and provides more flexibility to leverage the foresight. In practice, we see that our method can be as powerful as the more complex and slower 10-unrolled GANs. We discuss this and other intuitive ways of motivating our regularizer in Appendix F.

The dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 4, is locally exponentially stable at the equilibrium, under the same conditions as in Theorem 3.1, if η<12λmax⁡(−JDD)\eta<\frac{1}{2\lambda_{\max}(-\boldsymbol{\mathbf{J}}_{DD})}. Further, under appropriate conditions similar to these, the WGAN system is locally exponentially stable at the equilibrium for any η\eta. The rate of convergence for the WGAN is governed only by the eigenvalues λ\lambda of the Jacobian at equilibrium with a strict negative real part upper bounded as:

If Im(λ)=0{\rm Im}(\lambda)=0, then Re(λ)≤−2f′2(0)ηλmin⁡(+)(KDGTKDG)4f′2(0)η2λmax⁡(KDGTKDG)+1{\rm Re}(\lambda)\leq-\frac{2f^{\prime 2}(0)\eta\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}{4f^{\prime 2}(0)\eta^{2}\lambda_{\max}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})+1}

If Im(λ)≠0{\rm Im}(\lambda)\neq 0, then Re(λ)≤−ηf′2(0)λmin⁡(+)(KDGTKDG){\rm Re}(\lambda)\leq-\eta f^{\prime 2}(0){\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}

Experimental results

We very briefly present experimental results that demonstrate that our regularization term also has substantial practical promise.We provide an implementation of this technique at https://github.com/locuslab/gradient_regularized_gan In Figure 1, we compare our gradient regularization to 1010-unrolled GANs on the same architecture and dataset (a mixture of eight gaussians) as in Metz et al. (2017). Our system quickly spreads out all the points instead of first exploring only a few modes and then redistributing its mass over all the modes gradually. Note that the conventional GAN updates are known to enter mode collapse for this setup. We see similar results (see Figure 2 here, and Figure 4 in the Appendix for a more detailed figure) in the case of a stacked MNIST dataset using a DCGAN (Radford et al., 2016) i.e., three random digits from MNIST are stacked together so as to create a distribution over 1000 modes. Finally, Figure 3, presents streamline plots for a 2D system where both the true and the latent distribution is uniform over $andthediscriminatorisand the discriminator isD(x)=w_{2}x^{2}whilethegeneratoriswhile the generator isG(z)=az$. Observe that while the WGAN system goes in orbits as expected, the original GAN system converges. With our updates, both these systems converge quickly to the true equilibrium.

Conclusion

In this paper, we presented a theoretical analysis of the local asymptotic stability of GAN optimization under proper conditions. We further showed that the recently proposed WGAN is not asymptotically stable under the same conditions, but we introduced a gradient-based regularizer which stabilizes both traditional GANs and the WGANs, and can improve convergence speed in practice.

The results here provide substantial insight into the nature of GAN optimization, perhaps even offering some clues as to why these methods have worked so well despite not being convex-concave. However, we also emphasize that there are substantial limitations to the analysis, and directions for future work. Perhaps most notably, the analysis here only provides an understanding of what happens locally, close to an equilibrium point. For non-convex architectures this may be all that is possible, but it seems plausible that much stronger global convergence results could hold for simple settings like the linear quadratic GAN (indeed, as the streamline plots show, we observe this in practice for simple domains). Second, the analysis here does not show the equilibrium points necessarily exist, but only illustrates convergence if there do exist points that satisfy certain criteria: the existence question has been addressed by previous work (Arora et al., 2017), but much more analysis remains to be done here. GANs are rapidly becoming a cornerstone of deep learning methods, and the theoretical and practical understanding of these methods will prove crucial in moving the field forward.

We thank Lars Mescheder for pointing out a missing condition in the relaxed version of Assumption IV (see Appendix C.1) in earlier versions of this manuscript.

References

Appendix

Appendix A Preliminaries

In this section, we present preliminaries from non-linear systems theory [Khalil, 1996]. In particular, we formally define local stability of dynamic systems, and then present an important theorem that helps us study stability of non-linear systems. Finally, we present a modification of this result that will be crucial in proving stability of GANs under our assumptions.

Without loss of generality let the origin be an equilibrium point of this sytem. That is, h(0)=0h(\boldsymbol{\mathbf{0}})=\boldsymbol{\mathbf{0}}. Let θ(t)\boldsymbol{\mathbf{\theta}}(t) denote the state of the system at some time tt. Then, we have the following definition of local stability:

(Definition 4.1 from Khalil ) The origin of the system in Equation 5 is

stable if for each ϵ>0\epsilon>0, there is δ=δ(ϵ)>0\delta=\delta(\epsilon)>0 such that

asymptotically stable if it is stable and δ>0\delta>0 can be chosen such that

exponentially stable if it is asymptotically stable and δ,k,λ>0\delta,k,\lambda>0 can be chosen such that

The system is stable if for any chosen ball around the equilibrium (of radius ϵ\epsilon), one can initialize the system anywhere within a sufficiently small ball around the equilibrium (of radius δ(ϵ)\delta(\epsilon)) such that the system always stays within the ϵ\epsilon ball. Note that such a system may either converge to equilibrium or orbit around equilibrium perennially within the ϵ\epsilon ball. In contrast, a system is unstable if there are initializations that are arbitrarily close to the equilibrium which can escape the ϵ\epsilon-ball. Finally, asymptotic stability is a stronger notion of stability, which implies that there is a region around the equilibrium such that any initialization within that region will converge to the equilibrium (in the limit t→∞t\to\infty). For example, as we saw, GANs are always stable; however, WGANs are stable but not asymptotically stable.

Note that since a GAN system might have multiple arbitrarily close equilibria, or a subspace of equilibria, we will define asymptotic stability to imply convergence to any of the equilibria in the neighborhood of a considered equilibrium. That is, lim⁡t→∞θ(t)=θ⋆\lim_{t\to\infty}\theta(t)=\boldsymbol{\mathbf{\theta^{\star}}} where θ⋆\boldsymbol{\mathbf{\theta^{\star}}} is either the considered equilibrium point at the origin or any other equilibrium point that is within some small neighborhood around origin.

We now present Lyapunov’s stability theorem which is used to prove locally asymptotic stability of a given system. The basic idea is that a system is asymptotically stable if we can find a scalar “energy” function V(θ)V(\boldsymbol{\mathbf{\theta}}) (also called a Lyapunov function) that i) is positive definite which means, V(θ)V(\boldsymbol{\mathbf{\theta}}) positive everywhere and zero at the equilibrium ii) its time derivative V˙(θ)\dot{V}(\boldsymbol{\mathbf{\theta}}) is strictly negative around the equilibrium.

it is positive definite i.e., V(0)=0V(\boldsymbol{\mathbf{0}})=0 and V(θ)>0V(\boldsymbol{\mathbf{\theta}})>0 for θ∈Bϵ(0)−{0}\boldsymbol{\mathbf{\theta}}\in B_{\epsilon}(0)-\{\boldsymbol{\mathbf{0}}\}

V˙(θ)≤0\dot{V}(\boldsymbol{\mathbf{\theta}})\leq 0 for θ∈Bϵ(0)−{0}\boldsymbol{\mathbf{\theta}}\in B_{\epsilon}(0)-\{0\}

then the origin is asymptotically stable.

We next present an important tool that simplifies the study of stability of non-linear systems. The result is that one can “linearize” any non-linear system near an equilibrium and analyze the stability of the linearized system to comment on the local stability of the original system.

(Theorem 4.5 from Khalil ) Let J\boldsymbol{\mathbf{J}} be the Jacobian of the system in Equation 5 at its origin i.e.,

The origin is locally exponentially stable if J\boldsymbol{\mathbf{J}} is Hurwitz i.e., Re(λ)<0{\rm Re}(\lambda)<0 for all eigenvalues λ\lambda of J\boldsymbol{\mathbf{J}}.

The origin is unstable if Re(λ)>0{\rm Re}(\lambda)>0 for all eigenvalues λ\lambda of J\boldsymbol{\mathbf{J}}.

The key idea in the proof for this result is that the system can be written as h(θ)=Jθ+g1(θ)h(\boldsymbol{\mathbf{\theta}})=\boldsymbol{\mathbf{J}}\boldsymbol{\mathbf{\theta}}+g_{1}(\boldsymbol{\mathbf{\theta}}), where g1(θ)g_{1}(\boldsymbol{\mathbf{\theta}}), the remainder of the linear approximation is bounded as ∥g1(θ)∥≤O(∥θ∥2)\|g_{1}(\boldsymbol{\mathbf{\theta}})\|\leq O(\|\boldsymbol{\mathbf{\theta}}\|^{2}) sufficiently close to equilibrium. Now, it turns out that when J\boldsymbol{\mathbf{J}} is Hurwitz, one can find a quadratic Lyapunov function for the original system whose rate of decrease is also quadratic in θ\boldsymbol{\mathbf{\theta}}. Since, ∥g1(θ)∥\|g_{1}(\boldsymbol{\mathbf{\theta}})\| is only a quadratic remainder term, one can show that the remainder term only adds a cubic term to the change in the Lyapunov function. This is however smaller than a quadratic change near the equilibrium, and therefore the quadratic Lyapunov function for the linearized system works as a Lyapunov function for the original system too.

In all our analyses, we will linearize our system and show that the Jacobian is Hurwitz. However, it is often useful to identify the quadratic Lyapunov function for the (linearized) system. Unfortunately, for some of the Jacobians we will encounter, it is hard to come up with a quadratic Lyapunov function that always strictly decreases. Instead, we will identify a function that either strictly decreases or sometimes remains constant but only instantenously. While Lyapunov’s stability theorem does not help us conclude anything about stability for this case, the following corollary of LaSalle’s theorem (we do not state the theorem here) is sufficient to prove asymptotic stability in this case.

V(θ)=0V(\boldsymbol{\mathbf{\theta}})=0 if and only if θ˙=0\boldsymbol{\mathbf{\dot{\theta}}}=0 and V(θ)>0V(\boldsymbol{\mathbf{\theta}})>0 for θ∈Bϵ(0)−{0}\boldsymbol{\mathbf{\theta}}\in B_{\epsilon}(0)-\{\boldsymbol{\mathbf{0}}\} such that θ˙≠0\boldsymbol{\mathbf{\dot{\theta}}}\neq 0 .

V˙(θ)≤0\dot{V}(\boldsymbol{\mathbf{\theta}})\leq 0 for θ∈Bϵ(0)−{0}\boldsymbol{\mathbf{\theta}}\in B_{\epsilon}(\boldsymbol{\mathbf{0}})-\{0\}

Let S={θ∈Bϵ(0) ∣ V˙(θ)=0}S=\{\boldsymbol{\mathbf{\theta}}\in B_{\epsilon}(\boldsymbol{\mathbf{0}})\,|\,\dot{V}(\boldsymbol{\mathbf{\theta}})=0\}. There is no trajectory that identically stays in SS except for the trajectories at equilibrium points.

then the system is locally asymptotically stable with respect to 0\boldsymbol{\mathbf{0}} and other equilibria in its neighborhood.

Finally, we prove an extension of the linearization theorem that helps us deal with analyzing the stability of a special kind of non-linear systems, specifically those with multiple equilibria in a local neighborhood of a considered equilibrium. The theorem, though inuitively follows from the original linearization theorem itself, is not a standard theorem in non-linear systems, to the best of our knowledge.

Formally, we consider a case where the system consists of two sets of parameters θ\boldsymbol{\mathbf{\theta}} and γ\boldsymbol{\mathbf{\gamma}} such that from the equilibrium, any small perturbation along γ\boldsymbol{\mathbf{\gamma}} preserves the equilibrium. We show that it is enough to show that the Jacobian with respect to θ\boldsymbol{\mathbf{\theta}} is Hurwitz to prove stability.

Consider a non-linear system of parameters (θ,γ)(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}}),

with an equilibrium point at the origin. Let there exist ϵ\epsilon such that for any γ∈Bϵ(0)\boldsymbol{\mathbf{\gamma}}\in B_{\epsilon}(\boldsymbol{\mathbf{0}}), (0,γ)(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{\gamma}}) is an equilibrium point. Then, if

is a Hurwitz matrix, the non-linear system in Equation 6 is exponentially stable.

The proof for this statement is quite similar to the proof of the original theorem for linearization. The high level idea is that if J\boldsymbol{\mathbf{J}} is exponentially stable, then there exists a quadratic Lyapunov function that is always decreasing for the system θ˙=Jθ\dot{\boldsymbol{\mathbf{\theta}}}=\boldsymbol{\mathbf{J}}\boldsymbol{\mathbf{\theta}}. Then, we show that the same quadratic function works for the original non-linear system too in a small neighborhood around equilibrium for which the non-linear remainder terms are sufficiently small. In particular, we show that θ\boldsymbol{\mathbf{\theta}} converges to zero, and γ\boldsymbol{\mathbf{\gamma}} converges to a value less than ϵ\epsilon.

A subtle point however, is that this quadratic function would decrease only when it is within a particular neighborhood of θ\boldsymbol{\mathbf{\theta}} around origin, and also a particular neighborhood of γ\boldsymbol{\mathbf{\gamma}} around origin. However, within this neighborhood, say S\mathcal{S}, we can only guarantee that θ\boldsymbol{\mathbf{\theta}} exponentially approaches the origin; γ\boldsymbol{\mathbf{\gamma}} might move away from the ϵ\epsilon-neighborhood around origin, and if it does, the system may exit S\mathcal{S} and the system may not even converge! We carefully overcome this, by first identifying S\mathcal{S}, and then identifying a smaller space within S\mathcal{S} where γ\boldsymbol{\mathbf{\gamma}} does not vary too much over the course of convergence, so that the system stays within S\mathcal{S} forever – until convergence.

The first crucial step is to show that for any constant c>0c>0, for a sufficiently small neighborhood around the equilibrium, we will have ∥g1(θ,γ)∥≤c∥θ∥\|g_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\|\leq c\|\boldsymbol{\mathbf{\theta}}\|. To show this, consider the Taylor series expansion for the remainder g1(θ,γ)=h1(θ,γ)−Jθg_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})=h_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})-\boldsymbol{\mathbf{J}}\boldsymbol{\mathbf{\theta}} around equilibrium. Clearly, the expansion would not have a constant term because h1(0,0)=0h_{1}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{0}})=0. It would not have a linear term in θ\boldsymbol{\mathbf{\theta}} because that is accounted for already. Finally, it will not have any term that is purely a function of γ\boldsymbol{\mathbf{\gamma}}, because h1(0,γ)=0h_{1}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{\gamma}})=0 in a small neighborhood around equilibrium (since (0,γ)(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{\gamma}}) are all equilibria). Therefore, we can write:

where g2(γ)g_{2}(\boldsymbol{\mathbf{\gamma}}) only consists of linear or higher degree terms in γ\boldsymbol{\mathbf{\gamma}} and g3(θ,γ)g_{3}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}}) consists only of terms that are quadratic or higher degree terms in θ\boldsymbol{\mathbf{\theta}} (and any arbitrary degree of γ\boldsymbol{\mathbf{\gamma}}). Therefore, we have that:

Then, for an arbitrarily chosen small constant cc, for a sufficiently close neighborhood around the equilibrium, we can say that ∥g2(γ)∥≤c/2\|g_{2}(\boldsymbol{\mathbf{\gamma}})\|\leq c/2 and ∥g3(θ,γ)∥≤c∥θ∥/2\|g_{3}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\|\leq c\|\boldsymbol{\mathbf{\theta}}\|/2. Thus,

We will use this property soon for a cleverly chosen value of cc. Now, by Theorem 4.6 in Khalil , we have that for any positive definite symmetric matrix Q\boldsymbol{\mathbf{Q}}, there exists a positive definite matrix P\boldsymbol{\mathbf{P}} such that JTP+JP=−Q\boldsymbol{\mathbf{J}}^{T}\boldsymbol{\mathbf{P}}+\boldsymbol{\mathbf{J}}\boldsymbol{\mathbf{P}}=-\boldsymbol{\mathbf{Q}}. Then, if we choose V(θ)=θTPθV(\boldsymbol{\mathbf{\theta}})=\boldsymbol{\mathbf{\theta}}^{T}\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{\theta}} as the quadratic Lyapunov function for the linearized system θ˙=Jθ\boldsymbol{\mathbf{\dot{\theta}}}=\boldsymbol{\mathbf{J}}\boldsymbol{\mathbf{\theta}}, the rate of its decrease is given by V˙(θ)=−θTQθ\dot{V}(\boldsymbol{\mathbf{\theta}})=-\boldsymbol{\mathbf{\theta}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{\theta}} which is negative at all points except at θ=0\boldsymbol{\mathbf{\theta}}=0.

Now, if we use the same Lyapunov function for the whole system as V(θ,γ)=θTPθV(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})=\boldsymbol{\mathbf{\theta}}^{T}\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{\theta}}, the rate of its decrease near the origin would be V˙(θ,γ)=−θTQθ+2θTPg1(θ,γ)\dot{V}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})=-\boldsymbol{\mathbf{\theta}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{\theta}}+2\boldsymbol{\mathbf{\theta}}^{T}\boldsymbol{\mathbf{P}}g_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}}). If we choose a sufficiently small neighborhood such that for c=14∥P∥Fλmin⁡(Q)c=\frac{1}{4\|\boldsymbol{\mathbf{P}}\|_{F}}\lambda_{\min}(\boldsymbol{\mathbf{Q}}), ∥g1(θ,γ)∥≤c∥θ∥\|g_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\|\leq c\|\boldsymbol{\mathbf{\theta}}\|, then we have that,

Now, as long as we ensure that the trajectory of the system remains in the neighborhood around origin for which ∣g1(θ,γ)∥≤14∥P∥Fλmin⁡(Q)∥θ∥|g_{1}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\|\leq\frac{1}{4\|\boldsymbol{\mathbf{P}}\|_{F}}\lambda_{\min}(\boldsymbol{\mathbf{Q}})\|\boldsymbol{\mathbf{\theta}}\| and ∥γ∥<ϵ\|\boldsymbol{\mathbf{\gamma}}\|<\epsilon, this system would then exponentially converge to one of the equilibria near origin. Let us call this neighborhood S\mathcal{S} i.e., within this neighborhood of γ\boldsymbol{\mathbf{\gamma}} and θ\boldsymbol{\mathbf{\theta}}, the Lyapunov function strictly decreases for the non-linear system.

This brings us to the second crucial part of this proof, which is to ensure that we always stay in S\mathcal{S}. Let S\mathcal{S} contain a ball of radius dd. We will show that for sufficiently close initializations which are within a ball of radius d/2d/2, the displacement of γ\boldsymbol{\mathbf{\gamma}} is at most d/2d/2. Since θ\boldsymbol{\mathbf{\theta}} only approaches origin, this means that the system never exited S\mathcal{S}.

To bound how much γ\gamma changes with time, let us consider the Taylor series expansion of h2(θ,γ)h_{2}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}}). First of all, there is no constant term. Next, there is no term that is purely a function of γ\boldsymbol{\mathbf{\gamma}} because h2(0,γ)=0h_{2}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{\gamma}})=0. Then, we can say that:

Since g4(0,0)g_{4}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{0}}) is finite, in a small neighborhood around equilibrium, there exists a fixed constant c′c^{\prime} such that ∥g4(θ,γ)∥2≤c′\|g_{4}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\|_{2}\leq c^{\prime}. Then, h2(θ,γ)≤c′∥θ∥h_{2}(\boldsymbol{\mathbf{\theta}},\boldsymbol{\mathbf{\gamma}})\leq c^{\prime}\|\boldsymbol{\mathbf{\theta}}\|.

Now, if the trajectory indeed always remained in S\mathcal{S}, we know that ∥θ(t)∥=∥θ(0)∥exp⁡(−c′′t)\|\boldsymbol{\mathbf{\theta}}(t)\|=\|\boldsymbol{\mathbf{\theta}}(0)\|\exp\left(-c^{\prime\prime}t\right) for some constant c′′>0c^{\prime\prime}>0. Assume we initialize θ(0)\boldsymbol{\mathbf{\theta}}(0) within a radius of c′′d2c′\frac{c^{\prime\prime}d}{2c^{\prime}}. The rate at which γ\boldsymbol{\mathbf{\gamma}} changes at any point is,

Then, the maximum displacement in γ\boldsymbol{\mathbf{\gamma}} can be,

Thus, the trajectory always lies in S\mathcal{S}, which implies exponential convergence along θ\boldsymbol{\mathbf{\theta}} to a point where θ=0\boldsymbol{\mathbf{\theta}}=0 and ∥γ∥<ϵ\|\boldsymbol{\mathbf{\gamma}}\|<\epsilon. Thus the system exponentially converges to an equilibrium.

Appendix B GANs are not concave-convex near equilibrium

In this section, we consider a more general system than the one considered in the main paper to demonstrate that GANs are not concave-convex near equilibrium. In particular, consider the following discriminator and generator pair learning a distribution in 1-D:

where dD≥1d_{D}\geq 1 and dG≥1d_{G}\geq 1. Let the distribution to be learned be arbitrary. Let the latent distribution be the standard normal. Then, the gradient of the objective with respect to the generator parameters is:

Now, consider the case where f′′(x)<0f^{\prime\prime}(x)<0. For points in the discriminator parameter space where w1≠0w_{1}\neq 0 but wi=0w_{i}=0 for all i≠1i\neq 1, the term above simplifies to the following when j≠1j\neq 1:

which is clearly negative i.e., the objective is concave in most of the generator parameters, and this holds for parameters arbitrarily close to the all-zero discriminator parameter (as w1→0w_{1}\to 0).

If f′(x)>0f^{\prime}(x)>0 for all xx (which is true in the case of WGANs), then in the region w2>0w_{2}>0 the above term is negative i.e., the GAN objective is concave in terms of the generator parameters.

Appendix C Local exponential stability of GANs

In this section, we provide the full proof for our result about the local stability of GANs through the following lemmas. First, we derive the Jacobian at equilibrium.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 3, the Jacobian at an equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}), under the Assumptions I and IV is:

Throughout this paper we will use the notation ∇T(⋅)\nabla^{T}(\cdot) to denote the row vector corresponding to the gradient that is being computed. Now, let nDn_{D} be the number of discriminator parameters and nGn_{G} the number of generator parameters. Then the first nD×nDn_{D}\times n_{D} block in J\boldsymbol{\mathbf{J}}, which we will denote by JDD\boldsymbol{\mathbf{J}}_{DD} is:

The subsequent nD×nGn_{D}\times n_{G} matrix, which we will denote by JDG\boldsymbol{\mathbf{J}}_{DG} is:

It is easy to see that the lower nG×nDn_{G}\times n_{D} matrix is −JDGT-\boldsymbol{\mathbf{J}}_{DG}^{T}:

Furthermore, the lower nG×nGn_{G}\times n_{G} matrix JGG\boldsymbol{\mathbf{J}}_{GG} turns out to be zero. Here, we will use an implication of Assumption IV. More specifically, generators θG\boldsymbol{\mathbf{\theta_{G}}} that are within a sufficiently small radius ϵG\epsilon_{G} around the equilibrium have the same support and therefore i) DθD⋆(x)=0D_{\boldsymbol{\mathbf{\theta^{\star}_{D}}}}(x)=0 for xx in this support. Furthermore for all generators within a radius ϵG/2\epsilon_{G}/2, any perturbation of the generator is not going to change the support, and therefore ii) ∇θGpθG(x)=0\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}p_{\boldsymbol{\mathbf{\theta_{G}}}}(x)=0 for xx that is not in this support. We can consider only ϵG/2\epsilon_{G}/2 perturbations and not ϵG\epsilon_{G} perturbations because for θG\boldsymbol{\mathbf{\theta_{G}}} that is ϵG\epsilon_{G} away from θG⋆\boldsymbol{\mathbf{\theta^{\star}_{G}}}, perturbing it a little further might potentially change its support as a result of which ∇θGpθG(x)\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}p_{\boldsymbol{\mathbf{\theta_{G}}}}(x) may not necessarily be zero for all x∉supp(pθG⋆)x\notin{\rm supp}(p_{\boldsymbol{\mathbf{\theta_{G}^{\star}}}})

Now, to show that JGG\boldsymbol{\mathbf{J}}_{GG} is zero, we take any vector v\boldsymbol{\mathbf{v}} that is a perturbation in the generator space and show that vTJGG=0\boldsymbol{\mathbf{v}}^{T}\boldsymbol{\mathbf{J}}_{GG}=0. Here, we will use the limit definition of the derivative along a particular direction v\boldsymbol{\mathbf{v}}.

To prove that the system is stable we will need to show that this matrix is Hurwitz. We show later in Lemma G.2 that when i) JDD≺0\boldsymbol{\mathbf{J}}_{DD}\prec 0 and furthermore ii) JDG\boldsymbol{\mathbf{J}}_{DG} is full column rank, then J\boldsymbol{\mathbf{J}} is indeed Hurwitz. However from f′′(0)<0f^{\prime\prime}(0)<0, we only have that JDD⪯0\boldsymbol{\mathbf{J}}_{DD}\preceq 0. For these two conditions to be met, we will need KDD\boldsymbol{\mathbf{K}}_{DD} and KDGTKDG\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG} to be full rank, which you may recall from our discussion in the main paper below Assumption III, is met only when there is a unique equilibrim locally.

Now, we show why this is the case – by establishing a relation between the matrices KDD\boldsymbol{\mathbf{K}}_{DD} and KDG\boldsymbol{\mathbf{K}}_{DG} and the curvature of functions in Assumption III – and further show how the null spaces of these matrices correspond to a subspace of equilibria. Then, we show in Lemma C.3, how to consider a rotation of the system and project to a space that is orthogonal to this subspace of equilibria. Then from the Theorem A.4 that we have proved in Appendix A, it is sufficient to show that the Jacobian of the projected system is Hurwitz.

In the following discussion, we will use the term “equilibrium discriminator” to denote a discriminator that is identically zero on the support and “equilibrium generator” to denote a generator that matches the true distribution, as defined in Assumption I. Note that for an equilibrium discriminator, the generator updates are zero and vice versa for an equilibrium generator.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 3, under Assumptions I and III, there exists ϵD,ϵG>0\epsilon_{D},\epsilon_{G}>0 such that for all ϵD′≤ϵD\epsilon_{D}^{\prime}\leq\epsilon_{D} and ϵG′≤ϵG\epsilon_{G}^{\prime}\leq\epsilon_{G}, and for any unit vectors u∈Null(KDD),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DD}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}), (θD⋆+ϵD′u,θG⋆+ϵG′v)(\boldsymbol{\mathbf{\theta_{D}^{\star}}}+\epsilon_{D}^{\prime}\boldsymbol{\mathbf{u}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}+\epsilon_{G}^{\prime}\boldsymbol{\mathbf{v}}) is an equilibrium point as defined in Assumption I.

In other words, θD\boldsymbol{\mathbf{\theta_{D}}} is an equilibrium discriminator which when paired with any generator results in zero updates on the generator.

In summary, for all slight perturbations along u∈Null(KDD),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DD}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}) we have established that the discriminator and generator individually satisfy the requirements of an equilibrium discriminator and generator pair, and therefore the system is itself in equilibrium for these perturbations. ∎

Now, we show how to rotate and project the system to get a Hurwitz Jacobian matrix.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 3, consider the eigenvalue decompositions KDD=UDΛDUDT\boldsymbol{\mathbf{K}}_{DD}=\boldsymbol{\mathbf{U_{D}}}\boldsymbol{\mathbf{\Lambda_{D}}}\boldsymbol{\mathbf{U_{D}}}^{T} and KDGTKDG=UGΛGUGT\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}=\boldsymbol{\mathbf{U_{G}}}\boldsymbol{\mathbf{\Lambda_{G}}}\boldsymbol{\mathbf{U_{G}}}^{T}. Let UD=[TDT,TD′T]\boldsymbol{\mathbf{U_{D}}}=[\boldsymbol{\mathbf{T}}_{D}^{T},\boldsymbol{\mathbf{T}}_{D}^{\prime T}] and UG=[TGT,TG′T]\boldsymbol{\mathbf{U_{G}}}=[\boldsymbol{\mathbf{T}}_{G}^{T},\boldsymbol{\mathbf{T}}_{G}^{\prime T}] such that Col(TD′T)=Null(KDD){\sf Col}(\boldsymbol{\mathbf{T}}_{D}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DD}) and Col(TG′T)=Null(KDG){\sf Col}(\boldsymbol{\mathbf{T}}_{G}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DG}). Consider the projections, γD=TDθD\boldsymbol{\mathbf{\gamma_{D}}}=\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{\theta}}_{D} and γG=TGθG\boldsymbol{\mathbf{\gamma_{G}}}=\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{\theta}}_{G}. Then, the block in the Jacobian at equilibrium that corresponds to the projected system has the form:

Under Assumption II, we have that JDD′≺0\boldsymbol{\mathbf{J}}_{DD}^{\prime}\prec 0 and JDG′\boldsymbol{\mathbf{J}}_{DG}^{\prime} is full column rank.

Note that the columns of UD\boldsymbol{\mathbf{U}}_{D} and UG\boldsymbol{\mathbf{U}}_{G} correspond to eigenvectors, and furthermore, the rows of TD′\boldsymbol{\mathbf{T}}_{D}^{\prime} and TG′\boldsymbol{\mathbf{T}}_{G}^{\prime} are the eigenvectors that correspond to zero eigenvalues. These eigenvectors correspond to a local subspace of equilibria and the above lemma considers a projection of the system to a space orthogonal to this subspace.

We first address a corner case where either TD\boldsymbol{\mathbf{T}}_{D} or TG\boldsymbol{\mathbf{T}}_{G} (the eigenvectors with non-zero eigenvalues) is empty. In the case that TD\boldsymbol{\mathbf{T}}_{D} is empty, it means that all discriminators in a neighborhood of the considered equilibrium are identically zero on the support of the true distribution (as proved in Lemma C.2). Then, for any generator, the discriminator update would be zero (because moving the discriminator in any direction locally does not result in a change in the objective). At the same time, the generator update would be zero too because these are all equilibrium discriminators. This means that the considered point is surrounded by a neighborhood of equilibria. Then, the system is trivially exponentially stable since any sufficiently close initialization is already at equilibrium.

Similarly when TG\boldsymbol{\mathbf{T}}_{G} is empty it means that all generators in a small neighborhood have the same distribution, namely the true underlying distribution (as proved in Lemma C.2). Then, the generator update for any discriminator would be zero (changing the generator slightly in any direction does not change the generated distribution, and hence the objective). Furthermore, since these are equilibrium generators, the discriminator updates would be zero too, for any discriminator. Thus, again we are situated in a neighborhood of equilibria and the system is trivially exponentially stable.

Now we handle the general case. First note that, the Jacobian block of the projected variables must be

where J\boldsymbol{\mathbf{J}} is the Jacobian of the original system which we derived in Lemma C.1. Now note that, TDKDDTDT=TDUDΛDUDTTDT=ΛD(+)\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DD}\boldsymbol{\mathbf{T}}_{D}^{T}=\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{U_{D}}}\boldsymbol{\mathbf{\Lambda_{D}}}\boldsymbol{\mathbf{U_{D}}}^{T}\boldsymbol{\mathbf{T}}_{D}^{T}=\boldsymbol{\mathbf{\Lambda}}^{(+)}_{D} which is a diagonal matrix with only the positive eigenvalues. Therefore, since f′′(0)<0f^{\prime\prime}(0)<0, JDD′≺0\boldsymbol{\mathbf{J}}_{DD}^{\prime}\prec 0.

Next, in a similar manner we can show that TGKDGTKDGTGT=ΛG(+)\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T}=\boldsymbol{\mathbf{\Lambda}}^{(+)}_{G}, which is a diagonal matrix with only positive eigenvalues. Thus, KDGTGT\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} is full column rank. The non-trivial step here is to show that the matrix TDKDGTGT\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} which has fewer rows is full column rank too. This will follow if we showed that for any u\boldsymbol{\mathbf{u}} such that uTKDD=0\boldsymbol{\mathbf{u}}^{T}\boldsymbol{\mathbf{K}}_{DD}=0, uTKDG=0\boldsymbol{\mathbf{u}}^{T}\boldsymbol{\mathbf{K}}_{DG}=0 too. That is, the left null space of KDD\boldsymbol{\mathbf{K}}_{DD} is a subset of the left null space of KDG\boldsymbol{\mathbf{K}}_{DG} and therefore projecting to the row span of KDD\boldsymbol{\mathbf{K}}_{DD} does not hurt the row rank of KDG\boldsymbol{\mathbf{K}}_{DG}.

To see why this is true, observe that from Lemma C.2 for any small perturbation along such a u\boldsymbol{\mathbf{u}}, since we are always at an equilibrium discriminator i.e., DθD(x)=0\boldsymbol{\mathbf{D}}_{\boldsymbol{\mathbf{\theta_{D}}}}(x)=0 for xx in the true support, it must be that uT∇θDDθD(x)=0\boldsymbol{\mathbf{u}}^{T}\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}\boldsymbol{\mathbf{D}}_{\boldsymbol{\mathbf{\theta_{D}}}}(x)=0. Furthermore, recall from our derivation of the Jacobian that ∇θGpθG(x)=0\nabla{\boldsymbol{\mathbf{\theta_{G}}}}p_{\boldsymbol{\mathbf{\theta_{G}}}}(x)=0 for xx outside of this support. Then,

Therefore, since f′(0)≠0f^{\prime}(0)\neq 0, this means f′(0)TDKDGTGTf^{\prime}(0)\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} is full column rank.

The main theorem then follows from the above lemmas.

We have from Lemma C.2 that the considered equilibrium point lies in a subspace of equilibria in a small neighborhood. Then, we have from Lemma C.3 that the Jacobian block corresponding to the subspace orthogonal to this, satsifies properties from Lemma G.2 which make it Hurwitz. We can then conclude exponential stability of the system from Theorem A.4. The eigenvalue bounds presented in the theorem follow from Lemma G.2. ∎

Finally, we show that we can indeed find a Lyapunov function that satisfies LaSalle’s principle for the projected linearized system.

For the linearized projected system with the Jacobian J′\boldsymbol{\mathbf{J}}^{\prime}, we have that 1/2∥γD−γ⋆D∥2+1/2∥γG−γ⋆G∥21/2\|\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D}\|^{2}+1/2\|\boldsymbol{\mathbf{\gamma}}_{G}-\boldsymbol{\mathbf{\gamma^{\star}}}_{G}\|^{2} is a Lyapunov function such that for all non-equilbrium points, it either always decreases or only instantaneously remains constant.

Note that the Lyapunov function is zero only at the equilibrium of the projected system. Furthermore, it is straightforward to verify that the rate at which this changes is given by f′′(0)(γD−γ⋆D)TTDTKDDTD(γD−γ⋆D)f^{\prime\prime}(0)(\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D})^{T}\boldsymbol{\mathbf{T}}_{D}^{T}\boldsymbol{\mathbf{K}}_{DD}\boldsymbol{\mathbf{T}}_{D}(\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D}). Observe that the generator terms have canceled out. Clearly this is zero only when γD=γ⋆D\boldsymbol{\mathbf{\gamma}}_{D}=\boldsymbol{\mathbf{\gamma^{\star}}}_{D} because TDTKDDTD\boldsymbol{\mathbf{T}}_{D}^{T}\boldsymbol{\mathbf{K}}_{DD}\boldsymbol{\mathbf{T}}_{D} is positive definite; otherwise it is strictly negative. Now, when this rate is indeed zero, we have that γ˙D=f′(0)TDKDGTGT(γG−γ⋆G)\boldsymbol{\mathbf{\dot{\gamma}_{D}}}=f^{\prime}(0)\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T}(\boldsymbol{\mathbf{\gamma}}_{G}-\boldsymbol{\mathbf{\gamma^{\star}}}_{G}) because the other term in the update which is proportional to KDD(γD−γ⋆D)\boldsymbol{\mathbf{K}}_{DD}(\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D}) is zero. Now, again, this term is zero only when γG=γ⋆G\boldsymbol{\mathbf{\gamma}}_{G}=\boldsymbol{\mathbf{\gamma^{\star}}}_{G} because TDKDGTGT\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} is full column rank. Thus, when we are not at equilibrium which means γG≠γG⋆\boldsymbol{\mathbf{\gamma}}_{G}\neq\boldsymbol{\mathbf{\gamma^{\star}_{G}}}, the update on the discriminator parameters is nonzero i.e., γ˙D≠0\boldsymbol{\mathbf{\dot{\gamma}_{D}}}\neq 0. In other words, it does not identically stay in the manifold γD=0\boldsymbol{\mathbf{\gamma}}_{D}=0 on which the energy does not decrease. ∎

In this section, we will relax Assumption IV and prove stability under certain conditions. Specifically, recall that originally we required the equilibrium generator to share the same support with any perturbation of the generator. Now, we will allow the generator to have different supports when perturbed, and instead impose conditions on the discriminator.

Our first condition is that the equilibrium discriminator must be zero not only on the support of θG⋆\boldsymbol{\mathbf{\theta}}_{G}^{\star} but also on the supports of small perturbations of θG⋆\boldsymbol{\mathbf{\theta^{\star}_{G}}}. If this were not true, θG⋆\boldsymbol{\mathbf{\theta^{\star}_{G}}} may not be at equilibrium as the slope of the discriminator function DθD⋆(x)D_{\boldsymbol{\mathbf{\theta_{D}^{\star}}}}(x) may be non-zero at the boundaries of supp(pθG⋆){\rm supp}(p_{\boldsymbol{\mathbf{\theta}}_{G}}^{\star}) in X\mathcal{X}, thus potentially encouraging the generator to push data points away from the true support.

To motivate our second condition, recall from Assumption III, we have that there could be directions along which we can perturb θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}}, while ensuring that the discriminator still outputs zero on supp(pθG⋆){\rm supp}(p_{\boldsymbol{\mathbf{\theta^{\star}_{G}}}}). The intention behind allowing this was that these directions could allow other equivalent equilibrium discriminators in the neighborhood of θD⋆\boldsymbol{\mathbf{\theta_{D}^{\star}}}. However, under the relaxation of Assumption IV that we are now aiming for, these perturbations will correspond to equilibrium discriminators only if they satsify the above condition i.e., that they are zero on the support of perturbations of θG⋆\boldsymbol{\mathbf{\theta^{\star}_{G}}} too. We need to explicitly assume that this holds as we describe below. Thanks to Lars Mescheder for identifying that such a condition was missing in earlier versions of this paper.

Formally, we can state these assumptions as follows:

Assumption IV (Relaxed) ∃ϵG,ϵD>0\exists\epsilon_{G},\epsilon_{D}>0 such that for all θG∈BϵG(θG⋆)\boldsymbol{\mathbf{\theta_{G}}}\in B_{\epsilon_{G}}(\boldsymbol{\mathbf{\theta^{\star}_{G}}}):

for all x∈supp(pθG)x\in{\rm supp}(p_{\boldsymbol{\mathbf{\theta_{G}}}}), DθD⋆(x)=0D_{\boldsymbol{\mathbf{\theta_{D}^{\star}}}}(x)=0.

We now show that if these conditions hold, local exponentially stability holds too.

Most of the original proof holds as it is because all we needed was that the equilibrium discriminator be identically zero on the true support. We will prove only parts of the proof that required more than just this.

In this case, we only have a weaker guarantee that for a generator within a perturbation of ϵG/2\epsilon_{G}/2 from θG⋆\boldsymbol{\mathbf{\theta_{G}^{\star}}}, the support is contained in the combined support ⋃θG∈BϵG(θG⋆)supp(pθG)\bigcup_{\boldsymbol{\mathbf{\theta_{G}}}\in B_{\epsilon_{G}}(\boldsymbol{\mathbf{\theta^{\star}_{G}}})}{\rm supp}(p_{\boldsymbol{\mathbf{\theta_{G}}}}). But then, i) for all xx in the combined support we have that DθD(x)=0D_{\boldsymbol{\mathbf{\theta_{D}}}}(x)=0 and ii) for all xx not in the combined support and for any generator θG∈BϵG/2(θG⋆)\boldsymbol{\mathbf{\theta_{G}}}\in B_{\epsilon_{G}/2}(\boldsymbol{\mathbf{\theta^{\star}_{G}}}), ∇θGpθG(x)=0\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}p_{\boldsymbol{\mathbf{\theta_{G}}}}(x)=0. Then, the generator updates are:

The second part of Lemma C.2 holds similarly.

We need to make a similar argument to prove that the generator’s Hessian JGG=0\boldsymbol{\mathbf{J}}_{GG}=0 at equilibrium.

A similar modification of the proof can be done for Lemma C.3 where we show that TDKDGTGT\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} has the same column rank as KDGTGT\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T}. The rest of the proof follows as it did. ∎

C.2 The non-realizable case

In this section, we extend our results about local stability of GANs to the case in which the true distribution can not be represented by any generator in the generator space. While this is a hard problem in general, we consider a specific case in which the discriminator is linear in its parameters and show that the system is locally stable at any equilibrium and its surrounding equilibria (none of which may correspond to the true distribution). More formally, consider a discriminator of the form:

where \upphi\boldsymbol{\mathbf{\upphi}} is any feature mapping. For example, \upphi(x)\boldsymbol{\mathbf{\upphi}}(x) could be a polynomial basis or the representation learned by a neural network (which we assume is not trained during the updates near equilibrium). Thus, the objective in this case is:

We consider a generator space that does not necessarily contain the true distribution, but however contains a generator θG⋆\boldsymbol{\mathbf{\theta^{\star}_{G}}} that is an equilibrium point when paired with a discriminator that is zero on the support of the true data and the generated data. It must be noted that θD⋆=0\boldsymbol{\mathbf{\theta^{\star}_{D}}}=\boldsymbol{\mathbf{0}} is not necessarily the only equilibrium discriminator. Especially, if \upphi\boldsymbol{\mathbf{\upphi}} lies in a lower dimensional manifold, there could be a subspace of all-zero discriminators. Now, for such a generator to exist, we need:

In other words, we want the means of the generated distribution and the true distribution in the representation \upphi\boldsymbol{\mathbf{\upphi}} to be identical. For a given generator space, this essentially is a restriction on the representation \upphi\boldsymbol{\mathbf{\upphi}} that has been learned/chosen for the discriminator. If \upphi\boldsymbol{\mathbf{\upphi}} was a richer representation that computes many higher order moments of the data, we may never find an equilibrium generator.

We now prove Theorem 3.1 for the non-realizable case. Our main idea is identical to that of the proof in the realizable case. However, we need to be careful in a number of steps. We first prove a result similar to Lemma C.1 that derives the Jacobian of the system at equilibrium.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 3, the Jacobian at an equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}), under the Assumptions I (for the non-realizable case) and IV is:

First we show that JDD\boldsymbol{\mathbf{J}}_{DD} has a similar form which is still negative semi-definite when f′′(0)<0f^{\prime\prime}(0)<0:

The most crucial step here is that we were able to ignore the terms corresponding to ∇θD2DθD(x)\nabla^{2}_{\boldsymbol{\mathbf{\theta_{D}}}}D_{\boldsymbol{\mathbf{\theta_{D}}}}(x) because the discriminator is linear in its parameters i.e., ∇θDDθD(x)=\upphi(x)\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}D_{\boldsymbol{\mathbf{\theta_{D}}}}(x)=\boldsymbol{\mathbf{\upphi}}(x) and thus the Hessian is zero.

All other terms in the Jacobian are identical to the realizable case because we assume that at equilibrium the discriminator must be identically zero.

Now, we again show that the equilibrium point in consideration lies in a subspace of equilibria.

Under Assumptions I (Non-realizable), III, and IV there exists ϵD,ϵG>0\epsilon_{D},\epsilon_{G}>0 such that for all ϵD′≤ϵD\epsilon_{D}^{\prime}\leq\epsilon_{D} and ϵG′≤ϵG\epsilon_{G}^{\prime}\leq\epsilon_{G}, and for any unit vectors u∈Null(KDD),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DD}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}), (θD⋆+ϵD′u,θG⋆+ϵG′v)(\boldsymbol{\mathbf{\theta_{D}^{\star}}}+\epsilon_{D}^{\prime}\boldsymbol{\mathbf{u}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}+\epsilon_{G}^{\prime}\boldsymbol{\mathbf{v}}) is an equilibrium point.

is independent of the discriminator variables (Here, we have used the fact that the discriminator is linear in its parameters.) . This means that for these generators along v\boldsymbol{\mathbf{v}}, the discriminator update must be zero. In other words, these generators are equilibrium generators in the non-realizable sense, that their \upphi\boldsymbol{\mathbf{\upphi}} representation matches with the true distribution.

In summary, for all slight perturbations along u∈Null(KDD),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DD}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}) we have established that the discriminator and generator individually satisfy the requirements of an equilibrium discriminator and generator pair, and therefore the system is itself is in equilibrium for these perturbations. ∎

It turns out that given these two lemmas, Lemma C.3 follows as it did earlier, and therefore the main theorem follows too.

Appendix D Linear Quadratic GAN – Gaussian example

In order to illustrate our assumptions in Theorem 3.1, consider a simple GAN that learns an nn-dimensional Gaussian distribution N(\upmu,Σ)\mathcal{N}(\boldsymbol{\mathbf{\upmu}},\boldsymbol{\mathbf{\Sigma}}), where Σ≻0\boldsymbol{\mathbf{\Sigma}}\succ 0. Let the latent variable be drawn from the standard normal, N(0,In)\mathcal{N}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{I}}_{n}). Consider a quadratic discriminator D(x)=xTW2x+w1TxD(\boldsymbol{\mathbf{x}})=\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{W}}_{2}\boldsymbol{\mathbf{x}}+\boldsymbol{\mathbf{w}}_{1}^{T}\boldsymbol{\mathbf{x}}, and a linear generator G(z)=Az+bG(z)=\boldsymbol{\mathbf{A}}\boldsymbol{\mathbf{z}}+\boldsymbol{\mathbf{b}}. We call the resulting system LQ (linear-quadratic). Let Σ1/2\boldsymbol{\mathbf{\Sigma}}^{1/2} be the unique real positive definite matrix such that (Σ1/2)2=Σ\left(\boldsymbol{\mathbf{\Sigma}}^{1/2}\right)^{2}=\boldsymbol{\mathbf{\Sigma}}. Then we have the following:

In LQ, A=Σ1/2,b=\upmu\boldsymbol{\mathbf{A}}=\boldsymbol{\mathbf{\Sigma}}^{1/2},\boldsymbol{\mathbf{b}}=\boldsymbol{\mathbf{\upmu}} and W2=0,w1=0\boldsymbol{\mathbf{W}}_{2}=0,\boldsymbol{\mathbf{w}}_{1}=0 corresponds to an equilibrium that is locally exponentially stable provided f′′(0)<0f^{\prime\prime}(0)<0 and f′(0)≠0f^{\prime}(0)\neq 0.

Since the system consists of parameters arranged in the form of matrices, we will need vectorization calculus [Magnus et al., 1995] to arrange these parameters as a vector and differentiate them/with respect to them.

To verify that the given point is indeed an equilibrium, let us look at the GAN objective:

The updates in Equation 3 for LQ can be written as :

Clearly, when z∼N(0,I)\boldsymbol{\mathbf{z}}\sim\mathcal{N}(\boldsymbol{\mathbf{0}},I), we have that Σ1/2z+\upmu∼N(\upmu,Σ)\boldsymbol{\mathbf{\Sigma}}^{1/2}\boldsymbol{\mathbf{z}}+\boldsymbol{\mathbf{\upmu}}\sim\mathcal{N}(\boldsymbol{\mathbf{\upmu}},\boldsymbol{\mathbf{\Sigma}}), therefore at A=Σ1/2,b=\upmu\boldsymbol{\mathbf{A}}=\boldsymbol{\mathbf{\Sigma}}^{1/2},\boldsymbol{\mathbf{b}}=\boldsymbol{\mathbf{\upmu}} and W2=0,w1=0\boldsymbol{\mathbf{W}}_{2}=0,\boldsymbol{\mathbf{w}}_{1}=0, all the above updates become zero, implying that it is an equilibrium for which the generator has converged to the true distribution. To prove that it is locally stable, we need to examine the Jacobian at that point. Note that since the Jacobian is a matrix with one cell for each pair of discriminator-generator parameters, we need to calculate second-order derivatives after vectorizing the parameter matrices Q\boldsymbol{\mathbf{Q}} and A\boldsymbol{\mathbf{A}}.

We first calculate the derivative of the discriminator updates with respect to the discriminator itself.

Recall that the Jacobian can then be written as:

We can show that JDD\boldsymbol{\mathbf{J}}_{DD} is negative definite because it is a moment matrix with a negative multiplicative factor. This is proved in Theorem D.2. Recall that as long as f′′(0)<0f^{\prime\prime}(0)<0, f′(0)≠0f^{\prime}(0)\neq 0 and JDG\boldsymbol{\mathbf{J}}_{DG} is full column rank (in this case full rank because JDG\boldsymbol{\mathbf{J}}_{DG} is a square matrix), the matrix has eigenvalues whose real components are strictly negative.

To show that JDG\boldsymbol{\mathbf{J}}_{DG} is full column rank, first observe that the last few columns corresponding to b\boldsymbol{\mathbf{b}} are linearly independent because, if y\boldsymbol{\mathbf{y}} belongs to its null space, then

which implies that y=0\boldsymbol{\mathbf{y}}=0.

To verify whether the first few columns corresponding to A\boldsymbol{\mathbf{A}} are linearly independent or not, consider any V≠0\boldsymbol{\mathbf{V}}\neq 0. Then, we want to verify whether the following term is always non-zero or not:

which is equivalent to testing whether V(Σ1/2)T+Σ1/2VT\boldsymbol{\mathbf{V}}(\boldsymbol{\mathbf{\Sigma}}^{1/2})^{T}+\boldsymbol{\mathbf{\Sigma}}^{1/2}\boldsymbol{\mathbf{V}}^{T} is non-zero.

Now, we will show that if V(Σ1/2)T+Σ1/2VT=0\boldsymbol{\mathbf{V}}(\boldsymbol{\mathbf{\Sigma}}^{1/2})^{T}+\boldsymbol{\mathbf{\Sigma}}^{1/2}\boldsymbol{\mathbf{V}}^{T}=0, then V=0\boldsymbol{\mathbf{V}}=0. Recall that Σ1/2=UΛ1/2UT\boldsymbol{\mathbf{\Sigma}}^{1/2}=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}^{1/2}\boldsymbol{\mathbf{U}}^{T}. Then,

Observe that the left hand side is positive semi-definite while the right hand side is negative semi-definite. Therefore these terms must be equal to zero, which would then imply that VTV=0\boldsymbol{\mathbf{V}}^{T}\boldsymbol{\mathbf{V}}=0 i.e., V=0\boldsymbol{\mathbf{V}}=0. Thus the Jacobian is indeed Hurwitz.

We now prove that JDD\boldsymbol{\mathbf{J}}_{DD} is negative definite.

Let U\boldsymbol{\mathbf{U}} be any arbitrary matrix and v\boldsymbol{\mathbf{v}} be an arbitrary vector. Then,

Now, (xTUx+xTv)2=0\left(\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{x}}+\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{v}}\right)^{2}=0 forms a quadric n−1n-1-dimensional hypersurface in nn dimensions, and therefore is of measure zero. For all other points, (xTUx+xTv)2>0\left(\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{x}}+\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{v}}\right)^{2}>0 and therefore the above expectation is strictly positive.

Appendix E WGANs are not necessarily asymptotically stable

We consider a specific case of the LQ WGAN that learns a zero mean gaussian distribution, and show that there exists points near certain equilibria such that if the system is initialized to that point, it will periodically come back to that initial point rather than converge to the equilibrium.

The LQ WGAN system for learning a zero mean Gaussian distribution N(0,Σ)\mathcal{N}(\boldsymbol{\mathbf{0}},\boldsymbol{\mathbf{\Sigma}}) (Σ≻0\boldsymbol{\mathbf{\Sigma}}\succ 0) is not asymptotically stable at the equilibrium corresponding to A=Σ1/2,b=0\boldsymbol{\mathbf{A}}=\boldsymbol{\mathbf{\Sigma}}^{1/2},\boldsymbol{\mathbf{b}}=\boldsymbol{\mathbf{0}} and W2=0,w1=0\boldsymbol{\mathbf{W}}_{2}=0,\boldsymbol{\mathbf{w}}_{1}=0.

In order to show that the system is not asymptotically stable, we show that there are initializations of the system that are arbitrarily close to the equilibrium such that the system goes orbits around the equilibrium forever. For simplicity, we first prove this for the one-dimensional gaussian N(0,σ)\mathcal{N}(0,\sigma) and later extend it to the multi-dimensional case. Let the quadratic discriminator be D(x)=w22x+w1xD(x)=w_{2}^{2}x+w_{1}x and the linear generator be az+baz+b. Then the WGAN objective in Equation 2 for the LQ system is:

The updates in Equation 3 for LQ simplify as follows:

The system has two equilibria, w2=0,w1=0,a=±σ,b=0w_{2}=0,w_{1}=0,a=\pm\sigma,b=0. We will assume that the system is initialized with w1=b=0w_{1}=b=0, which means that the system will forever have w1=b=0w_{1}=b=0 because the respective updates are zero too. Hence, we only need to focus on the variables w2w_{2} and aa.

Now, it can be shown that if aa is initialized to a0≥0a_{0}\geq 0, aa never becomes negative (and similarly for a≤0a\leq 0). Therefore, we will focus on the equilibrium where a=σa=\sigma, and assuming a≥0a\geq 0 examine how the distance from the equilibrium w22+(a−σ)2w_{2}^{2}+(a-\sigma)^{2} changes with time. The rate of change of this quantity is given by 2(w2w˙2+(a−σ)a˙)=2w2(a−σ)22(w_{2}\dot{w}_{2}+(a-\sigma)\dot{a})=2w_{2}(a-\sigma)^{2}. Observe that when w2>0w_{2}>0, this term is non-negative i.e., the system never gets closer to the equilibrium. Thus, when the system is in the “bad” half-space w2>0w_{2}>0, the only hope for it to converge is to exit this half-space so that w2w_{2} becomes negative. However, we show that there exists initializations that are close to the equilibrium such that even if it does exit the bad half-space it eventually re-enters it, going in a perpetual loop.

More specifically, let (w2(t),a(t))(w_{2}(t),a(t)) denote the system at time tt. Let the initialization satisfy w2(0)=0w_{2}(0)=0 and a(0)∈(0,σ)a(0)\in(0,\sigma). We will now analyze the trajectory of this system. First note that w˙2(0)>0\dot{w}_{2}(0)>0, which means the system enters the bad half-space after immediately t>0t>0. Thus, if the system had to converge to the considered equilibrium, it would have to reach w2=0w_{2}=0 again at some time TT. First observe that at this time a(T)>σa(T)>\sigma because we need w˙2(T)<0\dot{w}_{2}(T)<0 at this time. (In fact we can say that a(T)−σ≥σ−a(0)a(T)-\sigma\geq\sigma-a(0) because we know that the radius never decreased until time TT.) Now, we claim that the system simply retraces back its path along aa and reaches a(0)a(0) at time 2T2T. More clearly, we claim that the system at time T+tT+t can be described in terms of what it was at time T−tT-t as (w2(T+t),a(T+t))=(−w2(T−t),a(T−t))(w_{2}(T+t),a(T+t))=(-w_{2}(T-t),a(T-t)).

To prove this observe that this statement is true for t=0t=0 because w2(T)=0w_{2}(T)=0. Then we only need to show that at any tt, if (w2(T+t),a(T+t))=(−w2(T−t),a(T−t))(w_{2}(T+t),a(T+t))=(-w_{2}(T-t),a(T-t)), then w˙2(T+t)=w˙2(T−t)\dot{w}_{2}(T+t)=\dot{w}_{2}(T-t) and a˙(T+t)=−a˙(T−t)\dot{a}(T+t)=-\dot{a}(T-t). This is indeed true because w˙2(T+t)=σ2−a2(T+t)=σ2−a2(T−t)=w˙2(T−t)\dot{w}_{2}(T+t)=\sigma^{2}-a^{2}(T+t)=\sigma^{2}-a^{2}(T-t)=\dot{w}_{2}(T-t) and a˙2(T+t)=2w2(T+t)a(T+t)=2(−w2(T−t))a(T−t)=−a˙(T−t)\dot{a}_{2}(T+t)=2w_{2}(T+t)a(T+t)=2(-w_{2}(T-t))a(T-t)=-\dot{a}(T-t). Therefore, applying t=Tt=T, we get (w2(2T),a(2T))=(−w2(0),a(0))=(0,a(0))(w_{2}(2T),a(2T))=(-w_{2}(0),a(0))=(0,a(0)) i.e., the system has looped back to its original state by following its old path mirrored across the line w2=0w_{2}=0. Since this holds for initializations that are arbitrarily close to the equilibrium (i.e., a(0)a(0) can be arbitrarily close to σ\sigma), the system is not asymptotically stable.

We extend this argument to the higher dimensional case as follows. Again, we initialize the system so that w1=0\boldsymbol{\mathbf{w}}_{1}=\boldsymbol{\mathbf{0}} and b=0\boldsymbol{\mathbf{b}}=\boldsymbol{\mathbf{0}}, then we can only focus on the updates on W2\boldsymbol{\mathbf{W}}_{2} and A\boldsymbol{\mathbf{A}}:

As before, we initialize W2=0\boldsymbol{\mathbf{W}}_{2}=0. We will also consider a more sophisticated initialization compared to a∈(0,σ)a\in(0,\sigma). Since Σ\boldsymbol{\mathbf{\Sigma}} is positive definite, let Σ=UΛUT\boldsymbol{\mathbf{\Sigma}}=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}\boldsymbol{\mathbf{U}}^{T}. We initialize A=UΛA(0)UT\boldsymbol{\mathbf{A}}=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}_{A}(0)\boldsymbol{\mathbf{U}}^{T} such that ΛA(0)\boldsymbol{\mathbf{\Lambda}}_{A}(0) has at least one diagonal element that is positive but strictly less than the corresponding diagonal element in Λ1/2\boldsymbol{\mathbf{\Lambda}}^{1/2} (where Λ1/2≻0\boldsymbol{\mathbf{\Lambda}}^{1/2}\succ 0).

Now, we first establish that all the updates and the variables in the system remain in the eigenspace defined by U\boldsymbol{\mathbf{U}}. That is, at any point in time tt, the variables can be expressed as W2(t)=UΛW(t)UT\boldsymbol{\mathbf{W}}_{2}(t)=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}_{W}(t)\boldsymbol{\mathbf{U}}^{T} and A(t)=UΛA(t)UT\boldsymbol{\mathbf{A}}(t)=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}_{A}(t)\boldsymbol{\mathbf{U}}^{T} for some real diagonal matrices ΛW(t)\boldsymbol{\mathbf{\Lambda}}_{W}(t) and ΛA(t)\boldsymbol{\mathbf{\Lambda}}_{A}(t). Clearly, this is true for time t=0t=0. Assuming this is true for arbitrary time tt, observe that the updates are

Thus this is true for any time tt. Therefore, we can analyze the system in terms of ΛA,ΛW\boldsymbol{\mathbf{\Lambda}}_{A},\boldsymbol{\mathbf{\Lambda}}_{W} and the constant Λ\boldsymbol{\mathbf{\Lambda}} as though there are nn independent 1-dimensional Gaussian systems. Then, the orbiting systems from the 1-dimensional updates must manifest here too. More specifically, these cycles would correspond to the diagonal in ΛA\boldsymbol{\mathbf{\Lambda}}_{A} which was initialized to be less than Λ1/2\boldsymbol{\mathbf{\Lambda}}^{1/2}. ∎

Appendix F Gradient-based regularization

In Section F.1, we prove how our gradient-based regularizer stabilizes the both the GAN and the WGAN system. Besides this property, in Section F.2 we provide an alternative mathematical intuition that is based on arg-max differentiation, to motivate our regularization term. Finally, in Section F.3, we discuss how our regularizer addresses mode collapse and 1-unrolled GAN updates.

We first restate our main result below. See 3.2

To prove this result, we first present the Jacobian of the system at equilibrium in the presence of the gradient penalty. Recall that the penalty basically adds an extra −∇θG∥∇θDV(DθD,GθG)∥2-\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}\|\nabla_{\boldsymbol{\mathbf{\theta}}_{D}}V(D_{\boldsymbol{\mathbf{\theta_{D}}}},G_{\boldsymbol{\mathbf{\theta_{G}}}})\|^{2} to the generator’s update.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 4, the Jacobian at an equilibrium point (θD⋆,θG⋆)(\boldsymbol{\mathbf{\theta^{\star}_{D}}},\boldsymbol{\mathbf{\theta^{\star}_{G}}}), under the Assumptions I and IV is:

where JDD\boldsymbol{\mathbf{J}}_{DD} and JDG\boldsymbol{\mathbf{J}}_{DG} are terms in the Jacobian corresponding to the original updates, as described in Theorem 3.1.

Note that the only change to the Jacobian would be in the rows corresponding to the generator parameters. Therefore, we will focus only on the additional terms in these rows.

The additional term added to −JDGT-\boldsymbol{\mathbf{J}}_{DG}^{T} is:

Now, the additional term added to JGG\boldsymbol{\mathbf{J}}_{GG} is:

Now, we will prove stability of the regularized system for conventional GANs. Observe that Lemmas C.2 regarding the subspace of equilibria holds in this case too. Again, we can project the system as follows:

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 4, consider the eigenvalue decompositions KDD=UDΛDUDT\boldsymbol{\mathbf{K}}_{DD}=\boldsymbol{\mathbf{U_{D}}}\boldsymbol{\mathbf{\Lambda_{D}}}\boldsymbol{\mathbf{U_{D}}}^{T} and KDGTKDG=UGΛGUGT\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}=\boldsymbol{\mathbf{U_{G}}}\boldsymbol{\mathbf{\Lambda_{G}}}\boldsymbol{\mathbf{U_{G}}}^{T}. Let UD=[TDT,TD′T]\boldsymbol{\mathbf{U_{D}}}=[\boldsymbol{\mathbf{T}}_{D}^{T},\boldsymbol{\mathbf{T}}_{D}^{\prime T}] and UG=[TGT,TG′T]\boldsymbol{\mathbf{U_{G}}}=[\boldsymbol{\mathbf{T}}_{G}^{T},\boldsymbol{\mathbf{T}}_{G}^{\prime T}] such that Col(TD′T)=Null(KDD){\sf Col}(\boldsymbol{\mathbf{T}}_{D}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DD}) and Col(TG′T)=Null(KDG){\sf Col}(\boldsymbol{\mathbf{T}}_{G}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DG}). Consider the projections, γD=TDθD\boldsymbol{\mathbf{\gamma_{D}}}=\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{\theta}}_{D} and γG=TGθG\boldsymbol{\mathbf{\gamma_{G}}}=\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{\theta}}_{G}. Then, the block in the Jacobian at equilibrium that corresponds to the projected system has the form:

Under Assumption II, we have that JDD′≺0\boldsymbol{\mathbf{J}}_{DD}^{\prime}\prec 0 and JDG′\boldsymbol{\mathbf{J}}_{DG}^{\prime} is full column rank and JGG′≺0\boldsymbol{\mathbf{J}}_{GG}^{\prime}\prec 0.

It is straightforward to extend the proof of Lemma C.3 to prove this lemma. Now, recall from Theorem A.4 that if we show J′\boldsymbol{\mathbf{J^{\prime}}} is Hurwitz the original system is exponentially stable. In the non-regularized system, we showed this by making use of the structure of the matrix. For this system, we will design a quadratic Lyapunov function that strictly decreases at non-equilibria points.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 4, if η<12λmax⁡(−JDD)\eta<\frac{1}{2\lambda_{\max}(-\boldsymbol{\mathbf{J_{DD}}})} the linearization of the system projected to a subspace orthogonal to the subspace of equilibria is exponentially stable with the Lyapunov function xTPx\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{x}} where,

and xT\boldsymbol{\mathbf{x}}^{T} is [γDTγGT]−[γD⋆TγG⋆T][\boldsymbol{\mathbf{\gamma_{D}}}^{T}\boldsymbol{\mathbf{\gamma_{G}}}^{T}]-[\boldsymbol{\mathbf{\gamma^{\star}_{D}}}^{T}\boldsymbol{\mathbf{\gamma^{\star}_{G}}}^{T}]. The function strictly decreases with time except at the equilibrium [γD⋆TγG⋆T]T[\boldsymbol{\mathbf{\gamma^{\star}_{D}}}^{T}\boldsymbol{\mathbf{\gamma^{\star}_{G}}}^{T}]^{T}.

Note that when η<12λmax⁡(−JDD)\eta<\frac{1}{2\lambda_{\max}(-\boldsymbol{\mathbf{J_{DD}}})}, P=PT≻0\boldsymbol{\mathbf{P}}=\boldsymbol{\mathbf{P}}^{T}\succ 0 therefore the Lyapunov function is indeed positive definite. Furthermore, note that the rate of decrease is given by xTQx\boldsymbol{\mathbf{x}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{x}} where Q=(J′TP+PJ′)\boldsymbol{\mathbf{Q}}=(\boldsymbol{\mathbf{J}}^{\prime T}\boldsymbol{\mathbf{P}}+\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{J}}^{\prime}). To show that this is strictly decreasing, we only need to show that J′TP+PJ′≺0\boldsymbol{\mathbf{J}}^{\prime T}\boldsymbol{\mathbf{P}}+\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{J}}^{\prime}\prec 0. First of all, note that Q=\boldsymbol{\mathbf{Q}}=

Here, the off-diagonal terms are TD(I+2ηJDD)(I−TDTTD)JDGTGT\boldsymbol{\mathbf{T}}_{D}(\boldsymbol{\mathbf{I}}+2\eta\boldsymbol{\mathbf{J}}_{DD})(\boldsymbol{\mathbf{I}}-\boldsymbol{\mathbf{T}}_{D}^{T}\boldsymbol{\mathbf{T}}_{D})\boldsymbol{\mathbf{J}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} and its negative. This can be equated to zero because,

Then, the above matrix is equal to the diagonal matrix:

Note that by our choice of η\eta, (I+2ηJDD)≻0(\boldsymbol{\mathbf{I}}+2\eta\boldsymbol{\mathbf{J}}_{DD})\succ 0. Therefore, JDD\boldsymbol{\mathbf{J}}_{DD} and I+2ηJDD\boldsymbol{\mathbf{I}}+2\eta\boldsymbol{\mathbf{J}}_{DD} share the same set of eigenvectors. Thus, the null space of JDD\boldsymbol{\mathbf{J}}_{DD} and the term JDD(I+2ηJDD)+(I+2ηJDD)JDD\boldsymbol{\mathbf{J}}_{DD}(\boldsymbol{\mathbf{I}}+2\eta\boldsymbol{\mathbf{J}}_{DD})+(\boldsymbol{\mathbf{I}}+2\eta\boldsymbol{\mathbf{J}}_{DD})\boldsymbol{\mathbf{J}}_{DD} are the same, specifically orthogonal to TD\boldsymbol{\mathbf{T}}_{D}. In other words, the top-left block above is a diagonal matrix with strictly negative eigenvalues. Similarly, we also know that −2ηTGJDGTJDGTGT-2\eta\boldsymbol{\mathbf{T_{G}}}\boldsymbol{\mathbf{J}}_{DG}^{T}\boldsymbol{\mathbf{J}}_{DG}\boldsymbol{\mathbf{T_{G}}}^{T} is a diagonal matrix with negative values. Hence, the above matrix is negative definite. ∎

We now proceed to the Wasserstain GAN scenario. First we lay down equivalent assumptions for the WGAN under which we can guarantee exponential stability in the regularized case. Note that even under these conditions, the unregularized update does not ensure asymptotic stability.

First, we note that due to the linearity of the loss function, it is not necessary that the discriminator be only identically zero on the support for the system to be at equilibrium — it could also be constant on the support. Thus, we relax Assumption I for this case to accommodate this.

Note that in effect, we get rid of the assumption on the other function and introduce a different function here; in either case, the original system is not asymptotically stable due to zero diagonal blocks in its Jacobian. Next, we retain Assumption IV as it is. These are the only three assumptions we will need.

We will now begin with a lemma similar to Lemma C.2

For the dynamical system defined by the WGAN objective in Equation 2 and the updates in Equation 4, under Assumptions I and III under the WGAN case, there exists ϵD,ϵG>0\epsilon_{D},\epsilon_{G}>0 such that for all ϵD′≤ϵD\epsilon_{D}^{\prime}\leq\epsilon_{D} and ϵG′≤ϵG\epsilon_{G}^{\prime}\leq\epsilon_{G}, and for any unit vectors u∈Null(KDGT),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}^{T}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}), (θD⋆+ϵD′u,θG⋆+ϵG′v)(\boldsymbol{\mathbf{\theta_{D}^{\star}}}+\epsilon_{D}^{\prime}\boldsymbol{\mathbf{u}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}+\epsilon_{G}^{\prime}\boldsymbol{\mathbf{v}}) is an equilibrium point.

Note that 2KDGKDGT2\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T} is the Hessian of the function ∥∫X∇θGpθG(x)DθD(x)∥2\left\|\int_{\mathcal{X}}\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}p_{\boldsymbol{\mathbf{\theta_{G}}}}(x)D_{\boldsymbol{\mathbf{\theta_{D}}}}(x)\right\|^{2} at equilibrium, namely the magnitude of the generator update. Then, by Assumption III, this function is locally constant along any unit vector u∈Null(KDGT)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}^{T}). That is, for sufficiently small ϵ\epsilon, if θD=θD⋆+ϵu\boldsymbol{\mathbf{\theta_{D}}}=\boldsymbol{\mathbf{\theta^{\star}_{D}}}+\epsilon\boldsymbol{\mathbf{u}}, the function value is equal to the value at equilibrium which is zero, because by definition at equilibrium the generator update is zero. Now at (θD,θG⋆)(\boldsymbol{\mathbf{\theta_{D}}},\boldsymbol{\mathbf{\theta_{G}^{\star}}}), the discriminator update is zero too since the generator matches the true distribution. Then by Assumption I, it means that DθDD_{\boldsymbol{\mathbf{\theta_{D}}}} is identical over the true support. Then, it is an equilibrium discriminator such that the update for any generator would be zero.

In summary, for all slight perturbations along u∈Null(KDGT),v∈Null(KDG)\boldsymbol{\mathbf{u}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}^{T}),\boldsymbol{\mathbf{v}}\in{\sf Null}(\boldsymbol{\mathbf{K}}_{DG}) we have established that the discriminator and generator individually satisfy the requirements of an equilibrium discriminator and generator pair, and therefore the system is itself is in equilibrium for these perturbations. ∎

Now, we show that this system can again be projected to a subspace orthogonal the equilibrium subspace such that the resulting Jacobian of the reduced system is Hurwitz. While earlier we chose TD\boldsymbol{\mathbf{T}}_{D} based on the matrix KDD\boldsymbol{\mathbf{K}}_{DD} now we will choose it based on KDGT\boldsymbol{\mathbf{K}}_{DG}^{T}.

For the dynamical system defined by the GAN objective in Equation 2 and the updates in Equation 4, consider the eigenvalue decompositions KDGKDGT=UDΛDUDT\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T}=\boldsymbol{\mathbf{U_{D}}}\boldsymbol{\mathbf{\Lambda_{D}}}\boldsymbol{\mathbf{U_{D}}}^{T} and KDGTKDG=UGΛGUGT\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}=\boldsymbol{\mathbf{U_{G}}}\boldsymbol{\mathbf{\Lambda_{G}}}\boldsymbol{\mathbf{U_{G}}}^{T}. Let UD=[TDT,TD′T]\boldsymbol{\mathbf{U_{D}}}=[\boldsymbol{\mathbf{T}}_{D}^{T},\boldsymbol{\mathbf{T}}_{D}^{\prime T}] and UG=[TGT,TG′T]\boldsymbol{\mathbf{U_{G}}}=[\boldsymbol{\mathbf{T}}_{G}^{T},\boldsymbol{\mathbf{T}}_{G}^{\prime T}] such that Col(TD′T)=Null(KDD){\sf Col}(\boldsymbol{\mathbf{T}}_{D}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DD}) and Col(TG′T)=Null(KDG){\sf Col}(\boldsymbol{\mathbf{T}}_{G}^{\prime T})={\sf Null}(\boldsymbol{\mathbf{K}}_{DG}). Consider the projections, γD=TDθD\boldsymbol{\mathbf{\gamma_{D}}}=\boldsymbol{\mathbf{T}}_{D}\boldsymbol{\mathbf{\theta}}_{D} and γG=TGθG\boldsymbol{\mathbf{\gamma_{G}}}=\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{\theta}}_{G}. Then, the block in the Jacobian at equilibrium that corresponds to the projected system has the form:

Furthermore JGG′≺0\boldsymbol{\mathbf{J}}_{GG}^{\prime}\prec 0 and JDG′T\boldsymbol{\mathbf{J}}_{DG}^{\prime T} is full column rank.

Observe that the form of J′\boldsymbol{\mathbf{J}}^{\prime} follows from Lemma F.1 by substituting JDD=0\boldsymbol{\mathbf{J}}_{DD}=0. Furthermore, like we have seen before, observe that TGJDGTJDGTGT\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{J}}_{DG}^{T}\boldsymbol{\mathbf{J}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} is a diagonal matrix with positive eigenvalues and therefore J′GG≺0\boldsymbol{\mathbf{J^{\prime}}}_{GG}\prec 0. Similarly, JDGTTD\boldsymbol{\mathbf{J}}_{DG}^{T}\boldsymbol{\mathbf{T}}_{D} is a full column rank matrix because we have projected it to the subspace orthogonal to its null space. However, we need to show that TGTJDGTTD\boldsymbol{\mathbf{T}}_{G}^{T}\boldsymbol{\mathbf{J}}_{DG}^{T}\boldsymbol{\mathbf{T}}_{D} which may have fewer rows, did not reduce in its rank. This is indeed true, since this is effectively a projection onto the subspace orthogonal to its left null space. ∎

We now compile the above lemmas to prove our main result in Theorem 3.2.

The first part of the theorem statement for the conventional GAN follows from Lemma F.1, F.2, F.3.

To prove the second part it is sufficient to show that the projected Jacobian of the linearized system in Lemma F.5 is Hurwitz, from which exponential stability of the original system follows from Theorem A.4. The fact that this is Hurwitz follows as usual from Lemma G.2 after we flip the discriminator and generator variables:

The Jacobian is thus Hurwitz because JGG′\boldsymbol{\mathbf{J}}_{GG}^{\prime} is negative definite and −JDG′T-\boldsymbol{\mathbf{J}}_{DG}^{\prime T} is full column rank. Now, for the eigenvalue bounds we have from Lemma G.2 that:

If Im(λ)=0{\rm Im}(\lambda)=0, then Re(λ)≤−2f′2(0)ηλmin⁡(+)(KDGKDGT)λmin⁡(+)(KDGTKDG)4f′2(0)η2λmax⁡(KDGKDGT)λmin⁡(+)(KDGKDGT)+λmin⁡(+)(KDGTKDG){\rm Re}(\lambda)\leq-\frac{2f^{\prime 2}(0)\eta\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T})\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}{4f^{\prime 2}(0)\eta^{2}\lambda_{\max}(\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T})\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T})+\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG})}

If Im(λ)≠0{\rm Im}(\lambda)\neq 0, then Re(λ)≤−ηf′2(0)λmin⁡(+)(KDGKDGT){\rm Re}(\lambda)\leq-\eta f^{\prime 2}(0){\lambda_{\min}^{(+)}(\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T})}

However, this can be further simplified to arrive at the given bound by noting that all the non-zero eigenvalues of any matrix AB\boldsymbol{\mathbf{A}}\boldsymbol{\mathbf{B}} is also equal to the non-zero eigenvalues of the matrix BA\boldsymbol{\mathbf{B}}\boldsymbol{\mathbf{A}}. Therefore, we can replace every occurrence of KDGKDGT\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{K}}_{DG}^{T} with KDGTKDG\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG} in the above inequality.

Additionally, we show that we can find a Lyapunov function that satisfies LaSalle’s principle for the projected linearized system.

For the linearized projected system with the Jacobian J′\boldsymbol{\mathbf{J}}^{\prime}, we have that 1/2∥γD−γ⋆D∥2+1/2∥γG−γ⋆G∥21/2\|\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D}\|^{2}+1/2\|\boldsymbol{\mathbf{\gamma}}_{G}-\boldsymbol{\mathbf{\gamma^{\star}}}_{G}\|^{2} is a Lyapunov function such that for all non-equilbrium points, it either always decreases or only instantaneously remains constant.

Note that the Lyapunov function is zero only at the equilibrium of the projected system. Furthermore, it is straightforward to verify that the rate at which this changes is given by −2η(γG−γG⋆)TTGKDGTKDGTGT(γG−γG⋆)-2\eta(\boldsymbol{\mathbf{\gamma_{G}}}-\boldsymbol{\mathbf{\gamma_{G}^{\star}}})^{T}\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T}(\boldsymbol{\mathbf{\gamma_{G}}}-\boldsymbol{\mathbf{\gamma_{G}^{\star}}}) which is non-positive. Clearly this is zero only when γG=γG⋆\boldsymbol{\mathbf{\gamma_{G}}}=\boldsymbol{\mathbf{\gamma_{G}^{\star}}} because TGKDGTKDGTGT\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{K}}_{DG}\boldsymbol{\mathbf{T}}_{G}^{T} is positive definite. When this rate is indeed zero, we have that for the linearized system, γ˙G=TGKDGTTDT(γD−γ⋆D)\boldsymbol{\mathbf{\dot{\gamma}_{G}}}=\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{T}}_{D}^{T}(\boldsymbol{\mathbf{\gamma}}_{D}-\boldsymbol{\mathbf{\gamma^{\star}}}_{D}) because the other term becomes zero. For the system to identically stay on the manifold γG=γG⋆\boldsymbol{\mathbf{\gamma_{G}}}=\boldsymbol{\mathbf{\gamma_{G}^{\star}}} we need γ˙G=0\boldsymbol{\mathbf{\dot{\gamma}_{G}}}=0, which happens only when γD=γ⋆D\boldsymbol{\mathbf{\gamma}}_{D}=\boldsymbol{\mathbf{\gamma^{\star}}}_{D} because TGKDGTTDT\boldsymbol{\mathbf{T}}_{G}\boldsymbol{\mathbf{K}}_{DG}^{T}\boldsymbol{\mathbf{T}}_{D}^{T} is full column rank. When that is the case, we are at equilibrium.

F.2 Intuition based on arg-max differentiation

Observe that the last term is zero because, for the optimal discriminator ∇θDV(DθD,GθG(t))=0\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}V(D_{\boldsymbol{\mathbf{\theta_{D}}}},G_{\boldsymbol{\mathbf{\theta}}^{(t)}_{G}})=0. However, in practice, we would not be at the optimal discriminator and therefore this term may be non-zero. Our hypothesis is that, instead of ignoring this term like it is done for the conventional updates, retaining this term may prove to be useful. To do so, we simply plug in the current discriminator for θD⋆(θG⋆)\boldsymbol{\mathbf{\theta}}^{\star}_{D}(\boldsymbol{\mathbf{\theta}}^{\star}_{G}) while computing this term, and furthermore, estimate the value of ∇θGθD⋆(θG)\nabla_{\boldsymbol{\mathbf{\theta_{G}}}}\boldsymbol{\mathbf{\theta^{\star}_{D}}}(\boldsymbol{\mathbf{\theta_{G}}}) using the following equation:

In the second step above, we apply the chain rule. Rearranging, we get:

Since we hope the objective to be concave in the discriminator parameters, we can approximate the Hessian as ∇θD2V(DθD,DθG(t))=−I/η\nabla^{2}_{\boldsymbol{\mathbf{\theta_{D}}}}V(D_{\boldsymbol{\mathbf{\theta_{D}}}},D_{\boldsymbol{\mathbf{\theta_{G}}}^{(t)}})=-\boldsymbol{\mathbf{I}}/\eta. Plugging this into the update equation of θG(t+1)\boldsymbol{\mathbf{\theta}}^{(t+1)}_{G} and also replacing the optimal discriminator with the current discriminator, we get the following update rule which is equivalent to the original one presented in Equation 4:

F.3 Mode Collapse and Relation to 1-unrolled updates

Our regularization term also has natural and intuitive connections to an important issue that arises in GAN optimization called mode collapse. Mode collapse is a situation where a GAN may enter an irrecoverable failure state where the generator incorrectly assigns all its probability mass to a small region in space. This arises because a globally optimal strategy for the generator is to push all its mass towards the single point that the discriminator is the most confident about being a real data point. To overcome this the generator needs more “foresight” – it must know that when it collapses all the mass, the discriminator will subsequently label the collapsed point as fake data. Our penalty indeed encodes this foresight, because the discriminator’s ability to outdo the generator is quantified by the magnitude of the discriminator’s gradient. More clearly, our generator seeks a state where it can spread data out enough, to make sure the discriminator has no obvious countermeasure (i.e., no big gradients).

In fact, we can show how our penalty term and 1-unrolled GANs have very similar structure because intuitively both provide a one-step lookahead to the generator. More precisely, we can arrive at 1-unrolled updates if we simplify our updates further and replace θD\boldsymbol{\mathbf{\theta_{D}}} by an “unrolled” θD+η∇θDV^(DθD,GθG)\boldsymbol{\mathbf{\theta_{D}}}+\eta\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}\hat{V}(D_{\boldsymbol{\mathbf{\theta_{D}}}},G_{\boldsymbol{\mathbf{\theta_{G}}}}).

We begin by simplifying the 1-unrolled updates. The key idea of a 1-unrolled update is to allow the generator to explicitly foresee how the discriminator would react to its update, and optimize accordingly:

In the first step, we compute gradient with respect to θG\boldsymbol{\mathbf{\theta_{G}}} as the sum of the gradients with respect to the two instances of θG\boldsymbol{\mathbf{\theta_{G}}} that occur in V(DθD+η∇θDV(DθD,GθG),GθG)V(D_{\boldsymbol{\mathbf{\theta_{D}}}+\eta\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}V(D_{\boldsymbol{\mathbf{\theta_{D}}}},G_{\boldsymbol{\mathbf{\theta_{G}}}})},G_{\boldsymbol{\mathbf{\theta_{G}}}}), the first one that occurs as the second argument to V(⋅,⋅)V(\cdot,\cdot), and the second one that occurs in the unrolled update of the first argument. In the second step, we apply the chain rule on the second gradient.

We can compare our updates in Equation 10 with the above to show how our updates are more flexible in terms of using the lookahead. While both have two similar terms, a crucial difference is that in the latter, every occurrence of the discriminator parameters (except one) has an additional unrolled update, namely η∇θDV(DθD,GθG)\eta\nabla_{\boldsymbol{\mathbf{\theta_{D}}}}V(D_{\boldsymbol{\mathbf{\theta_{D}}}},G_{\boldsymbol{\mathbf{\theta_{G}}}}). Clearly, this should provide more power to the latter; however in practice, we observe that our technique can be more powerful than 11-unrolled or even 1010-unrolled updates (which are in fact much slower to run). The reason is that the unrolled updates constrain η\eta to be small, typically of the order 10−410^{-4} which is the step size. It would not be possible to increase η\eta to greater magnitudes as it would be equivalent to a coarse step size in the unrolling. Our method on the other hand, allows for larger η\eta because the discriminator is retained as it is; in some sense, our penalty provides a way of extracting and leveraging the unrolled update more flexibly.

Appendix G Eigenvalue bounds

In this section, we prove one of the most useful lemmas that we used in our proofs, that matrices of the form [−QP;−PT0]\begin{bmatrix}-\boldsymbol{\mathbf{Q}}&\boldsymbol{\mathbf{P}};&-\boldsymbol{\mathbf{P}}^{T}&0\end{bmatrix} are Hurwitz when Q≻0Q\succ 0 and PP is full column rank. We also prove eigenvalue bounds for such a matrix. To do so, we begin with a simple fact:

For Q⪰0\boldsymbol{\mathbf{Q}}\succeq 0 be a real symmetric matrix. If aTQa=c\boldsymbol{\mathbf{a}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}=c, then aTQTQa∈[λmin⁡(Q)c,λmax⁡(Q)c,]\boldsymbol{\mathbf{a}}^{T}\boldsymbol{\mathbf{Q}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}\in[\lambda_{\min}(\boldsymbol{\mathbf{Q}})c,\lambda_{\max}(\boldsymbol{\mathbf{Q}})c,].

Let Q=UΛUT\boldsymbol{\mathbf{Q}}=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{\Lambda}}\boldsymbol{\mathbf{U}}^{T} be the eigenvalue decomposition of Q\boldsymbol{\mathbf{Q}}. Let x=Ua\boldsymbol{\mathbf{x}}=\boldsymbol{\mathbf{U}}\boldsymbol{\mathbf{a}}. Then, c=xΛxc=\boldsymbol{\mathbf{x}}\boldsymbol{\mathbf{\Lambda}}\boldsymbol{\mathbf{x}} or in other words, c=∑xi2λic=\sum x^{2}_{i}\lambda_{i}. Similarly, aTQTQa=∑xi2λi2\boldsymbol{\mathbf{a}}^{T}\boldsymbol{\mathbf{Q}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}=\sum x_{i}^{2}\lambda^{2}_{i} which differs from cc by a multiplicative factor within [λmin⁡(Q),λmax⁡(Q)][\lambda_{\min}(\boldsymbol{\mathbf{Q}}),\lambda_{\max}(\boldsymbol{\mathbf{Q}})]. ∎

where Q\boldsymbol{\mathbf{Q}} is a symmetric real positive definite matrix and P\boldsymbol{\mathbf{P}} is a full column rank matrix. Then, Re(λ)<0{\rm Re}(\lambda)<0 for every eigenvalue λ\lambda of J\boldsymbol{\mathbf{J}}. In fact,

We consider a generic eigenvector equation and equate the real and complex parts together so as to arrive at our bounds. Consider the following eigenvector equation:

where ai,bi,λi\boldsymbol{\mathbf{a}}_{i},\boldsymbol{\mathbf{b}}_{i},\lambda_{i} are all real-valued. We assume that the vector is normalized i.e., a12+a22+b12+b22=1\boldsymbol{\mathbf{a}}_{1}^{2}+\boldsymbol{\mathbf{a}}_{2}^{2}+\boldsymbol{\mathbf{b}}_{1}^{2}+\boldsymbol{\mathbf{b}}_{2}^{2}=1. So, in case λ2=0\lambda_{2}=0, we assume that a12+b12=1\boldsymbol{\mathbf{a}}_{1}^{2}+\boldsymbol{\mathbf{b}}_{1}^{2}=1. We want to show that λ1<0\lambda_{1}<0. Let us first rewrite the above equation as follows:

We can then equate the real and imaginary parts.

We now multiply the above equations by a1T,b1T,a2T,b2T\boldsymbol{\mathbf{a}}_{1}^{T},\boldsymbol{\mathbf{b}}_{1}^{T},\boldsymbol{\mathbf{a}}_{2}^{T},\boldsymbol{\mathbf{b}}_{2}^{T} respectively and add them:

As a result, only square terms and λ1\lambda_{1} terms remain:

Now observe that −a1TQa1−a2TQa2≤0-\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}-\boldsymbol{\mathbf{a}}_{2}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{2}\leq 0 because Q≻0\boldsymbol{\mathbf{Q}}\succ 0. If −a1TQa1−a2TQa2<0-\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}-\boldsymbol{\mathbf{a}}_{2}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{2}<0, it would immediately imply that λ1<0\lambda_{1}<0.

However this may not be true, and that would happen only when a1=0\boldsymbol{\mathbf{a}}_{1}=0 and a2=0\boldsymbol{\mathbf{a}}_{2}=0 because Q1,Q2≺0\boldsymbol{\mathbf{Q}}_{1},\boldsymbol{\mathbf{Q}}_{2}\prec 0. We will show that this case would not occur. First of all, this would force λ1=0\lambda_{1}=0 to ensure the above equality. By applying the Equations 12 and 14, we can conclude that λ2b2=0\lambda_{2}\boldsymbol{\mathbf{b}}_{2}=0 and λ2b1=0\lambda_{2}\boldsymbol{\mathbf{b}}_{1}=0. Since one of b1,b2≠0\boldsymbol{\mathbf{b}}_{1},\boldsymbol{\mathbf{b}}_{2}\neq 0 this implies that λ2=0\lambda_{2}=0 too. Now, by applying Equation 11 and 13, we have that Pb1=0\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{b}}_{1}=0 and Pb2=0\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{b}}_{2}=0. Since one of b1,b2≠0\boldsymbol{\mathbf{b}}_{1},\boldsymbol{\mathbf{b}}_{2}\neq 0 (if they were both zero, our eigenvector would itself be zero), this implies that P\boldsymbol{\mathbf{P}} is not a full column rank matrix, which is a contradiction of our assumption. Therefore, it cannot be the case that both a1=0\boldsymbol{\mathbf{a}}_{1}=0 and a2=0\boldsymbol{\mathbf{a}}_{2}=0.

Now, we prove our bounds on λ1\lambda_{1}. (Note that an easy lower bound follows as λ1≥−λmax⁡(Q)(∥a1∥2+∥a2∥2)≥−λmax⁡(Q)\lambda_{1}\geq-\lambda_{\max}(\boldsymbol{\mathbf{Q}})(\|\boldsymbol{\mathbf{a}}_{1}\|^{2}+\|\boldsymbol{\mathbf{a}}_{2}\|^{2})\geq-\lambda_{\max}(\boldsymbol{\mathbf{Q}}) but we are interested in an upper bound). In order to prove the upper bound, we multiply Equations 11 and Equations 13 by −a2T-\boldsymbol{\mathbf{a}}_{2}^{T} and a1T\boldsymbol{\mathbf{a}}_{1}^{T} respectively and sum them up, and Equations 12 and Equations 14 by −b2T-\boldsymbol{\mathbf{b}}_{2}^{T} and b1T\boldsymbol{\mathbf{b}}_{1}^{T} respectively and sum them up.

From the above we have that either λ2=0\lambda_{2}=0 or ∥b2∥2+∥b1∥2=∥a2∥2+∥a12∥=1/2\|\boldsymbol{\mathbf{b}}_{2}\|^{2}+\|\boldsymbol{\mathbf{b}}_{1}\|^{2}=\|\boldsymbol{\mathbf{a}}_{2}\|^{2}+\|\boldsymbol{\mathbf{a}}_{1}^{2}\|=1/2. Now, if λ2≠0\lambda_{2}\neq 0, since −a1TQa1−a2TQa2=λ1-\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}-\boldsymbol{\mathbf{a}}_{2}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{2}=\lambda_{1}, we immediately get a bound λ1≤−λmin⁡(Q)/2\lambda_{1}\leq-\lambda_{\min}(\boldsymbol{\mathbf{Q}})/2.

In the former case, since the imaginary part of the eigenvalue is zero i.e., λ2=0\lambda_{2}=0, the imaginary part of the eigenvector must be zero too i.e., a2=b2=0\boldsymbol{\mathbf{a}}_{2}=\boldsymbol{\mathbf{b}}_{2}=0. Then, we have the equations:

Rearranging and squaring the first equation we get:

In the first step, we make use of the fact that λ1=−a1TQa1\lambda_{1}=-\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}. In the second step, we use ∥a1∥2+∥b1∥2=1\|\boldsymbol{\mathbf{a}}_{1}\|^{2}+\|\boldsymbol{\mathbf{b}}_{1}\|^{2}=1. In the third step, we use Lemma G.1 i.e., a1TQTQa1≤−λ1λmax⁡(Q)\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}\leq-\lambda_{1}\lambda_{\max}(\boldsymbol{\mathbf{Q}}). We also use the fact that since λ1=−a1TQa1\lambda_{1}=-\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}, ∥a1∥2≤−λ1λmin⁡(Q)\|\boldsymbol{\mathbf{a}}_{1}\|^{2}\leq\frac{-\lambda_{1}}{\lambda_{\min}(\boldsymbol{\mathbf{Q}})}.

How do we upper bound λ1\lambda_{1} using this inequality?

Let us examine the quadratic in λ1\lambda_{1} in the above expression. Since the discriminant of this quadratic is 4λmin⁡2(Q)−4λmax⁡(Q)λmin⁡(Q)−4λmin⁡(PTP)≤−4λmin⁡(PTP)<04\lambda_{\min}^{2}(\boldsymbol{\mathbf{Q}})-4\lambda_{\max}(\boldsymbol{\mathbf{Q}})\lambda_{\min}(\boldsymbol{\mathbf{Q}})-4\lambda_{\min}(\boldsymbol{\mathbf{P}}^{T}\boldsymbol{\mathbf{P}})\leq-4\lambda_{\min}(\boldsymbol{\mathbf{P}}^{T}\boldsymbol{\mathbf{P}})<0, the quadratic always takes the same sign, specifically positive. Next, note that the quadratic reaches its minimum at −λmin⁡(Q)-\lambda_{\min}(\boldsymbol{\mathbf{Q}}).

Now, λ1\lambda_{1} can either satisfy λ1≤−λmin⁡(Q)\lambda_{1}\leq-\lambda_{\min}(\boldsymbol{\mathbf{Q}}) or 0≥λ1>−λmin⁡(Q)0\geq\lambda_{1}>-\lambda_{\min}(\boldsymbol{\mathbf{Q}}). Since the former is already an upper bound, we will derive an upper bound in the latter case. Now, in the interval (−λmin⁡(Q),0](-\lambda_{\min}(Q),0], the quadratic in λ1\lambda_{1} increases, and therefore for this interval, the above inequality can be rewritten by plugging in λ1=0\lambda_{1}=0 inside the quadratic. On plugging it, we will get:

Observe that the term on the right here lies in (−λmin⁡(Q),0)(-\lambda_{\min}(\boldsymbol{\mathbf{Q}}),0). This is because the fraction that is besides −λmin⁡(Q)-\lambda_{\min}(\boldsymbol{\mathbf{Q}}) in this term lies in (0,1)(0,1). Thus, we will use this term as our bound on λ1\lambda_{1}. ∎

Now, we provide a similar upper bound result, though only partially, for eigenvalues of matrices that have the same structural properties as the Jacobian of our regularized system. Note that we have upper bounds only for eigenvalues that are complex (we have not used them anywhere in the main paper though).

where Q\boldsymbol{\mathbf{Q}} is a real symmetric positive definite matrix and P\boldsymbol{\mathbf{P}} is a full column rank matrix. Let η<1λmax⁡(Q)\eta<\frac{1}{\lambda_{\max}(\boldsymbol{\mathbf{Q}})}.

Then, if Im(λ)≠0{\rm Im}(\lambda)\neq 0 for any eigenvalue λ\lambda of J\boldsymbol{\mathbf{J}},

Consider the following eigenvector equation:

where ui,vi,λiu_{i},v_{i},\lambda_{i} are all real-valued. We want to show that λ1<0\lambda_{1}<0. Let us first rewrite the above equation as follows:

We can then equate the real and imaginary parts.

We now multiply the above equations by a1T,b1T,a2T,b2T\boldsymbol{\mathbf{a}}_{1}^{T},\boldsymbol{\mathbf{b}}_{1}^{T},\boldsymbol{\mathbf{a}}_{2}^{T},\boldsymbol{\mathbf{b}}_{2}^{T} respectively and add them:

Above, we can substitute for Pb1\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{b}}_{1} and Pb2\boldsymbol{\mathbf{P}}\boldsymbol{\mathbf{b}}_{2} in ηb1TPTQa1+ηb2TPTQa2\eta\boldsymbol{\mathbf{b}}_{1}^{T}\boldsymbol{\mathbf{P}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}+\eta\boldsymbol{\mathbf{b}}_{2}^{T}\boldsymbol{\mathbf{P}}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{2} using the previous equations.

We could do the above only because η<1λmax⁡(Q)\eta<\frac{1}{\lambda_{\max}(\boldsymbol{\mathbf{Q}})} and therefore the denominator 1−η(a1TQa1+a2TQa2)≠01-\eta(\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{1}+\boldsymbol{\mathbf{a}}_{2}^{T}\boldsymbol{\mathbf{Q}}\boldsymbol{\mathbf{a}}_{2})\neq 0.

In order to prove our upper bound, we first note the following inequality:

We now multiply the first and third equations by −a2T-\boldsymbol{\mathbf{a}}_{2}^{T} and a1T\boldsymbol{\mathbf{a}}_{1}^{T} respectively and sum them up, and second and fourth by −b2T-\boldsymbol{\mathbf{b}}_{2}^{T} and b1T\boldsymbol{\mathbf{b}}_{1}^{T} respectively and sum them up. Then, we get:

Then, either λ2=0\lambda_{2}=0 or when λ2≠0\lambda_{2}\neq 0, we have ∥b2∥2+∥b1∥2=∥a2∥2+∥a1∥2−ηλ2a1TQTa1−ηλ2a2TQTa2\|\boldsymbol{\mathbf{b}}_{2}\|^{2}+\|\boldsymbol{\mathbf{b}}_{1}\|^{2}=\|\boldsymbol{\mathbf{a}}_{2}\|^{2}+\|\boldsymbol{\mathbf{a}}_{1}\|^{2}-\eta\lambda_{2}\boldsymbol{\mathbf{a}}_{1}^{T}\boldsymbol{\mathbf{Q}}^{T}\boldsymbol{\mathbf{a}}_{1}-\eta\lambda_{2}\boldsymbol{\mathbf{a}}_{2}^{T}\boldsymbol{\mathbf{Q}}^{T}\boldsymbol{\mathbf{a}}_{2}. This translates to the inequality:

By adding ∥a2∥2+∥a1∥2\|\boldsymbol{\mathbf{a}}_{2}\|^{2}+\|\boldsymbol{\mathbf{a}}_{1}\|^{2} everywhere and using the fact that ∥a2∥2+∥a1∥2+∥b2∥2+∥b1∥2=1\|\boldsymbol{\mathbf{a}}_{2}\|^{2}+\|\boldsymbol{\mathbf{a}}_{1}\|^{2}+\|\boldsymbol{\mathbf{b}}_{2}\|^{2}+\|\boldsymbol{\mathbf{b}}_{1}\|^{2}=1, the above inequality becomes:

The above inequalities yield an immediate lower bound on the magnitude in the latter case by plugging them in Equation 20:

Since, we know λ1\lambda_{1} is negative, this implies an upper bound on λ1\lambda_{1}.