Implicit Regularization Towards Rank Minimization in ReLU Networks

Nadav Timor, Gal Vardi, Ohad Shamir

Introduction

A central puzzle in the theory of deep learning is how neural networks generalize even when trained without any explicit regularization, and when there are far more learnable parameters than training examples. In such an underdetermined optimization problem, there are many global minima with zero training loss, and gradient descent seems to prefer solutions that generalize well (see Zhang et al. (2017)). Hence, it is believed that gradient descent induces an implicit regularization (or implicit bias) (Neyshabur et al., 2015, 2017), and characterizing this regularization/bias has been a subject of extensive research.

Several works in recent years studied the relationship between the implicit regularization in linear neural networks and rank minimization. A main focus is on the matrix factorization problem, which corresponds to training a depth-2 linear neural network with multiple outputs w.r.t. the square loss, and is considered a well-studied test-bed for studying implicit regularization in deep learning. Gunasekar et al. (2018c) initially conjectured that the implicit regularization in matrix factorization can be characterized by the nuclear norm of the corresponding linear predictor. This conjecture was further studied in a string of works (e.g., Belabbas (2020); Arora et al. (2019); Razin and Cohen (2020)) and was formally refuted by Li et al. (2020). Razin and Cohen (2020) conjectured that the implicit regularization in matrix factorization can be explained by rank minimization, and also hypothesized that some notion of rank minimization may be key to explaining generalization in deep learning. Li et al. (2020) established evidence that the implicit regularization in matrix factorization is a heuristic for rank minimization. Razin et al. (2021) studied implicit regularization in tensor factorization (a generalization of matrix factorization). They demonstrated, both theoretically and empirically, implicit bias towards low-rank tensors. Going beyond factorization problems, Ji and Telgarsky (2018a, 2020) showed that in linear networks of output dimension 11, gradient flow (GF) w.r.t. exponentially-tailed classification losses converges to networks where the weight matrix of every layer is of rank 11.

However, once we move to nonlinear neural networks (which are by far the more common in practice), things are less clear. Empirically, a series of works studying neural network compression (cf. Denton et al. (2014); Yu et al. (2017); Alvarez and Salzmann (2017); Arora et al. (2018); Tukan et al. (2020)) showed that replacing the weight matrices by low-rank approximations results in only a small drop in accuracy. This suggests that the weight matrices in practice are not too far from being low-rank. However, whether they provably behave this way remains unclear.

In this work we consider fully-connected nonlinear networks employing the popular ReLU activation function, and study whether GF is biased towards networks where the weight matrices have low ranks. On the negative side, we show that already for small (depth and width 22) ReLU networks, there is no rank-minimization bias in a rather strong sense. On the positive side, for deeper and possibly wider overparameterized networks, we identify reasonable settings where GF is biased towards low-rank solutions. In more details, our contributions are as follows:

Next, for ReLU networks that are overparameterized in terms of depth and have width ≥2\geq 2, we identify interesting settings in which GF is biased towards low ranks:

The implicit regularization in matrix factorization and linear neural networks with the square loss was extensively studied, as a first step toward understanding implicit regularization in more complex models (see, e.g., Gunasekar et al. (2018c); Razin and Cohen (2020); Arora et al. (2019); Belabbas (2020); Eftekhari and Zygalakis (2020); Li et al. (2018); Ma et al. (2018); Woodworth et al. (2020); Gidel et al. (2019); Li et al. (2020); Yun et al. (2020); Azulay et al. (2021); Razin et al. (2021)). As we already discussed, some of these works showed bias toward low ranks.

Organization. In Sec. 2 we provide necessary notations and definitions. In Sec. 3 we state our negative results for depth-22 networks. In Sec. 4 and 5 we state our positive results for deep ReLU networks. In Sec. 6 we describe the ideas for the proofs of the main theorems, with all formal proofs deferred to the appendix.

Preliminaries

Neural networks.

Optimization problem and gradient flow (GF).

We assume that the data is realizable, that is, min⁡θL(θ)=0\min_{\boldsymbol{\theta}}L({\boldsymbol{\theta}})=0. Moreover, we focus on settings where the network is overparameterized, in the sense that LL has multiple (or even infinitely many) global minima.

We consider gradient flow (GF) on the objective given in Eq. (1). This setting captures the behavior of gradient descent with an infinitesimally small step size. Let θ(t){\boldsymbol{\theta}}(t) be the trajectory of GF. Starting from an initial point θ(0){\boldsymbol{\theta}}(0), the dynamics of θ(t){\boldsymbol{\theta}}(t) is given by the differential equation dθ(t)dt=−∇LX,Y(θ(t))\frac{d{\boldsymbol{\theta}}(t)}{dt}=-\nabla L_{X,Y}({\boldsymbol{\theta}}(t)). Note that the ReLU function is not differentiable at . Practical implementations of gradient methods define the derivative σ′(0)\sigma^{\prime}(0) to be some constant in $.Inthisworkweassumeforconveniencethat. In this work we assume for convenience that\sigma^{\prime}(0)=0.WesaythatGFconvergesif. We say that GF converges if\lim_{t\to\infty}{\boldsymbol{\theta}}(t)exists.Inthiscase,wedenoteexists. In this case, we denote{\boldsymbol{\theta}}(\infty):=\lim_{t\to\infty}{\boldsymbol{\theta}}(t)$.

Gradient flow does not even approximately minimize ranks

In this section we consider rank minimization in depth-22 networks NW,VN_{W,V} trained with the square loss. We show that even for the simple case of size-22 datasets, under mild assumptions, GF does not converge to a minimum-rank solution even approximately.

To make the setting non-trivial, we need to show that such low-rank zero-loss solutions exist at all. The following theorem shows that this is true for almost all size-22 datasets:

The theorem follows by constructing a network where the weight vectors of the neurons in the first layer have opposite directions (and hence the weight matrix is of rank 11), such that each neuron is active for exactly one input. Then, it is possible to show that for an appropriate choice of the weights in the second layer the network achieves zero loss. See Appendix A for the formal proof.

Thm. 1 implies that zero-loss solutions of rank 11 exist. However, we now show that GF does not converge to such solutions. We prove this result under the following assumptions:

The assumptions that xi,yi\mathbf{x}_{i},\mathbf{y}_{i} are of unit norm are mostly for technical convenience, and we believe that they are not essential.

and ∥vi(0)∥<12{\left\|{\mathbf{v}_{i}(0)}\right\|}<\frac{1}{2} for all i∈{1,2}i\in\{1,2\}. If GF converges to a zero-loss solution NW(∞),V(∞)N_{W(\infty),V(\infty)}, then rank⁡(W(∞))=2\operatorname{rank}(W(\infty))=2.

By the above theorem, GF does not minimize the rank even in a very simple setting where the dataset contains two inputs with angle larger than π/2\pi/2 (as long as the initialization point is sufficiently close to ). In particular, if the dataset is drawn from the uniform distribution on the sphere then this condition holds with probability 1/21/2.

While Thm. 2 shows that GF does not minimize the rank, it does not rule out the possibility that it converges to a solution which is close to a low-rank solution. There are many ways to define such closeness, such as the ratio of the Frobenius and spectral norms, the Frobenius distance from a low-rank solution, or the exponential of the entropy of the singular values (cf. Rudelson and Vershynin (2007); Sanyal et al. (2019); Razin and Cohen (2020); Roy and Vetterli (2007)). However, for 2×22\times 2 matrices they all boil down to either having the two rows of the matrix being nearly aligned, or having at least one of them very small (at least compared to the other). In the following theorem, we show that under the assumptions stated above, for any fixed dataset, with at least constant probability, GF converges to a zero-loss solution, where the two row vectors are bounded away from , the ratio of their norms are bounded, and the angle between them is bounded away from and from π\pi (all by explicit constants that depend just on the dataset and are large in general). Thus, with at least constant probability, GF does not minimize any reasonable approximate notion of rank.

Let EE be the event that GF converges to a zero-loss solution NW(∞),V(∞)N_{W(\infty),V(\infty)} such that

∡(w1(∞),w2(∞))∈[π2−(∡(x1,x2)−π2),3π4+∡(x1,x2)−π/22]\measuredangle\left(\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)\right)\in\left[\frac{\pi}{2}-\left(\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})-\frac{\pi}{2}\right),\frac{3\pi}{4}+\frac{\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})-\pi/2}{2}\right],

∥wi(∞)∥∈(32,14+43(sin⁡∡(x1,x2))2){\left\|{\mathbf{w}_{i}(\infty)}\right\|}\in\left(\frac{\sqrt{3}}{2},\sqrt{\frac{1}{4}+\frac{4}{3\left(\sin\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})\right)^{2}}}\right) for all i∈{1,2}i\in\left\{{1,2}\right\}.

Then, Pr⁡[E]≥2⋅(∡(x1,x2)2π)2\Pr\left[E\right]\geq 2\cdot\left(\frac{\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})}{2\pi}\right)^{2}.

We note that in Thm. 3 the weights in the second layer are initialized to zero, while in Thm. 2 the assumption on the initialization is weaker. This difference is for technical convenience, and we believe that Thm. 3 should hold also under weaker assumptions on the initialization, as the next empirical result demonstrates.

Our theorems imply that for standard initialization schemes, GF will not converge close to low-rank solutions, with some positive probability. We now present a simple experiment that corroborates this and suggests that, furthermore, this holds with high probability.

Equivalently, we have the following upper bound on the harmonic mean of the ratios ∥Wi∗∥F∥Wi∗∥σ\frac{{\left\|{W_{i}^{*}}\right\|}_{F}}{{\left\|{W_{i}^{*}}\right\|}_{\sigma}}:

By the above theorem if k′k^{\prime} is much larger than kk, then the average ratio between the spectral and the Frobenius norms (Eq. (3)) is at least roughly 11. Likewise, the harmonic mean of the ratio between the Frobenius and the spectral norms (Eq. (4)), namely, the square root of the stable rank, is at most roughly 11. Noting that both these ratios equal 11 if and only if the matrix is of rank 11, we see that there is a bias towards low-rank solutions as the depth k′k^{\prime} of the trained network increases. Note that the result does not depend on the width of the networks. Thus, even if the width m′m^{\prime} is large, the average ratio is close to 11. Also, note that the network NN of depth kk in the theorem might have high ranks (e.g., rank mm for each weight matrix), but once we consider networks of a large depth k′k^{\prime} then the dataset becomes realizable by a network of small average rank, and GF converges to such a network.

Rank minimization in deep networks with exponentially-tailed losses

In this section, we turn to consider GF in classification tasks with exponentially-tailed losses, namely, the exponential loss or the logistic loss.

The following well-known result characterizes the implicit bias in homogeneous neural networks trained with the logistic or the exponential loss:

Let NθN_{{\boldsymbol{\theta}}} be a homogeneous ReLU neural network. Consider minimizing the average of either the exponential or the logistic loss over a binary classification dataset using GF. Suppose that the average loss converges to zero as t→∞t\to\infty. Then, GF converges in direction to a first order stationary point (KKT point) of the following maximum margin problem in parameter space:

Equivalently, we have the following upper bound on the harmonic mean of the ratios ∥Wi∗∥F∥Wi∗∥σ\frac{{\left\|{W_{i}^{*}}\right\|}_{F}}{{\left\|{W_{i}^{*}}\right\|}_{\sigma}}:

By the above theorem, if k′k^{\prime} is much larger than kk, then the average ratio between the spectral and the Frobenius norms (Eq. (7)) is at least roughly 1/21/\sqrt{2}. Likewise, the harmonic mean of the ratio between the Frobenius and the spectral norms (Eq. (8)), i.e., the square root of the stable rank, is at most roughly 2\sqrt{2}. Note that the result does not depend on the width of the networks. Thus, it holds even if the width m′m^{\prime} is very large. Similarly to the case of Thm. 4, we note that the network NN of depth kk might have high ranks (e.g., rank mm for each weight matrix), but once we consider networks of a large depth k′k^{\prime}, then the dataset becomes realizable by a network of small average rank, and GF converges to such a network.

The combination of the above result with Lemma 1 suggests that, in overparameterized deep fully-connected networks, GF tends to converge in direction to neural networks with low ranks. Note that we consider the exponential and the logistic losses, and hence if the loss tends to zero as t→∞t\to\infty, then we have ∥θ(t)∥→∞{\left\|{{\boldsymbol{\theta}}(t)}\right\|}\to\infty. To conclude, in our case, the parameters tend to have an infinite norm and to converge in direction to a low-rank solution. Moreover, note that the ratio between the spectral and the Frobenius norms is invariant to scaling, and hence it suggests that after a sufficiently long time, GF tends to reach a network with low ranks.

Proof ideas

In this section we describe the main ideas for the proofs of Theorems 2, 3, 4 and 5. The full proofs are given in the appendix.

We define the following regions (see Fig. 2):

Intuitively, D\mathcal{D} defines the “dead” region where the relevant neuron will output on both x1,x2\mathbf{x}_{1},\mathbf{x}_{2}; S\mathcal{S} is the “active” region where the relevant neuron will output a positive output on both x1,x2\mathbf{x}_{1},\mathbf{x}_{2}; and S1,S2\mathcal{S}_{1},\mathcal{S}_{2} are the “partially active” regions, where the relevant neuron will output a positive output on one point, and on the other.

Assume towards contradiction that GF converges to some zero-loss network NW(∞),V(∞)N_{W(\infty),V(\infty)} with rank⁡(W(∞))<2\operatorname{rank}(W(\infty))<2. Since NW(∞),V(∞)N_{W(\infty),V(\infty)} attains zero loss, then Y=V(∞)σ(W(∞)X)Y=V(\infty)\sigma\left(W(\infty)X\right), and hence

Therefore, the weight vectors w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty) are not in the region D{\cal D}. Indeed, if w1(∞)\mathbf{w}_{1}(\infty) or w2(∞)\mathbf{w}_{2}(\infty) are in D{\cal D}, then at least one of the rows of σ(W(∞)X)\sigma(W(\infty)X) is zero, in contradiction to Eq. (9). In particular, it implies that w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty) are non-zero. Since by our assumption we have rank⁡(W(∞))<2\operatorname{rank}(W(\infty))<2, then we conclude that rank⁡(W(∞))=1\operatorname{rank}(W(\infty))=1. We denote w2(∞)=αw1(∞)\mathbf{w}_{2}(\infty)=\alpha\mathbf{w}_{1}(\infty) where α≠0\alpha\neq 0. Note that if α>0\alpha>0, then σ(w2(∞)⊤xj)=ασ(w1(∞)⊤xj)\sigma(\mathbf{w}_{2}(\infty)^{\top}\mathbf{x}_{j})=\alpha\sigma(\mathbf{w}_{1}(\infty)^{\top}\mathbf{x}_{j}) for all j∈{1,2}j\in\{1,2\}, in contradiction to Eq. (9). Thus, α<0\alpha<0. Since we also have w1(∞),w2(∞)∉D\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)\not\in{\cal D}, then one of these weight vectors is in S1∖∂S1{\cal S}_{1}\setminus\partial{\cal S}_{1} and the other is in S2∖∂S2{\cal S}_{2}\setminus\partial{\cal S}_{2} (as can be seen from Fig. 2). Assume w.l.o.g. that w1(∞)∈S1∖∂S1\mathbf{w}_{1}(\infty)\in{\cal S}_{1}\setminus\partial{\cal S}_{1} and w2(∞)∈S2∖∂S2\mathbf{w}_{2}(\infty)\in{\cal S}_{2}\setminus\partial{\cal S}_{2}.

By observing the gradients of LX,YL_{X,Y} w.r.t. wi\mathbf{w}_{i} for i∈{1,2}i\in\{1,2\}, the following facts follow. First, if wi(t)∈D\mathbf{w}_{i}(t)\in{\cal D} at some time tt, then ddtwi(t)=0\frac{d}{dt}\mathbf{w}_{i}(t)={\mathbf{0}}, hence wi\mathbf{w}_{i} remains at D{\cal D} indefinitely, in contradiction to wi(∞)∈Si∖∂Si\mathbf{w}_{i}(\infty)\in{\cal S}_{i}\setminus\partial{\cal S}_{i}. Thus, the trajectory wi(t)\mathbf{w}_{i}(t) does not visit D{\cal D}. Second, if wi(t)∈Si\mathbf{w}_{i}(t)\in{\cal S}_{i} at time tt, then ddtwi(t)∈span⁡{xi}\frac{d}{dt}\mathbf{w}_{i}(t)\in\operatorname{span}\{\mathbf{x}_{i}\}. Since wi(∞)∈Si∖∂Si\mathbf{w}_{i}(\infty)\in{\cal S}_{i}\setminus\partial{\cal S}_{i}, we can consider the last time t′t^{\prime} that wi\mathbf{w}_{i} enters Si{\cal S}_{i}, which can be either at the initialization (i.e., t′=0t^{\prime}=0) or when moving from S{\cal S} (i.e., t′>0t^{\prime}>0). For all time t≥t′t\geq t^{\prime} we have ddtwi(t)∈span⁡{xi}\frac{d}{dt}\mathbf{w}_{i}(t)\in\operatorname{span}\{\mathbf{x}_{i}\}. It allows us to conclude that wi(∞)\mathbf{w}_{i}(\infty) must be in a region Ai{\cal A}_{i} which is illustrated in Fig. 3 (by the union of the orange and green regions).

Furthermore, we show that ∥wi(∞)∥{\left\|{\mathbf{w}_{i}(\infty)}\right\|} cannot be too small, namely, obtaining a lower bound on ∥wi(∞)∥{\left\|{\mathbf{w}_{i}(\infty)}\right\|}. First, a theorem from Du et al. (2018) implies that ∥wi(t)∥2−∥vi(t)∥2{\left\|{\mathbf{w}_{i}(t)}\right\|}^{2}-{\left\|{\mathbf{v}_{i}(t)}\right\|}^{2} remains constant throughout the training. Since at the initialization both ∥wi(0)∥{\left\|{\mathbf{w}_{i}(0)}\right\|} and ∥vi(0)∥{\left\|{\mathbf{v}_{i}(0)}\right\|} are small, the consequence is that ∥vi(∞)∥{\left\|{\mathbf{v}_{i}(\infty)}\right\|} is small if ∥wi(∞)∥{\left\|{\mathbf{w}_{i}(\infty)}\right\|} is small. Also, since NW(∞),V(∞)N_{W(\infty),V(\infty)} attains zero loss and wi(∞)∈Si\mathbf{w}_{i}(\infty)\in{\cal S}_{i} for all i∈{1,2}i\in\{1,2\}, then we have yi=vi(∞)(wi(∞)⊤xi)\mathbf{y}_{i}=\mathbf{v}_{i}(\infty)(\mathbf{w}_{i}(\infty)^{\top}\mathbf{x}_{i}), namely, only the ii-th hidden neuron contributes to the output of NW(∞),V(∞)N_{W(\infty),V(\infty)} for the input xi\mathbf{x}_{i}. Since ∥yi∥=∥xi∥=1{\left\|{\mathbf{y}_{i}}\right\|}={\left\|{\mathbf{x}_{i}}\right\|}=1, it is impossible that both ∥wi(∞)∥{\left\|{\mathbf{w}_{i}(\infty)}\right\|} and ∥vi(∞)∥{\left\|{\mathbf{v}_{i}(\infty)}\right\|} are small. Hence, we are able to obtain a lower bound on ∥wi(∞)∥{\left\|{\mathbf{w}_{i}(\infty)}\right\|}, which implies that wi(∞)\mathbf{w}_{i}(\infty) is in a region Fi{\cal F}_{i} which is illustrated in Fig. 3.

Finally, we show that since w1(∞)∈F1\mathbf{w}_{1}(\infty)\in{\cal F}_{1} and w2(∞)∈F2\mathbf{w}_{2}(\infty)\in{\cal F}_{2} then the angle between w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty) is smaller than π\pi, in contradiction to w2(∞)=αw1(∞)\mathbf{w}_{2}(\infty)=\alpha\mathbf{w}_{1}(\infty).

2 Theorem 3

We show that if the initialization is such that w1(0)∈S1∖∂S1\mathbf{w}_{1}(0)\in{\cal S}_{1}\setminus\partial{\cal S}_{1} and w2(0)∈S2∖∂S2\mathbf{w}_{2}(0)\in{\cal S}_{2}\setminus\partial{\cal S}_{2} (or, equivalently, that w1(0)∈S2∖∂S2\mathbf{w}_{1}(0)\in{\cal S}_{2}\setminus\partial{\cal S}_{2} and w2(0)∈S1∖∂S1\mathbf{w}_{2}(0)\in{\cal S}_{1}\setminus\partial{\cal S}_{1}), then GF converges to a zero-loss network, and ∥w1(∞)∥,∥w2(∞)∥{\left\|{\mathbf{w}_{1}(\infty)}\right\|},{\left\|{\mathbf{w}_{2}(\infty)}\right\|}, ∡(w1(∞),w2(∞))\measuredangle(\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)) are in the required intervals. Since by simple geometric arguments we can show that the initialization satisfies this requirement with probability at least 2⋅(∡(x1,x2)2π)22\cdot\left(\frac{\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})}{2\pi}\right)^{2}, the theorem follows.

Indeed, suppose that w1(0)∈S1∖∂S1\mathbf{w}_{1}(0)\in{\cal S}_{1}\setminus\partial{\cal S}_{1} and w2(0)∈S2∖∂S2\mathbf{w}_{2}(0)\in{\cal S}_{2}\setminus\partial{\cal S}_{2}. We argue that GF converges to a zero-loss network and ∥w1(∞)∥,∥w2(∞)∥,∡(w1(∞),w2(∞)){\left\|{\mathbf{w}_{1}(\infty)}\right\|},{\left\|{\mathbf{w}_{2}(\infty)}\right\|},\measuredangle(\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)) are in the required intervals, as follows. By analyzing the dynamics of GF for such an initialization, we show that for all tt and ii we have ddtwi(t)=Ci(t)xi\frac{d}{dt}\mathbf{w}_{i}(t)=C_{i}(t)\mathbf{x}_{i} for some Ci(t)≥0C_{i}(t)\geq 0. Thus, wi(t)\mathbf{w}_{i}(t) moves only in the direction of xi\mathbf{x}_{i}, and wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in{\cal S}_{i}\setminus\partial{\cal S}_{i} for all tt. Moreover, we are able to prove that these properties of the trajectories w1(t)\mathbf{w}_{1}(t) and w2(t)\mathbf{w}_{2}(t) imply that GF converges to a zero-loss network NW(∞),V(∞)N_{W(\infty),V(\infty)}. Then, by similar arguments to the proof of Thm. 2 we have wi(∞)∈Fi\mathbf{w}_{i}(\infty)\in{\cal F}_{i} for all i∈{1,2}i\in\{1,2\}, where Fi{\cal F}_{i} are the regions from Fig. 3, and it allows us to obtain the required bounds on ∥w1(∞)∥,∥w2(∞)∥{\left\|{\mathbf{w}_{1}(\infty)}\right\|},{\left\|{\mathbf{w}_{2}(\infty)}\right\|}, and ∡(w1(∞),w2(∞))\measuredangle(\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)).

3 Theorems 4 and 5

The intuition for the proofs of both theorems can be roughly described as follows. If the dataset is realizable by a shallow network where the Frobenius norm of each layer is BB, then it is also realizable by a deep network where the Frobenius norm of each layer is B∗B^{*}, where B∗B^{*} is much smaller than BB. Moreover, if the network is sufficiently deep then B∗B^{*} is not much larger than 11. On the other hand, since for the input xi\mathbf{x}_{i} with ∥xi∥≤1{\left\|{\mathbf{x}_{i}}\right\|}\leq 1 the output of the network is of size at least 11, then the average spectral norm of the layers is at least 11. Hence, the average ratio between the spectral and the Frobenius norms cannot be too small.

We now describe the proof ideas in a bit more detail, starting with Thm. 4. We use the network NN of width mm and depth kk to construct a network N′N^{\prime} of width m′≥mm^{\prime}\geq m and depth k′>kk^{\prime}>k as follows. The first kk layers of N′N^{\prime} are obtained by scaling the layers of NN by a factor α:=(1B)k′−kk′\alpha:=\left(\frac{1}{B}\right)^{\frac{k^{\prime}-k}{k^{\prime}}}. Since the output dimension of NN is 11, then the kk-th hidden layer of N′N^{\prime} has width 11. Then, the network N′N^{\prime} has k′−kk^{\prime}-k additional layers of width 11, such that the weight in each of these layers is β:=(1B)−kk′\beta:=\left(\frac{1}{B}\right)^{-\frac{k}{k^{\prime}}}. Overall, given input xi\mathbf{x}_{i}, we have

We denote by θ′{\boldsymbol{\theta}}^{\prime} the parameters of the network N′N^{\prime}.

Let θ∗=[W1∗,…,Wk′∗]{\boldsymbol{\theta}}^{*}=\left[W^{*}_{1},\ldots,W^{*}_{k^{\prime}}\right] be a global optimum of Problem 2. From the optimality of θ∗{\boldsymbol{\theta}}^{*} it is possible to show that the layers in θ∗{\boldsymbol{\theta}}^{*} must be balanced, namely, ∥Wi∗∥F=∥Wj∗∥F{\left\|{W^{*}_{i}}\right\|}_{F}={\left\|{W^{*}_{j}}\right\|}_{F} for all i,j∈[k′]i,j\in[k^{\prime}]. We denote by B∗B^{*} the Frobenius norm of the layers. From the global optimality of θ∗{\boldsymbol{\theta}}^{*} we also have ∥θ∗∥≤∥θ′∥{\left\|{{\boldsymbol{\theta}}^{*}}\right\|}\leq{\left\|{{\boldsymbol{\theta}}^{\prime}}\right\|}. Hence, by a calculation we can obtain

Moreover, we show that since there is i∈[n]i\in[n] with ∥xi∥≤1{\left\|{\mathbf{x}_{i}}\right\|}\leq 1 and yi≥1y_{i}\geq 1, then

Combining the last two displayed equations we get

Note that the arguments above do not depend on the ranks of the layers in NN. Thus, even if the weight matrices in NN have high ranks, once we consider deep networks which are optimal solutions to Problem 2, the ratios between the spectral and the Frobenius norms are close to 11.

We now turn to Thm. 5. The proof follows a similar approach to the proof of Thm. 4. However, here the outputs of the network NN can be either positive or negative. Hence, when constructing the network N′N^{\prime} as above, we cannot have width 11 in layers k+1,…,k′k+1,\ldots,k^{\prime}, since the ReLU activation will not allow us to pass both positive and negative values. Still, we show that we can define a network N′N^{\prime} such that the width in layers k+1,…,k′k+1,\ldots,k^{\prime} is 22 and we have N′(xi)=N(xi)N^{\prime}(\mathbf{x}_{i})=N(\mathbf{x}_{i}) for all i∈[n]i\in[n]. Then, the theorem follows by arguments similar to the proof of Thm. 4, with the required modifications.

Funding Acknowledgements

This research is supported in part by European Research Council (ERC) grant 754705.

References

Appendix A Proof of Thm. 1

Consider the matrix σ(WX)\sigma(WX) of size dhidden×n{d_{\text{hidden}}}\times n, where σ\sigma acts entrywise. Note that our assumption on WW implies that rank⁡(σ(WX))=n\operatorname{rank}\left(\sigma(WX)\right)=n. Thus, the dhidden×dhidden{d_{\text{hidden}}}\times{d_{\text{hidden}}} matrix Z:=[σ(WX)†0]Z:=\begin{bmatrix}\sigma(WX)^{\dagger}\\ 0\end{bmatrix} satisfies Zσ(WX)=[In0]Z\sigma(WX)=\begin{bmatrix}I_{n}\\ 0\end{bmatrix}, where A†A^{\dagger} denotes the Moore-Penrose inverse of a matrix AA, and InI_{n} is the n×nn\times n identity matrix. Hence, the matrix M:=[Y0]M:=\begin{bmatrix}Y&0\end{bmatrix} of dimensions dout×dhidden{d_{\text{out}}}\times{d_{\text{hidden}}} yields MZσ(WX)=YMZ\sigma(WX)=Y. By setting V:=MZV:=MZ, the network NW,VN_{W,V} achieves zero loss. Namely, NW,V(X)=YN_{W,V}(X)=Y. ∎

Appendix B Proof of Thm. 2

We define the following regions of interest:

Assume, for the sake of contradiction, that GF converges to some zero-loss network NW(∞),V(∞)N_{W(\infty),V(\infty)} with rank⁡(W(∞))<2\operatorname{rank}(W(\infty))<2. On the one hand, in Lemma 3 we show that the weight vectors w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty) are non-zero, and satisfy w2(∞)=αw1(∞)\mathbf{w}_{2}(\infty)=\alpha\mathbf{w}_{1}(\infty) with α<0\alpha<0. It implies that the straight line that connects w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty), denoted as w1w2\mathbf{w}_{1}\mathbf{w}_{2}, goes through the origin. On the other hand, in Lemma 4 we show that wi(∞)∉D\mathbf{w}_{i}(\infty)\not\in\mathcal{D} for every i∈{1,2}i\in\{1,2\}. In other words, w1w2\mathbf{w}_{1}\mathbf{w}_{2} cannot intersect the D∖{0}\mathcal{D}\setminus\left\{{{\mathbf{0}}}\right\} region. Thus, one neuron must lie in S1∖∂S1\mathcal{S}_{1}\setminus\partial\mathcal{S}_{1} and the other neuron in S2∖∂S2\mathcal{S}_{2}\setminus\partial\mathcal{S}_{2}. W.l.o.g., let wi(∞)∈Si∖∂Si\mathbf{w}_{i}(\infty)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈{1,2}i\in\{1,2\}. Therefore, by Lemma 6, it holds that \measuredangle\big{(}\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)\big{)}\in\Big{[}\pi-\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2}),\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})+2\arcsin{\frac{2\max_{i\in}{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\sqrt{3}}}\Big{)}. To complete the proof by contradiction, it remains to show that \measuredangle\big{(}\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)\big{)}<\pi so that w2(∞)≠αw1(∞)\mathbf{w}_{2}(\infty)\neq\alpha\mathbf{w}_{1}(\infty). Recall that we initialize the network such that {\left\|{\mathbf{w}_{i}(0)}\right\|}<\frac{\sqrt{3}}{2}\cos\big{(}{\frac{\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})}{2}}\big{)}=\frac{\sqrt{3}}{2}\sin\big{(}\frac{\pi}{2}-\frac{\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})}{2}\big{)}. Hence, \measuredangle\big{(}\mathbf{w}_{1}(\infty),\mathbf{w}_{2}(\infty)\big{)}<\pi, as required.

Now, we prove that α<0\alpha<0. Assume for the sake of contradiction that α>0\alpha>0. Then, we have σ(w2⊤xj)=ασ(w1⊤xj)\sigma(\mathbf{w}_{2}^{\top}\mathbf{x}_{j})=\alpha\sigma(\mathbf{w}_{1}^{\top}\mathbf{x}_{j}) for all j∈j\in. Thus, rank⁡(σ(WX))≤1\operatorname{rank}\left(\sigma\left(WX\right)\right)\leq 1. Therefore, rank⁡(Vσ(WX))≤min⁡{rank⁡(V),rank⁡(σ(WX))}≤1\operatorname{rank}\left(V\sigma\left(WX\right)\right)\leq\min\{\operatorname{rank}(V),\operatorname{rank}\left(\sigma\left(WX\right)\right)\}\leq 1. Since by Assumption 1 we have rank⁡(Y)=2\operatorname{rank}\left(Y\right)=2, then we conclude that Y≠Vσ(WX)Y\neq V\sigma(WX), in contradiction to the zero-loss assumption. Therefore, α<0\alpha<0, as required. ∎

Assume that there is i∈i\in such that wi∈D\mathbf{w}_{i}\in\mathcal{D}. Hence, σ(wi⊤xj)=0\sigma(\mathbf{w}_{i}^{\top}\mathbf{x}_{j})=0 for all j∈j\in. Thus, rank⁡(σ(WX))≤1\operatorname{rank}\left(\sigma\left(WX\right)\right)\leq 1. Therefore, rank⁡(Vσ(WX))≤min⁡{rank⁡(V),rank⁡(σ(WX))}≤1\operatorname{rank}\left(V\sigma\left(WX\right)\right)\leq\min\{\operatorname{rank}(V),\operatorname{rank}\left(\sigma\left(WX\right)\right)\}\leq 1. Since by Assumption 1 we have rank⁡(Y)=2\operatorname{rank}\left(Y\right)=2, then we conclude that Y≠Vσ(WX)Y\neq V\sigma(WX), in contradiction to the zero-loss assumption. ∎

Note that if wi(t)∈D\mathbf{w}_{i}(t)\in\mathcal{D} then the gradient of LX,YL_{X,Y} w.r.t. wi\mathbf{w}_{i} is zero. Hence wi\mathbf{w}_{i} remains constant for all t′≥tt^{\prime}\geq t. Therefore, wi(∞)∈D\mathbf{w}_{i}(\infty)\in\mathcal{D}. The claim now follows from Lemma 4. ∎

Case t0(i)=0t_{0}^{(i)}=0: If the last time that wi\mathbf{w}_{i} enters Si\mathcal{S}_{i} is at initialization, then we have t0(i)=0t_{0}^{(i)}=0. Our assumptions on the initialization imply that:

Note that by Lemma 5 it is not possible that wi(0)∈D\mathbf{w}_{i}(0)\in\mathcal{D}, and hence we cannot have wi(0)∈∂Si∩D\mathbf{w}_{i}(0)\in\partial\mathcal{S}_{i}\cap\mathcal{D}.

Otherwise (i.e., t0(i)>0t_{0}^{(i)}>0): In that case, t0(i)t_{0}^{(i)} is when the neuron moves from some other region to Si\mathcal{S}_{i}. The other region can only be S\mathcal{S} or D\mathcal{D}, due to the geometry that Assumption 2 imposes. Since Lemma 5 implies that at any time no neuron is in D\mathcal{D}, then the previous region is necessarily S\mathcal{S}. Hence, we have:

Therefore, the region of all neurons that are reachable under the aforementioned dynamics of GF is

We can assume that λ≥0\lambda\geq 0 in the above definition, because every aˉ∈{w+λxi∣w∈Ei,λ<0}∖Ai\bar{\mathbf{a}}\in\{\mathbf{w}+\lambda\mathbf{x}_{i}\mid\mathbf{w}\in\mathcal{E}_{i},\lambda<0\}\setminus\mathcal{A}_{i} satisfies aˉ∉Si\bar{\mathbf{a}}\notin\mathcal{S}_{i}.

We denote ϵ0(i):=∥wi(0)∥2−∥vi(0)∥2\epsilon_{0}^{(i)}:=\|\mathbf{w}_{i}(0)\|^{2}-\|\mathbf{v}_{i}(0)\|^{2}. By Lemma 9 we have ϵ0(i)=∥wi(t)∥2−∥vi(t)∥2\epsilon_{0}^{(i)}=\|\mathbf{w}_{i}(t)\|^{2}-\|\mathbf{v}_{i}(t)\|^{2} for any time t≥0t\geq 0, and hence ϵ0(i)=∥wi(∞)∥2−∥vi(∞)∥2\epsilon_{0}^{(i)}=\|\mathbf{w}_{i}(\infty)\|^{2}-\|\mathbf{v}_{i}(\infty)\|^{2}. By Lemma 8 we obtain ∥wi(∞)∥≥1−∣ϵ0(i)∣\|\mathbf{w}_{i}(\infty)\|\geq\sqrt{1-|\epsilon_{0}^{(i)}|} for every i∈i\in. We define a new region of interest: The set of all feasible neurons at the convergence of GF, i.e., neurons that are reachable and satisfy the minimal norm requirement. Formally,

The regions Ai\mathcal{A}_{i} and Fi\mathcal{F}_{i} are illustrated in Figure 3. Recall that all neurons are initialized such that ∥wi(0)∥,∥vi(0)∥<12\|\mathbf{w}_{i}(0)\|,\|\mathbf{v}_{i}(0)\|<\frac{1}{2} for all i∈i\in. Thus, we have ∣ϵ0(i)∣<(12)2=14\left|\epsilon_{0}^{(i)}\right|<(\frac{1}{2})^{2}=\frac{1}{4} for all i∈i\in. Hence,

We now consider the angle between w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty). On the one hand, the minimal angle between the neurons is achieved when w1(∞)\mathbf{w}_{1}(\infty) and w2(∞)\mathbf{w}_{2}(\infty) lie on the “non-dead boundaries” of S1,S2\mathcal{S}_{1},\mathcal{S}_{2}. That is,

where bi∈∂(Si)∖D\mathbf{b}_{i}\in\partial(\mathcal{S}_{i})\setminus\mathcal{D}. On the other hand, the angle between the neurons is maximized when

Note that in the above expression the angle \measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)} corresponds to the case where wi(∞)\mathbf{w}_{i}(\infty) is in the direction w.r.t. xi\mathbf{x}_{i} which is closer to D\mathcal{D} and farther from S\mathcal{S}. Due to Eq. (10) and the definition of Fi\mathcal{F}_{i}, the appropriate angle \measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)} in the above expression can be upper bounded by arcsin⁡∥wi(0)∥∥wi(∞)∥\arcsin\frac{{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\|\mathbf{w}_{i}(\infty)\|}. It corresponds to the case where wi\mathbf{w}_{i} is initialized in Si\mathcal{S}_{i} such that ∡(wi(0),xi)\measuredangle(\mathbf{w}_{i}(0),\mathbf{x}_{i}) is close to π/2\pi/2, and wi\mathbf{w}_{i} follows the trajectory from Eq. (10). Using Eq. (11) we have arcsin⁡∥wi(0)∥∥wi(∞)∥<arcsin⁡2∥wi(0)∥3\arcsin\frac{{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\|\mathbf{w}_{i}(\infty)\|}<\arcsin\frac{2{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\sqrt{3}}. Hence, we get

Combining the above with Eq. (12) we obtain

Finally, we obtain an upper bound for ∥wi(∞)∥\|\mathbf{w}_{i}(\infty)\|. We have \mathbf{w}_{i}(\infty)^{\top}\mathbf{x}_{i}=\|\mathbf{w}_{i}(\infty)\|\cdot\|\mathbf{x}_{i}\|\cos{\measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)}}>\frac{\sqrt{3}}{2}\cos{\measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)}} for all i∈i\in. Note that \measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)} corresponds either to the case where wi(∞)\mathbf{w}_{i}(\infty) is in the direction w.r.t. xi\mathbf{x}_{i} which is closer to D\mathcal{D} and farther from S\mathcal{S}, or closer to S\mathcal{S} and farther from D\mathcal{D}. For the former case, we saw that \measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)}<\arcsin{\frac{2{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\sqrt{3}}}. In the latter case, \measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{i}\big{)}=\measuredangle\big{(}\mathbf{x}_{1},\mathbf{x}_{2}\big{)}-\measuredangle\big{(}\mathbf{w}_{i}(\infty),\mathbf{x}_{3-i}\big{)}\leq\measuredangle\big{(}\mathbf{x}_{1},\mathbf{x}_{2}\big{)}-\frac{\pi}{2}. Therefore, \mathbf{w}_{i}(\infty)^{\top}\mathbf{x}_{i}>\frac{\sqrt{3}}{2}\cos\max{\left\{{\arcsin{\frac{2{\left\|{\mathbf{w}_{i}(0)}\right\|}}{\sqrt{3}}},\measuredangle\big{(}\mathbf{x}_{1},\mathbf{x}_{2}\big{)}-\frac{\pi}{2}}\right\}}. Since the network has zero-loss, i.e., it interpolates the entire dataset, then we have that vi(∞)=1wi(∞)⊤xiyi\mathbf{v}_{i}(\infty)=\frac{1}{\mathbf{w}_{i}(\infty)^{\top}\mathbf{x}_{i}}\mathbf{y}_{i}. Hence,

By Lemma 9, we have ∥wi(∞)∥2−∥vi(∞)∥2=∥wi(0)∥2−∥vi(0)∥2<14\|\mathbf{w}_{i}(\infty)\|^{2}-\|\mathbf{v}_{i}(\infty)\|^{2}=\|\mathbf{w}_{i}(0)\|^{2}-\|\mathbf{v}_{i}(0)\|^{2}<\frac{1}{4}. Therefore,

The derivative of the LX,YL_{X,Y} w.r.t. the matrix WW is

Here, ⊙\odot denotes the Hadamard product (i.e., the entrywise product). Note that ∂LX,Y(NW,V)∂W\frac{\partial L_{X,Y}\left(N_{W,V}\right)}{\partial W} is a matrix whose (i,j)(i,j)-th entry is ∂LX,Y(W,V)∂Wi,j\frac{\partial L_{X,Y}\left(W,V\right)}{\partial W_{i,j}}. We denote the ii-th row of σ′(WX)\sigma^{\prime}\left(WX\right) by σ′(WX)i\sigma^{\prime}\left(WX\right)_{i}. We have

If wi∈Si\mathbf{w}_{i}\in\mathcal{S}_{i} then the jj-th entry of the aforementioned row vector is

Since the derivative of the loss w.r.t. the ii-th neuron wi\mathbf{w}_{i} is the ii-th row of ∂∂WLX,Y(W,V)\frac{\partial}{\partial W}L_{X,Y}\left(W,V\right), we conclude that

By setting ct(i)=−α(i)c_{t}^{(i)}=-\alpha^{(i)}, the proof is done. ∎

Since the network has zero loss, for all i∈i\in we have

Since wi∈Si\mathbf{w}_{i}\in\mathcal{S}_{i} for every i∈i\in, we have σ(wk⊤xi)={wi⊤xiif k=i0otherwise\sigma(\mathbf{w}_{k}^{\top}\mathbf{x}_{i})=\begin{cases}\mathbf{w}_{i}^{\top}\mathbf{x}_{i}&\text{if }k=i\\ 0&\text{otherwise}\end{cases}. Hence, the above expression is equal to

Case ∥wi∥≤∥vi∥\|\mathbf{w}_{i}\|\leq\|\mathbf{v}_{i}\|: We have that ∥vi∥2≥1\|\mathbf{v}_{i}\|^{2}\geq 1. Then,

Otherwise: Similarly, we have ∥wi∥2≥1\|\mathbf{w}_{i}\|^{2}\geq 1. Then,

Let NθN_{{\boldsymbol{\theta}}} be a fully-connected depth-kk ReLU network, where k>1k>1. Denote θ=[W(1),…,W(k)]{\boldsymbol{\theta}}=[W^{(1)},\ldots,W^{(k)}]. Consider minimizing any differentiable loss function (e.g., the square loss) over a dataset using GF. Then, for every l∈[k−1]l\in[k-1] at all time tt we have

Moreover, for every l∈[k−1]l\in[k-1] and i∈[dl]i\in[d_{l}] at all time tt we have

where W(l)[i,:]W^{(l)}[i,:] is the vector of incoming weights to the ii-th neuron in the ll-th hidden layer (i.e., the ii-th row of W(l)W^{(l)}), and W(l+1)[:,i]W^{(l+1)}[:,i] is the vector of outgoing weights from this neuron (i.e., the ii-th column of W(l+1)W^{(l+1)}).

Appendix C Proof of Thm. 3

for all i∈i\in, where ϕi:=(wi⊤xi)vi−yi=NW,V(xi)−yi\phi_{i}:=(\mathbf{w}_{i}^{\top}\mathbf{x}_{i})\mathbf{v}_{i}-\mathbf{y}_{i}=N_{W,V}(\mathbf{x}_{i})-\mathbf{y}_{i}. We denote the parameters of the network by θ=[W,V]{\boldsymbol{\theta}}=[W,V]. Moreover, when wi∈Si∖∂Si\mathbf{w}_{i}\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in we denote LX,Yi(θ)=12∥ϕi∥2L^{i}_{X,Y}({\boldsymbol{\theta}})=\frac{1}{2}{\left\|{\phi_{i}}\right\|}^{2}. Then, we have LX,Y(θ)=∑i=12LX,Yi(θ)L_{X,Y}({\boldsymbol{\theta}})=\sum_{i=1}^{2}L^{i}_{X,Y}({\boldsymbol{\theta}}).

Let t1>0t_{1}>0 and suppose that for all t∈[0,t1]t\in[0,t_{1}] and i∈i\in we have wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i}, and that vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}}. Then, we have LX,Yi(θ(t1))<LX,Yi(θ(0))L^{i}_{X,Y}({\boldsymbol{\theta}}(t_{1}))<L^{i}_{X,Y}({\boldsymbol{\theta}}(0)). Moreover, for every time tt where wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in we have ddtLX,Yi(θ(t))≤0\frac{d}{dt}L^{i}_{X,Y}({\boldsymbol{\theta}}(t))\leq 0.

For time tt such that wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in we denote Fi(t):=LX,Yi(θ(t))=12∥ϕi(t)∥2F_{i}(t):=L^{i}_{X,Y}({\boldsymbol{\theta}}(t))=\frac{1}{2}{\left\|{\phi_{i}(t)}\right\|}^{2}. Let θi:=[wi,vi]{\boldsymbol{\theta}}_{i}:=[\mathbf{w}_{i},\mathbf{v}_{i}]. We have

where we used the fact that LX,Yi(θ)L^{i}_{X,Y}({\boldsymbol{\theta}}) depends only on θi{\boldsymbol{\theta}}_{i}. Therefore, ddtLX,Yi(θ(t))≤0\frac{d}{dt}L^{i}_{X,Y}({\boldsymbol{\theta}}(t))\leq 0.

Note that ∥∇θiLX,Yi(θ(t))∥2{\left\|{\nabla_{{\boldsymbol{\theta}}_{i}}L^{i}_{X,Y}({\boldsymbol{\theta}}(t))}\right\|}^{2} is continuous as a function of tt, and at time we have

where the last inequality is since wi⊤(0)xi>0\mathbf{w}_{i}^{\top}(0)\mathbf{x}_{i}>0 and yi≠0\mathbf{y}_{i}\neq{\mathbf{0}}. Combining the above with Eq. (C), we conclude that there is some small enough t0∈(0,t1)t_{0}\in(0,t_{1}) such that for all t∈[0,t0]t\in[0,t_{0}] we have ddtFi(t)<0\frac{d}{dt}F_{i}(t)<0. Moreover, Eq. (C) implies that for all t∈[t0,t1]t\in[t_{0},t_{1}] we have ddtFi(t)≤0\frac{d}{dt}F_{i}(t)\leq 0. Hence, Fi(t1)≤Fi(t0)<Fi(0)F_{i}(t_{1})\leq F_{i}(t_{0})<F_{i}(0). ∎

Suppose that we initialize θ(0){\boldsymbol{\theta}}(0) such that wi(0)∈Si∖∂Si\mathbf{w}_{i}(0)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} and vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}} for all i∈i\in. For every sufficiently small t′>0t^{\prime}>0 we have for every t∈[0,t′]t\in[0,t^{\prime}] and i∈i\in that wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial{S}_{i}, and at time t′t^{\prime} we have vi⊤(t′)ϕi(t′)<0\mathbf{v}_{i}^{\top}(t^{\prime})\phi_{i}(t^{\prime})<0 and vi(t′)∈span⁡{yi}\mathbf{v}_{i}(t^{\prime})\in\operatorname{span}\{\mathbf{y}_{i}\}. Moreover, LX,Yi(θ(t′))<LX,Yi(θ(0))L^{i}_{X,Y}({\boldsymbol{\theta}}(t^{\prime}))<L^{i}_{X,Y}({\boldsymbol{\theta}}(0)).

Since wi(0)∈Si∖∂Si\mathbf{w}_{i}(0)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} then wi⊤(0)xi>0\mathbf{w}_{i}^{\top}(0)\mathbf{x}_{i}>0 and hence we obtain ddtgi(0)<0\frac{d}{dt}g_{i}(0)<0.

Overall, the function gig_{i} is continuously differentiable with gi(0)=0g_{i}(0)=0 and ddtgi(0)<0\frac{d}{dt}g_{i}(0)<0 and therefore we have gi(t′)<0g_{i}(t^{\prime})<0 for every small enough t′>0t^{\prime}>0.

It remains to show that vi(t′)∈span⁡{yi}\mathbf{v}_{i}(t^{\prime})\in\operatorname{span}\{\mathbf{y}_{i}\}. Since for every t∈[0,t′]t\in[0,t^{\prime}] we have wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i}, then for every t∈[0,t′]t\in[0,t^{\prime}] we have

Since the above holds for all t∈[0,t′]t\in[0,t^{\prime}] and vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}}, then for all t∈[0,t′]t\in[0,t^{\prime}] we have vi(t)∈span⁡{yi}\mathbf{v}_{i}(t)\in\operatorname{span}\{\mathbf{y}_{i}\}. Thus, vi\mathbf{v}_{i} remains on the line span⁡{yi}\operatorname{span}\{\mathbf{y}_{i}\}. ∎

Suppose that we initialize θ(0){\boldsymbol{\theta}}(0) such that wi(0)∈Si∖∂Si\mathbf{w}_{i}(0)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} and vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}} for all i∈i\in. Let t′>0t^{\prime}>0 as in Lemma 11, and denote wi′:=wi(t′)\mathbf{w}^{\prime}_{i}:=\mathbf{w}_{i}(t^{\prime}) for i∈i\in. Let

Then, for all t≥t′t\geq t^{\prime} we have θ(t)∈G{\boldsymbol{\theta}}(t)\in G.

Moreover, for all t2≥t1≥t′t_{2}\geq t_{1}\geq t^{\prime} and all i∈i\in we have

By Lemma 11 we have θ(t′)∈G{\boldsymbol{\theta}}(t^{\prime})\in G. Let t≥t′t\geq t^{\prime} and suppose that θ(t)∈G{\boldsymbol{\theta}}(t)\in G. Note that for all i∈i\in we have wi(t)=wi′+ci(t)xi\mathbf{w}_{i}(t)=\mathbf{w}^{\prime}_{i}+c_{i}(t)\mathbf{x}_{i} for some ci(t)≥0c_{i}(t)\geq 0. Since wi′∈Si∖∂Si\mathbf{w}^{\prime}_{i}\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} then we also have wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i}. Hence,

Since by the definition of GG we have vi⊤(t)ϕi(t)≤0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)\leq 0 then the above can be written as ci′(t)xic^{\prime}_{i}(t)\mathbf{x}_{i} for some ci′(t)≥0c^{\prime}_{i}(t)\geq 0. Moreover,

Since by the definition of GG we have vi(t)∈span⁡{yi}\mathbf{v}_{i}(t)\in\operatorname{span}\{\mathbf{y}_{i}\}, then the above is also in span⁡{yi}\operatorname{span}\{\mathbf{y}_{i}\}.

Moreover, by Lemma 10 we have ddtLX,Yi(θ(t))≤0\frac{d}{dt}L^{i}_{X,Y}({\boldsymbol{\theta}}(t))\leq 0.

The above observations imply that as long as vi⊤(t)ϕi(t)≤0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)\leq 0 the parameters wi(t)\mathbf{w}_{i}(t) and vi(t)\mathbf{v}_{i}(t) satisfy the conditions in GG. We now show that if vi⊤(t)ϕi(t)=0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)=0 then ddtwi(t)=ddtvi(t)=0\frac{d}{dt}\mathbf{w}_{i}(t)=\frac{d}{dt}\mathbf{v}_{i}(t)={\mathbf{0}}, and hence GF will get stuck at wi(t),vi(t)\mathbf{w}_{i}(t),\mathbf{v}_{i}(t). Thus, GF cannot reach wi,vi\mathbf{w}_{i},\mathbf{v}_{i} with vi⊤ϕi>0\mathbf{v}_{i}^{\top}\phi_{i}>0.

Suppose that vi⊤(t)ϕi(t)=0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)=0, vi(t)∈span⁡{yi}\mathbf{v}_{i}(t)\in\operatorname{span}\{\mathbf{y}_{i}\}, and LX,Yi(θ(t))≤LX,Yi(θ(t′))<LX,Yi(θ(0))L^{i}_{X,Y}({\boldsymbol{\theta}}(t))\leq L^{i}_{X,Y}({\boldsymbol{\theta}}(t^{\prime}))<L^{i}_{X,Y}({\boldsymbol{\theta}}(0)). Note that vi(t)≠0\mathbf{v}_{i}(t)\neq{\mathbf{0}}, since otherwise we have

in contradiction to our assumption. Now, since vi(t)∈span⁡{yi}\mathbf{v}_{i}(t)\in\operatorname{span}\{\mathbf{y}_{i}\}, then ϕi(t)=(wi⊤(t)xi)vi(t)−yi∈span⁡{yi}\phi_{i}(t)=(\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i})\mathbf{v}_{i}(t)-\mathbf{y}_{i}\in\operatorname{span}\{\mathbf{y}_{i}\}. Thus, both vi(t)\mathbf{v}_{i}(t) and ϕi(t)\phi_{i}(t) are in span⁡{yi}\operatorname{span}\{\mathbf{y}_{i}\}, and we have vi(t)≠0\mathbf{v}_{i}(t)\neq{\mathbf{0}} and vi⊤(t)ϕi(t)=0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)=0. Therefore, ϕi(t)=0\phi_{i}(t)={\mathbf{0}}. By Eq. (C) it implies that ddtwi(t)=ddtvi(t)=0\frac{d}{dt}\mathbf{w}_{i}(t)=\frac{d}{dt}\mathbf{v}_{i}(t)={\mathbf{0}}.

Thus, θ(t)∈G{\boldsymbol{\theta}}(t)\in G for all t≥t′t\geq t^{\prime}. It remains to show that for all t2≥t1≥t′t_{2}\geq t_{1}\geq t^{\prime} and all i∈i\in we have wi⊤(t2)xi≥wi⊤(t1)xi\mathbf{w}_{i}^{\top}(t_{2})\mathbf{x}_{i}\geq\mathbf{w}_{i}^{\top}(t_{1})\mathbf{x}_{i}. By Eq. (15) and since vi⊤(t)ϕi(t)≤0\mathbf{v}_{i}^{\top}(t)\phi_{i}(t)\leq 0 for all t≥t′t\geq t^{\prime}, we can write wi(t1)=wi′+γ1xi\mathbf{w}_{i}(t_{1})=\mathbf{w}^{\prime}_{i}+\gamma_{1}\mathbf{x}_{i} and wi(t2)=wi′+γ2xi\mathbf{w}_{i}(t_{2})=\mathbf{w}^{\prime}_{i}+\gamma_{2}\mathbf{x}_{i} where γ2≥γ1≥0\gamma_{2}\geq\gamma_{1}\geq 0. Therefore

Suppose that we initialize θ(0){\boldsymbol{\theta}}(0) such that wi(0)∈Si∖∂Si\mathbf{w}_{i}(0)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} and vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}} for all i∈i\in. Then, GF converges (i.e., W(∞)W(\infty) and V(∞)V(\infty) exist) and LX,Y(W(∞),V(∞))=0L_{X,Y}(W(\infty),V(\infty))=0. Moreover wi(∞)∈Si∖∂Si\mathbf{w}_{i}(\infty)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in

By Lemma 12, there is t′>0t^{\prime}>0 such that for all i∈i\in and t≥t′t\geq t^{\prime} we have wi(t)=wi(t′)+ci(t)xi\mathbf{w}_{i}(t)=\mathbf{w}_{i}(t^{\prime})+c_{i}(t)\mathbf{x}_{i} for ci(t)≥0c_{i}(t)\geq 0. Hence, wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all t≥t′t\geq t^{\prime}. We have ddtLX,Y(θ(t))=(∇LX,Y(θ(t)))⊤ddtθ(t)=−∥∇LX,Y(θ(t))∥2\frac{d}{dt}L_{X,Y}({\boldsymbol{\theta}}(t))=\left(\nabla L_{X,Y}({\boldsymbol{\theta}}(t))\right)^{\top}\frac{d}{dt}{\boldsymbol{\theta}}(t)=-{\left\|{\nabla L_{X,Y}({\boldsymbol{\theta}}(t))}\right\|}^{2}. Hence, for T≥t′T\geq t^{\prime} we have

Since it holds for every T≥t′T\geq t^{\prime}, then we have

Moreover, since wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in and t≥t′t\geq t^{\prime}, then by Eq. (C) we have

By Lemma 12 we have (wi⊤(t)xi)2≥(wi⊤(t′)xi)2\left(\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i}\right)^{2}\geq\left(\mathbf{w}_{i}^{\top}(t^{\prime})\mathbf{x}_{i}\right)^{2}. Therefore

Letting K:=12∑i=121(wi⊤(t′)xi)2K:=\frac{1}{2}\sum_{i=1}^{2}\frac{1}{\left(\mathbf{w}_{i}^{\top}(t^{\prime})\mathbf{x}_{i}\right)^{2}} and combining the above with Eq. (16), we get

Since LX,Y(θ(t))L_{X,Y}({\boldsymbol{\theta}}(t)) is non-negative, and since by Lemma 10 it is monotonically non-increasing as a function of tt, then we conclude that lim⁡t→∞LX,Y(θ(t))=0\lim_{t\to\infty}L_{X,Y}({\boldsymbol{\theta}}(t))=0.

It remains to show that θ(∞){\boldsymbol{\theta}}(\infty) exists, namely, that GF converges. Since wi(t)∈Si∖∂Si\mathbf{w}_{i}(t)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all t≥t′t\geq t^{\prime} and lim⁡t→∞LX,Y(θ(t))=0\lim_{t\to\infty}L_{X,Y}({\boldsymbol{\theta}}(t))=0, then lim⁡t→∞LX,Yi(θ(t))=0\lim_{t\to\infty}L^{i}_{X,Y}({\boldsymbol{\theta}}(t))=0 for all i∈i\in. That is, (wi⊤(t)xi)vi(t)→yi(\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i})\mathbf{v}_{i}(t)\to\mathbf{y}_{i} as t→∞t\to\infty. By Lemma 12 we can write wi(t)=wi′+ai(t)xi\mathbf{w}_{i}(t)=\mathbf{w}^{\prime}_{i}+a_{i}(t)\mathbf{x}_{i} and vi(t)=bi(t)yi\mathbf{v}_{i}(t)=b_{i}(t)\mathbf{y}_{i}, for some ai(t),bi(t)a_{i}(t),b_{i}(t) with ai(t)≥0a_{i}(t)\geq 0 for all tt. Since wi⊤(t)xi>0\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i}>0 and (wi⊤(t)xi)vi(t)→yi(\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i})\mathbf{v}_{i}(t)\to\mathbf{y}_{i} then we also have bi(t)>0b_{i}(t)>0 for large enough tt.

By Lemma 9, ∥vi(t)∥2−∥wi(t)∥2{\left\|{\mathbf{v}_{i}(t)}\right\|}^{2}-{\left\|{\mathbf{w}_{i}(t)}\right\|}^{2} remains constant throughout the training. Hence, we can write

Since (wi⊤(t)xi)vi(t)→yi(\mathbf{w}_{i}^{\top}(t)\mathbf{x}_{i})\mathbf{v}_{i}(t)\to\mathbf{y}_{i}, then we conclude that for

we have lim⁡t→∞gi(ai(t))=1\lim_{t\to\infty}g_{i}(a_{i}(t))=1. The function gi(a)g_{i}(a) on [0,∞)[0,\infty) is continuous and strictly increasing, and lim⁡a→∞g(a)=∞\lim_{a\to\infty}g(a)=\infty. Also, g(0)≤1g(0)\leq 1 since otherwise we cannot have lim⁡t→∞gi(ai(t))=1\lim_{t\to\infty}g_{i}(a_{i}(t))=1. Thus, there is exactly one point ai′≥0a^{\prime}_{i}\geq 0 such that g(ai′)=1g(a^{\prime}_{i})=1, and we have lim⁡t→∞ai(t)=ai′\lim_{t\to\infty}a_{i}(t)=a^{\prime}_{i}. Hence, wi(∞)\mathbf{w}_{i}(\infty) and vi(∞)\mathbf{v}_{i}(\infty) exist. Moreover, wi(∞)=wi′+ai′xi∈Si∖∂Si\mathbf{w}_{i}(\infty)=\mathbf{w}^{\prime}_{i}+a^{\prime}_{i}\mathbf{x}_{i}\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i}. ∎

By Lemma 13 if we initialize vi(0)=0\mathbf{v}_{i}(0)={\mathbf{0}} and wi(0)∈Si∖∂Si\mathbf{w}_{i}(0)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in, then GF converges and we have LX,Y(θ(∞))=0L_{X,Y}({\boldsymbol{\theta}}(\infty))=0 and wi(∞)∈Si∖∂Si\mathbf{w}_{i}(\infty)\in\mathcal{S}_{i}\setminus\partial\mathcal{S}_{i} for all i∈i\in. Also, by our assumption we have

Therefore, by Lemma 6, W(∞)∈WW(\infty)\in{\cal W}. From the same arguments, W(∞)∈WW(\infty)\in{\cal W} also if the initialization of wi\mathbf{w}_{i} is such that wi(0)∈S3−i∖∂S3−i\mathbf{w}_{i}(0)\in\mathcal{S}_{3-i}\setminus\partial\mathcal{S}_{3-i} for all i∈i\in. Hence,

where α(Si)\alpha(\mathcal{S}_{i}) is the angle that corresponds to the region Si\mathcal{S}_{i}. Formally, the angle of a region Si{\cal S}_{i} is defined by α(Si)=∡(a1,a2)\alpha({\cal S}_{i})=\measuredangle(\mathbf{a}_{1},\mathbf{a}_{2}) where a1,a2∈∂Si\mathbf{a}_{1},\mathbf{a}_{2}\in\partial{\cal S}_{i} are linearly independent.

Let si∈(∂Si)∩(∂S)\mathbf{s}_{i}\in(\partial{\cal S}_{i})\cap(\partial{\cal S}) and let di∈(∂Si)∩(∂D)\mathbf{d}_{i}\in(\partial{\cal S}_{i})\cap(\partial{\cal D}). Note that ∡(si,xi)=∡(x1,x2)−π2\measuredangle(\mathbf{s}_{i},\mathbf{x}_{i})=\measuredangle(\mathbf{x}_{1},\mathbf{x}_{2})-\frac{\pi}{2} and that ∡(di,xi)=π2\measuredangle(\mathbf{d}_{i},\mathbf{x}_{i})=\frac{\pi}{2}. Thus,

then W(∞)∈WW(\infty)\in\mathcal{W} implies that for all i∈i\in we have

Appendix D Proof of Thm. 4

Let α=(1B)k′−kk′\alpha=\left(\frac{1}{B}\right)^{\frac{k^{\prime}-k}{k^{\prime}}}. Consider the following fully-connected network N′N^{\prime} of width mm and depth k′k^{\prime}. The weight matrices of layers i∈[k]i\in[k] in N′N^{\prime} are Wi′=αWiW^{\prime}_{i}=\alpha W_{i}. Note that the kk-th layer in N′N^{\prime} contains a single neuron, and that since the weights in the first kk layers of N′N^{\prime} are obtained from the weights of NN by scaling with the parameter α\alpha, then for every input xi\mathbf{x}_{i} in the dataset the input to the neuron in layer kk in N′N^{\prime} is αk⋅N(xi)=αkyi≥0\alpha^{k}\cdot N(\mathbf{x}_{i})=\alpha^{k}y_{i}\geq 0. The layers i∈{k+1,…,k′}i\in\{k+1,\ldots,k^{\prime}\} in N′N^{\prime} are of width 11. Hence, their weight matrices are of dimension 1×11\times 1. We define these weights by Wi′=βW^{\prime}_{i}=\beta for β:=(1B)−kk′\beta:=\left(\frac{1}{B}\right)^{-\frac{k}{k^{\prime}}}. Thus, for an input xi\mathbf{x}_{i} we have

Let θ′=[W1′,…,Wk′′]{\boldsymbol{\theta}}^{\prime}=\left[W^{\prime}_{1},\ldots,W^{\prime}_{k^{\prime}}\right] be the parameters of N′N^{\prime}. Let N∗:=Nθ∗N^{*}:=N_{{\boldsymbol{\theta}}^{*}} be the network with the parameters θ∗{\boldsymbol{\theta}}^{*} that achieves a global optimum of Problem 2. Since the network N′N^{\prime} is of depth k′k^{\prime} and width m≤m′m\leq m^{\prime} and since the network N∗N^{*} is a global optimum, then we have ∥θ∗∥≤∥θ∥{\left\|{{\boldsymbol{\theta}}^{*}}\right\|}\leq{\left\|{{\boldsymbol{\theta}}}\right\|}. Therefore,

In the following lemma, we show that since N∗N^{*} is a global optimum of Eq. (2), then its layers must be balanced:

For every 1≤i<j≤k′1\leq i<j\leq k^{\prime} we have ∥Wi∗∥F=∥Wj∗∥F{\left\|{W^{*}_{i}}\right\|}_{F}={\left\|{W^{*}_{j}}\right\|}_{F}.

Let 1≤i<j≤k′1\leq i<j\leq k^{\prime}. For γ>0\gamma>0 we define a network NγN_{\gamma} which is obtained from N∗N^{*} as follows. The network NγN_{\gamma} is obtained by multiplying the weight matrix Wi∗W^{*}_{i} by γ\gamma, and the weight matrix Wj∗W^{*}_{j} by 1/γ1/\gamma. Note that for every input x\mathbf{x} we have Nγ(x)=N∗(x)N_{\gamma}(\mathbf{x})=N^{*}(\mathbf{x}).

When γ=1\gamma=1 the above expression equals 2∥Wi∗∥F2−2∥Wj∗∥F22{\left\|{W^{*}_{i}}\right\|}_{F}^{2}-2{\left\|{W^{*}_{j}}\right\|}_{F}^{2}. Hence, if ∥Wi∗∥F≠∥Wj∗∥F{\left\|{W^{*}_{i}}\right\|}_{F}\neq{\left\|{W^{*}_{j}}\right\|}_{F} then the derivative at γ=1\gamma=1 is non-zero, in contradiction to the optimality of N∗N^{*}. ∎

By the above lemma, there is B∗>0B^{*}>0 such that B∗=∥Wi∗∥FB^{*}={\left\|{W^{*}_{i}}\right\|}_{F} for all i∈[k′]i\in[k^{\prime}]. By Eq. (D) we have

Hence, for every i∈[k′]i\in[k^{\prime}] we have

Moreover, since there is i∈[n]i\in[n] with ∥xi∥≤1{\left\|{\mathbf{x}_{i}}\right\|}\leq 1 and yi≥1y_{i}\geq 1, then the network N∗N^{*} satisfies

where the last inequality follows from the AM-GM inequality. Therefore, we have

Appendix E Proof of Thm. 5

Let α=(2B)k′−kk′\alpha=\left(\frac{\sqrt{2}}{B}\right)^{\frac{k^{\prime}-k}{k^{\prime}}}. Consider the following fully-connected network N′N^{\prime} of width mm and depth k′k^{\prime}. The weight matrices of layers i∈[k−1]i\in[k-1] in N′N^{\prime} are Wi′=αWiW^{\prime}_{i}=\alpha W_{i}. Let u\mathbf{u} be the weight vector of the output neuron in NN. The kk-th layer in N′N^{\prime} is defined by the weight matrix Wk′=α⋅[u⊤−u⊤]W^{\prime}_{k}=\alpha\cdot\begin{bmatrix}\mathbf{u}^{\top}\\ -\mathbf{u}^{\top}\end{bmatrix}. That is, the kk-th layer in N′N^{\prime} has two neurons: the first neuron corresponds to the output neuron of NN, and the second neuron to its negation. Note that since the weights in N′N^{\prime} are obtained from the weights of NN by scaling with the parameter α\alpha, then for every input x\mathbf{x} the input to the first neuron in layer kk in N′N^{\prime} is αk⋅N(x)\alpha^{k}\cdot N(\mathbf{x}), and the input to the second neuron in layer kk is −αk⋅N(x)-\alpha^{k}\cdot N(\mathbf{x}). The layers i∈{k+1,…,k′−1}i\in\{k+1,\ldots,k^{\prime}-1\} in N′N^{\prime} are defined by the weight matrices Wi′=βI2W^{\prime}_{i}=\beta I_{2}, where β:=(2B)−kk′\beta:=\left(\frac{\sqrt{2}}{B}\right)^{-\frac{k}{k^{\prime}}} and I2I_{2} is the identity matrix of dimension 22. Finally, the k′k^{\prime}-th layer in N′N^{\prime} is defined by the weight vector β⋅(1−1)\beta\cdot\begin{pmatrix}1\\ -1\end{pmatrix}. Note that given an input x\mathbf{x}, the first kk layers in N′N^{\prime} compute (σ(αk⋅N(x))σ(−αk⋅N(x)))\begin{pmatrix}\sigma\left(\alpha^{k}\cdot N(\mathbf{x})\right)\\ \sigma\left(-\alpha^{k}\cdot N(\mathbf{x})\right)\end{pmatrix}, then the next k′−k−1k^{\prime}-k-1 layers compute (βk′−k−1σ(αk⋅N(x))βk′−k−1σ(−αk⋅N(x)))\begin{pmatrix}\beta^{k^{\prime}-k-1}\sigma\left(\alpha^{k}\cdot N(\mathbf{x})\right)\\ \beta^{k^{\prime}-k-1}\sigma\left(-\alpha^{k}\cdot N(\mathbf{x})\right)\end{pmatrix}, and finally the last layer returns

Thus, N′(x)=N(x)N^{\prime}(\mathbf{x})=N(\mathbf{x}).

Let θ′=[W1′,…,Wk′′]{\boldsymbol{\theta}}^{\prime}=\left[W^{\prime}_{1},\ldots,W^{\prime}_{k^{\prime}}\right] be the parameters of N′N^{\prime}. Let N∗:=Nθ∗N^{*}:=N_{{\boldsymbol{\theta}}^{*}} be the network with the parameters θ∗{\boldsymbol{\theta}}^{*} that achieves a global optimum of Problem 6. Since the network N′N^{\prime} is of depth k′k^{\prime} and width m≤m′m\leq m^{\prime} and since the network N∗N^{*} is a global optimum, then we have ∥θ∗∥≤∥θ∥{\left\|{{\boldsymbol{\theta}}^{*}}\right\|}\leq{\left\|{{\boldsymbol{\theta}}}\right\|}. Therefore,

The following lemma shows that since N∗N^{*} is a global optimum of Eq. (6), then its layers must be balanced:

For every 1≤i<j≤k′1\leq i<j\leq k^{\prime} we have ∥Wi∗∥F=∥Wj∗∥F{\left\|{W^{*}_{i}}\right\|}_{F}={\left\|{W^{*}_{j}}\right\|}_{F}.

The proof of the lemma is similar to the proof of Lemma 14. By the lemma, there is B∗>0B^{*}>0 such that B∗=∥Wi∗∥FB^{*}={\left\|{W^{*}_{i}}\right\|}_{F} for all i∈[k′]i\in[k^{\prime}]. By Eq. (E) we have

Hence, for every i∈[k′]i\in[k^{\prime}] we have

Moreover, since there is i∈[n]i\in[n] with ∥xi∥≤1{\left\|{\mathbf{x}_{i}}\right\|}\leq 1 and ∣yi∣=1|y_{i}|=1, then the network N∗N^{*} satisfies

where the last inequality follows from the AM-GM inequality. Therefore, we have