Gradient Descent on Two-layer Nets: Margin Maximization and Simplicity Bias

Kaifeng Lyu, Zhiyuan Li, Runzhe Wang, Sanjeev Arora

Introduction

One major mystery in deep learning is why deep neural networks generalize despite overparameterization [Zhang et al., 2017]. To tackle this issue, many recent works turn to study the implicit bias of gradient descent (GD) — what kind of theoretical characterization can we give for the low-loss solution found by GD?

The seminal works by Soudry et al. [2018a, b] revealed an interesting connection between GD and margin maximization: for linear logistic regression on linearly separable data, there can be multiple linear classifiers that perfectly fit the data, but GD with any initialization always converges to the max-margin (hard-margin SVM) solution, even when there is no explicit regularization. Thus the solution found by GD has the same margin-based generalization bounds as hard-margin SVM. Subsequent works on linear models have extended this theoretical understanding of GD to SGD [Nacson et al., 2019b], other gradient-based methods [Gunasekar et al., 2018a], other loss functions with certain poly-exponential tails [Nacson et al., 2019a], linearly non-separable data [Ji and Telgarsky, 2018, 2019b], deep linear nets [Ji and Telgarsky, 2019a, Gunasekar et al., 2018b].

Given the above results, a natural question to ask is whether GD has the same implicit bias towards max-margin solutions for machine learning models in general. Lyu and Li studied the relationship between GD and margin maximization on deep homogeneous neural network, i.e., neural network whose output function is (positively) homogeneous with respect to its parameters. For homogeneous neural networks, only the direction of parameter matters for classification tasks. For logistic and exponential loss, Lyu and Li assumed that GD decreases the loss to a small value and achieves full training accuracy at some time point, and then provided an analysis for the training dynamics after this time point (Theorem 3.1), which we refer to as late phase analysis. It is shown that GD decreases the loss to in the end and converges to a direction satisfying the Karush-Kuhn-Tucker (KKT) conditions of a constrained optimization problem (P) on margin maximization.

However, given the non-convex nature of neural networks, KKT conditions do not imply global optimality for margins. Several attempts are made to prove the global optimality specifically for two-layer nets. Chizat and Bach provided a mean-field analysis for infinitely wide two-layer Squared ReLU nets showing that gradient flow converges to the solution with global max margin, which also corresponds to the max-margin classifier in some non-Hilbertian space of functions. Ji and Telgarsky [2020a] extended the proof to finite-width neural nets, but the width needs to be exponential in the input dimension (due to the use of a covering condition). Both works build upon late phase analyses. Under a restrictive assumption that the data is orthogonally separable, i.e., any data point xi{\bm{x}}_{i} can serve as a perfect linear separator, Phuong and Lampert analyzed the full trajectory of gradient flow on two-layer ReLU nets with small initialization, and established the convergence to a piecewise linear classifier that maximizes the margin, irrespective of network width.

In this paper, we study the implicit bias of gradient flow on two-layer neural nets with Leaky ReLU activation [Maas et al., 2013] and logistic loss. To avoid the lazy or Neural Tangent Kernel (NTK) regime where the weights are initialized to large random values and do not change much during training [Jacot et al., 2018, Chizat et al., 2019, Du et al., 2019b, a, Allen-Zhu et al., 2018, 2019, Zou et al., 2018, Arora et al., 2019b], we use small initialization to encourage the model to learn features actively, which is closer to real-life neural network training.

When analyzing convergence behavior of training on neural networks, one can simplify the problem and gain insights by assuming that the data distribution has a simple structure. Many works particularly study the case where the labels are generated by an unknown teacher network that is much smaller/simpler than the (student) neural network to be trained. Following Brutzkus et al. , Sarussi et al. and many other works, we consider the case where the dataset is linearly separable, namely the labels are generated by a linear teacher, and study the training dynamics of two-layer Leaky ReLU nets on such dataset.

Among all the classifiers that can be represented by the two-layer Leaky ReLU nets, we show any global-max-margin classifier is exactly linear under one more data assumption: the dataset is symmetric, i.e., if x{\bm{x}} is in the training set, then so is −x-{\bm{x}}. Note that such symmetry can be ensured by simple data augmentation.

Still, little is known about what kind of classifiers neural network trained by GD learns. Though Lyu and Li showed that gradient flow converges to a classifier along KKT-margin direction, we note that this result is not sufficient to guarantee the global optimality since such classifier can have nonlinear decision boundaries. See Figure 1 (left) for an example.

In this paper, we provide a multi-phase analysis for the full trajectory of gradient flow, in contrast with previous late phase analyses which only analyzes the trajectory after achieving 100%100\% training accuracy. We show that gradient flow with small initialization converges to a global-max-margin linear classifier (Theorem 4.2). The proof leverages power iteration to show that neuron weights align in two directions in an early phase of training, inspired by Li et al. . We further show the alignment at any constant training time by associating the dynamics of wide neural net with that of two-neuron neural net, and finally, extend the alignment to the infinite time limit by applying Kurdyka-Łojasiewicz (KL) inquality in a similar way as Ji and Telgarsky [2020a]. The alignment at convergence implies that the convergent classifier is linear.

The above results also justify a recent line of works studying the so-called simplicity bias: GD first learns linear functions in the early phase of training, and the complexity of the solution increases as training goes on [Kalimeris et al., 2019, Hu et al., 2020, Shah et al., 2020]. Indeed, our result establishes a form of extreme simplicity bias of GD: if the dataset can be fitted by a linear classifier, then GD learns a linear classifier not only in the beginning but also at convergence.

On the pessimistic side, this paper suggests that such global margin maximization result could be fragile. Even for linearly separable data, global-max-margin classifiers may be nonlinear without the symmetry assumption. In particular, we show that for any linearly separable dataset, gradient flow can be led to converge to a linear classifier with suboptimal margin by adding only 33 extra data points (Theorem 6.2). See Figure 1 (right) for an example.

Related Works

Margin often appears in the generalization bounds for neural networks [Bartlett et al., 2017, Neyshabur et al., 2018], and larger margin leads to smaller bounds. Jiang et al. conducted an empirical study for the causal relationships between complexity measures and generalization errors, and showed positive results for normalized margin, which is defined by the output margin divided by the product (or powers of the sum) of Frobenius norms of weight matrices from each layer. On the pessimistic side, negative results are also shown if Frobenius norm is replaced by spectral norm. In this paper, we do use the normalized margin with Frobenius norm (see Section 3).

Some works studied the training dynamics of (nonlinear) neural networks on linearly separable data (labels are generated by a linear teacher). Brutzkus et al. showed that SGD on two-layer Leaky ReLU nets with hinge loss fits the training set in finite steps and generalizes well. Frei et al. studied online SGD (taking a fresh sample from the population in each step) on the two-layer Leaky ReLU nets with logistic loss. For any data distribution, they proved that there exists a time step in the early phase such that the net has a test error competitive with that of the best linear classifier over the distribution, and hence generalizes well on linearly separable data. Both two papers reveal that the weight vectors in the first layer have positive correlations with the weight of the linear teacher, but their analyses do not imply that the learned classifier is linear. In the NTK regime, Ji and Telgarsky [2020b], Chen et al. showed that GD on shallow/deep neural nets learns a kernel predictor with good generalization on linearly separable data, and it suffices to have width polylogarithmic in the number of training samples. Still, they do not imply that the learned classifier is linear. Pellegrini and Biroli provided a mean-field analysis for two-layer ReLU net showing that training with hinge loss and infinite data leads to a linear classifier, but their analysis requires the data distribution to be spherically symmetric (i.e., the probability density only depends on the distance to origin), which is a more restrictive assumption than ours. Sarussi et al. provided a late phase analysis for gradient flow on two-layer Leaky ReLU nets with logistic loss, which establishes the convergence to linear classifier based on an assumption called Neural Agreement Regime (NAR): starting from some time point, for any training sample, the outputs of all the neurons have the same sign. However, it is unclear why this can happen a priori. Comparing with our work, we analyze the full trajectory of gradient flow and establish the convergence to linear classifier without assuming NAR. Phuong and Lampert analyzed the full trajectory for gradient flow on orthogonally separable data, but every KKT-margin direction attains the global max margin (see Appendix H) in their setting, which it is not necessarily true in general. In our setting, KKT-margin direction with suboptimal margin does exist.

Kalimeris et al. empirically observed that neural networks in the early phase of training are learning linear classifiers, and provided evidence that SGD learns functions of increasing complexity. Hu et al. justified this view by proving that the learning dynamics of two-layer neural nets and simple linear classifiers are close to each other in the early phase, for dataset drawn from a data distribution where input coordinates are independent after some linear transformation. The aforementioned work by Frei et al. can be seen as another theoretical justification for online SGD on aribitrary data distribution. Shah et al. pointed out that extreme simplicity bias can lead to suboptimal generalization and negative effects on adversarial robustness.

Several theoretical works studying neural network training with small initialization can be connected to simplicity bias. Maennel et al. uncovered a weight quantization effect in training two-layer nets with small initialization: gradient flow biases the weight vectors to a certain number of directions determined by the input data (independent of neural network width). It is hence argued that gradient flow has a bias towards “simple” functions, but their proof is not entirely rigorous and no clear definition of simplicity is given. This weight quantization effect has also been studied under the names of weight clustering [Brutzkus and Globerson, 2019], condensation [Luo et al., 2021, Xu et al., 2021]. Williams et al. studied univariate regression and showed that two-layer ReLU nets with small initialization tend to learn linear splines. For the matrix factorization problem, which can be related to training neural networks with linear or quadratic activations, we can measure the complexity of the learned solution by rank. A line of works showed that gradient descent learns solutions with gradually increasing rank [Li et al., 2018, Arora et al., 2019a, Gidel et al., 2019, Gissin et al., 2020, Li et al., 2021]. Such results have been generalized to tensor factorization where the complexity measure is replaced by tensor rank [Razin et al., 2021]. Beyond small initialization of our interest and large initialization in the lazy or NTK regime, Woodworth et al. , Moroshko et al. , Mehta et al. studied feature learning when the initialization scale transitions from small to large scale.

Preliminaries

Throughout this paper, we restrict our attention to LL-homogeneous neural nets with fθ(x)f_{{\bm{\theta}}}({\bm{x}}) definable with respect to θ{\bm{\theta}} in an o-minimal structure for all x{\bm{x}}. (See Coste 2000 for reference for o-minimal structures.) This is a technical condition needed by Theorem 3.1, and it is a mild regularity condition as almost all modern neural networks satisfy this condition, including the two-layer Leaky ReLU networks studied in this paper.

For a dataset S={(x1,y1),…,(xn,yn)}\mathcal{S}=\{({\bm{x}}_{1},y_{1}),\dots,({\bm{x}}_{n},y_{n})\}, we define qi(θ):=yifθ(xi)q_{i}({\bm{\theta}}):=y_{i}f_{{\bm{\theta}}}({\bm{x}}_{i}) to be the output margin on the data point (xi,yi)({\bm{x}}_{i},y_{i}), and qmin⁡(θ):=min⁡i∈[n]qi(θ)q_{\min}({\bm{\theta}}):=\min_{i\in[n]}q_{i}({\bm{\theta}}) to be the output margin on the dataset S\mathcal{S} (or margin for short). It is easy to see that q1(θ),…,qn(θ)q_{1}({\bm{\theta}}),\dots,q_{n}({\bm{\theta}}) are LL-homogeneous functions, and so is qmin⁡(θ)q_{\min}({\bm{\theta}}). We define the normalized margin γ(θ):=qmin⁡(θ∥θ∥2)=qmin⁡(θ)∥θ∥2L\gamma({\bm{\theta}}):=q_{\min}\left(\frac{{\bm{\theta}}}{\|{\bm{\theta}}\|_{2}}\right)=\frac{q_{\min}({\bm{\theta}})}{\|{\bm{\theta}}\|_{2}^{L}} to be the output margin (on the dataset) for the normalized parameter θ∥θ∥2\frac{{\bm{\theta}}}{\|{\bm{\theta}}\|_{2}}.

Alternatively, we can also constrain the margin to have qmin⁡≥1q_{\min}\geq 1 and minimize the norm:

One can easily show that θ∗{\bm{\theta}}^{*} is a global maximizer of (M) if and only if θ∗(qmin⁡(θ∗))1/L\frac{{\bm{\theta}}^{*}}{(q_{\min}({\bm{\theta}}^{*}))^{1/L}} is a global minimizer of (P). For convenience, we make the following convention: if θ∥θ∥2\frac{{\bm{\theta}}}{\|{\bm{\theta}}\|_{2}} is a local/global maximizer of (M), then we say θ{\bm{\theta}} is along a local-max-margin direction/global-max-margin direction; if θ(qmin⁡(θ))1/L\frac{{\bm{\theta}}}{(q_{\min}({\bm{\theta}}))^{1/L}} satisfies the KKT conditions of (P), then we say θ{\bm{\theta}} is along a KKT-margin direction.

Gradient flow with logistic loss is defined by the following differential inclusion,

For homogeneous neural networks, if L(θ(0))<ln⁡2n\mathcal{L}({\bm{\theta}}(0))<\frac{\ln 2}{n}, then L(θ(t))→0\mathcal{L}({\bm{\theta}}(t))\to 0, ∥θ(t)∥2→+∞\|{\bm{\theta}}(t)\|_{2}\to+\infty, and θ(t)∥θ(t)∥2\frac{{\bm{\theta}}(t)}{\|{\bm{\theta}}(t)\|_{2}} converges to a KKT-margin direction as t→+∞t\to+\infty.

2 Two-Layer Leaky ReLU Networks on Linearly Separable Data

Let S:={(x1,y1),…,(xn,yn)}\mathcal{S}:=\{({\bm{x}}_{1},y_{1}),\dots,({\bm{x}}_{n},y_{n})\} be the training set. For simplicity, we assume that ∥xi∥2≤1\|{\bm{x}}_{i}\|_{2}\leq 1. We focus on linearly separable data, thus we assume that S\mathcal{S} is linearly separable throughout the paper.

Training on Linearly Separable and Symmetric Data

In this section, we study the implicit bias of gradient flow assuming the training data is linearly separable and symmetric. We say a dataset is symmetric if whenever x{\bm{x}} is present in the training set, the input −x-{\bm{x}} is also present. By linear separability, x{\bm{x}} and −x-{\bm{x}} must have different labels because <w∗,x>=−<w∗,−x>\left<{\bm{w}}^{*},{\bm{x}}\right>=-\left<{\bm{w}}^{*},-{\bm{x}}\right>, where w∗{\bm{w}}^{*} is the max-margin linear separator. The formal statement for this assumption is given below.

nn is even and xi=−xi+n/2,yi=1,yi+n/2=−1{\bm{x}}_{i}=-{\bm{x}}_{i+n/2},y_{i}=1,y_{i+n/2}=-1 for 1≤i≤n/21\leq i\leq n/2.

This symmetry can be ensured via data augmentation. Given a dataset, if it is known that the ground-truth labels are produced by an unknown linear classifier, then one can augment each data point (x,y)({\bm{x}},y) by flipping the sign, i.e., replace it with two data points (x,y)({\bm{x}},y), (−x,−y)(-{\bm{x}},-y) (and thus the dataset size is doubled).

Our results show that gradient flow directionally converges to a global-max-margin direction for two-layer Leaky ReLU networks, when the dataset is linearly separable and symmetric. To achieve such result, the key insight is that any global-max-margin direction represents a linear classifier, which we will see in Section 4.1. Then we will present our main convergence results in Section 4.2.

Theorem 4.2 below characterizes the global-max-margin direction in our case by showing that margin maximization and simplicity bias coincide with each other: a network that representing the max-margin linear classifier (i.e., fθ(x)=c<w∗,x>f_{{\bm{\theta}}}({\bm{x}})=c\left<{\bm{w}}^{*},{\bm{x}}\right> for some c>0c>0) can simultaneously achieve the goals of being simple and maximizing the margin.

The result of Theorem 4.2 is based on the observation that replacing each neuron (ak,wk)(a_{k},{\bm{w}}_{k}) in a network with two neurons of oppositing parameters (ak,wk)(a_{k},{\bm{w}}_{k}) and (−ak,−wk)(-a_{k},-{\bm{w}}_{k}) does not decrease the normalized margin on the symmetric dataset, while making the classifier linear in function space. Thus if any direction attains the global max margin, we can construct a new global-max-margin direction which corresponds to a linear classifier. We can show that every weight vector wk{\bm{w}}_{k} of this linear classifier must be in the direction of w∗{\bm{w}}^{*} or −w∗-{\bm{w}}^{*}. Then the original classifier must also be linear in the same direction.

2 Convergence to Global-Max-Margin Directions

Though Theorem 3.1 guarantees that gradient flow directionally converges to a KKT-margin direction if the loss is optimized successfully, we note that KKT-margin directions can be non-linear and have complicated decision boundaries. See Figure 1 (left) for an example. Therefore, to establish the convergence to linear classifiers, Theorem 3.1 is not enough and we need a new analysis for the trajectory of gradient flow.

Combining Theorem 4.2 and Theorem 4.3, we can conclude that gradient flow achieves the global max margin in our case.

In the settings of Theorem 4.3, gradient flow on linearly separable and symmetric data directionally converges to the global-max-margin direction with probability 1−2−(m−1)1-2^{-(m-1)}.

3 Additional Notations and Assumptions

We make the following technical assumption, which holds if we are allowed to add a slight perturbation to the training set.

For all i∈[n]i\in[n], <μ,xi>≠0\left<{\bm{\mu}},{\bm{x}}_{i}\right>\neq 0.

Another technical issue we face is that the gradient flow may not be unique due to non-smoothness. It is possible that φ(θ0,t)\varphi({\bm{\theta}}_{0},t) is not well-defined as the solution of (1) may not be unique. See Section I.2 for more discussions. In this case, we assign φ(θ0, ⋅ )\varphi({\bm{\theta}}_{0},\,\cdot\,) to be an arbitrary gradient flow trajectory starting from θ0{\bm{\theta}}_{0}. In the case where φ(θ0,t)\varphi({\bm{\theta}}_{0},t) has only one possible value for all t≥0t\geq 0, we say that θ0{\bm{\theta}}_{0} is a non-branching starting point. We assume the following technical assumption.

Proof Sketch for the Symmetric Case

In this section, we provide a proof sketch for Theorem 4.3. Our proof uses a multi-phase analysis, which divides the training process into 33 phases, from small initialization to the final convergence. We will now elaborate the analyses for them one by one.

Expanding fθ(xi)f_{{\bm{\theta}}}({\bm{x}}_{i}) and reorganizing the terms, we have

where GG-function [Maennel et al., 2018] is defined below:

This means gradient flow optimizes each −akG(wk)-a_{k}G({\bm{w}}_{k}) separately near origin.

2 Phase II: Near-Two-Neuron Dynamics

It is easy to check that fθ^(x)=fπb(θ^)(x)f_{\hat{{\bm{\theta}}}}({\bm{x}})=f_{\pi_{{\bm{b}}}(\hat{{\bm{\theta}}})}({\bm{x}}) by the homogeneity of the activation (ϕ(cz)=cϕ(z)\phi(cz)=c\phi(z) for c>0c>0):

Moreover, by taking the chain rule, we can obtain the following lemma showing that the trajectories starting from θ^\hat{{\bm{\theta}}} and πb(θ^)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}) are essentially the same.

Given θ^:=(w^1,w^2,a^1,a^2)\hat{{\bm{\theta}}}:=(\hat{{\bm{w}}}_{1},\hat{{\bm{w}}}_{2},\hat{a}_{1},\hat{a}_{2}) with a^1>0\hat{a}_{1}>0 and a^2<0\hat{a}_{2}<0, if both θ^\hat{{\bm{\theta}}} and πb(θ^)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}) are non-branching starting points, then φ(πb(θ^),t)=πb(φ(θ^,t))\varphi(\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}),t)=\pi_{{\bm{b}}}(\varphi(\hat{{\bm{\theta}}},t)) for all t≥0t\geq 0.

and moreover, for the mm-neuron dynamics of θ(t){\bm{\theta}}(t), the following holds for all tt,

3 Phase III: Dynamics near Global-Max-Margin Direction

With some efforts, we have the following characterization for the two-neuron dynamics.

For m=2m=2, if initially a1=∥w1∥2a_{1}=\|{\bm{w}}_{1}\|_{2}, a2=−∥w2∥2a_{2}=-\|{\bm{w}}_{2}\|_{2}, <w1,w∗>>0\left<{\bm{w}}_{1},{\bm{w}}^{*}\right>>0 and <w2,w∗><0\left<{\bm{w}}_{2},{\bm{w}}^{*}\right><0, then θ(t){\bm{\theta}}(t) directionally converges to the following global-max-margin direction,

where w∗{\bm{w}}^{*} is the max-margin linear separator.

To overcome this issue, we follow a similar proof strategy as Ji and Telgarsky [2020a] to prove local convergence near a local-max-margin direction, as formally stated below. Theorem 5.6 holds for LL-homogeneous neural networks in general and we believe is of independent interest.

Non-symmetric Data Complicates the Picture

Now we turn to study the case without assuming symmetry and the question is whether the implicit bias to global-max-margin solution still holds. Unfortunately, it turns out the convergence to global-max-margin classifier is very fragile — for any linearly separable dataset, we can add 33 extra data points so that every linear classifier has suboptimal margin but still gradient flow with small initialization converges to a linear classifier.Here linear classifier refers to a classifier whose decision boundary is linear. See Definition 6.1 for the construction and Figure 1 (right) for an example.

Moreover, the convergent classifier only attains a suboptimal margin.

Theorem 6.2 is actually a simple corollary general theorem under data assumptions that hold for a broader class of linearly separable data. From a high-level perspective, we only require two assumptions: (1). There is a direction such that data points have large inner products with this direction on average; (2). The support vectors for the max-margin linear separator w∗{\bm{w}}^{*} have nearly the same labels. The first hint data point is for the first condition and the second and third data point is for the second condition. We defer formal statements of the assumptions and theorems to Appendix A.

Conclusions and Future Works

We study the implicit bias of gradient flow in training two-layer Leaky ReLU networks on linearly separable datasets. When the dataset is symmetric, we show any global-max-margin classifier is exactly linear and gradient flow converges to a global-max-margin direction. On the pessimistic side, we show such margin maximization result is fragile — for any linearly separable dataset, we can lead gradient flow to converge to a linear classifier with suboptimal margin by adding only 33 extra data points. A critical assumption for our convergence analysis is the linear separability of data. We left it as a future work to study simplicity bias and global margin maximization without assuming linear separability.

Acknowledgments and Disclosure of Funding

The authors acknowledge support from NSF, ONR, Simons Foundation, DARPA and SRC. ZL is also supported by Microsoft Research PhD Fellowship.

References

Appendix A Theorem Statements for the Non-symmetric Case

Theorem 6.2 is indeed a simple corollary of Theorem A.7 below which holds for a broader class of datasets. Now we illustrate the assumptions one by one.

There exists a unit-norm vector w⋄{\bm{w}}^{\diamond} such that γ⋄:=min⁡i∈[n]yi<w⋄,xi>>0\gamma^{\diamond}:=\min_{i\in[n]}y_{i}\left<{\bm{w}}^{\diamond},{\bm{x}}_{i}\right>>0 and

where P⋄:=I−w⋄w⋄⊤{\bm{P}}^{\diamond}:={\bm{I}}-{\bm{w}}^{\diamond}{{\bm{w}}^{\diamond}}^{\top} is the projection matrix onto the space perpendicular to w⋄{\bm{w}}^{\diamond}, and μ:=1n∑i∈[n]yixi{\bm{\mu}}:=\frac{1}{n}\sum_{i\in[n]}y_{i}{\bm{x}}_{i} is the mean vector of yixiy_{i}{\bm{x}}_{i}.

Indeed, our main theorem is based on a weaker assumption than Assumption A.1, which is Assumption A.2 below, but the geometric meaning of Assumption A.2 is not as clear as Assumption A.1. We will show in Lemma G.1 that Assumption A.1 implies Assumption A.2.

In general, the norms ∥μ+∥2\|{\bm{\mu}}^{+}\|_{2} and ∥μ−∥2\|{\bm{\mu}}^{-}\|_{2} should not be equal: for any given dataset S\mathcal{S}, we can make ∥μ+∥2≠∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}\neq\|{\bm{\mu}}^{-}\|_{2} by adding arbitrarily small perturbations to the data points. This motivates us to assume that ∥μ+∥2≠∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}\neq\|{\bm{\mu}}^{-}\|_{2}. Without loss of generality, we can assume that ∥μ+∥2>∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}>\|{\bm{\mu}}^{-}\|_{2} for convenience (Assumption A.3). When the reverse is true, i.e., ∥μ+∥2<∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}<\|{\bm{\mu}}^{-}\|_{2}, we can change the direction of the inequality by flipping all the labels in the dataset so that our theorems can apply. We include the theorem statements for this reversed case in Section A.3.

The norm of μ+{\bm{\mu}}^{+} is strictly larger than μ−{\bm{\mu}}^{-}, i.e., ∥μ+∥2>∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}>\|{\bm{\mu}}^{-}\|_{2}.

Now we define w+{\bm{w}}^{+} to be the max-margin linear separator of the dataset consisting of (xi+,yi)({\bm{x}}^{+}_{i},y_{i}), where i∈[n]i\in[n], and define γ+\gamma^{+} to be this max margin. That is,

The reason that we care about w+{\bm{w}}^{+} and γ+\gamma^{+} is because that it can be related to margin maximization on one-neuron Leaky ReLU nets. The following lemma is easy to prove.

The third assumption we made is that this margin cannot be obtained when all aia_{i} are negative, regardless of the width. This assumption holds when all the support vectors xi+{\bm{x}}_{i}^{+} have positive labels, i.e., yi=1y_{i}=1. Conceptually, this assumption is about whether nearly all the support vectors have positive labels (or negative labels in the reversed case where ∥μ+∥2<∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}<\|{\bm{\mu}}^{-}\|_{2}).

Similar to Assumption 4.6 in the symmetric case, we need Assumption A.6 on non-branching starting point due to the technical difficulty for the potential non-uniqueness of gradient flow trajectory.

Now we are ready to state our theorem, and we defer the proofs to Appendix G.

A.2 Applying Theorem A.7 to prove Theorem 6.2

We give a proof of Theorem 6.2 here given the result of Theorem A.7.

With a (HH, KK ϵ\epsilon, w⊥{\bm{w}}_{\perp})-Hinted Dataset (Definition 6.1) with proper H,K,ϵH,K,\epsilon, we only need to show that Assumptions A.2, A.3 and A.5 hold for Theorem 6.2. Specifically, we choose the parameters such that

Notice that H0H_{0} is indepenent of HH as the data point x1{\bm{x}}_{1} has projection ∥P∗x1∥2=0\|{\bm{P}}^{*}x_{1}\|_{2}=0. For Assumption A.1, w⋄=w∗{\bm{w}}^{\diamond}={\bm{w}}^{*} is a valid principal direction in this case, as

Then Assumption A.2 follows from Assumption A.1 by Lemma G.1. Since H>n∥μ−∥2+∥∑j>1yjxj+∥2H>n\left\|{\bm{\mu}}^{-}\right\|_{2}+\|\sum_{j>1}y_{j}{\bm{x}}^{+}_{j}\|_{2},

A.3 Results in the Reversed Case

In a reversed case where ∥μ+∥2<∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}<\|{\bm{\mu}}^{-}\|_{2}, we can apply Theorem A.7 by flipping the labels in the dataset. Below we state the assumptions and the theorem in the reversed case.

∥μ+∥2<∥μ−∥2\|{\bm{\mu}}^{+}\|_{2}<\|{\bm{\mu}}^{-}\|_{2}.

Now similarly we define w−{\bm{w}}^{-} and γ−\gamma^{-}.

Appendix B Additional Preliminaries and Lemmas

In this section, we will introduce additional notations and give some preliminary results for the dynamics of the two-layer Leaky ReLU network. The only assumption we will use for the results in the section is that the input norm is bounded max⁡i∈[n]∥xi∥2≤1\max_{i\in[n]}\left\|{\bm{x}}_{i}\right\|_{2}\leq 1 and we do not assume other properties of the dataset (such as symmetry) except we assume it explicitly.

For notational convenience for calculation with subgradients, we generalize the following notations for vectors to vector sets. More specifically, we define

Furthermore, we use the following notations to denote the radial and spherical components of ∂ˉ∘L(θ)\bar{\partial}^{\circ}\mathcal{L}({\bm{\theta}}) (which will be used in analyzing Phase III):

Let ΩS\Omega_{\mathcal{S}} be the set of parameter vectors θ=(w1,…,wm,a1,…,am){\bm{\theta}}=({\bm{w}}_{1},\dots,{\bm{w}}_{m},a_{1},\dots,a_{m}) so that ⟨wk,xi⟩≠0\langle{\bm{w}}_{k},{\bm{x}}_{i}\rangle\neq 0 for all i∈[n],k∈[m]i\in[n],k\in[m], i.e., no activation function has zero input. For any θ∈ΩS{\bm{\theta}}\in\Omega_{\mathcal{S}}, fθ(xi)f_{{\bm{\theta}}}({\bm{x}}_{i}) and L(θ)\mathcal{L}({\bm{\theta}}) are continuously differentiable at θ{\bm{\theta}}, and the gradients are given by

Then the Clarke’s subdifferential for any θ{\bm{\theta}} can be computed from (8) with Ω=ΩS\Omega=\Omega_{\mathcal{S}} if needed.

Recall that GG-function (Section 5.1) is defined by

B.2 Grönwall’s Inequality

We frequently use Grönwall’s inequality in our analysis.

Let α,β,u\alpha,\beta,u be real-valued functions defined on [a,b)[a,b). Suppose that β,u\beta,u are continuous and min⁡{α,0}\min\{\alpha,0\} is integrable on every compact subinterval of [a,b)[a,b). If β≥0\beta\geq 0 and uu satisfies the following inequality for all t∈[a,b)t\in[a,b):

Furthermore, if α\alpha is non-decreasing, then for all t∈[a,b]t\in[a,b],

B.3 Homogeneous Functions

The following is a direct corollary of Lemma B.4.

B.4 Karush-Kuhn-Tucker Conditions for Margin Maximization

We say that θ{\bm{\theta}} is a feasible point if gi(θ)≤0g_{i}({\bm{\theta}})\leq 0 for all i∈[n]i\in[n]. A feasible point θ{\bm{\theta}} is a KKT point if it satisfies Karush-Kuhn-Tucker Conditions: there exist λ1,…,λn≥0\lambda_{1},\dots,\lambda_{n}\geq 0 such that

0∈∂∘f(θ)+∑i∈[n]λi∂∘gi(θ){\bm{0}}\in\partial^{\circ}f({\bm{\theta}})+\sum_{i\in[n]}\lambda_{i}\partial^{\circ}g_{i}({\bm{\theta}});

∀i∈[n]:λigi(θ)=0\forall i\in[n]:\lambda_{i}g_{i}({\bm{\theta}})=0.

θ∈∑i∈[n]λi∂∘qi(θ){\bm{\theta}}\in\sum_{i\in[n]}\lambda_{i}\partial^{\circ}q_{i}({\bm{\theta}});

For all i∈[n]i\in[n], if qi(θ)≠qmin⁡(θ)q_{i}({\bm{\theta}})\neq q_{\min}({\bm{\theta}}) then λi=0\lambda_{i}=0.

For two-layer Leaky ReLU network, qi(θ):=yi∑k∈[m]akϕ(wk⊤xi)q_{i}({\bm{\theta}}):=y_{i}\sum_{k\in[m]}a_{k}\phi({\bm{w}}_{k}^{\top}{\bm{x}}_{i}). Then the KKT-margin direction is defined as follows.

For all k∈[m]k\in[m], wk∈∑i∈[n]λiyiakϕ∘(wk⊤xi)xi{\bm{w}}_{k}\in\sum_{i\in[n]}\lambda_{i}y_{i}a_{k}\phi^{\circ}({\bm{w}}_{k}^{\top}{\bm{x}}_{i}){\bm{x}}_{i};

For all k∈[m]k\in[m], ak=∑i∈[n]λiyiϕ(wk⊤xi)a_{k}=\sum_{i\in[n]}\lambda_{i}y_{i}\phi({\bm{w}}_{k}^{\top}{\bm{x}}_{i});

For all i∈[n]i\in[n], if qi(θ)≠qmin⁡(θ)q_{i}({\bm{\theta}})\neq q_{\min}({\bm{\theta}}) then λi=0\lambda_{i}=0.

For θ{\bm{\theta}} along a KKT-margin direction of two-layer Leaky ReLU network, Lemma B.9 below shows that ∣ak∣=∥wk∥2\lvert a_{k}\rvert=\|{\bm{w}}_{k}\|_{2} for all k∈[m]k\in[m].

By Definition B.8 and Theorem B.3, we have

Therefore ∥wk∥22=∣ak∣2\|{\bm{w}}_{k}\|_{2}^{2}=\lvert a_{k}\rvert^{2}. ∎

B.5 Lemmas for Perturbation Bounds

Writing the formula with respect to wk,ak{\bm{w}}_{k},a_{k}, we have

which completes the proof for θ∈ΩS{\bm{\theta}}\in\Omega_{\mathcal{S}} and thus the same bounds hold for the general case. ∎

Lemma B.11 is a lemma for bounding the partial subderivatives. For the full subgradient, we have the following lemma.

If θ∈ΩS{\bm{\theta}}\in\Omega_{\mathcal{S}}, by (13), there exists δi∈[−∣fθ(xi)∣,∣fθ(xi)∣]\delta_{i}\in[-\lvert f_{{\bm{\theta}}}({\bm{x}}_{i})\rvert,\lvert f_{{\bm{\theta}}}({\bm{x}}_{i})\rvert] for all i∈[n]i\in[n] such that

Writing it with respect to wk{\bm{w}}_{k}, we have

We conclude the proof by noticing that [−2∣fθ(xi)∣,2∣fθ(xi)∣]⊆[−ϵ,ϵ][-2\lvert f_{{\bm{\theta}}}({\bm{x}}_{i})\rvert,2\lvert f_{{\bm{\theta}}}({\bm{x}}_{i})\rvert]\subseteq[-{\epsilon},{\epsilon}] by Lemma B.10. ∎

B.6 Basic Properties of Gradient Flow

The following lemma is a simple corollary from Davis et al. .

For gradient flow θ(t){\bm{\theta}}(t) on a two-layer Leaky ReLU network with logistic loss, we have

The following lemma is from Du et al. . We provide a simple proof here for completeness.

For gradient flow θ(t)=(w1(t),…,wm(t),a1(t),…,am(t)){\bm{\theta}}(t)=({\bm{w}}_{1}(t),\dots,{\bm{w}}_{m}(t),a_{1}(t),\dots,a_{m}(t)) on a two-layer Leaky ReLU network with logistic loss, the following holds for all t≥0t\geq 0,

where qi(θ):=yifθ(xi)q_{i}({\bm{\theta}}):=y_{i}f_{{\bm{\theta}}}({\bm{x}}_{i}). Therefore, ddt(∥wk∥22−∣ak∣2)=0\frac{\textup{{d}}}{\textup{{d}}t}(\|{\bm{w}}_{k}\|_{2}^{2}-\lvert a_{k}\rvert^{2})=0 for all t≥0t\geq 0.

By (9), we have the following for any θ∈ΩS{\bm{\theta}}\in\Omega_{\mathcal{S}},

By 11-homogeneity of ϕ\phi and Theorem B.3, we have ϕ′(wk⊤xi)wk⊤xi=ϕ(wk⊤xi)\phi^{\prime}({\bm{w}}_{k}^{\top}{\bm{x}}_{i}){\bm{w}}_{k}^{\top}{\bm{x}}_{i}=\phi({\bm{w}}_{k}^{\top}{\bm{x}}_{i}), which implies that <wk,∂fθ(x)∂wk>=akϕ(wk⊤xi)\left<{\bm{w}}_{k},\frac{\partial f_{{\bm{\theta}}}({\bm{x}})}{\partial{\bm{w}}_{k}}\right>=a_{k}\phi({\bm{w}}_{k}^{\top}{\bm{x}}_{i}).

By chain rule, for a.e. t≥0t\geq 0 we have

The following lemma shows that if a neuron has zero weights, then it stays with zero weights forever. Conversely, this also implies that the weights stay non-zero if they are initially non-zero.

If ak(t0)=0a_{k}(t_{0})=0 and wk(t0)=0{\bm{w}}_{k}(t_{0})={\bm{0}} at some time t0≥0t_{0}\geq 0, then ak(t)=0a_{k}(t)=0 and wk(t)=0{\bm{w}}_{k}(t)={\bm{0}} for all t≥0t\geq 0.

By Lemma B.16, we know that ∥wk∥2=∣ak∣\|{\bm{w}}_{k}\|_{2}=\lvert a_{k}\rvert hold for all t≥0t\geq 0. Also, we have 12∣d∥wk∥22dt∣=12∣d∣ak∣2dt∣≤C⋅∣ak∣∥wk∥2=C∥wk∥22\frac{1}{2}\left\lvert\frac{\textup{{d}}\|{\bm{w}}_{k}\|_{2}^{2}}{\textup{{d}}t}\right\rvert=\frac{1}{2}\left\lvert\frac{\textup{{d}}\lvert a_{k}\rvert^{2}}{\textup{{d}}t}\right\rvert\leq C\cdot\lvert a_{k}\rvert\|{\bm{w}}_{k}\|_{2}=C\|{\bm{w}}_{k}\|_{2}^{2}, where C>0C>0 is some constant. Then

By Grönwall’s inequality (12) this implies that ∥wk(t)∥2=0\|{\bm{w}}_{k}(t)\|_{2}=0 for all t≥t0t\geq t_{0}. Similarly,

By Grönwall’s inequality (12) again, ∥wk(t)∥2=0\|{\bm{w}}_{k}(t)\|_{2}=0 for all t≤t0t\leq t_{0}, which completes the proof. ∎

A direct corollary of Lemma B.16 and Lemma B.17 is the following characterization in the case where the weights are initially balanced.

If ∣ak∣=∥wk∥2\left\lvert a_{k}\right\rvert=\|{\bm{w}}_{k}\|_{2} initially for t=0t=0, then this equation holds for all t≥0t\geq 0. Moreover,

If ak(0)=∥wk(0)∥2a_{k}(0)=\|{\bm{w}}_{k}(0)\|_{2}, then ak(t)=∥wk(t)∥2a_{k}(t)=\|{\bm{w}}_{k}(t)\|_{2} for all t≥0t\geq 0;

If ak(0)=−∥wk(0)∥2a_{k}(0)=-\|{\bm{w}}_{k}(0)\|_{2}, then ak(t)=−∥wk(t)∥2a_{k}(t)=-\|{\bm{w}}_{k}(t)\|_{2} for all t≥0t\geq 0.

B.7 A Useful Theorem for Loss Convergence

In this section we prove a useful theorem for loss convergence, which will be used later in our analysis for both symmetric and non-symmetric datasets.

Under Assumption 3.2, for any linear seprator w∗{\bm{w}}^{*} of the data with positive linear margin (e.g. yi<w∗,xi>≥γ∗>0y_{i}\left<{\bm{w}}^{*},x_{i}\right>\geq\gamma^{*}>0 for all i∈[n]i\in[n]), if initially there exists k∈[m]k\in[m] such that

then ak(t)≠0a_{k}(t)\neq 0 for all t>0t>0, and L(θ(t))→0\mathcal{L}({\bm{\theta}}(t))\to 0 and ∥θ(t)∥2→+∞\|{\bm{\theta}}(t)\|_{2}\to+\infty as t→+∞t\to+\infty.

Before proving Theorem B.19, we first prove a lemma on gradient lower bounds.

We only need to show that there exists t0t_{0} such that L(θ(t0))<ln⁡2n\mathcal{L}({\bm{\theta}}(t_{0}))<\frac{\ln 2}{n}, then we can apply Theorem 3.1 to show that L(θ(t))→0\mathcal{L}({\bm{\theta}}(t))\to 0. Assume to the contrary that L(θ(t))≥ln⁡2n\mathcal{L}({\bm{\theta}}(t))\geq\frac{\ln 2}{n} for all t≥0t\geq 0. By Lemma B.20,

Lemma B.15 ensures that −dLdt=∥dθdt∥22-\frac{\textup{{d}}\mathcal{L}}{\textup{{d}}t}=\left\|\frac{\textup{{d}}{\bm{\theta}}}{\textup{{d}}t}\right\|_{2}^{2} for a.e. t≥0t\geq 0. Then we have

Integrating on tt from to +∞+\infty, we can see that the LHS is upper bounded by L(θ(0))−ln⁡2n\mathcal{L}({\bm{\theta}}(0))-\frac{\ln 2}{n} while the RHS is unbounded, which leads to a contradiction. Therefore, there exist time t0t_{0} such that L(θ(t0))<ln⁡2n\mathcal{L}({\bm{\theta}}(t_{0}))<\frac{\ln 2}{n}, and thus L(θ(t))→0\mathcal{L}({\bm{\theta}}(t))\to 0 as t→+∞t\to+\infty. ∎

Appendix C Proofs for Linear Maximality for the Symmetric Case

For linearly separable and symmetric data, we show that all global-max-margin directions represent linear functions in Theorem 4.2. We give a proof here.

Now we define A:=∑k∈[m]ak2A:=\sqrt{\sum_{k\in[m]}a_{k}^{2}} and let θ′=(w1′,…,wm′,a1′,…,am′){\bm{\theta}}^{\prime}=({\bm{w}}^{\prime}_{1},\dots,{\bm{w}}^{\prime}_{m},a^{\prime}_{1},\dots,a^{\prime}_{m}) where

Meanwhile, by the Cauchy-Schwarz inequality,

Thus γ(θ′)=qmin⁡(θ′)∥θ′∥22≥γ(θ∗)\gamma({\bm{\theta}}^{\prime})=\frac{q_{\min}({\bm{\theta}}^{\prime})}{\|{\bm{\theta}}^{\prime}\|_{2}^{2}}\geq\gamma({\bm{\theta}}^{*}). As θ∗{\bm{\theta}}^{*} is already a global-max-margin direction, equalities should hold in all the inequalities above, so

There is j∈[n]j\in[n] that yjfθ∗(xj)=−yjfθ∗(−xj)=γ(θ∗)y_{j}f_{{\bm{\theta}}^{*}}({\bm{x}}_{j})=-y_{j}f_{{\bm{\theta}}^{*}}(-{\bm{x}}_{j})=\gamma({\bm{\theta}}^{*}).

Certainly c⊤xj≠0{\bm{c}}^{\top}{\bm{x}}_{j}\neq 0 as otherwise the margin would be zero. Then ∑k∈[m]ak∣ak∣=0\sum_{k\in[m]}a_{k}|a_{k}|=0, which means ∑k:ak≥0ak2=∑k:ak<0ak2=12A2\sum_{k:a_{k}\geq 0}a^{2}_{k}=\sum_{k:a_{k}<0}a^{2}_{k}=\frac{1}{2}A^{2}, and therefore

min⁡i∈[n]yic⊤xi=∥c∥2γw∗\min_{i\in[n]}y_{i}{\bm{c}}^{\top}{\bm{x}}_{i}=\left\|{\bm{c}}\right\|_{2}\gamma_{{\bm{w}}^{*}};

∥c∥21+∥c∥22=12\frac{\left\|{\bm{c}}\right\|_{2}}{1+\left\|{\bm{c}}\right\|_{2}^{2}}=\frac{1}{2}.

Appendix D Proofs for Phase I

In the subsequent sections we first show the proofs for the symmetric datasets under Assumption 4.1. Additional proofs for the non-symmetric counterparts are provided in Appendix G.

By definition and Cauchy-Schwartz inequality,

For initial point θ0≠0{\bm{\theta}}_{0}\neq{\bm{0}}, we have

Appendix E Proofs for Phase II

To prove Lemma 5.3, we start from the following lemma.

Given θ^0:=(w^1,w^2,a^1,a^2)\hat{{\bm{\theta}}}_{0}:=(\hat{{\bm{w}}}_{1},\hat{{\bm{w}}}_{2},\hat{a}_{1},\hat{a}_{2}) with a^1>0\hat{a}_{1}>0 and a^2<0\hat{a}_{2}<0, then θ(t)=πb(φ(θ^0,t)){\bm{\theta}}(t)=\pi_{{\bm{b}}}(\varphi(\hat{{\bm{\theta}}}_{0},t)) is a gradient flow trajectory on L(θ)\mathcal{L}({\bm{\theta}}) starting from θ(0)=πb(θ^0){\bm{\theta}}(0)=\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}_{0}).

For any θ^\hat{{\bm{\theta}}} and g∈∂∘L(θ^){\bm{g}}\in\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}}), πb(g)∈∂∘L(πb(θ^))\pi_{{\bm{b}}}({\bm{g}})\in\partial^{\circ}\mathcal{L}(\pi_{{\bm{b}}}(\hat{{\bm{\theta}}})).

Below we use πb(S)={πb(s):s∈S}\pi_{{\bm{b}}}(S)=\{\pi_{{\bm{b}}}(s):{\bm{s}}\in S\} to denote the embedding of a parameter set.

For every θ^=(w^1,w^2,a^1,a^2)∈ΩS\hat{{\bm{\theta}}}=(\hat{{\bm{w}}}_{1},\hat{{\bm{w}}}_{2},\hat{a}_{1},\hat{a}_{2})\in\Omega_{\mathcal{S}} (i.e., no activation function has zero input), let θ=πb(θ^)=(w1,…,wm,a1,…,am){\bm{\theta}}=\pi_{{\bm{b}}}(\hat{{\bm{\theta}}})=({\bm{w}}_{1},\dots,{\bm{w}}_{m},a_{1},\dots,a_{m}), and clearly θ∈ΩS{\bm{\theta}}\in\Omega_{\mathcal{S}}. Then ∂∘L(θ^)={∇L(θ^)}\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}})=\{\nabla\mathcal{L}(\hat{{\bm{\theta}}})\} and ∂∘L(θ)={∇L(θ)}\partial^{\circ}\mathcal{L}({\bm{\theta}})=\{\nabla\mathcal{L}({\bm{\theta}})\} are the usual differentials. In this case, we can apply the chain rule as

Notice that the embedding preserves the function value,

so ∂fθ(xi)∂θ=πb(∂fθ^(xi)∂θ^)\frac{\partial f_{{\bm{\theta}}}({\bm{x}}_{i})}{\partial{\bm{\theta}}}=\pi_{{\bm{b}}}\left(\frac{\partial f_{\hat{{\bm{\theta}}}}({\bm{x}}_{i})}{\partial\hat{{\bm{\theta}}}}\right). Then from the chain rule above we can see ∇L(θ)=πb(∇L(θ^))\nabla\mathcal{L}({\bm{\theta}})=\pi_{{\bm{b}}}(\nabla\mathcal{L}(\hat{{\bm{\theta}}})), and we proved the lemma in this case.

In the general case, by the definition of Clarke’s subdifferential,

For any θ^n→θ^\hat{{\bm{\theta}}}_{n}\to\hat{{\bm{\theta}}} with θ^n∈ΩS\hat{{\bm{\theta}}}_{n}\in\Omega_{\mathcal{S}}, πb(θ^n)→πb(θ^)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}_{n})\to\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}), and

Taking the convex hull, it follows that πb(∂∘L(θ^))⊆∂∘L(πb(θ^))\pi_{{\bm{b}}}(\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}}))\subseteq\partial^{\circ}\mathcal{L}(\pi_{{\bm{b}}}(\hat{{\bm{\theta}}})), and we finished the proof. ∎

For notations we write θ^(t):=φ(θ^0,t)\hat{{\bm{\theta}}}(t):=\varphi(\hat{{\bm{\theta}}}_{0},t) and θ(t)=πb(θ^(t)){\bm{\theta}}(t)=\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}(t)). Then ddtθ^(t)∈−∂∘L(θ^(t))\frac{\textup{{d}}}{\textup{{d}}t}\hat{{\bm{\theta}}}(t)\in-\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}}(t)) for a.e. tt. At these tt, ddtθ(t)=πb(ddtθ^(t))∈πb(−∂∘L(θ^(t)))\frac{\textup{{d}}}{\textup{{d}}t}{\bm{\theta}}(t)=\pi_{{\bm{b}}}(\frac{\textup{{d}}}{\textup{{d}}t}\hat{{\bm{\theta}}}(t))\in\pi_{{\bm{b}}}(-\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}}(t))). From Lemma E.2 we know πb(∂∘L(θ^(t)))⊆∂∘L(θ(t))\pi_{{\bm{b}}}(\partial^{\circ}\mathcal{L}(\hat{{\bm{\theta}}}(t)))\subseteq\partial^{\circ}\mathcal{L}({\bm{\theta}}(t)). Then ddtθ(t)∈−∂∘L(θ(t))\frac{\textup{{d}}}{\textup{{d}}t}{\bm{\theta}}(t)\in-\partial^{\circ}\mathcal{L}({\bm{\theta}}(t)) for a.e. tt, and therefore θ(t){\bm{\theta}}(t) is indeed a gradient flow trajectory. ∎

By Lemma E.1, πb(φ(θ^0,t))\pi_{{\bm{b}}}(\varphi(\hat{{\bm{\theta}}}_{0},t)) is indeed a gradient flow trajectory. Then, as πb(φ(θ^0,0))=πb(θ^0)\pi_{{\bm{b}}}(\varphi(\hat{{\bm{\theta}}}_{0},0))=\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}_{0}), as well as the fact that θ^0\hat{{\bm{\theta}}}_{0} and πb(θ^0)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}_{0}) are non-branching starting points, the gradient flow trajectory is unique and therefore πb(φ(θ^0,t))=φ(πb(θ^0),t)\pi_{{\bm{b}}}(\varphi(\hat{{\bm{\theta}}}_{0},t))=\varphi(\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}_{0}),t) for all t≥0t\geq 0. ∎

E.2 A General Theorem for Limiting Trajectory Near Zero

We say that θ^:=(w^1,…,w^m,a^1,…,a^m)\hat{{\bm{\theta}}}:=(\hat{{\bm{w}}}_{1},\dots,\hat{{\bm{w}}}_{m},\hat{a}_{1},\dots,\hat{a}_{m}) is a well-aligned parameter vector if it satisfies the following for some 1≤p≤m1\leq p\leq m:

For 1≤k≤p1\leq k\leq p, <w^k,xi>≠0\left<\hat{{\bm{w}}}_{k},{\bm{x}}_{i}\right>\neq 0 for all i∈[n]i\in[n];

For p+1≤k≤mp+1\leq k\leq m, w^k=0\hat{{\bm{w}}}_{k}={\bm{0}}, a^k=0\hat{a}_{k}=0.

Our analysis for Phase I shows that weight vectors approximately align to either of μˉ\bar{{\bm{\mu}}} or −μˉ-\bar{{\bm{\mu}}}, and both of them are maximizers of ∣G(w)∣\lvert G({\bm{w}})\rvert. Therefore, gradient flow goes near a well-aligned parameter vector (with p=mp=m) at the end of Phase I.

The following is the main theorem of this subsection.

Then for all t∈(−∞,t0]t\in(-\infty,t_{0}], the following is true:

lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) exists. This limit is independent of the choice of φ\varphi when the gradient flow may not be unique.

lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) lies near eλtθ^e^{\lambda t}\hat{{\bm{\theta}}}:

Let θ1,θ2,…{\bm{\theta}}_{1},{\bm{\theta}}_{2},\dots be a series of parameters converging to 0{\bm{0}}, r1,r2,…r_{1},r_{2},\dots be a series of positive real numbers converging to . If ∥θs−rsθ^∥2≤Crs1+κ\|{\bm{\theta}}_{s}-r_{s}\hat{{\bm{\theta}}}\|_{2}\leq Cr_{s}^{1+\kappa} for some C>0,κ>0C>0,\kappa>0, then

Now we prove Theorem E.4. Throughout this subsection, we fix a well-aligned parameter vector θ^:=(w^1,…,w^m,a^1,…,a^m)\hat{{\bm{\theta}}}:=(\hat{{\bm{w}}}_{1},\dots,\hat{{\bm{w}}}_{m},\hat{a}_{1},\dots,\hat{a}_{m}) with constant p∈[m]p\in[m]. We also use t0t_{0} and T2(r)T_{2}(r) to denote the same constant t0t_{0} defined by (14) and the same function T2(r):=1λln⁡1rT_{2}(r):=\frac{1}{\lambda}\ln\frac{1}{r} as in Theorem E.4.

For all k∈[p]k\in[p], wk(T2(r)+t)∈W^k{\bm{w}}_{k}(T_{2}(r)+t)\in\widehat{\mathcal{W}}_{k};

within the time interval [0,T2(r)+tmax⁡)[0,T_{2}(r)+t_{\max}) (and thus it also holds for [0,T2(r)+tmax⁡][0,T_{2}(r)+t_{\max}] by continuity), and to show that t0t_{0} is actually equal to tmax⁡t_{\max}, i.e., t0t_{0} is the minimum among t0,t1,t2t_{0},t_{1},t_{2}. It is easy to see that proving these suffice to deduce the original lemma statement, given the translation of time eλT2(r)=1re^{\lambda T_{2}(r)}=\frac{1}{r}.

For k∈[p]k\in[p], ∂∘G(wk)={∇G(wk)}={∇G(w^k)}\partial^{\circ}G({\bm{w}}_{k})=\{\nabla G({\bm{w}}_{k})\}=\{\nabla G(\hat{{\bm{w}}}_{k})\}. Also note that ∇G(w^k)=∇G(w^k∥w^k∥2)=λw^k∥w^k∥2\nabla G(\hat{{\bm{w}}}_{k})=\nabla G(\frac{\hat{{\bm{w}}}_{k}}{\|\hat{{\bm{w}}}_{k}\|_{2}})=\lambda\frac{\hat{{\bm{w}}}_{k}}{\|\hat{{\bm{w}}}_{k}\|_{2}} by Lemma B.5. Then ak∂∘G(wk)={λakw^k∥w^k∥2}a_{k}\partial^{\circ}G({\bm{w}}_{k})=\{\lambda a_{k}\frac{\hat{{\bm{w}}}_{k}}{\|\hat{{\bm{w}}}_{k}\|_{2}}\} and G(wk)=λ<w^k∥w^k∥2,wk>G({\bm{w}}_{k})=\lambda\left<\frac{\hat{{\bm{w}}}_{k}}{\|\hat{{\bm{w}}}_{k}\|_{2}},{\bm{w}}_{k}\right>. Combining these with (15) gives

For p<k≤mp<k\leq m, we can combine Theorem B.3 and (15) to give the following bound for the norm growth:

To prove the lemma, now we only need to show that tmax⁡=t0t_{\max}=t_{0}. Combining (19) and (21), we have for t≤T2(r)+tmax⁡t\leq T_{2}(r)+t_{\max},

For all time 0≤t<T2(r)+tmax⁡0\leq t<T_{2}(r)+t_{\max}, we can use (22) to deduce

For norm growth, we can again use (22) to deduce

Now we have t1>tmax⁡,t2>tmax⁡t_{1}>t_{\max},t_{2}>t_{\max}. Recall that tmax⁡:=min⁡{t0,t1,t2}t_{\max}:=\min\{t_{0},t_{1},t_{2}\} by definition. Then tmax⁡=t0t_{\max}=t_{0} must hold, which completes the proof. ∎

For Λ(t)\Lambda(t), by triangle inequality and Lemma B.5 we have

For Δ(t)\Delta(t), we use triangle inequality again to give the following bound:

At time T2(r)+t∈[0,T2(r)+t0]T_{2}(r)+t\in[0,T_{2}(r)+t_{0}], this bound can be rewritten as

First we show that lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) exists. We consider the case of r≤rmax⁡r\leq r_{\max}, where rmax⁡r_{\max} is chosen to be small enough so that the properties in Lemma E.5 hold. For any r′<rr^{\prime}<r, by Lemma E.5 we have

Note that T2(r′)+1λln⁡r+T2(r)+t=T2(r′)+tT_{2}(r^{\prime})+\frac{1}{\lambda}\ln r+T_{2}(r)+t=T_{2}(r^{\prime})+t. So this proves

For any fixed t≤t0t\leq t_{0}, the RHS converges to as r→0r\to 0, which implies Cauchy convergence of the limit lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) and thus the limit exists. By the 1st property in Lemma E.5, we know that there is no activation pattern switch in the time interval t∈[0,T2(r)+t0]t\in[0,T_{2}(r)+t_{0}] if rr is small enough. This means L\mathcal{L} is locally smooth near the trajectory of φ(rθ^,T2(r)+t)\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) and thus the trajectory is unique. Therefore, the limit lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) is uniquely defined.

Taking r→0r\to 0 on both sides gives the range of the limit lim⁡r→0φ(rθ^,T2(r)+t)\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t):

So lim⁡s→∞φ(θs,T2(rs)+t)=lim⁡r→0φ(rθ^,T2(r)+t)\lim_{s\to\infty}\varphi({\bm{\theta}}_{s},T_{2}(r_{s})+t)=\lim_{r\to 0}\varphi(r\hat{{\bm{\theta}}},T_{2}(r)+t) is proved. ∎

E.3 Proof for Approximate Embedding

To analyze Phase II, we need to deal with approximate embedding instead of the exact one. For this, we further divide Phase II into Phase II.1 and II.2 and analyze them in order. At the end of this subsection we will prove Lemma 5.4.

Given the discussions in the previous sections, we are ready to present proofs for the phase II dynamics (Lemma 5.4) here.

For the mm-neuron dynamics θ(t){\bm{\theta}}(t), the following holds for all t∈(−∞,t0]t\in(-\infty,t_{0}],

Applying Theorem E.4 proves the following for all t∈(−∞,t0]t\in(-\infty,t_{0}]:

E.4 Proofs for Phase II.2

Next, at the end of Phase II.1, θ(T12+t0){\bm{\theta}}(T_{12}+t_{0}) has a constant norm. Then we show the trajectory convergence with respect to the initialization scale in Phase II.2.

We first start with a simple lemma on gradient upper bounds, and then show that the trajectory of gradient flow is Lipschitz with time.

Finally we show that q(t){\bm{q}}(t) is indeed a valid gradient flow trajectory. Notice that q(t){\bm{q}}(t) is (CeT−t0)(Ce^{T-t_{0}})-Lipschitz, then by Rademacher theorem for q(t){\bm{q}}(t) is differentiable for a.e. t∈[t0,T]t\in[t_{0},T]. We are left to show q′(t)∈∂∘L(q(t)){\bm{q}}^{\prime}(t)\in\partial^{\circ}\mathcal{L}({\bm{q}}(t)) whenever q{\bm{q}} is differentiable at tt.

For any ϵ>0\epsilon>0 that [t,t+ϵ]⊆[t0,T][t,t+\epsilon]\subseteq[t_{0},T], we investigate the behaviour of q(t){\bm{q}}(t) in the ϵ\epsilon-neighborhood of tt. Let Ωj\Omega_{j} be the set of τ∈[t0,T]\tau\in[t_{0},T] so that ddτθik(T12+τ)∈−∂∘L(θik(T12+τ))\frac{\textup{{d}}}{\textup{{d}}\tau}{\bm{\theta}}_{i_{k}}(T_{12}+\tau)\in-\partial^{\circ}\mathcal{L}({\bm{\theta}}_{i_{k}}(T_{12}+\tau)). By definition of differential inclusion, Ωj\Omega_{j} has full measure in [t0,T][t_{0},T]. Define Bj,ϵB_{j,\epsilon} be the following closed convex hull:

It is easy to see that Bj,ϵB_{j,\epsilon} is monotonic with respect to jj. Then we know that for any jj,

Then taking the limits j→∞j\to\infty, as all Bj,ϵB_{j,\epsilon} are closed, we know q(t+ϵ)−q(t)ϵ∈lim⁡j→∞Bj,ϵ\frac{{\bm{q}}(t+\epsilon)-{\bm{q}}(t)}{\epsilon}\in\lim_{j\to\infty}B_{j,\epsilon}.

Now let Cj,ϵ,CϵC_{j,\epsilon},C_{\epsilon} be the following closed convex hull of subgradients:

Then we know Bj,ϵ⊆−Cj,ϵB_{j,\epsilon}\subseteq-C_{j,\epsilon} for all j≥1j\geq 1 and ϵ>0\epsilon>0. Notice that Cj,ϵC_{j,\epsilon} and CϵC_{\epsilon} are also monotonic with respect to jj and ϵ\epsilon respectively so we can take the respective limit. As for τ∈[t,t+ϵ]\tau\in[t,t+\epsilon], lim⁡j→∞θij(T12+τ)=q(T12+τ)\lim_{j\to\infty}{\bm{\theta}}_{i_{j}}(T_{12}+\tau)={\bm{q}}(T_{12}+\tau), by the upper-semicontinuity of ∂∘L\partial^{\circ}\mathcal{L}, lim⁡j→∞Cj,ϵ⊆Cϵ\lim_{j\to\infty}C_{j,\epsilon}\subseteq C_{\epsilon}. Then q(t+ϵ)−q(t)ϵ∈lim⁡j→∞Bj,ϵ⊆lim⁡j→∞Cj,ϵ⊆Cϵ\frac{{\bm{q}}(t+\epsilon)-{\bm{q}}(t)}{\epsilon}\in\lim\limits_{j\to\infty}B_{j,\epsilon}\subseteq\lim\limits_{j\to\infty}C_{j,\epsilon}\subseteq C_{\epsilon}.

When t∈[t0,T)t\in[t_{0},T) and q(t){\bm{q}}(t) is differential at tt, we can take the limit ϵ→0\epsilon\to 0, and by the upper-semicontinuity of ∂∘L\partial^{\circ}\mathcal{L} again, we have

as ∂∘L(q(T12+t))\partial^{\circ}\mathcal{L}({\bm{q}}(T_{12}+t)) is closed convex for any tt. Therefore q(t){\bm{q}}(t) is indeed a gradient flow trajectory. ∎

Appendix F Proofs for Phase III

In this subsection we prove Theorem 5.5 for the symmetric datasets. By Theorem B.19 and Theorem 3.1, we know that gradient flow must converge in a KKT-margin direction of width-22 two-layer Leaky ReLU network (Definition B.8). Thus we first give some characterizations for KKT-margin directions by proving Lemma F.1 and Lemma F.2.

for all Clarke’s sub-differentials hi(1)∈ϕ∘(⟨u1,xi⟩),hi(2)∈ϕ∘(−⟨u2,xi⟩)h^{(1)}_{i}\in\phi^{\circ}(\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle),h^{(2)}_{i}\in\phi^{\circ}(-\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle).

We prove by cases for any fixed i∈[n]i\in[n]. By Assumption 4.1 we have

Otherwise, hi(1)≠hi(2)h^{(1)}_{i}\neq h^{(2)}_{i}, then we have hi(1)⟨u2,xi⟩=ϕ(⟨u2,xi⟩)h^{(1)}_{i}\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle=\phi(\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle), hi(2)⟨u1,xi⟩=−ϕ(−⟨u1,xi⟩)h^{(2)}_{i}\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=-\phi(-\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle), and thus

Suppose that ⟨u1,xi⟩=0\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=0 or ⟨u2,xi⟩=0\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle=0. WLOG we assume that ⟨u1,xi⟩=0\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=0 (the case of ⟨u2,xi⟩=0\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle=0 can be proved similarly). Then we have

If (w1,w2,a1,a2)({\bm{w}}_{1},{\bm{w}}_{2},a_{1},a_{2}) is along a KKT-margin direction of width-22 two-layer Leaky ReLU network and a1>0,a2<0a_{1}>0,a_{2}<0, then w1=−w2{\bm{w}}_{1}=-{\bm{w}}_{2}, a1=−a2=∥w1∥2a_{1}=-a_{2}=\|{\bm{w}}_{1}\|_{2}.

w1=a1∑i∈[n]λiyihi(1)xi{\bm{w}}_{1}=a_{1}\sum_{i\in[n]}\lambda_{i}y_{i}h^{(1)}_{i}{\bm{x}}_{i}, w2=a2∑i∈[n]λiyihi(2)xi{\bm{w}}_{2}=a_{2}\sum_{i\in[n]}\lambda_{i}y_{i}h^{(2)}_{i}{\bm{x}}_{i};

a1=∥w1∥2a_{1}=\|{\bm{w}}_{1}\|_{2}, a2=−∥w2∥2a_{2}=-\|{\bm{w}}_{2}\|_{2};

For all i∈[n]i\in[n], if qi(θ)≠1q_{i}({\bm{\theta}})\neq 1 then λi=0\lambda_{i}=0.

Let u1=a1w1{\bm{u}}_{1}=a_{1}{\bm{w}}_{1} and u2=−a2w2{\bm{u}}_{2}=-a_{2}{\bm{w}}_{2}. Let uˉ1:=u1∥u1∥2,uˉ2:=−u2∥u2∥2\bar{{\bm{u}}}_{1}:=\frac{{\bm{u}}_{1}}{\|{\bm{u}}_{1}\|_{2}},\bar{{\bm{u}}}_{2}:=-\frac{{\bm{u}}_{2}}{\|{\bm{u}}_{2}\|_{2}}. Then the following conditions hold for all i∈[n]i\in[n]:

By homogeneity, hi(1)⋅⟨u1,xi⟩=ϕ(⟨u1,xi⟩),hi(2)⋅⟨u2,xi⟩=−ϕ(−⟨u2,xi⟩)h^{(1)}_{i}\cdot\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=\phi(\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle),h^{(2)}_{i}\cdot\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle=-\phi(-\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle). Left-multiplying (u1)⊤({\bm{u}}_{1})^{\top} or (u2)⊤({\bm{u}}_{2})^{\top} on both sides of (25), we have

where the last inequality is due to Lemma F.1. Since we have deduced that ∥u1∥2+∥u2∥2=∑i=1nλi\|{\bm{u}}_{1}\|_{2}+\|{\bm{u}}_{2}\|_{2}=\sum_{i=1}^{n}\lambda_{i}, we further have

Combining this with ⟨uˉ1,uˉ2⟩≤∥uˉ1∥2∥uˉ2∥2≤1\langle\bar{{\bm{u}}}_{1},\bar{{\bm{u}}}_{2}\rangle\leq\|\bar{{\bm{u}}}_{1}\|_{2}\|\bar{{\bm{u}}}_{2}\|_{2}\leq 1, we have 1≤⟨uˉ1,uˉ2⟩≤11\leq\langle\bar{{\bm{u}}}_{1},\bar{{\bm{u}}}_{2}\rangle\leq 1. So all the inequalities become equalities, and thus uˉ1=uˉ2\bar{{\bm{u}}}_{1}=\bar{{\bm{u}}}_{2}. (36) also equals to (37), so

By (27), we have yi(hi(1)⟨u1,xi⟩+hi(2)⟨u2,xi⟩)=1y_{i}\left(h^{(1)}_{i}\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle+h^{(2)}_{i}\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle\right)=1 whenever λi≠0\lambda_{i}\neq 0. Combining this with (38), we have

Then we prove that ⟨u1,xi⟩=⟨u2,xi⟩\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle by discussing two cases:

If ⟨u1,xi⟩=0\langle{\bm{u}}_{1},{\bm{x}}_{i}\rangle=0, then ⟨u2,xi⟩=0\langle{\bm{u}}_{2},{\bm{x}}_{i}\rangle=0 since uˉ1=uˉ2\bar{{\bm{u}}}_{1}=\bar{{\bm{u}}}_{2};

This means u1{\bm{u}}_{1} and u2{\bm{u}}_{2} have the same projection onto the linear space spanned by {xi:λi≠0}\{{\bm{x}}_{i}:\lambda_{i}\neq 0\}. By (25) and (26), u1{\bm{u}}_{1} and u2{\bm{u}}_{2} are in the span of {xi:i∈[n],λi≠0}\{{\bm{x}}_{i}:i\in[n],\lambda_{i}\neq 0\}. Therefore, u1=u2{\bm{u}}_{1}={\bm{u}}_{2} and we can easily deduce that w1=−w2{\bm{w}}_{1}=-{\bm{w}}_{2}, a1=−a2=∥w1∥2a_{1}=-a_{2}=\|{\bm{w}}_{1}\|_{2}. ∎

If θ=(w1,w2,a1,a2){\bm{\theta}}=({\bm{w}}_{1},{\bm{w}}_{2},a_{1},a_{2}) is along a KKT-margin direction of width-22 two-layer Leaky ReLU network and ∥θ∥2=1\left\|{\bm{\theta}}\right\|_{2}=1, a1≥0a_{1}\geq 0 and a2≤0a_{2}\leq 0, then one of the following three cases is true:

θ=12(w∗,−w∗,1,−1){\bm{\theta}}=\frac{1}{2}({\bm{w}}^{*},-{\bm{w}}^{*},1,-1);

θ=12(w∗,0,1,0){\bm{\theta}}=\frac{1}{\sqrt{2}}({\bm{w}}^{*},{\bm{0}},1,0);

θ=12(0,−w∗,0,−1){\bm{\theta}}=\frac{1}{\sqrt{2}}({\bm{0}},-{\bm{w}}^{*},0,-1).

Suppose a1>0a_{1}>0 and a2<0a_{2}<0, then by Lemma F.2, we know w1=−w2{\bm{w}}_{1}=-{\bm{w}}_{2}, a1=−a2=∥w1∥2a_{1}=-a_{2}=\|{\bm{w}}_{1}\|_{2}. Since qi(θ)>0,∀iq_{i}({\bm{\theta}})>0,\forall i, we know <w1,xi>≠0,∀i\left<{\bm{w}}_{1},{\bm{x}}_{i}\right>\neq 0,\forall i, which implies qi(θ)q_{i}({\bm{\theta}}) is differentiable at θ{\bm{\theta}}. Let θ′=(w1,a1){\bm{\theta}}^{\prime}=({\bm{w}}_{1},a_{1}) and [θ′;−θ′]=(w1,−w1,a1,−a1)[{\bm{\theta}}^{\prime};-{\bm{\theta}}^{\prime}]=({\bm{w}}_{1},-{\bm{w}}_{1},a_{1},-a_{1}), we know θ′{\bm{\theta}}^{\prime} is along the KKT direction of the following optimization problem:

By Theorem B.19 and Theorem 3.1, we know lim⁡t→+∞θ(t)∥θ(t)∥2\lim_{t\to+\infty}\frac{{\bm{\theta}}(t)}{\|{\bm{\theta}}(t)\|_{2}} must be along a KKT-margin direction. By Lemma F.3, we know that there are only 33 KKT-margin directions:

Thus it suffices to show lim⁡t→+∞θ(t)∥θ(t)∥2≠12(w∗,0,1,0)\lim_{t\to+\infty}\frac{{\bm{\theta}}(t)}{\|{\bm{\theta}}(t)\|_{2}}\neq\frac{1}{\sqrt{2}}({\bm{w}}^{*},\bm{0},1,0). (lim⁡t→+∞θ(t)∥θ(t)∥2≠12(w∗,0,1,0)\lim_{t\to+\infty}\frac{{\bm{\theta}}(t)}{\|{\bm{\theta}}(t)\|_{2}}\neq\frac{1}{\sqrt{2}}({\bm{w}}^{*},\bm{0},1,0) would hold for the same reason.)

For convenience, we define i′:=i+n/2i^{\prime}:=i+n/2 if 1≤i≤n/21\leq i\leq n/2 and i′:=i−n/2i^{\prime}:=i-n/2 if n/2<i≤nn/2<i\leq n. By Assumption 4.1 we know that xi′=−xi{\bm{x}}_{i^{\prime}}=-{\bm{x}}_{i} and yi′=−yiy_{i^{\prime}}=-y_{i}.

We first define the angle between w∗{\bm{w}}^{*} and w1(t){\bm{w}}_{1}(t) as β1(t):=arccos⁡<w∗,w1(t)>∥w1(t)∥2\beta_{1}(t):=\arccos\frac{\left<{\bm{w}}^{*},{\bm{w}}_{1}(t)\right>}{\|{\bm{w}}_{1}(t)\|_{2}} and angle between −w∗-{\bm{w}}^{*} and w2(t){\bm{w}}_{2}(t) as β2(t):=arccos⁡<−w∗,w2(t)>∥w2(t)∥2\beta_{2}(t):=\arccos\frac{\left<-{\bm{w}}^{*},{\bm{w}}_{2}(t)\right>}{\|{\bm{w}}_{2}(t)\|_{2}}. Since <w∗,w1(0)>>0\left<{\bm{w}}^{*},{\bm{w}}_{1}(0)\right>>0 and <−w∗,w2(0)>>0\left<-{\bm{w}}^{*},{\bm{w}}_{2}(0)\right>>0, by Lemma B.20 we know that β1(t),β2(t)∈[0,π/2)\beta_{1}(t),\beta_{2}(t)\in[0,\pi/2) for all t≥0t\geq 0.

We also define ϵ:=min⁡i∈[n]{arcsin⁡<yixi,w∗>∥xi∥2}{\epsilon}:=\min_{i\in[n]}\left\{\arcsin\frac{\left<y_{i}{\bm{x}}_{i},{\bm{w}}^{*}\right>}{\|{\bm{x}}_{i}\|_{2}}\right\}, which can be understood as the angle between xi{\bm{x}}_{i} and the decision boundary determined by the linear separator w∗{\bm{w}}^{*}.

Below we will prove by contradiction. Suppose lim⁡t→+∞θ(t)∥θ(t)∥2=12(w∗,0,1,0)=:θˉ∞\lim_{t\to+\infty}\frac{{\bm{\theta}}(t)}{\left\|{\bm{\theta}}(t)\right\|_{2}}=\frac{1}{\sqrt{2}}({\bm{w}}^{*},{\bm{0}},1,0)=:\bar{{\bm{\theta}}}_{\infty} holds. Then β1(t)→0\beta_{1}(t)\to 0 and ∥w2(t)∥2∥w1(t)∥2→0\frac{\|{\bm{w}}_{2}(t)\|_{2}}{\|{\bm{w}}_{1}(t)\|_{2}}\to 0 as t→+∞t\to+\infty. Thus there must exist T1>0T_{1}>0 such that β1(t)≤ϵ/2\beta_{1}(t)\leq\epsilon/2.

Note that fθˉ∞(xi)=12ϕ(⟨xi,w∗⟩)f_{\bar{{\bm{\theta}}}_{\infty}}({\bm{x}}_{i})=\frac{1}{2}\phi(\langle{\bm{x}}_{i},{\bm{w}}^{*}\rangle) for all i∈[n]i\in[n]. By symmetry, for i∈[n/2]i\in[n/2] we have

We will use these to show that <w2(t),−w∗><w1(t),w∗>\frac{\left<{\bm{w}}_{2}(t),-{\bm{w}}^{*}\right>}{\left<{\bm{w}}_{1}(t),{\bm{w}}^{*}\right>} is non-decreasing for t≥T:=max⁡{T1,T2}t\geq T:=\max\{T_{1},T_{2}\}, which further implies ∥w2(t)∥2∥w1(t)∥2\frac{\|{\bm{w}}_{2}(t)\|_{2}}{\|{\bm{w}}_{1}(t)\|_{2}} is lower bounded by some constant. Thus it contradicts with the assumption of convergence.

By Corollary B.18, we know that a1(t)=∥w1(t)∥2a_{1}(t)=\|{\bm{w}}_{1}(t)\|_{2} and a2(t)=−∥w2(t)∥2a_{2}(t)=-\|{\bm{w}}_{2}(t)\|_{2} for all t≥0t\geq 0. Then for all i∈[n]i\in[n], we have

By (10), if w1(t),w2(t)∈ΩS{\bm{w}}_{1}(t),{\bm{w}}_{2}(t)\in\Omega_{\mathcal{S}} then we have

where σi(k)(t):=gi(θ(t))ϕ′(wk⊤(t)xi)+gi′(θ(t))ϕ′(−wk⊤(t)xi)\sigma^{(k)}_{i}(t):=g_{i}({\bm{\theta}}(t))\phi^{\prime}({\bm{w}}_{k}^{\top}(t){\bm{x}}_{i})+g_{i^{\prime}}({\bm{\theta}}(t))\phi^{\prime}(-{\bm{w}}_{k}^{\top}(t){\bm{x}}_{i}). Note that this only holds for wk(t)∈ΩS{\bm{w}}_{k}(t)\in\Omega_{\mathcal{S}}. By taking limits through (8), we know that for a.e. t≥0t\geq 0, there exists σi(k)(t)\sigma^{(k)}_{i}(t) such that (39) holds and

By chain rule, for a.e. t≥0t\geq 0 we have:

Now we are ready to prove ddtln⁡⟨w2,−w∗⟩⟨w1,w∗⟩≥0\frac{\textup{{d}}}{\textup{{d}}t}\ln\frac{\langle{\bm{w}}_{2},-{\bm{w}}^{*}\rangle}{\langle{\bm{w}}_{1},{\bm{w}}^{*}\rangle}\geq 0 for t≥Tt\geq T. For this, we only need to show that σi(2)cos⁡β2≥σi(1)cos⁡β1\frac{\sigma^{(2)}_{i}}{\cos\beta_{2}}\geq\frac{\sigma^{(1)}_{i}}{\cos\beta_{1}} in two cases.

By (40), we therefore have σi(1)≤σi(2)\sigma^{(1)}_{i}\leq\sigma^{(2)}_{i}.

If β1≥β2\beta_{1}\geq\beta_{2}, then by our choice of T1T_{1} we have ϵ/2≥β1≥β2\epsilon/2\geq\beta_{1}\geq\beta_{2}. Then for all i∈[n/2]i\in[n/2], w2⊤xi≤0{\bm{w}}_{2}^{\top}{\bm{x}}_{i}\leq 0. So we have

Thus σi(2)cos⁡β2≥σi(1)cos⁡β1\frac{\sigma^{(2)}_{i}}{\cos\beta_{2}}\geq\frac{\sigma^{(1)}_{i}}{\cos\beta_{1}}.

Now we have shown that ⟨w2(t),−w∗⟩⟨w1(t),w∗⟩≥⟨w2(T),−w∗⟩⟨w1(T),w∗⟩=:r0\frac{\langle{\bm{w}}_{2}(t),-{\bm{w}}^{*}\rangle}{\langle{\bm{w}}_{1}(t),{\bm{w}}^{*}\rangle}\geq\frac{\langle{\bm{w}}_{2}(T),-{\bm{w}}^{*}\rangle}{\langle{\bm{w}}_{1}(T),{\bm{w}}^{*}\rangle}=:r_{0}, where r0r_{0} is a constant (ratio at time TT). So for t≥Tt\geq T,

is lower bounded, which contradicts with lim⁡t→+∞θ(t)∥θ(t)∥2=12(w∗,0,1,0)\lim_{t\to+\infty}\frac{{\bm{\theta}}(t)}{\left\|{\bm{\theta}}(t)\right\|_{2}}=\frac{1}{\sqrt{2}}({\bm{w}}^{*},{\bm{0}},1,0). ∎

F.2 Directional Convergence of L𝐿L-homogeneous Neural Nets

Define ζ(t):=∫0t∥ddτθ(τ)∥θ(τ)∥2∥2dτ\zeta(t):=\int_{0}^{t}\left\|\frac{\textup{{d}}}{\textup{{d}}\tau}\frac{{\bm{\theta}}(\tau)}{\|{\bm{\theta}}(\tau)\|_{2}}\right\|_{2}\textup{{d}}\tau to be the length of the trajectory swept by θ/∥θ∥2{\bm{\theta}}/\|{\bm{\theta}}\|_{2} from time to tt. Define β(t)\beta(t) to be the cosine of the angle between θ(t){\bm{\theta}}(t) and dθ(t)dt\frac{\textup{{d}}{\bm{\theta}}(t)}{\textup{{d}}t}.

We leverage the following two lemmas from Ji and Telgarsky [2020a] on desingularizing function. Formally, we say that Ψ:[0,ν)\Psi:[0,\nu) is a desingularizing function if Ψ\Psi is continuous on [0,ν)[0,\nu) with Ψ(0)=0\Psi(0)=0 and continuously differentiable on (0,ν)(0,\nu) with Ψ′>0\Psi^{\prime}>0.

Given a locally Lipschitz definable function ff with an open domain D⊆{θ:∥θ∥2>1}D\subseteq\{{\bm{\theta}}:\|{\bm{\theta}}\|_{2}>1\}, for any c,η>0c,\eta>0, there exists ν>0\nu>0 and a definable desingularizing function Ψ\Psi on [0,ν)[0,\nu) such that

Given a locally Lipschitz definable function ff with an open domain D⊆{θ:∥θ∥2>1}D\subseteq\{{\bm{\theta}}:\|{\bm{\theta}}\|_{2}>1\}, for any λ>0\lambda>0, there exists ν>0\nu>0 and a definable desingularizing function Ψ\Psi on [0,ν)[0,\nu) such that

For β(θ)\beta({\bm{\theta}}), we have the following lemma from Lyu and Li .

F.2.2 Characterizing Margin Maximization with Asymptotic Clarke Critical Value

Before proving Theorem 5.6, we first prove the following theorem that characterizes margin maximization using asymptotic Clarke critical value.

Combining these proves that ∥θj∥2⋅∥gj∥2→0\|{\bm{\theta}}_{j}\|_{2}\cdot\|{\bm{g}}_{j}\|_{2}\to 0. ∎

F.2.3 Proof for Theorem 5.6

Given Lemmas F.4 and F.5 from Ji and Telgarsky [2020a], we have the following inequality around any direction.

Since Ψ1′(x)−Ψ2′(x)\Psi^{\prime}_{1}(x)-\Psi^{\prime}_{2}(x) is definable, there exists a sufficiently small constant ν>0\nu>0 such that either Ψ1′(x)−Ψ2′(x)≥0\Psi^{\prime}_{1}(x)-\Psi^{\prime}_{2}(x)\geq 0 holds for all x∈[0,ν)x\in[0,\nu), or Ψ1′(x)−Ψ2′(x)≤0\Psi^{\prime}_{1}(x)-\Psi^{\prime}_{2}(x)\leq 0 holds for all x∈[0,ν)x\in[0,\nu). This means either Ψ1′(x)≥Ψ2′(x)\Psi^{\prime}_{1}(x)\geq\Psi^{\prime}_{2}(x) for all x∈[0,ν)x\in[0,\nu) or Ψ2′(x)≥Ψ1′(x)\Psi^{\prime}_{2}(x)\geq\Psi^{\prime}_{1}(x) for all x∈[0,ν)x\in[0,\nu). Let Ψ(x)=Ψ1(x)\Psi(x)=\Psi_{1}(x) in the former case and Ψ(x)=Ψ2(x)\Psi(x)=\Psi_{2}(x) in the latter case. Then Ψ′(x)≥Ψ1′(x)\Psi^{\prime}(x)\geq\Psi^{\prime}_{1}(x) and Ψ′(x)≥Ψ2′(x)\Psi^{\prime}(x)\geq\Psi^{\prime}_{2}(x), and thus both Items 1 and 2 hold. ∎

Now we prove the following lemma, which will directly lead to Theorem 5.6. The core idea of the proof is essentially the same as that for Lemma 3.3 in Ji and Telgarsky [2020a]. The key difference here is that the desingularizing function Ψ\Psi in their lemma has dependence on the initial point, while our lemma does not have such dependence.

Fix an arbitrary κ∈(L/2,L)\kappa\in(L/2,L). Let Ψ\Psi be the desingularizing function on [0,ν)[0,\nu) obtained from Lemma F.10. WLOG, we can make ν<γ(θˉ∗)/2\nu<\gamma(\bar{{\bm{\theta}}}^{\ast})/2.

where c=max⁡{2,γ(θˉ∗)2ln⁡n+1}c=\max\left\{2,\frac{\gamma(\bar{{\bm{\theta}}}^{\ast})}{2\ln n+1}\right\}.

We consider two cases, where assume (42) is true in Case 1 and (42) is not true in Case 2. According to our choice of ρ0\rho_{0} and the monotonicity of ∥θ(t)∥2\|{\bm{\theta}}(t)\|_{2}, we have ∥θ(t)∥2L−κ≥ρ0L−κ≥4ln⁡n+2γ(θˉ∗)\|{\bm{\theta}}(t)\|_{2}^{L-\kappa}\geq\rho_{0}^{L-\kappa}\geq\frac{4\ln n+2}{\gamma(\bar{{\bm{\theta}}}^{\ast})}, and thus γ(θˉ∗)4ln⁡n+2∥θ(t)∥2L−κ≥1\frac{\gamma(\bar{{\bm{\theta}}}^{\ast})}{4\ln n+2}\|{\bm{\theta}}(t)\|_{2}^{L-\kappa}\geq 1. This means

For any t≥0t\geq 0, if dθ(t)dt=−∂ˉ∘L(θ(t))\frac{\textup{{d}}{\bm{\theta}}(t)}{\textup{{d}}t}=-\bar{\partial}^{\circ}\mathcal{L}({\bm{\theta}}(t)) and (42) does not hold for θ(t){\bm{\theta}}(t), i.e.,

By the chain rule and Lemma C.5 in Ji and Telgarsky [2020a],

Putting (51), (52) and (56) together gives

where the last equality is due to dζ(t)dt=1∥θ(t)∥2∥∂ˉ⊥∘L(θ(t))∥2\frac{\textup{{d}}\zeta(t)}{\textup{{d}}t}=\frac{1}{\|{\bm{\theta}}(t)\|_{2}}\left\|\bar{\partial}^{\circ}_{\perp}\mathcal{L}({\bm{\theta}}(t))\right\|_{2}. Applying (44) gives

For a.e. t≥0t\geq 0, θ(t){\bm{\theta}}(t) lies in either Case 1 or Case 2, so (46) holds, and we can rewrite it as

By Lemma F.11, we can choose ϵ0,ρ0\epsilon_{0},\rho_{0} such that

If T=+∞T=+\infty, then (57) implies that θ(t)∥θ(t)∥2\frac{{\bm{\theta}}(t)}{\|{\bm{\theta}}(t)\|_{2}} converges to some θˉ\bar{{\bm{\theta}}} as t→+∞t\to+\infty, and ∥θˉ−θˉ∗∥2≤δ\|\bar{{\bm{\theta}}}-\bar{{\bm{\theta}}}^{\ast}\|_{2}\leq\delta if δ(ϵ0,ρ0)≤δ\delta(\epsilon_{0},\rho_{0})\leq\delta.

F.3 Proof for Theorem 4.3

Appendix G Trajectory-based Analysis for Non-symmetric Case

The proofs for the non-symmetric case follow similar manners from phase I to phase III. The high-level idea is to show the following in the 3 phases:

In Phase I, every weight vector wk{\bm{w}}_{k} in the first layer moves towards the direction of either μ+{\bm{\mu}}^{+} or −μ−-{\bm{\mu}}^{-}. At the end of Phase I the weight vectors towards −μ−-{\bm{\mu}}^{-} have much smaller norms than those towards μ+{\bm{\mu}}^{+}, thereby becoming negligible.

In Phase II, we show that the dynamics of θ(t){\bm{\theta}}(t) is close to a one-neuron dynamic (after embedding) for a long time.

In Phase III, we show that the one-neuron classifier converges to the max-margin solution among one-neuron neural nets (while the embedded classifier may have suboptimal margin among mm-neuron neural nets), and the gradient flow θ(t){\bm{\theta}}(t) on the mm-neuron neural net gets stuck at a KKT-direction near this embedded classifier.

In this section we highlight the additional notations that allow us to adapt the results from previous sections. For δ≥0\delta\geq 0, define Cδ{\mathcal{C}^{\delta}} to be the convex cone containing all the unit weight vectors that have δ\delta margin over the dataset {(xi,yi)}i∈[n]\{({\bm{x}}_{i},y_{i})\}_{i\in[n]}.

We use μˉ+:=μ+∥μ+∥2\bar{{\bm{\mu}}}^{+}:=\frac{{\bm{\mu}}^{+}}{\|{\bm{\mu}}^{+}\|_{2}}, μˉ−:=μ−∥μ−∥2\bar{{\bm{\mu}}}^{-}:=\frac{{\bm{\mu}}^{-}}{\|{\bm{\mu}}^{-}\|_{2}} to denote μ+{\bm{\mu}}^{+}, μ−{\bm{\mu}}^{-} after normalization. Similar to Kϵ\mathcal{K}^{{\epsilon}}, we define M+ϵ\mathcal{M}^{{\epsilon}}_{+} and M−ϵ\mathcal{M}^{{\epsilon}}_{-} as the perturbed versions of μ+{\bm{\mu}}^{+} and μ−{\bm{\mu}}^{-} in the sense that M+:={λμ+:λ>0}\mathcal{M}_{+}:=\{\lambda{\bm{\mu}}^{+}:\lambda>0\} and M−:={λμ−:λ>0}\mathcal{M}_{-}:=\{\lambda{\bm{\mu}}^{-}:\lambda>0\}.

G.2 More about Our Assumptions

The following lemma shows that Assumption A.1 is a weaker assumption than Assumption A.2.

Let w⋄{\bm{w}}^{\diamond} be the principal direction defined in Assumption A.1. We can decompose μ=μ⊥+μ∥{\bm{\mu}}={\bm{\mu}}_{\perp}+{\bm{\mu}}_{\scriptscriptstyle\parallel}, where μ∥{\bm{\mu}}_{\scriptscriptstyle\parallel} is the along the direction of w⋄{\bm{w}}^{\diamond} and μ⊥{\bm{\mu}}_{\perp} is orthogonal to w⋄{\bm{w}}^{\diamond}. Assumption A.1 implies that for all i,j∈[n]i,j\in[n],

On the other hand, recall that γ⋄:=min⁡i∈[n]yi<w⋄,xi>\gamma^{\diamond}:=\min_{i\in[n]}y_{i}\left<{\bm{w}}^{\diamond},{\bm{x}}_{i}\right>, then we have

Lemma G.2 gives the main property we will use from Assumption A.2, i.e. K⊆C˚\mathcal{K}\subseteq\mathring{{\mathcal{C}}}.

Therefore we have the following equivalence:

Lemma G.2 shows that every direction in K\mathcal{K} has non-zero margin. Below we let the δ\delta be the minimum of the margin of unit-norm linear separators in K\mathcal{K}:

By (58) we have δ>0\delta>0, and thus K⊆Cδ\mathcal{K}\subseteq{\mathcal{C}^{\delta}}.

G.3 Phase I

The overall result we will prove for phase I in the non-symmetric case is Lemma G.5. Compared to the symmetric case, even GG function is not linear anymore. Recall GG is defined as below:

For any dataset {(xi,yi)}i∈[n]\{({\bm{x}}_{i},y_{i})\}_{i\in[n]} satisfying Assumption A.2, suppose w(0)≠λμ−, ∀λ≥0{\bm{w}}(0)\neq\lambda{\bm{\mu}}^{-},\ \forall\lambda\geq 0, and it holds that

then there exists T0>0T_{0}>0, such that w(T0)∈Cδ/2{\bm{w}}(T_{0})\in{\mathcal{C}^{\delta/2}}.

However, in the realistic setting, each wk{\bm{w}}_{k} is not following gradient flow of GG exactly — there are tiny correlations between different wk{\bm{w}}_{k}. And we will control those correlations by setting initialization very small. This yields Lemma G.4.

Under Assumption A.2, if θˉ=(wˉ1,…,wˉm,aˉ1,…,aˉm)\bar{{\bm{\theta}}}=(\bar{{\bm{w}}}_{1},\dots,\bar{{\bm{w}}}_{m},\bar{a}_{1},\dots,\bar{a}_{m}) satisfies the following three conditions:

For all k∈[m]k\in[m], ∣aˉk∣=∥wˉk∥2≠0\lvert\bar{a}_{k}\rvert=\|\bar{{\bm{w}}}_{k}\|_{2}\neq 0;

If aˉk>0\bar{a}_{k}>0, then wˉk≠λμ−\bar{{\bm{w}}}_{k}\neq\lambda{\bm{\mu}}^{-} for any λ>0\lambda>0;

If aˉk<0\bar{a}_{k}<0, then wˉk≠−λμ+\bar{{\bm{w}}}_{k}\neq-\lambda{\bm{\mu}}^{+} for any λ>0\lambda>0;

By definitions of M+\mathcal{M}_{+} and M−\mathcal{M}_{-}, it holds that ∀k∈[m]\forall k\in[m],

By the continuity of the distance function, there exists ϵ2>0{\epsilon}_{2}>0 such that ∀ϵ∈(0,ϵ2)\forall{\epsilon}\in(0,{\epsilon}_{2}), it holds that

where the inequality is because dwkdt⊆akHϵ⊆akC2δ/3\frac{\textup{{d}}{\bm{w}}_{k}}{\textup{{d}}t}\subseteq a_{k}\mathcal{H}^{{\epsilon}}\subseteq a_{k}{\mathcal{C}^{2\delta/3}} and ⟨dwkdt,wk∥wk∥2⟩≤∥dwkdt∥2\langle\frac{\textup{{d}}{\bm{w}}_{k}}{\textup{{d}}t},\frac{{\bm{w}}_{k}}{\left\|{\bm{w}}_{k}\right\|_{2}}\rangle\leq\left\|\frac{\textup{{d}}{\bm{w}}_{k}}{\textup{{d}}t}\right\|_{2}.

Finally, by (63), it suffices to pick A=e−T0min⁡k∈[m]∥wˉk∥2A=e^{-T_{0}}\min_{k\in[m]}\left\|\bar{{\bm{w}}}_{k}\right\|_{2} and B=eT0max⁡k∈[m]∥wˉk∥2B=e^{T_{0}}\max_{k\in[m]}\left\|\bar{{\bm{w}}}_{k}\right\|_{2}. ∎

G.3.2 Proof of Lemma G.5

Let M+:=[0μ+(μ+)⊤0]{\bm{M}}_{+}:=\begin{bmatrix}{\bm{0}}&{\bm{\mu}}^{+}\\ ({\bm{\mu}}^{+})^{\top}&0\end{bmatrix} and M−:=[0μ−(μ−)⊤0]{\bm{M}}_{-}:=\begin{bmatrix}{\bm{0}}&{\bm{\mu}}^{-}\\ ({\bm{\mu}}^{-})^{\top}&0\end{bmatrix}. The largest eigenvalues for M+{\bm{M}}_{+} and M−{\bm{M}}_{-} are λ0+:=∥μ+∥2\lambda_{0}^{+}:=\left\|{\bm{\mu}}^{+}\right\|_{2} and λ0−:=∥μ−∥2\lambda_{0}^{-}:=\left\|{\bm{\mu}}^{-}\right\|_{2} respectively. Then the above linear ODE can be solved as

By Assumption A.3, we have λ0+>λ0−\lambda_{0}^{+}>\lambda_{0}^{-}. By definition and Cauchy-Schwartz inequality,

For θ(T0){\bm{\theta}}(T_{0}) with ∣ak(T0)∣=∥wk(T0)∥2\lvert a_{k}(T_{0})\rvert=\left\|{\bm{w}}_{k}(T_{0})\right\|_{2} and ak(T0)wk(T0)∈Cδ/3a_{k}(T_{0}){\bm{w}}_{k}(T_{0})\in{\mathcal{C}^{\delta/3}}, we have

Then we can argue as the proof for Lemma D.2 to show that

where the last equality is by definition of bˉk\bar{b}_{k}. Similarly for aˉk>0\bar{a}_{k}>0, we have

Combining these with (64) and (65), then for aˉk>0\bar{a}_{k}>0 we have

Then by definition of Δθ\Delta{\bm{\theta}} and (66), we have

Letting Aˉ:=A2m(1−κ)/2\bar{A}:=\frac{A}{2m^{(1-\kappa)/2}} and Bˉ:=Bm(1−κ)/2\bar{B}:=\frac{B}{m^{(1-\kappa)/2}} completes the proof. ∎

G.4 Phase II

As shown in our analysis for Phase I, if the intialization scale is small, the weight vectors of neurons with aˉk>0\bar{a}_{k}>0 move towards the direction of μˉ+\bar{{\bm{\mu}}}^{+}, and all the other neurons are negligible. Now we show that the dynamic of θ(t){\bm{\theta}}(t) is close to that of a one-neuron dynamic in a similar manner as we do for the symmetric case.

If b+=0b_{+}=0, then ∥w^1∥2=∣a^1∣=0\|\hat{{\bm{w}}}_{1}\|_{2}=\lvert\hat{a}_{1}\rvert=0;

If b−=0b_{-}=0, then ∥w^2∥2=∣a^2∣=0\|\hat{{\bm{w}}}_{2}\|_{2}=\lvert\hat{a}_{2}\rvert=0.

When b{\bm{b}} is compatible with θ^\hat{{\bm{\theta}}}, we define the (exact) embedding from two-neuron into mm-neuron neural nets as πb(θ^):=(w1,…,wm,a1,…,am)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}):=({\bm{w}}_{1},\dots,{\bm{w}}_{m},a_{1},\dots,a_{m}), where

One can easily show that Lemma 5.3 continue to hold when b{\bm{b}} is compatible with θ^\hat{{\bm{\theta}}}.

For the two-neuron dynamics starting with rescaled initialization in the direction of θ^:=(b^+μˉ+,0,b^+,0)\hat{{\bm{\theta}}}:=(\hat{b}_{+}\bar{{\bm{\mu}}}^{+},{\bm{0}},\hat{b}_{+},0), the following limit exists for all t≥0t\geq 0,

The proof is similar to Lemma 5.4 for the symmetric case. Apply Theorem E.4 and then the lemma is straightforward. ∎

G.5 Phase III

In Phase III, we show that the dynamic of θ(t){\bm{\theta}}(t) converges to the same classifier as the one-neuron dynamic.

The theorem below characterizes the solution found by the one-neuron dynamic.

Under Assumption 3.2, for m=1m=1, if initially a1=∥w1∥2a_{1}=\|{\bm{w}}_{1}\|_{2}, <w1,w∗>>0\left<{\bm{w}}_{1},{\bm{w}}^{*}\right>>0, then θ(t){\bm{\theta}}(t) directionally converges to the following global-max-margin direction,

By Definition B.8, yi⋅12ϕ(⟨wˉ,xi⟩)>0y_{i}\cdot\frac{1}{2}\phi(\langle\bar{{\bm{w}}},{\bm{x}}_{i}\rangle)>0 and wˉ\bar{{\bm{w}}} can be expressed by a convex combination of yiϕ′(⟨wˉ,xi⟩)xiy_{i}\phi^{\prime}(\langle\bar{{\bm{w}}},{\bm{x}}_{i}\rangle){\bm{x}}_{i} among i∈arg min⁡{12ϕ(⟨wˉ,xi⟩)}i\in\operatorname*{arg\,min}\{\frac{1}{2}\phi(\langle\bar{{\bm{w}}},{\bm{x}}_{i}\rangle)\}. Equivalently. we know that yi⟨wˉ,xi+⟩y_{i}\langle\bar{{\bm{w}}},{\bm{x}}^{+}_{i}\rangle and wˉ\bar{{\bm{w}}} can be expressed by a convex combination of yixi+y_{i}{\bm{x}}^{+}_{i} among i∈S+i\in\mathcal{S}^{+}. Then the only possibility is wˉ=w+\bar{{\bm{w}}}={\bm{w}}^{+}. ∎

Now we turn to analyze the trajectory of θ(t){\bm{\theta}}(t) on mm-neuron neural net. First we prove the following lemma, then we prove Theorem G.11 for local-max-margin directions.

Let Θ−:={θ=(w1,…,wm,a1,…,am):m≥1,ak≤0}\Theta_{-}:=\{{\bm{\theta}}=({\bm{w}}_{1},\dots,{\bm{w}}_{m},a_{1},\dots,a_{m}):m\geq 1,a_{k}\leq 0\}. Then we have the following characterization for the global maximum of the normalized margin on the dataset {(xi,yi):i∈S+}\{({\bm{x}}_{i},y_{i}):i\in\mathcal{S}^{+}\}:

By minimax theorem, we can swap the order between sup⁡\sup and min⁡\min in the following way:

For any embedding vect b{\bm{b}} be an embedding vector satisfying the following:

b{\bm{b}} is compatible with θ^\hat{{\bm{\theta}}};

the following statements are true under Assumption A.5,

πb(θ^)\pi_{{\bm{b}}}(\hat{{\bm{\theta}}}) is a local maximizer of γ(θ)\gamma({\bm{\theta}}) among θ∈Qˉ{\bm{\theta}}\in\bar{\mathcal{Q}};

arg min⁡i∈[n]{qi(θ)}⊆S+\operatorname*{arg\,min}_{i\in[n]}\{q_{i}({\bm{\theta}})\}\subseteq\mathcal{S}^{+}.

Let r+=∥θ+∥2r_{+}=\|{\bm{\theta}}^{+}\|_{2} and r−=∥θ−∥2r_{-}=\|{\bm{\theta}}^{-}\|_{2}. Define θˉ+\bar{{\bm{\theta}}}^{+} and θˉ−\bar{{\bm{\theta}}}^{-} to be two unit-norm parameters so that θ+=r+θˉ+{\bm{\theta}}^{+}=r_{+}\bar{{\bm{\theta}}}^{+}, θ−=r−θˉ−{\bm{\theta}}^{-}=r_{-}\bar{{\bm{\theta}}}^{-}. Then we have

Note that r+2+r−2=1r_{+}^{2}+r_{-}^{2}=1. By minimax theorem (similar to Lemma G.10),

By definition of w+{\bm{w}}^{+} and KKT conditions, we can find λ∗∈Λ+{\bm{\lambda}}^{*}\in\Lambda^{+} so that ∑i∈S+λi∗x+=γ+w+\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}{\bm{x}}^{+}=\gamma^{+}{\bm{w}}^{+}. Letting λ=λ∗{\bm{\lambda}}={\bm{\lambda}}^{*} for the above inequality, we can obtain

We only need to prove that both ∑i∈S+λi∗qi(θˉ+)\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{+}) and ∑i∈S+λi∗qi(θˉ−)\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{-}) are no more than 12γ+\frac{1}{2}\gamma^{+}. Note that combining Assumption A.5 and Lemma G.10 directly implies that ∑i∈S+λi∗qi(θˉ−)<12γ+\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{-})<\frac{1}{2}\gamma^{+}. Now we focus on ∑i∈S+λi∗qi(θˉ+)\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{+}).

According to our choice of ϵ\epsilon, we have akϕ(⟨wk,xi⟩)=⟨akwk,xi+⟩a_{k}\phi(\langle{\bm{w}}_{k},{\bm{x}}_{i}\rangle)=\langle a_{k}{\bm{w}}_{k},{\bm{x}}^{+}_{i}\rangle. For ∑i∈S+λi∗qi(θˉ+)\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{+}), we have

This proves that ∑i∈S+λi∗qi(θˉ+)≤12γ+\sum_{i\in\mathcal{S}^{+}}\lambda^{*}_{i}q_{i}(\bar{{\bm{\theta}}}^{+})\leq\frac{1}{2}\gamma^{+}, and thus γ(θ)≤12γ+=γ(θ^)\gamma({\bm{\theta}})\leq\frac{1}{2}\gamma^{+}=\gamma(\hat{{\bm{\theta}}}). Therefore Item 1 is true.

For Item 2, we only need to note that the equality in γ(θ)≤12γ+\gamma({\bm{\theta}})\leq\frac{1}{2}\gamma^{+} only holds if r−=0r_{-}=0 and wk=akw+{\bm{w}}_{k}=a_{k}{\bm{w}}^{+} for all k∈Pk\in P, so fθf_{{\bm{\theta}}} represents the same function as fθ^f_{\hat{{\bm{\theta}}}}. ∎

For proving Theorem A.7, we only need to show this:

Appendix H Proofs for the Orthogonally Separable Case

In this section, we revisit the orthogonally separable setting considered by Phuong and Lampert . Suprisingly, in this setting, all KKT points which contains at least one positive neuron and negative neuron are indeed global-max-margin directions and unique in function space. This means it is possible to prove the global optimality of margin in Phuong and Lampert ’s setting even without a trajectory-based analysis.

A binary classification dataset {(x1,y1),…,(xn,yn)}\{({\bm{x}}_{1},y_{1}),\dots,({\bm{x}}_{n},y_{n})\} is called orthogonally separable if for all i,j∈[n]i,j\in[n], if xi⊤xj>0{\bm{x}}_{i}^{\top}{\bm{x}}_{j}>0 whenever yi=yjy_{i}=y_{j} and xi⊤xj≤0{\bm{x}}_{i}^{\top}{\bm{x}}_{j}\leq 0 whenever yi=−yjy_{i}=-y_{j}.

The Theorem H.2 is a simple corollary of the following lemma Lemma H.3.

If θ{\bm{\theta}} satisfies the KKT conditions of (P), then for ak≠0a_{k}\neq 0, ∣ak∣=∥wk∥2|a_{k}|=\left\|{\bm{w}}_{k}\right\|_{2} and (∑j:ajak>0aj2)wkak(\sum_{j:a_{j}a_{k}>0}a_{j}^{2})\frac{{\bm{w}}_{k}}{a_{k}} is the global minimizer of the following optimization problem (Q):

In other words, all the non-zero ak,wka_{k},{\bm{w}}_{k} can be split into 22 groups according to the sign of aka_{k}, where in each group, wkak\frac{{\bm{w}}_{k}}{a_{k}} is the same.

By Lemma H.3, we know for any θ{\bm{\theta}} satisfying the KKT condition of (P),

Thus ∥θ∥22=∑i∈[m](∣ai∣2+∥xi∥22)=2∑i∈[m]∣ai∣2=∥w−∥2+∥w+∥2\left\|{\bm{\theta}}\right\|_{2}^{2}=\sum_{i\in[m]}(|a_{i}|^{2}+\|{\bm{x}}_{i}\|_{2}^{2})=2\sum_{i\in[m]}|a_{i}|^{2}=\|{\bm{w}}^{-}\|_{2}+\|{\bm{w}}^{+}\|_{2} is the same for all θ{\bm{\theta}} satisfying the condition in the theorem statement. Here the last equality uses (69) and ∣ak∣=∥wk∥2|a_{k}|=\left\|{\bm{w}}_{k}\right\|_{2}.

Next we check the uniqueness of fθf_{\bm{\theta}}. For any x{\bm{x}}, we have

and λi=0\lambda_{i}=0 whenever yifθ(xi)>1y_{i}f_{\bm{\theta}}({\bm{x}}_{i})>1. By Lemma B.9, ∥wk∥2=∣ak∣\|{\bm{w}}_{k}\|_{2}=\lvert a_{k}\rvert.

Furthermore, for any ak≠0a_{k}\neq 0, since ∥wk∥2=∣ak∣>0\|{\bm{w}}_{k}\|_{2}=|a_{k}|>0, there is at least one index j∗∈[n]j_{*}\in[n] such that λj∗hj∗(k)>0\lambda_{j_{*}}h^{(k)}_{j_{*}}>0 (otherwise wk=0{\bm{w}}_{k}={\bm{0}} by KKT conditions). For all i∈[n]i\in[n], again by (70), it holds that

Therefore we can split the neurons with non-zero aka_{k} into two parts: K+={k∈[m]:ak>0}K^{+}=\{k\in[m]:a_{k}>0\}, K−={k∈[m]:ak<0}K^{-}=\{k\in[m]:a_{k}<0\}. Every k∈K+k\in K^{+} satisfies the following:

Recall that λi=0\lambda_{i}=0 whenever yifθ(xi)>1y_{i}f_{{\bm{\theta}}}({\bm{x}}_{i})>1. When yi=1y_{i}=1, fθ(xi)f_{{\bm{\theta}}}({\bm{x}}_{i}) can be rewritten as

So we can verify that wˉ\bar{{\bm{w}}} satisfies the KKT conditions of the following constrained convex optimization problem:

By convexity, wˉ\bar{{\bm{w}}} is the unique minimizer of the above problem. The negative part K−K^{-} can be analyzed in the same way. ∎

Appendix I Additional Discussions

In this section we further illustrate the the relationship between KKT-margin and max-margin directions, as the examples have showed in Figure 1.

For some symmetric data, there are KKT-margin directions with non-linear decision boundary (and thus by Theorem 4.2 are not global-max-margin directions).

Let λi\lambda_{i} be the dual variable for (xi,yi)(x_{i},y_{i}), then the KKT conditions (Definition B.8 and Lemma B.9) ask

for all k∈[m]k\in[m], wk∈∑i∈[n]λiyiakϕ∘(wk⊤xi)xi{\bm{w}}_{k}\in\sum_{i\in[n]}\lambda_{i}y_{i}a_{k}\phi^{\circ}({\bm{w}}_{k}^{\top}{\bm{x}}_{i}){\bm{x}}_{i};

for all k∈[m]k\in[m], ∣ak∣=∥wk∥2\lvert a_{k}\rvert=\|{\bm{w}}_{k}\|_{2};

for all i∈[n]i\in[n], if qi(θ)≠qmin⁡(θ)q_{i}({\bm{\theta}})\neq q_{\min}({\bm{\theta}}) then λi=0\lambda_{i}=0 (recall that qi(θ)=yifθ(xi)q_{i}({\bm{\theta}})=y_{i}f_{{\bm{\theta}}}({\bm{x}}_{i})).

In this case, all the data points xi{\bm{x}}_{i} share the same output margin qi(θ)q_{i}({\bm{\theta}}), so they are all support vectors. A possible choice of dual variables is λ=(12,0,12,0,1,0){\bm{\lambda}}=(\frac{1}{\sqrt{2}},0,\frac{1}{\sqrt{2}},0,1,0). It is easy to verify that this KKT-margin direction does not have linear decision boundary and is thus not global-max-margin.

I.1.2 Middle and Right: Non-symmetric Data

In Figure 1 we further show two examples of non-symmetric data that gradient flow from small initialization converges to a linear-boundary classifier that has a suboptimal margin.

The idea of the middle plot dataset comes from Shah et al. . In the middle subplot, we exhibit a data example that is linear separable in the first dimension xx but not linear separable in the second dimension yy. The data is distributed on (Aϵ,1)(A_{\epsilon},1) and (Aϵ,−1)(A_{\epsilon},-1) with label 11 and on (−Aϵ′,0)(-A_{\epsilon^{\prime}},0) with label −1-1 (here Ac=[c,∞)A_{c}=[c,\infty) is an interval in one dimension). We add identical entries cc to all the data in the third dimension zz so in the x−yx-y plane with z=cz=c the two-layer ReLU network can represent decision patterns with bias.

In the right plot, we add three hints to a linear separable dataset so that gradient flow converges to the solution with a linear decision boundary and suboptimal margin. The result follows from Theorem 6.2.

I.1.3 Experimental Results

We run gradient descent with small learning rate and 0.001 times the He intialization [He et al., 2015] on the two-layer LeakyReLU network for the examples in Figure 1. The contours of the neural net outputs are displayed in Figure 2. In the three settings the neural nets actually converge to linear classifiers.

I.2 On the Non-branching Starting Point Assumptions

In the proofs of the main theorems we make assumptions regarding the starting point of gradient flow trajectories being non-branching (Assumption 4.6 for the symmetric case and Assumption A.6 for the non-symmetric case). The assumptions address a technical difficulty due to the potential non-uniqueness of gradient flow trajectories on general non-smooth loss functions. The motivations for these assumptions are explained below.

Gradient flow trajectories are unique on smooth loss functions by the classic theory of ordinary differential equations. In this case, for trajectory defined by dθdt=−∇L(θ)\frac{\textup{{d}}{\bm{\theta}}}{\textup{{d}}t}=-\nabla\mathcal{L}({\bm{\theta}}), at any point θ0{\bm{\theta}}_{0}, if both ∇L(θ0)\nabla\mathcal{L}({\bm{\theta}}_{0}) and ∇2L(θ0)\nabla^{2}\mathcal{L}({\bm{\theta}}_{0}) are continuous, then the trajectory is unique as long as it exists.

For the non-smooth case with differential inclusion dθdt∈−∂∘L(θ)\frac{\textup{{d}}{\bm{\theta}}}{\textup{{d}}t}\in-\partial^{\circ}\mathcal{L}({\bm{\theta}}), when L\mathcal{L} is continuous and convex, the Clarke subdifferentials agree with the subdifferentials for convex functions, and gradient flow trajectory is also unique (for instance see Bolte et al. 2010). However, on loss functions that are non-smooth and non-convex, gradient flow may not be unique and the trajectory may branch at non-differentiable points (see Figure 3). When a non-differentiable point is atop a “ridge”, a gradient flow reaching it may go down different slopes next. Then any starting points wherefrom gradient flow can reach such on-the-ridge points are not non-branching starting points as the trajectory is not unique. For instance, with L(θ)=−∣⟨θ,w⟩∣\mathcal{L}({\bm{\theta}})=-\lvert\langle{\bm{\theta}},{\bm{w}}\rangle\rvert, then the trajectory with θ(t)=0{\bm{\theta}}(t)=0 for t<tst<t_{s} and θ(t)=±(t−ts)w{\bm{\theta}}(t)=\pm(t-t_{s}){\bm{w}} for t≥tst\geq t_{s} is a valid gradient flow trajectory for any ts≥0t_{s}\geq 0. On the other hand, when the point is either at the bottom of a “valley” or at a “refraction edge”, the trajectory would not split. Figure 3 sketches in red the possible gradient flow trajectories in different circumstances.

In the case of two-layer Leaky ReLU network dynamics, there are settings where Assumption 4.6 or Assumption A.6 holds. When data points are orthogonally separable (Definition H.1), all starting points are non-branching. In this case, the output of each Leaky ReLU neuron will change monotonically. By the chain rule, for any neuron k∈[m]k\in[m], on any data sample i∈[n]i\in[n],

In the general cases, it is a future research direction to find other analyses that can replace the non-branching starting point assumptions, and doing so may deepen our understanding in the trajectory behaviors in non-smooth settings.

Appendix J Additional Experiments

We conducted several additional experiments on synthetic datasets. The goal is to show that 2-layer Leaky ReLU networks actually converges to the max-margin linear classifiers in different settings with moderately small initialization. The results are summarized in Table 1 and Figure 4.

n=10,20,⋯ ,100n=10,20,\cdots,100 data points are randomly sampled from the standard gaussian distribution N(0,I)\mathcal{N}(0,{\bm{I}}) in the space of dimension d=50d=50, and are classified with a linear classifier through zero. Then the points are translated mildly away from the classifier to make a small nonzero margin that assists learning.

We used the two-layer leaky ReLU network with hidden layer width m=100m=100 and with bias terms. In out setting the bias term is equivalent to adding an extra dimension of value 0.10.1 to all the data points. We trained our model with the gradient descent method from 0.001 times the He initialization [He et al., 2015] and initial learning rate 0.01. The learning rate is raised after interpolation to boost margin increase.

We compare the neural network output with the max-margin linear classfier produced by the support vector machine (SVM) on hinge loss. In Table 1, the test errors are calculated from 10000 test points from the same distribution. In Figure 4, we drawn the decision boundaries for both the SVM max-margin linear classifier and the neural network restricted to a plane passing 0. The results show that the neural network classifier converges to the max-margin linear classfier in our setting.