When Will Gradient Methods Converge to Max-margin Classifier under ReLU Models?

Tengyu Xu, Yi Zhou, Kaiyi Ji, Yingbin Liang

Introduction

It has been observed in various machine learning problems recently that the gradient descent (GD) algorithm and the stochastic gradient descent (SGD) algorithm converge to solutions with certain properties even without explicit regularization in the objective function. Correspondingly, theoretical analysis has been developed to explain such implicit regularization property. For example, it has been shown in Gunasekar et al. (2018, 2017) that GD converges to the solution with the minimum norm under certain initialization for regression problems, even without an explicit norm constraint.

Another type of implicit regularization, where GD converges to the max-margin classifier, has been recently studied in Gunasekar et al. (2018); Ji & Telgarsky (2018); Nacson et al. (2018a); Soudry et al. (2017, 2018) for classification problems as we describe below. Given a set of training samples zi=(xi,yi)\mathbf{z}_{i}=(\mathbf{x}_{i},y_{i}) for i=1,…,ni=1,\ldots,n, where xi\mathbf{x}_{i} denotes a feature vector and yi∈{−1,+1}y_{i}\in\{-1,+1\} denotes the corresponding label, the goal is to find a desirable linear model (i.e., a classifier) by solving the following empirical risk minimization problem

The focus of this paper is on the following two fundamental issues, which have not been well addressed by existing studies.

Existing studies so far focused only on the linear classifier model. An important question one naturally asks is what happens for the more general nonlinear leaky ReLU and ReLU models. Will GD still converge, and if so will it converge to the max-margin direction? Our study here provides new insights for the ReLU model that have not been observed for the linear model in the previous studies.

Existing studies mainly analyzed the convergence of GD with the only exceptions Ji & Telgarsky (2018); Nacson et al. (2018b) on SGD. However, Ji & Telgarsky (2018) did not establish the convergence to the max-margin direction for SGD, and Nacson et al. (2018b) established the convergence to the max-margin solution only epochwisely for cyclic SGD (not iterationwise for SGD under random sampling with replacement). Moreover, both studies considered only the linear model. Here, our interest is to explore the iterationwise convergence of SGD under random sampling with replacement to the max-margin direction, and our result can shed insights for online SGD. Furthermore, our study provides new understanding for the nonlinear ReLU and leaky ReLU models.

We summarize our main contributions, where our focus is on the exponential loss function under ReLU model.

We first characterize the landscape of the empirical risk function under the ReLU model, which is nonconvex and nonsmooth. We show that such a risk function has asymptotic global minima and asymptotic spurious local minima. Such a landscape is in sharp contrast to that under the linear model previously studied in Soudry et al. (2017), where there exist only equivalent global minima.

Based on the landscape property, we show that the implicit bias property in the course of the convergence of GD can fall into four cases: converges to the asymptotic global minimum along the max-margin direction, converges to an asymptotic local minimum along a local max-margin direction, stops at a finite spurious local minimum, or oscillates between the linearly separable and misclassified regions without convergence. Such a diverse behavior is also in sharp difference from that under the linear model Soudry et al. (2017), where GD always converges to the max-margin direction.

We then take a further step to study the implicit bias of SGD. We show that the expected averaged weight vector normalized by its expected l2l_{2} norm converges to the global max-margin direction or local max-margin direction, as long as SGD stays either in the linearly separable region or in a region of the local minima defined by a subset of data samples with positive label. The proof here requires considerable new technical developments, which are very different from the traditional analysis of SGD, e.g., Bottou et al. (2016); Duchi & Singer (2009); Nemirovskii et al. (1983); Shalev-Shwartz et al. (2009); Xiao (2010); Bach & Moulines (2013); Bach (2014). This is because our focus here is on the exponential loss function without attainable global/local minima, whereas traditional analysis typically assumed that the minimum of the loss function is attainable. Furthermore, our goal is to analyze the implicit bias property of SGD, which is also beyond traditional analysis of SGD.

We further extend our analysis to the leaky ReLU model and multi-neuron networks.

2 Related Work

Implicit bias of gradient descent: Gunasekar et al. (2018) studied the implicit bias of GD and SGD for minimizing the squared loss function under bounded global minimum, and showed that some of these algorithms converge to a global minimum that is closest to the initial point. Another collection of papers Gunasekar et al. (2018); Ji & Telgarsky (2018); Nacson et al. (2018a); Soudry et al. (2017); Telgarsky (2013); Soudry et al. (2018) characterized the implicit bias of algorithms for the loss functions without attainable global minimum. Telgarsky (2013) showed that AdaBoost converges to an approximate max-margin classifier. Soudry et al. (2017, 2018) studied the convergence of GD in logistic regression with linearly separable data and showed that GD converges in direction to the solution of support vector machine at a rate of 1/ln⁡(t)1/\ln(t). Nacson et al. (2018a) improved this rate to ln⁡(t)/t\ln(t)/\sqrt{t} under the exponential loss via normalized gradient descent. Gunasekar et al. (2018) further showed that steepest descent can lead to margin maximization under generic norms. Ji & Telgarsky (2018) analyzed the convergence of GD on an arbitrary dataset, and provided the convergence rates along the strongly convex subspace and the separable subspace. Our work studies the convergence of GD and SGD under the nonlinear ReLU model with the exponential loss, as opposed to the linear model studied by all the above previous work on the same type of loss functions.

Implicit bias of SGD: Ji & Telgarsky (2018) analyzed the average SGD (under random sampling) with fixed learning rate and proved the convergence of the population risk, but did not establish the parameter convergence of SGD in the max-margin direction. Nacson et al. (2018b) established the convergence of cyclic SGD epochwisely in direction to the max-margin classifier at a rate O(1/ln⁡t)\mathcal{O}(1/\ln t). Our work differs from these two studies first in that we study the ReLU model, whereas both of these studies analyzed the linear model. Furthermore, we showed that under SGD with random sampling, the expectation of the averaged weight vector converges in direction to the max-margin classifier at a rate O(1/ln⁡t)\mathcal{O}(1/\sqrt{\ln t}).

Generalization of SGD: There have been extensive studies of the convergence and generalization performance of SGD under various models, of which we cannot provide a comprehensive list due to the space limitations. In general, these type of studies either characterize the convergence rate of SGD or provide the generalization error bounds at the convergence of SGD, e.g., Brutzkus et al. (2017); Wang et al. (2018); Li & Liang (2018), but did not characterize the implicit regularization property of SGD, such as the convergence to the max-margin direction as provided in our paper.

ReLU Classification Model

We consider the binary classification problem, in which we are given a set of training samples {z1,…,zn}\{\mathbf{z}_{1},\ldots,\mathbf{z}_{n}\}. Each training sample zi=(xi,yi)\mathbf{z}_{i}=(\mathbf{x}_{i},y_{i}) contains an input data xi\mathbf{x}_{i} and a corresponding binary label yi∈{−1,+1}y_{i}\in\{-1,+1\}. We denote I+:={i:yi=+1}I^{+}:=\{i:y_{i}=+1\} as the set of indices of samples with label +1+1 and denote I−:={i:yi=−1}I^{-}:=\{i:y_{i}=-1\} in a similar way. Their cardinalities are denoted as n+n^{+} and n−n^{-}, respectively, and are assumed to be non-zero. We consider all datasets that are linearly separable, i.e., there exists a linear classifier w\mathbf{w} such that yiw⊺xi>0y_{i}\mathbf{w}^{\intercal}\mathbf{x}_{i}>0 for all i=1,…,ni=1,\ldots,n.

The ReLU activation causes the loss function in problem (P) to be nonconvex and nonsmooth. Therefore, it is important to first understand the landscape property of the loss function, which is critical for characterizing the implicit bias property of the GD and SGD algorithms.

Implicit Bias of GD in Learning ReLU Model

In order to understand the convergence of GD under the ReLU model, we first study the landscape of the loss function in problem (P), which turns out to be very different from that under the linear activation model. As been shown in Soudry et al. (2017); Ji & Telgarsky (2018), the loss function in problem (P) under linear activation is convex, and achieves asymptotic global minimum, i.e., ∇L(αw∗)→α0\nabla\mathcal{L}(\alpha\mathbf{w}^{*})\overset{\alpha}{\rightarrow}\mathbf{0} and L(αw∗)→α0\mathcal{L}(\alpha\mathbf{w}^{*})\overset{\alpha}{\rightarrow}0 as the scaling constant α→+∞\alpha\rightarrow+\infty, only if w∗\mathbf{w}^{*} is in the linearly separable region. In contrast, under the ReLU model, the asymptotic critical points can be either global minimum or (spurious) local minimum depending on the training datasets, and hence the convergence property of GD can be very different in nature from that under the linear model.

The following theorem characterizes the landscape properties of problem (P). Throughout, we denote the infimum of the objective function in problem (P) as L∗=n−n\mathcal{L}^{*}=\frac{n^{-}}{n}. Furthermore, we call a direction w∗\mathbf{w}^{*} asymptotically critical if it satisfies ∇L(αw∗)→0\nabla\mathcal{L}(\alpha\mathbf{w}^{*}){\rightarrow}\mathbf{0} as α→+∞\alpha\to+\infty.

For problem (P) under the ReLU model, any corresponding asymptotic critical direction w∗\mathbf{w}^{*} fall into one of the following cases:

(Asymptotic global minimum): yiw∗⊺xi>0y_{i}\mathbf{w}^{*\intercal}\mathbf{x}_{i}>0 for all i∈I+∪I−i\in I^{+}\cup I^{-}. Then,

(Asymptotic local minimum): w∗⊺xi>0\mathbf{w}^{*\intercal}\mathbf{x}_{i}>0 for all i∈J+i\in J^{+} and w∗⊺xi≤0\mathbf{w}^{*\intercal}\mathbf{x}_{i}\leq 0 for all i∈(I+∖J+)∪I−i\in(I^{+}\setminus J^{+})\cup I^{-}, where J+⊆I+J^{+}\subseteq{I^{+}}. Then,

(Local minimum): w∗⊺xi≤0\mathbf{w}^{*\intercal}\mathbf{x}_{i}\leq 0 for all i∈I+∪I−i\in I^{+}\cup I^{-}. Then,

To further elaborate 3.1, if w∗\mathbf{w}^{*} classifies all data correctly (i.e., item 1), then the objective function possibly achieves global minimum L∗\mathcal{L}^{*} along this direction. On the other hand, if w∗\mathbf{w}^{*} classifies some data with label +1+1 as −1-1 (item 2), then the objective function achieves a sub-optimal value along this direction. In the worst case where all data samples are classified as −1-1 (item 3), the ReLU unit is never activated and hence the corresponding objective function has constant value 1. We note that the cases in items 2 and 3 may or may not take place depending on specific datasets, but if they do occur, the corresponding w∗\mathbf{w}^{*} are spurious (asymptotic) local minima. In summary, the landscape under the ReLU model can be partitioned into different regions, where gradient descent algorithms can have different implicit bias as we show next.

2 Convergence of GD

In this subsection, we analyze the convergence of GD in learning the ReLU model. At each iteration tt, GD performs the update

where η\eta denotes the stepsize. For the linear model whose loss function has infinitely many asymptotic global minima, it has been shown in Soudry et al. (2017) that GD always converges to the max-margin direction. Such a phenomenon is regarded as the implicit bias property of GD. Here, for the ReLU model, we are also interested in analyzing whether such an implicit-bias property still holds. Furthermore, since the loss function under the ReLU model possibly contains spurious asymptotic local minima, the convergence of GD under the ReLU model should be very different from that under the linear model.

Next, we introduce various notions of margin in order to characterize the implicit bias under the ReLU model. The global max-margin direction of samples in I+I^{+} is defined as

Such a notion of max-margin is natural because the ReLU activation function can suppress negative inputs. We note that here w^+\widehat{\mathbf{w}}^{+} may not locate in the linearly separable region, and hence it may not be parallel to any (asymptotic) global minimum. As we show next, only when w^+\widehat{\mathbf{w}}^{+} is in the linearly separable region, GD may converge in direction to such a max-margin direction under the ReLU model. Furthermore, for each given subset J+⊆I+J^{+}\subseteq{I^{+}}, we define the associated local max-margin direction w^J+\widehat{\mathbf{w}}_{J}^{+} as

We further denote the set of asymptotic local minima with respect to J+⊆I+J^{+}\subseteq{I^{+}} (see 3.1 item 2) as

Of course, WJ+\mathcal{W}_{J}^{+} may or may not be empty for a certain J+J^{+}, and w^J+\widehat{\mathbf{w}}_{J}^{+} may or may not belong to WJ+\mathcal{W}_{J}^{+} depending on the specific training dataset. As we show next, only when there exists a non-empty WJ+\mathcal{W}_{J}^{+} and the corresponding w^J+∈WJ+\widehat{\mathbf{w}}_{J}^{+}\in\mathcal{W}_{J}^{+}, GD may converge to such an asymptotic local minimum w^J+\widehat{\mathbf{w}}_{J}^{+} direction under the ReLU model. Next, we present the implicit bias of GD for learning the ReLU model in problem (P).

Apply GD to solve problem (P) with arbitrary initialization and a small enough constant stepsize. Then, the sequence {wt}t\{\mathbf{w}_{t}\}_{t} generated by GD falls into one of the following cases.

L(wt)→L∗\mathcal{L}(\mathbf{w}_{t})\rightarrow\mathcal{L}^{*}, and ∥wt∥wt∥−w^+∥=O(ln⁡ln⁡tln⁡t)\|\tfrac{\mathbf{w}_{t}}{\|\mathbf{w}_{t}\|}-\widehat{\mathbf{w}}^{+}\|=\mathcal{O}(\frac{\ln\ln t}{\ln t}) , where w^+\widehat{\mathbf{w}}^{+} is in linearly separable region;

the direction of wt\mathbf{w}_{t} does not converge and oscillates between linearly separable and misclassified regions, where w^+\widehat{\mathbf{w}}^{+} is not in linearly separable region;

L(wt)→L∗+n+−∣J+∣n\mathcal{L}(\mathbf{w}_{t})\rightarrow\mathcal{L}^{*}+\frac{n^{+}-|J^{+}|}{n}, and ∥wt∥wt∥−w^J+∥=O(ln⁡ln⁡tln⁡t)\|\tfrac{\mathbf{w}_{t}}{\|\mathbf{w}_{t}\|}-\widehat{\mathbf{w}}^{+}_{J}\|=\mathcal{O}(\frac{\ln\ln t}{\ln t}) , where J+≠∅J^{+}\neq\emptyset, and w^J+∈WJ+\widehat{\mathbf{w}}_{J}^{+}\in\mathcal{W}_{J}^{+};

L(wt)=L∗+n+n\mathcal{L}(\mathbf{w}_{t})=\mathcal{L}^{*}+\frac{n^{+}}{n}, and wt=w^J+\mathbf{w}_{t}=\hat{\mathbf{w}}_{J}^{+}, where J+=∅J^{+}=\emptyset, i.e., GD terminates within finite steps.

Theorem 3.2 characterizes various instances of implicit bias of GD in learning the ReLU model, which the nature of the convergence is different from that in learning the linear model. In specific, GD can either converge in direction to the global max-margin direction w^+\widehat{\mathbf{w}}^{+} that leads to the global minimum, or converge to the local max-margin direction w^J+\widehat{\mathbf{w}}_{J}^{+} that leads to a spurious local minimum. Furthermore, it may occur that GD oscillates between the linearly separable region and the misclassified region due to the suppression effect of ReLU function. In this case, GD does not have an implicit bias property and convergence guarantee. We provide two simple examples in the supplementary material to further elaborate these cases.

3 Implicit Bias of SGD in Learning ReLU Models

In this subsection, we analyze the convergence property and the implicit bias of SGD for solving problem (P). At each iteration tt, SGD samples an index ξt∈{1,…,n}\xi_{t}\in\{1,\ldots,n\} uniformly at random with replacement, and performs the update

Similarly to the convergence of GD characterized in Theorem 3.2, SGD may oscillate between the linearly separable and misclassified regions. Therefore, our major interest here is the implicit bias of SGD when it does converge either to the asymptotic global minimum or local minimum. Thus, without loss of generality, we implicitly assume that w^+\widehat{\mathbf{w}}^{+} is in the linearly separable region, and the relevant w^J+∈WJ+\widehat{\mathbf{w}}^{+}_{J}\in\mathcal{W}^{+}_{J}. Otherwise, SGD does not even converge.

The implicit bias of SGD with replacement sampling has not been studied in the existing literature, and the proof of the convergence and the characterization of the implicit bias requires substantial new technical developments. In particular, traditional analysis of SGD under convex functions requires the assumption that the variance of the gradient is bounded Bottou et al. (2016); Bach (2014); Bach & Moulines (2013). Instead of making such an assumption, we next prove that SGD enjoys a nearly-constant bound on the variance up to a logarithmic factor of tt in learning the ReLU model.

Apply SGD to solve problem (P) with any initialization. If there exists T\mathcal{T} such that for all t>Tt>\mathcal{T}, wt\mathbf{w}_{t} either stays in the linearly separable region, or in WJ+\mathcal{W}^{+}_{J}, then with stepsize ηk=(k+1)−α\eta_{k}=(k+1)^{-\alpha} where 0.5<α<10.5<\alpha<1, the variances of the stochastic gradients sampled by SGD along the iteration path satisfy that for all tt,

Apply SGD to solve problem (P) with any initialization. If there exist T\mathcal{T} such that for all t>Tt>\mathcal{T}, wt\mathbf{w}_{t} either stays in the linearly separable region, then with the stepsize ηk=(k+1)−α\eta_{k}=(k+1)^{-\alpha}, where 0.5<α<10.5<\alpha<1, the averaged iterates generated by SGD satisfies

If there exist T\mathcal{T} such that for all t>Tt>\mathcal{T}, wt\mathbf{w}_{t} stays in WJ+\mathcal{W}^{+}_{J}, then with the same stepsize

Apply SGD to solve problem (P) with any initialization. If there exist T\mathcal{T} such that for all t>Tt>\mathcal{T}, wt\mathbf{w}_{t} stays in the linearly separable region, then with the stepsize ηk=(k+1)−α\eta_{k}=(k+1)^{-\alpha} where 0.5<α<10.5<\alpha<1, the sequence of the averaged iterate {w‾t}t\{\overline{\mathbf{w}}_{t}\}_{t} generated by SGD satisfies

If there exist T\mathcal{T} such that for all t>Tt>\mathcal{T}, wt\mathbf{w}_{t} stays in WJ+\mathcal{W}^{+}_{J}, then with the same stepsize

We next provide an example class of datasets (which has been studied in Combes et al. (2018)), for which we show that SGD stays stably in the linearly separable region.

If the linear separable samples {z1,…,zn}\{\mathbf{z}_{1},\ldots,\mathbf{z}_{n}\} satisfy the following conditions given in Combes et al. (2018):

For all (i,j)∈I+×I+∪I−×I−(i,j)\in I^{+}\times I^{+}\cup I^{-}\times I^{-}, it holds that xi⊺xj>0\mathbf{x}_{i}^{\intercal}\mathbf{x}_{j}>0;

For all (i,j)∈I+×I−∪I−×I+(i,j)\in I^{+}\times I^{-}\cup I^{-}\times I^{+}, it holds that xi⊺xj<0\mathbf{x}_{i}^{\intercal}\mathbf{x}_{j}<0,

then there exists a tˉ∈\mathdsN\bar{t}\in\mathds{N} such that for all t≥tˉt\geq\bar{t} the sequence generated by SGD stays in the linearly separable region, as long as SGD is not initialized at the local minima described in item 3 of 3.1.

We also want to point out that any linearly separable dataset can satisfy the condition in 2 after a proper transformation, e.g., data augmentation by padding 1s to the samples with label +1+1 and -1s to the samples with label −1-1. Such data transformation changes the landscape of the ReLU model into a more optimization-friendly version that facilitates to regularize the SGD path.

Further Extensions and Discussions

The leaky ReLU activation takes the form σ(v)=max⁡(αv,v)\sigma(v)=\max(\alpha v,v), where the parameter (0≤α≤1)(0\leq\alpha\leq 1). Clearly, leaky ReLU takes the linear and ReLU models as two special cases, respectively corresponding to α=0\alpha=0 and α=1\alpha=1. Since the convergence of GD/SGD of the ReLU model is very different from that of the linear model, a natural question to ask is whether leaky ReLU with intermediate parameters 0<α<10<\alpha<1 takes the same behavior as the linear or ReLU model.

It can be shown that the loss function in problem (P) under the leaky ReLU model has only asymptotic global minima achieved by w∗\mathbf{w}^{*} in the separable region with infinite norm (there does not exist asymptotic local minima). Hence, the convergence of GD is similar to that under the linear model, where the only difference is that the max-margin classifier needs to be defined based on leaky ReLU as follows.

For the given set of linearly separable data samples, we construct a new set of data zi∗=(xi∗,yi∗)\mathbf{z}_{i}^{*}=(\mathbf{x}_{i}^{*},y_{i}^{*}), in which xi∗=xi, ∀i∈I+\mathbf{x}^{*}_{i}=\mathbf{x}_{i},\,\forall i\in I^{+}, xi∗=αxi, ∀i∈I−\mathbf{x}^{*}_{i}=\alpha\mathbf{x}_{i},\,\forall i\in I^{-}, and yi∗=yi, ∀i∈I+∪I−y_{i}^{*}=y_{i},\,\forall i\in I^{+}\cup I^{-}. Essentially, the data samples with label −1-1 are scaled by the parameter α\alpha of leaky ReLU. Without loss of generality, we assume that the max-margin classifier for data {xi∗}\{\mathbf{x}^{*}_{i}\} passes through the origin after a proper translation. Then, we define the max-margin direction of data X∗\mathbf{X^{*}} as

Then, following the result under the linear model in Soudry et al. (2017), it can be shown that GD with arbitrary initialization and small constant stepsize for solving problem (P) under the leaky ReLU model satisfies that L(w)\mathcal{L}(\mathbf{w}) converges to zero, and w\mathbf{w} converges to the max-margin direction, i.e., lim⁡t→∞wt∥wt∥=w^∗\lim_{t\rightarrow\infty}\frac{\mathbf{w}_{t}}{\|\mathbf{w}_{t}\|}=\widehat{\mathbf{w}}^{*}, with its norm going to infinity.

Furthermore, following our result of 3.4, it can be shown that for SGD applied to solve problem (P) with any initialization, if there exists T\mathcal{T} such that for all t>Tt>\mathcal{T} wt\mathbf{w}_{t} stays in the linearly separable region, then with the stepsize ηk=(k+1)−α, 0.5<α<1\eta_{k}=(k+1)^{-\alpha},\,0.5<\alpha<1, the sequence of the averaged iterate {w‾t}t\{\overline{\mathbf{w}}_{t}\}_{t} generated by SGD satisfies

Thus, for SGD under the leaky ReLU model, the normalized average of the parameter vector converges in direction to the max-margin classifier.

2 Multi-neuron Networks

In this subsection, we extend our study of the ReLU model to the problem of training a one-hidden-layer ReLU neural network with KK hidden neurons for binary classification. Here, we do not assume linear separability of the dataset. The output of the network is given by

where W=[ w1,w2,⋯ ,wK]\mathbf{W}=[\,\mathbf{w}_{1},\mathbf{w}_{2},\cdots,\mathbf{w}_{K}] with each column wk\mathbf{w}_{k} representing the weights of the kkth neuron in the hidden layer, v⊺=[ v1,v2,⋯ ,vK] \mathbf{v}^{\intercal}=[\,v_{1},v_{2},\cdots,v_{K}]\, denotes the weights of the output neuron, and σ(⋅)\sigma(\cdot) represents the entry-wise ReLU activation function. We assume that v\mathbf{v} is a fixed vector whose entries are nonzero and have both positive and negative values. Such an assumption is natural as it allows the model to have enough capacity to achieve zero loss. The predicted label is set to be the sign of f(x)f(\mathbf{x}), and the objective function under the exponential loss is given by

We next present our characterization of the implicit bias property of GD and SGD under the above ReLU network model. We define the corresponding max-margin direction of the samples in Bh\mathcal{B}_{h} as

Then the following theorem characterizes the implicit bias of GD under the multi-neuron network.

Suppose that GD optimizes the loss L(W)\mathcal{L}(\mathbf{W}) in eq. 3 to zero and there exists T\mathcal{T} such that for all t>Tt>\mathcal{T}, the neurons in the hidden layer do not change their activation status. If Ah1∧Ah2=0\mathbf{A}_{h_{1}}\wedge\mathbf{A}_{h_{2}}=\mathbf{0} (where ”∧\wedge” denotes the entry-wise logic operator “AND” between digits zero or one) for any h1≠h2h_{1}\neq h_{2}, then the samples in the same pattern partition of the ReLU activation have the same label, and

Differently from (Soudry et al., 2017, Corollary 8) which studies the convergence of the vectorized weight matrix so that the implicit bias of GD is with respect to features being lifted to an extended dimensional space, Theorem 4.1 characterizes the convergence of the weight parameters and the implicit bias in the original feature space. In particular, Theorem 4.1 implies that although the ReLU neural network is a nonlinear classifier, f(x)f(\mathbf{x}) is equivalent to a ReLU classifier for the samples in the same pattern partition (that are from the same class), which converges in direction to the max-margin classifier w^h\widehat{\mathbf{w}}_{h} of those data samples. We next let w˘ht:=1t∑k=0t−1w~h(t)\breve{\mathbf{w}}_{h}^{t}:=\frac{1}{t}\sum_{k=0}^{t-1}\widetilde{\mathbf{w}}_{h}(t). Then the following theorem establishes the implicit bias of SGD.

Suppose that SGD optimizes the loss L(W)\mathcal{L}(\mathbf{W}) in eq. 3 so that there exists T\mathcal{T} such that for any t>Tt>\mathcal{T}, L(W)<1/n\mathcal{L}(\mathbf{W})<1/n, the neurons in the hidden layer do not change their activation status, and for any h1≠h2h_{1}\neq h_{2}, Ah1∧Ah2=0\mathbf{A}_{h_{1}}\wedge\mathbf{A}_{h_{2}}=\mathbf{0}. Then, for the stepsize ηk=(k+1)−α, 0.5<α<1\eta_{k}=(k+1)^{-\alpha},\,0.5<\alpha<1, the samples in the same pattern partition of the ReLU activation have the same label, and

Similarly to GD, the averaged SGD in expectation maximizes the margin for every sample partition. At the high level, 4.1 and 4.2 imply the following generalization performance of the ReLU network under study. After a sufficiently large number of iterations, the neural network partitions the data samples into different subsets, and for each subset, the distance from the samples to the decision boundary is maximized by GD and SGD. Thus, the learned classifier is robust to small perturbations of the data, resulting in good generalization performance.

Conclusion

In this paper, we study the problem of learning a ReLU neural network via gradient descent methods, and establish the corresponding risk and parameter convergence under the exponential loss function. In particular, we show that due to the possible existence of spurious asymptotic local minima, GD and SGD can converge either to the global or local max-margin direction, which in the nature of convergence is very different from that under the linear model in the previous studies. We also discuss the extensions of our analysis to the more general leaky ReLU model and multi-neuron networks. In the future, it is worthy to explore the implicit bias of GD and SGD in learning multi-layer neural network models and under more general (not necessarily linearly separable) datasets.

References

Appendix A Proof of 3.1

The gradient ∇L(w)\nabla\mathcal{L}(\mathbf{w}) is given by

If yiw∗⊺xi≥0y_{i}\mathbf{w}^{*\intercal}\mathbf{x}_{i}\geq 0 for all xi∈I+∪I−\mathbf{x}_{i}\in I^{+}\cup I^{-}, then as α→+∞\alpha\rightarrow+\infty, we have, ,

Recall that J+⊆I+J^{+}\subseteq{I^{+}}. If w∗⊺xi≤0\mathbf{w}^{*\intercal}\mathbf{x}_{i}\leq 0 for all i∈(I+∖J+)∪I−i\in(I^{+}\setminus J^{+})\cup I^{-}, then as α→+∞\alpha\rightarrow+\infty, we obtain

If w∗⊺xi≤0\mathbf{w}^{*\intercal}\mathbf{x}_{i}\leq 0 for all i∈I+∪I−i\in I^{+}\cup I^{-}, then

Appendix B Proof of 3.2

which, in conjunction with 0<η<2/L0<\eta<2/L, implies that

Thus, we have ∥∇L(wk)∥2→0\|\nabla\mathcal{L}(\mathbf{w}_{k})\|^{2}\rightarrow 0 as k→+∞k\rightarrow+\infty. By 3.1, ∥∇L(wk)∥\|\nabla\mathcal{L}(\mathbf{w}_{k})\| vanishes only when all samples with label −1-1 are correctly classified, and thus GD enters into the negative correctly classified region eventually and diverges to infinity. Soudry et al. (2017) Theorem 3 shows that when GD diverges to infinity, it simultaneously converges in the direction of the max-margin classifier of all samples satisfying wt⊺xi>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{i}>0. Thus, under our setting, GD either converges in the direction of the global max-margin classifer w^+\widehat{\mathbf{w}}^{+}:

or the local max-margin classifier w^J+\widehat{\mathbf{w}}_{J}^{+}:

Next, consider the case when w^+\widehat{\mathbf{w}}^{+} is not in linearly separable region, and the local minimum does not exist along the updating path. In such a case, we conclude that GD cannot stay in the linearly separable region. Otherwise, it converges in the direction of w^+\widehat{\mathbf{w}}^{+} that is not in linearly separable region, which leads to a contradiction. If the asymptotic local minimum w^J+\widehat{\mathbf{w}}_{J}^{+} exists, then GD may converge in its direction. If w^J+\widehat{\mathbf{w}}_{J}^{+} does not exist, GD cannot stay in both the misclassified region and linearly separable region, and thus oscillates between these two regions.

In the case when GD reaches a local minimum, by 3.1, we have ∇L(w∗)=0\nabla\mathcal{L}(\mathbf{w}^{*})=\mathbf{0}, and thus GD stops immediately and does not diverges to infinity.

Appendix C Examples of Convergence of GD in ReLU model

The dataset consists of two samples with label +1+1 and one sample with label −1-1. These samples satisfy x1⊺x3<0\mathbf{x}_{1}^{\intercal}\mathbf{x}_{3}<0 and x1⊺x2<0\mathbf{x}_{1}^{\intercal}\mathbf{x}_{2}<0.

For this example, if we initialize GD at the green classifier, then GD converges to the max-margin direction of the sample (x1,+1)(\mathbf{x}_{1},+1). Clearly, such a classifier misclassifies the data sample (x2,+1)(\mathbf{x}_{2},+1).

The dataset consists of one sample with label +1+1 and one sample with label −1-1. These two samples satisfy 0<x1⊺x2≤0.5∥x2∥20<\mathbf{x}_{1}^{\intercal}\mathbf{x}_{2}\leq 0.5\|\mathbf{x}_{2}\|^{2}.

For this example, if we initialize at the green classifier, then GD oscillates around the direction x2/∥x2∥\mathbf{x}_{2}/\|\mathbf{x}_{2}\| and does not converge.

Consider the first iteration. Note that the sample z3\mathbf{z}_{3} has label −1-1, and from the illustration of Figure 1 (left) we have w0⊺x3<0\mathbf{w}_{0}^{\intercal}\mathbf{x}_{3}<0, w0⊺x2<0\mathbf{w}_{0}^{\intercal}\mathbf{x}_{2}<0 and w0⊺x1>0\mathbf{w}_{0}^{\intercal}\mathbf{x}_{1}>0. Therefore, only the sample z1\mathbf{z}_{1} contributes to the gradient, which is given by

By the update rule of GD, we obtain that for all tt

By telescoping eq. 5, it is clear that any wt⊺x2<0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{2}<0 for all tt since x1⊺x2<0\mathbf{x}_{1}^{\intercal}\mathbf{x}_{2}<0. This implies that the sample z2\mathbf{z}_{2} is always misclassified.

Proof of Example 2

Since we initialize GD at w0\mathbf{w}_{0} such that w0⊺x1>0\mathbf{w}_{0}^{\intercal}\mathbf{x}_{1}>0 and w0⊺x2<0\mathbf{w}_{0}^{\intercal}\mathbf{x}_{2}<0, the sample z2\mathbf{z}_{2} does not contribute to the GD update due to the ReLU activation. Next, we argue that there must exists a tt such that wt⊺x2>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{2}>0. Suppose such tt does not exist, we always have wt⊺x1=(w0+∑k=0t−1exp⁡(−wk⊺x1)x1)⊺x1>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{1}=(\mathbf{w}_{0}+\sum_{k=0}^{t-1}\exp(-\mathbf{w}_{k}^{\intercal}\mathbf{x}_{1})\mathbf{x}_{1})^{\intercal}\mathbf{x}_{1}>0. Then, the linear classifier wt\mathbf{w}_{t} generated by GD stays between x1\mathbf{x}_{1} and x2\mathbf{x}_{2}, and the corresponding objective function reduces to a linear model that depends on the sample z1\mathbf{z}_{1} (Note that z2\mathbf{z}_{2} contributes a constant due to ReLU activation). Following from the results in Ji & Telgarsky (2018); Soudry et al. (2017) for linear model, we conclude that wt\mathbf{w}_{t} converges to the max-margin direction x1∥x1∥\frac{\mathbf{x}_{1}}{\|\mathbf{x}_{1}\|} as t→+∞t\rightarrow+\infty. Since x1⊺x2>0\mathbf{x}_{1}^{\intercal}\mathbf{x}_{2}>0, this implies that wt⊺x2>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{2}>0 as t→+∞t\rightarrow+\infty, contradicting with the assumption.

Next, we consider the tt such that wt⊺x1>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{1}>0 and wt⊺x2>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{2}>0, the objective function is given by

and the corresponding gradient is given by

Next, we consider the case that wt⊺x1>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{1}>0 for all tt. Otherwise, both of x1\mathbf{x}_{1} and x2\mathbf{x}_{2} are on the negative side of the classifier and GD cannot make any progress as the corresponding gradient is zero. In the case that wt⊺x1>0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{1}>0 for all tt, by the update rule of GD, we obtain that

Clearly, the sequence {wt⊤x2}t\{\mathbf{w}^{\top}_{t}\mathbf{x}_{2}\}_{t} is strictly decreasing with a constant gap, and hence within finite steps we must have wt⊺x2≤0\mathbf{w}_{t}^{\intercal}\mathbf{x}_{2}\leq 0.

Appendix D Proof of 1

Since SGD stays in the linearly separable region eventually, and hence only the data samples in I+I^{+} contribute to the gradient update due to the ReLU activation function. For this reason, we reduce the original minimization problem (P) to the following optimization

which corresponds to a linear model with samples in I+I^{+}. Similarly, if SGD stays in WJ+\mathcal{W}^{+}_{J}, only the data samples in J+J^{+} contribute the the gradient update, the original minimization problem (P) is reduced to

By convexity we obtain that ⟨∇L(wt−1),wt−1−u⟩≥L(wt−1)−L(u)\langle\nabla\mathcal{L}(\mathbf{w}_{t-1}),\mathbf{w}_{t-1}-\mathbf{u}\rangle\geq\mathcal{L}(\mathbf{w}_{t-1})-\mathcal{L}(\mathbf{u}). Then, eq. 9 further becomes

Telescoping the above inequality yields that

Then, noting that ηk≤1\eta_{k}\leq 1, eq. 12 can be upper bounded by

Next, set u=(ln⁡(t)/γ)w^+\mathbf{u}=(\ln(t)/\gamma)\hat{\mathbf{w}}_{+} and note that w^+⊤xi≥γ\hat{\mathbf{w}}_{+}^{\top}\mathbf{x}_{i}\geq\gamma for all i∈I+i\in I^{+}, we conclude that L(u)=(1/n+)∑i∈I+exp⁡(−u⊤xi)≤1t\mathcal{L}(\mathbf{u})=(1/n^{+})\sum\limits_{i\in I^{+}}\exp(-\mathbf{u}^{\top}\mathbf{x}_{i})\leq\frac{1}{t}. Substituting this into the above inequality and noting that ηk=(k+1)−α\eta_{k}=(k+1)^{-\alpha} and 0.5<α<10.5<\alpha<1, we further obtain that

Then, we can lower bound ∥wt−u∥\|\mathbf{w}_{t}-\mathbf{u}\| as

Taking the expectation of ∥wt−u∥2\|\mathbf{w}_{t}-\mathbf{u}\|^{2}:

where (i) follows from Jensen’s inequality.

Solving the above quadratic inequality yields that

Appendix E Proof of 3.3

The proof exploits the iteration properties of SGD and the bound on the variance of SGD established in 1.

We start the proof from eq. 10, following which we obtain

Taking the expectation on both sides of the above inequality yields that

which, after telescoping, further yields that

By convexity of L\mathcal{L} in the linearly separable region, we have \mathcal{L}\Big{(}\frac{1}{t}\sum\limits_{k=0}^{t-1}\mathbf{w}_{k}\Big{)}\leq\frac{1}{t}\sum\limits_{k=0}^{t-1}\mathcal{L}(\mathbf{w}_{k}), which, in conjunction with eq. 17, yields that

Thus, we can see that L(w‾t)\mathcal{L}(\overline{\mathbf{w}}_{t}) decreases to at a rate of O(ln⁡2(t)/t1−α)\mathcal{O}(\ln^{2}(t)/t^{1-\alpha}). If we choose α\alpha to be close to 0.5, the best convergence rate that can be achieved is O(ln⁡2(t)/t)\mathcal{O}(\ln^{2}(t)/\sqrt{t}).

Appendix F Proof of 3.4

We first present four technical lemmas that are useful for the proof of the main theorem.

Given the stepsize ηk+1=1/(k+1)−α\eta_{k+1}=1/(k+1)^{-\alpha} and the initialization w0s\mathbf{w}_{0s}, then for t≥1t\geq 1, we have

Let X+X^{+} represent the data matrix of all samples with the label +1+1, with each row representing one sample. Then we have:

and w^+\hat{\mathbf{w}}^{+} is the max-margin classifier of samples with the label +1+1.

We next apply the lemmas to prove the main theorem. Taking the expectation of the SGD update rule yields that

Applying the above equation recursively, we further obtain that

F.2 Proof of Technical Lemmas

Since ∥xi∥≤B\|\mathbf{x}_{i}\|\leq B for all ii, we obtain that

Following from the definition of the max-margin, we have

where f∗(a)=max⁡i(a)if^{*}(\mathbf{a})=\max\limits_{i}(\mathbf{a})_{i} and g∗(b)=\mathds1∥b∥≤1g^{*}(\mathbf{b})=\mathds{1}_{\|\mathbf{b}\|\leq 1}, and their conjugate functions are f(c)=\mathds1c∈Δn−1f(\mathbf{c})=\mathds{1}_{\mathbf{c}\in\Delta_{n-1}} and g(e)=∥e∥g(\mathbf{e})=\|\mathbf{e}\|, respectively, where a,b,c,d\mathbf{a},\mathbf{b},\mathbf{c},\mathbf{d} are generic vectors. We also denote ∂f(c)\partial f(\mathbf{c}) and ∂g(e)\partial g(\mathbf{e}) the subgradient set of ff and gg at e\mathbf{e} and c\mathbf{c} respectively. By the Fenchel-Rockafellar duality Borwein & Lewis (2010), we obtain that

In particular, the strong duality holds at q‾\overline{\mathbf{q}} and w^+\hat{\mathbf{w}}^{+} if and only if −X+w∈∂f(q‾)-\mathbf{X}^{+}\mathbf{w}\in\partial f(\overline{\mathbf{q}}) and w^+∈∂g(X+⊤q‾)\hat{\mathbf{w}}^{+}\in\partial g(\mathbf{X}^{+\top}\overline{\mathbf{q}}). Thus, we conclude that w^+=∂g(X+⊤q‾)=X+⊤q‾∥X+⊤q‾∥=1γX+⊤q‾\hat{\mathbf{w}}^{+}=\partial g(\mathbf{X}^{+\top}\overline{\mathbf{q}})=\frac{\mathbf{X}^{+\top}\overline{\mathbf{q}}}{\|\mathbf{X}^{+\top}\overline{\mathbf{q}}\|}=\frac{1}{\gamma}\mathbf{X}^{+\top}\overline{\mathbf{q}}. ∎

By Taylor’s expansion and the update of SGD, we obtain that

where w~=θwk−1+(1−θ)wk\widetilde{\mathbf{w}}=\theta\mathbf{w}_{k-1}+(1-\theta)\mathbf{w}_{k} for certain 0≤θ≤10\leq\theta\leq 1, and is in the linear separable region. Note that for any v\mathbf{v},

where SS is the maximum of L(w)\mathcal{L}(\mathbf{w}) in the linearly separable region. We note that S<+∞S<+\infty because ∥w∥→∞\|\mathbf{w}\|\to\infty in the linearly separable region and hence L(w)→0\mathcal{L}(\mathbf{w})\to 0. Taking the expectation on both sides of eq. 20 and recalling that

Based on the above relationships and Lemma F.2, we obtain that

Taking logarithm on both sides of eq. 22 and utilizing the above facts, we further obtain that

Define h(\mathbf{\mathbf{y}})=\ln\Big{(}\frac{1}{n^{+}}\sum\limits_{i\in I^{+}}\exp(y_{i})\Big{)}, and then its dual function h∗(q)=ln⁡n++qiln⁡(qi)≤ln⁡n+h^{*}(\mathbf{q})=\ln n^{+}+q_{i}\ln(q_{i})\leq\ln n^{+}. Following from Lemma F.2, w^+=1γX+Tq‾\hat{\mathbf{w}}^{+}=\frac{1}{\gamma}\mathbf{X}^{+T}\overline{\mathbf{q}}. Then, by the Fenchel-Young inequality, we obtain that

Appendix G Proof of 2

Under our ReLU model, in the linearly separable region, the gradient ∇L(w)\nabla\mathcal{L}(\mathbf{w}) is given by

Thus, only samples with positive classification output, i.e. σ(wt⊺xξt)>0\sigma(\mathbf{w}_{t}^{\intercal}\mathbf{x}_{\xi_{t}})>0, contribute to the SGD updates.

We first prove ∥wt∥<+∞\|\mathbf{w}_{t}\|<+\infty when there exist misclassified samples. Suppose, toward contradiction, that ∥wt∥=+∞\|\mathbf{w}_{t}\|=+\infty as t→+∞t\rightarrow+\infty when misclassified samples exist. Note that

Since ∥wt∥\|\mathbf{w}_{t}\| is infinite, at least one of the coefficients αi,i=1,⋯ ,n\alpha_{i},i=1,\cdots,n is infinite. No loss of generality, we assume αp=+∞\alpha_{p}=+\infty. Then, the inner product

Based on the data selected in 2, we obtain for ∀i∈I−∪I+\forall i\in I^{-}\cup I^{+}

which, in conjunction with eq. 24, implies that, if there exist j∈I+j\in I^{+}, then the first term in the right side of eq. 24 is finite, the second term is positive, and the third term is positive and infinite. As a result, we conclude that for ∀j∈I+\forall j\in I^{+}, wtxj>0\mathbf{w}^{t}\mathbf{x}_{j}>0 as t→+∞t\rightarrow+\infty. Similarly, we can prove that for ∀j∈I−\forall j\in I^{-}, wtxj≤0\mathbf{w}^{t}\mathbf{x}_{j}\leq 0 as t→+∞t\rightarrow+\infty, which contracts that wtxj>0\mathbf{w}^{t}\mathbf{x}_{j}>0 . Thus, if there exist misclassified samples, then we have ∥wt∥<+∞\|\mathbf{w}_{t}\|<+\infty.

Based on the update rule of SGD, we have, for any jj

which, combined with eq. 25, implies that, if one sample is correctly classified at iteration tt, it remains to be correctly classified in the following iterations. Next, we prove that when ∥wt∥<+∞\|\mathbf{w}_{t}\|<+\infty, all samples are correctly classified within finite steps. Define

Since ∥wt∥<∞\|\mathbf{w}_{t}\|<\infty, there exists a constant CC such that ∥wt∥<C\|\mathbf{w}_{t}\|<C for all tt. Let D=max⁡i∈I+∥xi∥D=\max_{i\in I^{+}}\|\mathbf{x}_{i}\|. Then, we obtain, for any j∈I+j\in I^{+} and ξt∈I+\xi_{t}\in I^{+},

and for any j∈I+j\in I^{+} and ξt∈I−\xi_{t}\in I^{-},

Combining the above two inequalities ∀j∈I+\forall j\in I^{+} yields

Similarly, we can prove ∀j∈I−\forall j\in I^{-}

Combining eq. 25, eq. 26 and eq. 27, we have, when GD is in the misclassified region, the inner product wt⊺xi\mathbf{w}_{t}^{\intercal}\mathbf{x}_{i} increases at least ηmin⁡{exp⁡(−CD)ϵ++,ηϵ+−}\eta\min{\{\exp(-CD)\epsilon^{++},\eta\epsilon^{+-}\}} after each iteratio for ∀xi∈I+\forall\mathbf{x}_{i}\in I^{+} or decreases at least ηmin⁡{exp⁡(−CD)ϵ++,ηϵ+−}\eta\min{\{\exp(-CD)\epsilon^{++},\eta\epsilon^{+-}\}} after each iteration for ∀xi∈I−\forall\mathbf{x}_{i}\in I^{-}. Thus, for a sufficiently large tt, we have

which shows that SGD enters into linearly separable eventually. Recall that once a sample is correctly classified, it remains to be correctly classified in the following iterations. As a result, there exists tˉ∈\mathdsN\bar{t}\in\mathds{N} such that the SGD stays in linearly separable region for all t≥tˉt\geq\bar{t}.

Appendix H Proof of 4.1

After T\mathcal{T} GD iterations, we randomly pick a Ar\mathbf{A}_{r} from {Ai}\{\mathbf{A}_{i}\}. Without loss of generality, we assume that only the first KrK_{r} neurons are activated for all xi∈Br\mathbf{x}_{i}\in\mathcal{B}_{r}, and suppose there are nrn_{r} samples in Br\mathcal{B}_{r}. We first use contradiction to show that all elements in the set Vr={v1,v2,⋯ ,vKr}\mathcal{V}_{r}=\{v_{1},v_{2},\cdots,v_{K_{r}}\} must be either all positive or all negative.

According to the update rule of GD, we have, for any 1≤K1<K2≤Kr1\leq K_{1}<K_{2}\leq K_{r}

Define the empirical risk Lr(w~r)\mathcal{L}_{r}(\widetilde{\mathbf{w}}_{r}) over the samples in Br\mathcal{B}_{r} as

Using that facts that L(W)\mathcal{L}(\mathbf{W}) converges to and Lr(w~rt)≤(n/nr)L(W)\mathcal{L}_{r}(\widetilde{\mathbf{w}}^{t}_{r})\leq(n/n^{r})\mathcal{L}(\mathbf{W}) implies that Lr(w~rt)\mathcal{L}_{r}(\widetilde{\mathbf{w}}^{t}_{r}) converges to . Thus, we have yiw~rt⊺xi≥0y_{i}{\widetilde{\mathbf{w}}_{r}}^{t\intercal}\mathbf{x}_{i}\geq 0 for all xi∈Br\mathbf{x}_{i}\in\mathcal{B}_{r}, and ∥w~rt∥→+∞\|\widetilde{\mathbf{w}}^{t}_{r}\|\rightarrow+\infty as t→+∞t\rightarrow+\infty. Based on eq. 28 we have, for any 1≤k≤Kr1\leq k\leq K_{r}

Recalling that w~rt=∑k=1Krvkwkt\widetilde{\mathbf{w}}^{t}_{r}=\sum_{k=1}^{K_{r}}v_{k}\mathbf{w}^{t}_{k}, we rewrite w~rt\widetilde{\mathbf{w}}^{t}_{r} as

Noting that the norm of the first term in the right side of eq. 30 is finite and recalling that ∥w~rt∥=+∞\|\widetilde{\mathbf{w}}^{t}_{r}\|=+\infty, we have, ∥Δwt∥=+∞\|\Delta\mathbf{w}^{t}\|=+\infty, which, in conjunction with eq. 29, implies that ∥wkt∥=+∞\|\mathbf{w}^{t}_{k}\|=+\infty for all 1≤k≤Kr1\leq k\leq K_{r}.

Next, let us look at the update of w1\mathbf{w}_{1} and w2\mathbf{w}_{2}. If there exist two elements in Vr\mathcal{V}_{r} that have different signs (without loss of generality, we assume v1>0v_{1}>0 and v2<0v_{2}<0), then

Recalling that ∥Δwt∥=+∞\|\Delta\mathbf{w}^{t}\|=+\infty as t→+∞t\rightarrow+\infty and noting that the first two neurons are activated after T\mathcal{T} iterations, we have, for ∀xi∈Br\forall\mathbf{x}_{i}\in\mathcal{B}_{r}

Since Δwt\Delta\mathbf{w}^{t} belongs to the space spanned by the samples in Br\mathcal{B}_{r}, Δwt\Delta\mathbf{w}^{t} cannot be perpendicular to all xi∈Br\mathbf{x}_{i}\in\mathcal{B}_{r}. Thus, when t→+∞t\rightarrow+\infty, we can find a sample xr∈Br\mathbf{x}_{r}\in\mathcal{B}_{r} such that ∥Δwt⊺xr∥=+∞\|\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}\|=+\infty. If Δwt⊺xr>0\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}>0, then we have w2t⊺xr<0\mathbf{w}^{t\intercal}_{2}\mathbf{x}_{r}<0, which contradicts appendix H. If Δwt⊺xr<0\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}<0, then w1t⊺xr<0\mathbf{w}^{t\intercal}_{1}\mathbf{x}_{r}<0, which also contradicts appendix H. As a result, all elements in Vr\mathcal{V}_{r} have the same sign.

Next, we prove that all samples in the same pattern partition have the same label. First consider the case when all elements in Vr\mathcal{V}_{r} are positive. If there exists a sample xsp∈Br\mathbf{x}_{sp}\in\mathcal{B}_{r} such that ysp=−1y_{sp}=-1 when t=+∞t=+\infty, then

which contradicts that L(W)\mathcal{L}(\mathbf{W}) converges to .

Next, consider the case when all elements in Vr\mathcal{V}_{r} are negative. If there exists a sample xsp∈Br\mathbf{x}_{sp}\in\mathcal{B}_{r} such that ysp=+1y_{sp}=+1, we have

which also leads a contradiction. Combining these two results, we conclude that if all elements in Vr\mathcal{V}_{r} are positive, then all samples in Br\mathcal{B}_{r} have label +1+1, and if all elements in Vr\mathcal{V}_{r} are negative, then all samples in Br\mathcal{B}_{r} have label −1-1.

Finally, note that w~r\widetilde{\mathbf{w}}_{r} is updated by

Applying 3.2 to eq. 34 with stepsize \hat{\eta}=\eta n/\big{(}n_{r}\sum_{k=1}^{K_{r}}v^{2}_{k}\big{)}, we obtain that w~rt\widetilde{\mathbf{w}}_{r}^{t} converges in the direction of the max-marigin classifier over all samples in Br\mathcal{B}_{r}, i.e.,

Appendix I Proof of 4.2

After T\mathcal{T} GD iterations, we randomly pick a Ar\mathbf{A}_{r} from {Ai}\{\mathbf{A}_{i}\}. Without loss of generality, we assume that only the first KrK_{r} neurons are activated for all xi∈Br\mathbf{x}_{i}\in\mathcal{B}_{r}, and suppose there are nrn_{r} samples in Br\mathcal{B}_{r}. We first use contradiction to show that all elements in the set Vr={v1,v2,⋯ ,vKr}\mathcal{V}_{r}=\{v_{1},v_{2},\cdots,v_{K_{r}}\} must be either all positive or all negative.

According to the update rule of SGD, for any 1≤K1<K2≤Kr1\leq K_{1}<K_{2}\leq K_{r}

Then we prove w~rt\widetilde{\mathbf{w}}^{t}_{r} diverges to infinity as t→+∞t\rightarrow+\infty. If w~rt\widetilde{\mathbf{w}}^{t}_{r} does not diverges to infinity, then there exist a positive constant F<+∞F<+\infty such that ∀t≥0,∥w~rt∥<F\forall t\geq 0,\|\widetilde{\mathbf{w}}^{t}_{r}\|<F. According to the update rule of SGD

For all xξt∈Br\mathbf{x}_{\xi_{t}}\in\mathcal{B}_{r}, we have yξtw~rt⊺xξt>0y_{\xi_{t}}\widetilde{\mathbf{w}}_{r}^{t\intercal}\mathbf{x}_{\xi_{t}}>0, thus ∥w~rt∥\|\widetilde{\mathbf{w}}^{t}_{r}\| is strictly increasing at each step. Since ∥w~rt∥\|\widetilde{\mathbf{w}}^{t}_{r}\| is upper bounded by FF and is in the linearly separable region, we can find a constant ϵr>0\epsilon_{r}>0 such that

Recall ηt=1/(t+1)−α\eta_{t}=1/(t+1)^{-\alpha}, telescoping the above inequality from step T\mathcal{T} to t=+∞t=+\infty

since 0.5<α<10.5<\alpha<1, the R.H.S of the above inequation goes to infinity, thus ∥w~rt∥=+∞\|\widetilde{\mathbf{w}}^{t}_{r}\|=+\infty when t→+∞t\rightarrow+\infty, which is a contradiction. Thus, w~rt\widetilde{\mathbf{w}}^{t}_{r} diverges to infinity.

Based on eq. 28 we have, for any 1≤k≤Kr1\leq k\leq K_{r}

Recalling that w~rt=∑k=1Krvkwkt\widetilde{\mathbf{w}}^{t}_{r}=\sum_{k=1}^{K_{r}}v_{k}\mathbf{w}^{t}_{k}, we rewrite w~rt\widetilde{\mathbf{w}}^{t}_{r} as

Noting that the norm of the first term in the right side of eq. 37 is finite and recalling that ∥w~rt∥=+∞\|\widetilde{\mathbf{w}}^{t}_{r}\|=+\infty, we have, ∥Δwt∥=+∞\|\Delta\mathbf{w}^{t}\|=+\infty, which, in conjunction with eq. 36, implies that ∥wkt∥=+∞\|\mathbf{w}^{t}_{k}\|=+\infty for all 1≤k≤Kr1\leq k\leq K_{r}.

Next, let us look at the update of w1\mathbf{w}_{1} and w2\mathbf{w}_{2}. If there exist two elements in Vr\mathcal{V}_{r} that have different signs (without loss of generality, we assume v1>0v_{1}>0 and v2<0v_{2}<0), then

Recalling that ∥Δwt∥=+∞\|\Delta\mathbf{w}^{t}\|=+\infty as t→+∞t\rightarrow+\infty and noting that the first two neurons are activated after T\mathcal{T} iterations, we have, for ∀xi∈Br\forall\mathbf{x}_{i}\in\mathcal{B}_{r} and t>Tt>\mathcal{T}, the following two inequalities always hold

Since Δwt\Delta\mathbf{w}^{t} belongs to the space spanned by the samples in Br\mathcal{B}_{r}, Δwt\Delta\mathbf{w}^{t} cannot be perpendicular to all xi∈Br\mathbf{x}_{i}\in\mathcal{B}_{r}. Thus, when t→+∞t\rightarrow+\infty, we can find a sample xr∈Br\mathbf{x}_{r}\in\mathcal{B}_{r} such that ∥Δwt⊺xr∥=+∞\|\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}\|=+\infty. If Δwt⊺xr>0\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}>0, then we have w2t⊺xr<0\mathbf{w}^{t\intercal}_{2}\mathbf{x}_{r}<0, which contradicts appendix I. If Δwt⊺xr<0\Delta\mathbf{w}^{t\intercal}\mathbf{x}_{r}<0, then w1t⊺xr<0\mathbf{w}^{t\intercal}_{1}\mathbf{x}_{r}<0, which also contradicts appendix I. As a result, all elements in Vr\mathcal{V}_{r} have the same sign.

Next, we prove that all samples in the same pattern partition have the same label. First consider the case when all elements in Vr\mathcal{V}_{r} are positive. If there exists a sample xsp∈Br\mathbf{x}_{sp}\in\mathcal{B}_{r} such that ysp=−1y_{sp}=-1 when t=+∞t=+\infty, then

which contradicts that L(W)<1/n\mathcal{L}(\mathbf{W})<1/n.

Next, consider the case when all elements in Vr\mathcal{V}_{r} are negative. If there exists a sample xsp∈Br\mathbf{x}_{sp}\in\mathcal{B}_{r} such that ysp=+1y_{sp}=+1, we have

which also leads a contradiction. Combining these two results, we conclude that if all elements in Vr\mathcal{V}_{r} are positive, then all samples in Br\mathcal{B}_{r} have label +1+1, and if all elements in Vr\mathcal{V}_{r} are negative, then all samples in Br\mathcal{B}_{r} have label −1-1.

Finally, note that w~r\widetilde{\mathbf{w}}_{r} is updated by

Applying 3.4 to eq. 41 with stepsize \hat{\eta}_{t}=\eta_{t}\big{(}\sum_{k=1}^{K_{r}}v^{2}_{k}\big{)}^{-1}, we obtain that w˘rt\breve{\mathbf{w}}_{r}^{t} converges in the direction of the max-marigin classifier over all samples in Br\mathcal{B}_{r}, i.e.,