Global optimality conditions for deep neural networks

Chulhee Yun, Suvrit Sra, Ali Jadbabaie

Introduction

Since the advent of AlexNet (Krizhevsky et al., 2012), deep neural networks have surged in popularity, and have redefined the state-of-the-art across many application areas of machine learning and artificial intelligence, such as computer vision, speech recognition, and natural language processing. However, a concrete theoretical understanding of why deep neural networks work well in practice remains elusive. From the perspective of optimization, a significant barrier is imposed by the nonconvexity of training neural networks. Moreover, it was proved by Blum & Rivest (1988) that training even a 3-node neural network to global optimality is NP-Hard in the worst case, so there is little hope that neural networks have properties that make global optimization tractable.

Despite the difficulties of optimizing weights in neural networks, the empirical successes suggest that the local minima of their loss surfaces could be close to global minima; and several papers have recently appeared in the literature attempting to provide a theoretical justification for the success of these models. For example, by relating neural networks to spherical spin-glass models from statistical physics, Choromanska et al. (2015) provided some empirical evidence that the increase of size of neural networks makes local minima close to global minima.

Another line of results (Yu & Chen, 1995; Soudry & Carmon, 2016; Xie et al., 2016; Nguyen & Hein, 2017) provides conditions under which a critical point of the empirical risk is a global minimum. Such results roughly involve proving that if full rank conditions of certain matrices (as well as some additional technical conditions) are satisfied, derivative of the risk being zero implies loss being zero. However, these results are obtained under restrictive assumptions; for example, Nguyen & Hein (2017) require the width of one of the hidden layers to be as large as the number of training examples. Soudry & Carmon (2016) and Xie et al. (2016) require the product of widths of two adjacent layers to be at least as large as the number of training examples, meaning that the number of parameters in the model must grow rapidly as we have more training data available. Another recent paper (Haeffele & Vidal, 2017) provides a sufficient condition for global optimality when the neural network is composed of subnetworks with identical architectures connected in parallel and a regularizer is designed to control the number of parallel architectures.

Towards obtaining a more precise characterization of the loss-surfaces, a valuable conceptual simplification of deep nonlinear networks is deep linear neural networks, in which all activation functions are linear and the output of the entire network is a chained product of weight matrices with the input vector. Although at first sight a deep linear model may appear overly simplistic, even its optimization is nonconvex, and only recently theoretical results on this problem have started emerging. Interestingly, already in 1989, Baldi & Hornik (1989) showed that some shallow linear neural networks have no local minima. More recently, Kawaguchi (2016) extended this result to deep linear networks and proved that any local minimum is also global while any other critical point is a saddle point. Subsequently, Lu & Kawaguchi (2017) provided a simpler proof that any local minimum is also global, with fewer assumptions than (Kawaguchi, 2016). Motivated by the success of deep residual networks (He et al., 2016a; b), Hardt & Ma (2017) investigated loss surfaces of deep linear residual networks and showed every critical point is a global minimum in a near-identity region; subsequently, Bartlett et al. (2017) extended this result to a nonlinear function space setting.

Inspired by this recent line of work, we study deep linear and nonlinear networks, in settings either similar to or more general than existing work. We summarize our main contributions below.

We provide both necessary and sufficient conditions for a critical point of the empirical risk to be a global minimum. Specifically, Theorem 2.1 shows that if the hidden layers are wide enough, then a critical point of the risk function is a global minimum if and only if the product of all parameter matrices is full-rank. In Theorem 2.2, we consider the case where some hidden layers have smaller width than both the input and output layers, and again provide necessary and sufficient conditions for global optimality. In comparison, Kawaguchi (2016) only proves that every critical point of the risk is either a global minimum or a saddle; it is an “existence” result without any computational implication. In contrast, we present efficiently checkable conditions for distinguishing the two different types of critical points; we can even use these conditions while running optimization to test whether the critical points we encounter are saddle points or not, if desired. It is also worth noting that such tests are intractable for general nonconvex optimization (Murty & Kabadi, 1987).

Under the same assumption as (Hardt & Ma, 2017) on the data distribution, namely, a linear model with Gaussian noise, we can modify Theorem 2.1 to handle the population risk. As a corollary, we not only recover Theorem 2.2 in (Hardt & Ma, 2017), but also extend it to a strictly larger set, while removing their assumption that the true underlying linear model has a positive determinant.

Motivated by (Bartlett et al., 2017), we extend our results on deep linear networks to obtain sufficient conditions for global optimality in deep nonlinear networks, although only via a function space view; these are presented in Theorems 4.1 and 4.2.

Global optimality conditions for deep linear neural networks

In this section, we describe the problem formulation and notations for deep linear neural networks, state main results (Theorems 2.1 and 2.2), and explain their implication.

where WW is a shorthand notation for the tuple (W1,…,WH+1)(W_{1},\dots,W_{H+1}).

We assume that dx≤md_{x}\leq m and dy≤md_{y}\leq m, and that XXTXX^{T} and YXTYX^{T} have full ranks. These assumptions are common when we consider supervised learning problems with deep neural networks (e.g. Kawaguchi (2016)). We also assume that the singular values of YXT(XXT)−1XYX^{T}(XX^{T})^{-1}X are all distinct, which is made for notational simplicity and can be relaxed without too much difficulty.

2 Necessary and sufficient conditions for global optimality

We now present two main theorems for deep linear neural networks. The theorems describe two sets, one for the case k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\} and the other for k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}, inside which every critical point of L(W)L(W) is a global minimum. Moreover, the sets have another remarkable property that every critical point outside of these sets is a saddle point. Previous works (Kawaguchi, 2016; Lu & Kawaguchi, 2017) showed that any critical point is either a global minimum or a saddle point, without providing any condition to distinguish between the two; here, we take a step further and partition the domain of L(W)L(W) into two sets clearly delineating one set which only contains global minima and the other set with only saddle points.

If k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\}, define the following set

Then, every critical point of L(W)L(W) in V1\mathcal{V}_{1} is a global minimum. Moreover, every critical point of L(W)L(W) in V1c\mathcal{V}_{1}^{c} is a saddle point.

If k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}, define the following set

Then, every critical point of L(W)L(W) in V2\mathcal{V}_{2} is a global minimum. Moreover, every critical point of L(W)L(W) in V2c\mathcal{V}_{2}^{c} is a saddle point.

Theorems 2.1 and 2.2 provide necessary and sufficient conditions for a critical point of L(W)L(W) to be globally optimal. From an algorithmic perspective, they provide easily checkable conditions, which we can use to determine if the critical point the algorithm encountered is a global optimum or not. Given that L(W)L(W) is nonconvex, it is interesting to have such efficient tests for global optimality, which is not possible in general (Murty & Kabadi, 1987).

In Hardt & Ma (2017), the authors consider minimizing population risk of linear residual networks:

where dx=d1=⋯=dH=dy=dd_{x}=d_{1}=\dots=d_{H}=d_{y}=d. They assume that xx is drawn from a zero-mean distribution with a fixed covariance matrix, and y=Rx+ξy=Rx+\xi where ξ\xi is iid standard Gaussian noise and RR is the true underlying matrix with det⁡(R)>0\det(R)>0. With these assumptions they prove that whenever σmax(Wi)<1\sigma_{\rm{max}}(W_{i})<1 for all ii, any critical point is a global minimum (Hardt & Ma, 2017, Theorem 2.2).

Under the same assumptions on data distribution, we can slightly modify Theorem 2.1 to derive a population risk counterpart, and in fact notice that the result proved in Hardt & Ma (2017) is a corollary of this modification because having σmax(Wi)<1\sigma_{\rm{max}}(W_{i})<1 for all ii is a sufficient condition for (I+WH+1)⋯(I+W1)(I+W_{H+1})\cdots(I+W_{1}) having full rank. Moreover, notice that we can remove the assumption det⁡(R)>0\det(R)>0 which was required by Hardt & Ma (2017). We state this special case as a corollary:

We also note in passing that the classical problem of matrix factorization min⁡U,V∥UVT−Y∥F2\min_{U,V}\left\|{UV^{T}-Y}\right\|_{\rm F}^{2} is a special case of deep linear neural networks, so our theorems can also be directly applied.

The previous result (Kawaguchi, 2016) assumed dy≤dxd_{y}\leq d_{x} and showed that: 1) every local minimum is a global minimum, and 2) any other critical point is a saddle point. A subsequent paper by Lu & Kawaguchi (2017) proved 1) without the assumption dy≤dxd_{y}\leq d_{x}, but as far as we know there is no result showing 2) in the case of dy>dxd_{y}>d_{x}. We provide the proof for this case in Lemma B.1. In fact, we propose an alternative proof technique for handling degenerate critical points, which is much simpler than the technique presented by Kawaguchi (2016).

Analysis of deep linear networks

In this section, we provide proofs for Theorems 2.1 and 2.2.

We first analyze the globally optimal solution of a “relaxation” of L(W)L(W), which turns out to be very useful while proving Theorems 2.1 and 2.2. Consider the relaxed risk function

This means that if there exists WW such that L(W)=inf⁡R:rank(R)≤kL0(R)L(W)=\inf_{R:\mathop{\rm rank}(R)\leq k}L_{0}(R), then WW is a global minimum of the function LL. This observation is very important in proofs; we will show that inside certain sets, any critical point WW of L(W)L(W) must satisfy R∗=WH+1⋯W1R^{*}=W_{H+1}\cdots W_{1}, where R∗R^{*} is a global optimum of L0(R)L_{0}(R). This proves that L(W)=L0(R∗)=inf⁡R:rank(R)≤kL0(R)L(W)=L_{0}(R^{*})=\inf_{R:\mathop{\rm rank}(R)\leq k}L_{0}(R), thus showing that WW is a global minimum of LL.

By restating this observation as an optimization problem, the solution of problem in (1) is bounded below by the minimum value of the following:

In case where k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\}, (2) is actually an unconstrained optimization problem. Note that L0L_{0} is a convex function of RR, so any critical point is a global minimum. By differentiating and setting the derivative to zero, we can easily get the unique globally optimal solution

In case of k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}, the problem becomes non-convex because of the rank constraint, but its exact solution can still be computed easily. We present the solution of this case as a proposition and defer the proof to Appendix C due to its technicalities.

Suppose k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}. Then the optimal solution to (2) is

which is the orthogonal projection of YXT(XXT)−1YX^{T}(XX^{T})^{-1} onto the column space of U^\hat{U}.

2 Partial derivatives of L​(W)𝐿𝑊L(W)

By simple matrix calculus, we can calculate the derivatives of L(W)L(W) with respect to WiW_{i}, for i=1,…,H+1i=1,\dots,H+1. We present the result as the following lemma, and defer the details to Appendix C.

The partial derivative of L(W)L(W) with respect to WiW_{i} is given as

We also state an elementary lemma which proves useful in our proofs, whose proof we defer to Appendix C.

3 Proof of Theorem 2.1

We prove Theorem 2.1, which addresses the case k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\}. First, recall that the set defined in Theorem 2.1 is

As seen in (3), the unique minimum point of L0L_{0} has rank kk. So, no point W∈V1cW\in\mathcal{V}_{1}^{c} can be a global minimum of LL. Therefore, by Kawaguchi (2016, Theorem 2.3.(iii)) and Lemma B.1, any critical point in V1c\mathcal{V}_{1}^{c} must be a saddle point.

For the rest of our proof, we need to consider two cases: dy≤dxd_{y}\leq d_{x} and dx≤dyd_{x}\leq d_{y}. If dx=dyd_{x}=d_{y}, both cases work. The outline of the proof is as follows: we define a new set Wϵ\mathcal{W}_{\epsilon}, show that any critical point in the set Wϵ\mathcal{W}_{\epsilon} is a global minimum, and then show that every W∈V1W\in\mathcal{V}_{1} is also in Wϵ\mathcal{W}_{\epsilon} for some ϵ>0\epsilon>0. This proves that any critical point of L(W)L(W) in V1\mathcal{V}_{1} is also a critical point in Wϵ\mathcal{W}_{\epsilon} for some ϵ>0\epsilon>0, hence a global minimum.

The following proposition proves the first step:

Assume that k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\}. For any ϵ>0\epsilon>0, define the following set:

Then any critical point of L(W)L(W) in Wϵ\mathcal{W}_{\epsilon} is a global minimum point.

By the above inequality, any critical point in W\mathcal{W} satisfies

which means that WH+1WH⋯W1=YXT(XXT)−1W_{H+1}W_{H}\cdots W_{1}=YX^{T}(XX^{T})^{-1}. The product is the unique globally optimal solution (3) of the relaxed problem in (2), so WW is a global minimum point of LL.

and the rest of the proof flows in a similar way as the previous case. ∎

For any point W∈V1W\in\mathcal{V}_{1}, there exists an ϵ>0\epsilon>0 such that W∈WϵW\in\mathcal{W}_{\epsilon}.

Define a new set W\mathcal{W}, a “limit” version (as ϵ→0\epsilon\rightarrow 0) of Wϵ\mathcal{W}_{\epsilon}, as

We show that V1⊂W\mathcal{V}_{1}\subset\mathcal{W} by showing that Wc⊂V1c\mathcal{W}^{c}\subset\mathcal{V}_{1}^{c}. Consider

Then any W∈WcW\in\mathcal{W}^{c} must have rank(WH+1⋯W1)<min⁡{dx,dy}=k\mathop{\rm rank}(W_{H+1}\cdots W_{1})<\min\{d_{x},d_{y}\}=k, so W∈V1cW\in\mathcal{V}_{1}^{c}. Thus, any W∈V1W\in\mathcal{V}_{1} is also in W\mathcal{W}, so either rank(WH+1⋯W2)=dy\mathop{\rm rank}(W_{H+1}\cdots W_{2})=d_{y} or rank(WH⋯W1)=dx\mathop{\rm rank}(W_{H}\cdots W_{1})=d_{x}, depending on the cases. Then, we can set

We always have ϵ>0\epsilon>0 because the matrices are full rank, and we can see that W∈WϵW\in\mathcal{W}_{\epsilon}. ∎

4 Proof of Theorem 2.2

In this section we prove Theorem 2.2, which tackles the case k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}. Note that this assumption also implies that 1≤p≤H1\leq p\leq H.

The globally optimal point of the relaxed problem (2) has rank kk, as seen in (4). Thus, any point outside of V1\mathcal{V}_{1} cannot be a global minimum. Then, by Kawaguchi (2016, Theorem 2.3.(iii)) and Lemma B.1, it follows that any critical point in V1c\mathcal{V}_{1}^{c} must be a saddle point. The remaining proof considers points in V1\mathcal{V}_{1}.

For this section, let us introduce some additional notations to ease presentation. Define

so that ∂L∂Wi=AiEBi\frac{\partial L}{\partial W_{i}}=A_{i}EB_{i}. Notice that AH+1A_{H+1} and B1B_{1} are identity matrices.

However, we have k≤rank(A1)k\leq\mathop{\rm rank}(A_{1}) and k≤rank(BH+1)k\leq\mathop{\rm rank}(B_{H+1}), so the ranks are all identically kk. Also,

but it was just shown that the these spaces have the same dimensions, which equals kk, meaning

Using this observation, we can now state a proposition showing necessary and sufficient conditions for a tuple W∈V1W\in\mathcal{V}_{1} to be a critical point of L(W)L(W).

A tuple W∈V1W\in\mathcal{V}_{1} is a critical point of LL if and only if ApE=0A_{p}E=0 and EBp+1=0EB_{p+1}=0.

(If part) ApE=0A_{p}E=0 implies that col(E)⊂row(Ap)⊥=⋯=row(A1)⊥\mathop{\rm col}(E)\subset\mathop{\rm row}(A_{p})^{\perp}=\cdots=\mathop{\rm row}(A_{1})^{\perp}, so ∂L∂Wi=AiEBi=0⋅Bi=0\frac{\partial L}{\partial W_{i}}=A_{i}EB_{i}=0\cdot B_{i}=0, for i=1,…,pi=1,\dots,p. Similarly, EBp+1=0EB_{p+1}=0 implies row(E)⊂col(Bp+1)⊥=⋯=col(BH+1)⊥\mathop{\rm row}(E)\subset\mathop{\rm col}(B_{p+1})^{\perp}=\cdots=\mathop{\rm col}(B_{H+1})^{\perp}, so ∂L∂Wi=AiEBi=Ai⋅0=0\frac{\partial L}{\partial W_{i}}=A_{i}EB_{i}=A_{i}\cdot 0=0 for i=p+1,…,H+1i=p+1,\dots,H+1.

(Only if part) We have ∂L∂Wi=AiEBi=0\frac{\partial L}{\partial W_{i}}=A_{i}EB_{i}=0 for all ii. This means that

Now recall that B1B_{1} and AH+1A_{H+1} are identity matrices, so col(E)⊂row(Ap)⊥\mathop{\rm col}(E)\subset\mathop{\rm row}(A_{p})^{\perp} and row(E)⊂col(Bp+1)⊥\mathop{\rm row}(E)\subset\mathop{\rm col}(B_{p+1})^{\perp}, which proves ApE=0A_{p}E=0 and EBp+1=0EB_{p+1}=0. ∎

A critical point W∈V1W\in\mathcal{V}_{1} of L(W)L(W) is a global minimum point if and only if col(WH+1⋯Wp+1)=row(Ap)=col(U^)\mathop{\rm col}(W_{H+1}\cdots W_{p+1})=\mathop{\rm row}(A_{p})=\mathop{\rm col}(\hat{U}).

Since WW is a critical point, by Proposition 3.6 we have ApE=0A_{p}E=0. Also note from the definitions of AiA_{i}’s and BiB_{i}’s that WH+1⋯W1=ApTBp+1TW_{H+1}\cdots W_{1}=A_{p}^{T}B_{p+1}^{T}, so

Comparing this with (4), WW is a global minimum solution if and only if

This equation holds if and only if ApT(ApApT)−1Ap=U^U^TA_{p}^{T}(A_{p}A_{p}^{T})^{-1}A_{p}=\hat{U}\hat{U}^{T}, meaning that they are projecting YXT(XXT)−1YX^{T}(XX^{T})^{-1} onto the same subspace. The projection matrix ApT(ApApT)−1ApA_{p}^{T}(A_{p}A_{p}^{T})^{-1}A_{p} is onto row(Ap)\mathop{\rm row}(A_{p}), while U^U^T\hat{U}\hat{U}^{T} is onto col(U^)\mathop{\rm col}(\hat{U}). From this, we conclude that WW is a global minimum point if and only if row(Ap)=col(U^)\mathop{\rm row}(A_{p})=\mathop{\rm col}(\hat{U}). ∎

From Proposition 3.7, we can define the set V2\mathcal{V}_{2} that appeared in Theorem 2.2, and conclude that every critical point of L(W)L(W) in V2\mathcal{V}_{2} is a global minimum, and any other critical points are saddle points.

Extension to deep nonlinear neural networks

In this section, we present some sufficient conditions for global optimality for deep nonlinear neural networks via a function space view. Given a smooth nonlinear function h∗h^{*} that maps input to output, Bartlett et al. (2017) described a method to decompose it into a number of smooth nonlinear functions h∗=hH+1∘⋯∘h1h^{*}=h_{H+1}\circ\cdots\circ h_{1} where hih_{i}’s are close to identity. Using Fréchet derivatives of the population risk with respect to each function hih_{i}, they showed that when all hih_{i}’s are close to identity, any critical point of the population risk is a global minimum. One can see that these results are direct generalization of Theorems 2.1 and 2.2 of Hardt & Ma (2017) to nonlinear networks and utilize the classical “small gain” arguments often used in nonlinear analysis and control (Khalil, 1996; Zames, 1966). Motivated by this result, we extended Theorem 2.1 to deep nonlinear neural networks and obtained sufficient conditions for global optimality in function space.

where the constant CC denotes the variance that is independent of h1,…,hH+1h_{1},\dots,h_{H+1}. Note that if hH+1∘⋯∘h1=h∗h_{H+1}\circ\cdots\circ h_{1}=h^{*} almost surely, the first term in L(h)L(h) vanishes and the optimal value L∗L^{*} of L(h)L(h) is CC.

Define the function spaces as the following:

where Fi\mathcal{F}_{i} are defined for all i=1,…,H+1i=1,\dots,H+1. Assume that h∗∈Fh^{*}\in\mathcal{F}, and that we are optimizing L(h)L(h) with h1∈F1,…,hH+1∈FH+1h_{1}\in\mathcal{F}_{1},\dots,h_{H+1}\in\mathcal{F}_{H+1}. In other words, the functions in F,F1,…,FH+1\mathcal{F},\mathcal{F}_{1},\dots,\mathcal{F}_{H+1} are differentiable and show sublinear growth starting from 0. Notice that hH+1∘⋯∘h1∈Fh_{H+1}\circ\cdots\circ h_{1}\in\mathcal{F}, because a composition of differentiable functions is also differentiable, and a composition of sublinear functions is also sublinear. We also assume that di≥min⁡{dx,dy}d_{i}\geq\min\{d_{x},d_{y}\} for all i=1,…,H+1i=1,\dots,H+1, which is identical to the assumption k=min⁡{dx,dy}k=\min\{d_{x},d_{y}\} in Theorem 2.1.

2 Sufficient conditions for global optimality

Here, we present two theorems which give sufficient conditions for a critical point (Dhi[L(h)]=0D_{h_{i}}[L(h)]=0 for all ii) in the function space to be a global optimum. The proofs are deferred to Appendix A.

Consider the case dx≥dyd_{x}\geq d_{y}. If there exists ϵ>0\epsilon>0 such that

then any critical point of L(h)L(h), in terms of Dh1[L(h)],…,DhH+1[L(h)]D_{h_{1}}[L(h)],\dots,D_{h_{H+1}}[L(h)], is a global minimum.

Consider the case dx≤dyd_{x}\leq d_{y}. Assume that there exists some j∈{1,…,H+1}j\in\{1,\dots,H+1\} such that dx=dj−1d_{x}=d_{j-1} and dy≤djd_{y}\leq d_{j}. If there exist ϵ1,ϵ2>0\epsilon_{1},\epsilon_{2}>0 such that

hH+1:j+1(z)h_{H+1:j+1}(z) is twice-differentiable,

then any critical point of L(h)L(h), in terms of Dh1[L(h)],…,DhH+1[L(h)]D_{h_{1}}[L(h)],\dots,D_{h_{H+1}}[L(h)], is a global minimum.

Note that these theorems give sufficient conditions, whereas Theorems 2.1 and 2.2 provide necessary and sufficient conditions. So, if the sets we are describing in Theorems 4.1 and 4.2 do not contain any critical point, the claims would be vacuous. We ensure that there are critical points in the sets, by presenting the following proposition, whose proof is also deferred to Appendix A.

For each of Theorems 4.1 and 4.2, there exists at least one global minimum solution of L(h)L(h) satisfying the conditions of the theorem.

Theorems 4.1 and 4.2 state that in certain sets of (h1,…,hH+1)(h_{1},\dots,h_{H+1}), any critical point in function space a global minimum. However, this does not imply that any critical point for a fixed sigmoid or arctan network is a global minimum. As noted in (Bartlett et al., 2017), there is a downhill direction in function space at any suboptimal point, but this direction might be orthogonal to the function space represented by a fixed network, and may hence result in local minima in the parameter space of the fixed architecture.

Understanding the connection between the function space and parameter space of commonly used architectures is an open direction for future research, and we believe that these results can be good initial steps from the theoretical point of view. For example, we can see that one of the sufficient conditions for global optimality is the Jacobian matrix being full rank. Given that a nonlinear function can locally be linearly approximated using Jacobians, this connection is already interesting. An extension of the function space viewpoint to cover different architectures or design new architectures (that have “better” properties when viewed via the function space view) should also be possible and worth studying.

Acknowledgments

This research project was supported in parts by DARPA DSO’s Fundamental Limits of Learning program.

References

Appendix A Analysis of deep nonlinear networks

In this section, we introduce additional notation that is used in the proofs. To emphasize that the Fréchet derivative Dhi[L(h)]D_{h_{i}}[L(h)] is a linear functional that outputs a real number, we will write Dhi[L(h)](η)D_{h_{i}}[L(h)](\eta) in an inner-product form ⟨Dhi[L(h)],η⟩\left\langle{D_{h_{i}}[L(h)]},{\eta}\right\rangle. This notation also helps avoiding confusion coming from multiple parentheses and square brackets.

A.2 Fréchet Derivatives

By definition of Fréchet derivatives, we have

where η∈Fi\eta\in\mathcal{F}_{i} is the direction of perturbation and ⟨Dhi[L(h)],η⟩\left\langle{D_{h_{i}}[L(h)]},{\eta}\right\rangle is the directional derivative along that direction η\eta. From the definition of L(h)L(h),

This equation (6) will be used in the proof of Theorems 4.1 and 4.2.

A.3 Proof of Theorem 4.1

From (6), consider Dh1[L(h)]D_{h_{1}}[L(h)]. For any η∈F1\eta\in\mathcal{F}_{1},

Let A(X)=J[hH+1:2](h1(X))A(X)=J[h_{H+1:2}](h_{1}(X)). Since A(X)A(X) has full row rank by assumption, A(X)A(X)TA(X)A(X)^{T} is invertible. Then define a particular direction

Moreover, if we decompose A(X)A(X) with SVD, A(X)=UΣVTA(X)=U\Sigma V^{T}, Σ\Sigma is of the form Σ=[Σ1 0]\Sigma=\begin{bmatrix}\Sigma_{1}~{}0\end{bmatrix} and

From this we can see that if we have a critical point of L(h)L(h), then ∥Dh1[L(h)]∥op=0\left\|{D_{h_{1}}[L(h)]}\right\|_{\rm op}=0 implies L(h)=L∗L(h)=L^{*}, which means that the critical point is a global minimum of L(h)L(h).

A.4 Proof of Theorem 4.2

Recall that by assumption we have j∈{1,…,H+1}j\in\{1,\dots,H+1\} such that dx=dj−1d_{x}=d_{j-1} and dy≤djd_{y}\leq d_{j}. Consider Dhj[L(h)]D_{h_{j}}[L(h)], then for any η∈Fj\eta\in\mathcal{F}_{j},

By the assumption that hj−1:1h_{j-1:1} is invertible and ∥hj−1:1(u)∥2≥ϵ1∥u∥2\left\|{h_{j-1:1}(u)}\right\|_{2}\geq\epsilon_{1}\left\|{u}\right\|_{2},

A.5 Proof of Proposition 4.3

(Theorem 4.2) It is given that we have j∈{1,…,H+1}j\in\{1,\dots,H+1\} such that dx=dj−1d_{x}=d_{j-1} and dy≤djd_{y}\leq d_{j}. Set hj(x)=(h∗(x),0,…,0)h_{j}(x)=(h^{*}(x),0,\dots,0), where the first dyd_{y} components are h∗(x)h^{*}(x) and the rest are zero. All the rest of hih_{i} are set as in (7). Then, it can be easily checked that hi∈Fih_{i}\in\mathcal{F}_{i} for all ii and all the conditions of the theorem are satisfied.

Appendix B Deferred Lemma

For this lemma, we separate the proof into two cases: WH⋯W1≠0W_{H}\cdots W_{1}\neq 0 and WH⋯W1=0W_{H}\cdots W_{1}=0. The crux of the proof is to show that any critical point cannot be a local maximum. Then, any critical point is either a local minimum or a saddle point, so the conclusion of this lemma follows.

In case of WH⋯W1≠0W_{H}\cdots W_{1}\neq 0, we use some of the results in Kawaguchi (2016) and examine the Hessian of L(W)L(W) with respect to vec(WH+1T)\mathop{\rm vec}(W_{H+1}^{T}), where vec(A)\mathop{\rm vec}(A) denotes vectorization of matrix AA. Let Dvec(WH+1T)L(W)D_{\mathop{\rm vec}(W_{H+1}^{T})}L(W) be the partial derivative of L(W)L(W) with respect to vec(WH+1T)\mathop{\rm vec}(W_{H+1}^{T}) in numerator layout. It was shown by Kawaguchi (2016, Lemma 4.3) that the Hessian matrix

where ⊗\otimes denotes the Kronecker product of two matrices. Notice that H(W)\mathcal{H}(W) is positive semidefinite. Since XXTXX^{T} is full rank, whenever WH⋯W1≠0W_{H}\cdots W_{1}\neq 0 there exists a strictly positive eigenvalue in H(W)\mathcal{H}(W), which means that there exists an increasing direction. So WW cannot be a local maximum.

The case where WH⋯W1=0W_{H}\cdots W_{1}=0 requires a bit more careful treatment. Note that this case corresponds to where we have degenerate critical points, which are in many cases much harder to handle.

For any arbitrary ϵ>0\epsilon>0, we describe a procedure that perturbs the matrices W1,…,WH+1W_{1},\dots,W_{H+1} by perturbations sampled from Frobenius norm balls of radius ϵ\epsilon centered at , which we will denote as Bi(ϵ)\mathcal{B}_{i}(\epsilon), i=1,…,H+1i=1,\dots,H+1. Let U(Bi(ϵ))\mathcal{U}(\mathcal{B}_{i}(\epsilon)) be the uniform distribution over the ball Bi(ϵ)\mathcal{B}_{i}(\epsilon). The algorithm goes as the following:

Sample Δi∼U(Bi(ϵ))\Delta_{i}\sim\mathcal{U}(\mathcal{B}_{i}(\epsilon)), and define Vi=Wi+ΔiV_{i}=W_{i}+\Delta_{i}.

If WH+1⋯Wi+1Vi⋯V1≠0W_{H+1}\cdots W_{i+1}V_{i}\cdots V_{1}\neq 0, stop and return i∗=ii^{*}=i.

First, recall that the set of rank-deficient matrices have Lebesgue measure zero, so for any sample Δi∼U(Bi(ϵ))\Delta_{i}\sim\mathcal{U}(\mathcal{B}_{i}(\epsilon)), Vi=Wi+ΔiV_{i}=W_{i}+\Delta_{i} has full rank with probability 1. If we proceed the for loop until i=H+1i=H+1, we have a full-rank VH+1⋯V1V_{H+1}\cdots V_{1} with probability 1, which means that the algorithm must return i∗∈{1,…,H+1}i^{*}\in\{1,\dots,H+1\} with probability 1. Notice that before and after the i∗i^{*}-th iteration, we have

This means that if we define Δ^=WH+1⋯Wi∗+1Δi∗Vi∗−1⋯V1\hat{\Delta}=W_{H+1}\cdots W_{i^{*}+1}\Delta_{i^{*}}V_{i^{*}-1}\cdots V_{1}, then Δ^≠0\hat{\Delta}\neq 0. Also, notice that

and notice that they are all in the neighborhood of WW, that is, the Cartesian product of ϵ\epsilon-radius balls centered at W1,…,WH+1W_{1},\dots,W_{H+1}. Moreover, we have

from which we can see that at least one of L(W)<L(U(1))L(W)<L(U^{(1)}) or L(W)<L(U(2))L(W)<L(U^{(2)}) must hold. This shows that for any ϵ>0\epsilon>0, there is a point UU in ϵ\epsilon-neighborhood of WW with a strictly greater function value L(U)L(U). This proves that WW cannot be a local maximum. ∎

Appendix C Deferred Proofs

In case of k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}, we can decompose the loss function in the following way:

Let us take a close look into the last term in the RHS. Note that YXT(XXT)−1XYX^{T}(XX^{T})^{-1}X is the orthogonal projection of YY onto row(X)\mathop{\rm row}(X), so each row of YXT(XXT)−1X−YYX^{T}(XX^{T})^{-1}X-Y must be in null(X)\mathop{\rm null}(X). Also,

It is XTX^{T} right-multiplied with some matrix, so its columns must lie in col(XT)=row(X)\mathop{\rm col}(X^{T})=\mathop{\rm row}(X). By the fact that null(X)⊥=row(X)\mathop{\rm null}(X)^{\perp}=\mathop{\rm row}(X),

Now, (2) becomes a problem of minimizing ∥RX−YXT(XXT)−1X∥F2\left\|{RX-YX^{T}(XX^{T})^{-1}X}\right\|_{\rm F}^{2} subject to the rank constraint rank(R)≤k\mathop{\rm rank}(R)\leq k. The optimal solution for this is obtained when RXRX is the kk-rank approximation of YXT(XXT)−1XYX^{T}(XX^{T})^{-1}X. Then, kk-rank approximation of YXT(XXT)−1XYX^{T}(XX^{T})^{-1}X can be expressed as U^U^TYXT(XXT)−1X\hat{U}\hat{U}^{T}YX^{T}(XX^{T})^{-1}X, where U^\hat{U} is unique due to our assumption that all singular values are distinct. Therefore,

is the unique global minimum solution of (2) when k<min⁡{dx,dy}k<\min\{d_{x},d_{y}\}.

C.2 Proof of Lemma 3.2

C.3 Proof of Lemma 3.3

1. Since ATA⪰σmin2(A)IA^{T}A\succeq\sigma_{\rm{min}}^{2}(A)I, BTATAB⪰σmin2(A)BTBB^{T}A^{T}AB\succeq\sigma_{\rm{min}}^{2}(A)B^{T}B. Then

2. Since BBT⪰σmin2(B)IBB^{T}\succeq\sigma_{\rm{min}}^{2}(B)I, ABBTAT⪰σmin2(B)AATABB^{T}A^{T}\succeq\sigma_{\rm{min}}^{2}(B)AA^{T}. Then