On the Quality of the Initial Basin in Overspecified Neural Networks
Itay Safran, Ohad Shamir
Introduction
Deep learning (in the form of multi-layered artificial neural networks) has been tremendously successful in recent years, and advanced the state of the art across a range of difficult machine learning applications. Inspired by the structure of biological nervous systems, these predictors are usually composed of several layers of simple computational units (or neurons), parameterized by a set of weights, which can collectively express highly complex functions. Given a dataset of labeled examples, these networks are generally trained by minimizing the average of some loss function over the data, using a local search procedure such as stochastic gradient descent.
Although the expressiveness and statistical performance of such networks is relatively well-understood, it is a major open problem to understand the computational tractability of training such networks. Although these networks are trained successfully in practice, most theoretical results are negative. For example, it is known that finding the weights that best fit a given training set, even for very small networks, is NP-hard (Blum and Rivest, 1992). Even if we relax the problem by allowing improper learning or assuming the data is generated by a network, the problem remains worst-case hard (see e.g. (Livni et al., 2014) for a discussion of this and related results). This theory-practice gap is a prime motivation for our work.
In this paper, we study the geometric structure of the objective function associated with training such networks, namely the average loss over the training data as a function of the network parameters. We focus on plain-vanilla, feedforward networks which use the simple and popular ReLU activation function (see Sec. 2.1 for precise definitions), and losses convex in the network’s predictions, for example the squared loss and cross-entropy loss. The structure of the resulting objective function is poorly understood. Not surprisingly, it is complex, highly non-convex, and local search procedures are by no means guaranteed to converge to a global minimum. Moreover, it is known that even if the network is composed of a single neuron, the function may have exponentially many local minima (Auer et al., 1996). Furthermore, as we discuss later in the paper, the construction can be done such that the vast majority of these local minima are sub-optimal. Nevertheless, our goal in this work is to understand whether, perhaps under some conditions, the function has some geometric properties which may make it more favorable to optimization.
Before continuing, we emphasize that our observations are purely geometric in nature, independent of any particular optimization procedure. Moreover, we make no claim that these properties necessarily imply that a practical local search procedure, such as stochastic gradient descent, will converge to a good solution (although proving such a result could be an interesting direction for future work). Nevertheless, the properties we consider do seem indicative of the difficulty of the optimization problem, and we hope that our results can serve as a basis for further progress on this challenging research direction.
A recurring theme in our results is that such favorable properties can be shown to occur as the network size grows larger, perhaps larger than what would be needed to get good training error with unbounded computational power (hence the term overspecified networks). At first, this may seem counter-intuitive, as larger networks have more parameters, and training them involves apparently more complex optimization in a higher-dimensional space. However, higher dimensions also means more potential directions of descent, so perhaps the gradient descent procedures used in practice are more unlikely to get stuck in poor local minima and plateaus. Although difficult to formalize, this intuition accords with several recent empirical and theoretical evidence, which indicates that larger networks may indeed be easier to train (see (Livni et al., 2014) as well as (Choromanska et al., 2014; Dauphin et al., 2014; Bach, 2014)).
In the first part of our work (Sec. 3), we consider networks of arbitrary depth, where the weights are initialized at random using some standard initialization procedure. This corresponds to a random starting point in the parameter space. We then show that under some mild conditions on the loss function and the data set, as the network width increases, we are overwhelmingly likely to begin at a point from which there is a continuous, strictly monotonically decreasing path to a global minimumTo be precise, we prove a more general result, which implies a monotonic path to any objective value smaller than that of the initial point, as long as some mild conditions are met. See Thm. 1 in Sec. 3 for a precise formulation.. This means that although the objective function is non-convex, it is not “wildly” non-convex in the sense that the global minima are in isolated valleys which cannot be reached by descent procedures starting from random initialization. In other words, “crossing valleys” is not strictly necessary to reach a good solution (although again, we give no guarantee that this will happen for a specific algorithm such as stochastic gradient descent). We note that this accords well with recent empirical observations Goodfellow and Vinyals (2014), according to which the objective value of networks trained in practice indeed tends to decrease monotonically, as we move from the initialization point to the end point attained by the optimization algorithm. We also note that although we focus on plain-vanilla feed-forward networks, our analysis is potentially applicable to more general architectures, such as convolutional networks.
In the second part of our work (Sec. 4), we focus more specifically on two-layer networks with scalar-valued outputs. Although simpler than deeper networks, the associated optimization problem is still highly non-convex and exhibits similar worst-case computational difficulties. For such networks, we study a more fine-grained geometric property: We define a partition of the parameter space into convex regions (denoted here as basins), in each of which the objective function has a relatively simple, basin-like structure: Inside each such basin, every local minima of the objective function is global, all sublevel sets are connected, and in particular there is only a single connected set of minima, all global on that basin. We then consider the probability that a random initialization will land us at a basin with small minimal value. Specifically, we show that under various sets of conditions (such as low intrinsic data dimension, or a cluster structure), this event will occur with overwhelmingly high probability as the network size increases. As an interesting corollary, we show that the construction of (Auer et al., 1996), in which a single neuron network is overwhelmingly likely to be initialized at a bad basin, is actually surprisingly brittle to overspecification: If we replace the single neuron with a two-layer network comprised of just neurons ( being the data dimension), and use the same dataset, then with overwhelming probability, we will initialize at a basin with a globally optimal minimal value.
As before, we emphasize that these results are purely geometric, and do not imply that an actual gradient descent procedure will necessarily attain such good objective values. Nevertheless, we do consider a property such as high probability of initializing in a good basin as indicative of the optimization difficulty of the problem.
We now turn to discuss some related work. Perhaps the result most similar to ours appears in (Livni et al., 2014), where it is shown that quite generally, if the number of neurons in the penultimate layer is larger than the data size, then global optima are ubiquitous, and “most” starting points will lead to a global optimum upon optimizing the weights of the last layer. Independently, (Haeffele and Vidal, 2015) also provided results of a similar flavor, where sufficiently large networks compared to the data size and dimension do not suffer from local minima issues. However, these results involve huge networks, which will almost invariably overfit, whereas the results in our paper generally apply to networks of more moderate size. Another relevant work is (Choromanska et al., 2014), which also investigates the objective function of ReLU networks. That work differs from ours by assuming data sampled from a standard Gaussian distribution, and considering asymptotically large networks with a certain type of random connectivity. This allows the authors to use tools from the theory of spin-glass models, and obtain interesting results on the asymptotic distribution of the objective values associated with critical points. Other results along similar lines appear in (Dauphin et al., 2014). This is a worthy but rather different research direction than the one considered here, where we focus on theoretical investigation of non-asymptotic, finite-sized networks on fixed datasets, and consider different geometric properties of the objective function. Other works, such as (Arora et al., 2014; Andoni et al., 2014; Janzamin et al., 2015; Zhang et al., 2015) and some of the results in (Livni et al., 2014), study conditions under which certain types of neural networks can be efficiently learned. However, these either refer to networks quite different than standard ReLU networks, or focus on algorithms which avoid direct optimization of the objective function (often coupled with strong assumptions on the data distribution). In contrast, we focus on the geometry of the objective function, which is directly optimized by algorithms commonly used in practice. Finally, works such as (Bengio et al., 2005; Bach, 2014) study ways to convexify (or at least simplify) the optimization problem by re-parameterizing and lifting it to a higher dimensional space. Again, this involves changing the objective function rather than studying its properties.
Preliminaries and Notation
We use bold-faced letters to denote vectors, and capital letters to generally denote matrices. Given a natural number , we let be shorthand for .
For a vector and a matrix
and letting be a shorthand for , we can define a layer of neurons as
Finally, by denoting the output of the layer as , we can define a network of arbitrary depth recursively by
where represent the matrix of weights and bias of the layer, respectively. Following a standard convention for multi-layer networks, the final layer is a purely linear function with no bias, i.e.
Define the depth of the network as the number of layers , and denote the number of neurons in the layer as the size of the layer. We define the width of a network as .
We emphasize that in this paper, we focus on plain-vanilla networks, and in particular do not impose any constraints on the weights of each neuron (e.g. regularization, or having convolutional layers).
We define to be the set of all network weights, which can be viewed as one long vector (its size of course depends on the size of the network considered). We will refer to the Euclidean space containing as the parameter space.
2 Objective Function
In its simplest form, training a neural network corresponds to finding a combination of weights which minimizes the average loss over the training data. More formally, we define the objective function as
3 Basins
In Sec. 4, we will we consider a partition of the parameter space into convex regions, in each of which the objective function has a relatively simple basin-like form, and study the quality of the basin in which we initialize. In particular, we define a basin with respect to as a closed and convex subset of the parameter space, on which has connected sublevel sets, and where each local minimum is global. More formally, we have the following definition:
(Basin) A closed and convex subset of our parameter space is called a basin if the following conditions hold:
If is a local minimum of on , then it is a global minimum of on .
We define the basin value of a basin as the minimal valueFor simplicity, we will assume this minimal value is actually attained at some point in the parameter space. Otherwise, one can refer to an attainable value arbitrarily close to it. attained:
Similarly, for a point in the interior of a basin we define its basin value as the value of the basin to which it belongs:
In what follows, we consider basins with disjoint interiors, so the basin to which belongs is always well-defined.
4 Initialization Scheme
As was mentioned in the introduction, we consider in this work questions such as the nature of the basin we initialize from, under some random initialization of the network weights. Rather than assuming a specific distribution, we will consider a general class of distributions which satisfy some mild independence and symmetry assumptions:
The initialization distribution of the network weights satisfies the following:
The weights of every neuron are initialized independently.
The vector of each neuron’s weights (including bias) is drawn from a spherically symmetric distribution supported on non-zero vectors.
Networks of Any Depth: Path to Global Minima
In this section, we establish the existence of a continuous path in the parameter space of multilayer networks (of any depth), which is strictly monotonically decreasing in the objective value, and can reach an arbitrarily small objective value, including the global minimum. More specifically, we show in Thm. 1 that if the loss is convex in the network’s predictions, and there exists some continuous path in the parameter space from the initial point to a point with smaller objective value (including possibly a global minimum, where the objective value along the path is not necessarily monotonic) which satisfies certain relatively mild conditions, then it is possible to find some other path from to a point as good as , along which the objective value is strictly monotonically decreasing.
For the theorem to hold, we need to assume our starting point has a sufficiently large objective value. In Proposition 1 and Proposition 2, we prove that this will indeed occur with random initialization, with overwhelming probability. A different way to interpret this is that a significant probability mass of the surface of the objective function overlooks the global minimum. It should be noted that the path to the minimum might be difficult to find using local search procedures. Nevertheless, these results shed some light on the nature of the objective function, demonstrating that it is not “wildly” non-convex, in the sense that “crossing valleys” is not a must to reach a good solution, and accords with recent empirical evidence to this effect (Goodfellow and Vinyals, 2014).
For the results here, it would be convenient to re-write the objective function as , where is the vector of network parameters, is an matrix, which specifies the prediction for each of the training points (the prediction can be scalar valued, i.e. , or vector-valued when ), and is the average loss over the training data. For example, for regression, a standard choice is the squared loss, in which case
Recall that although these losses are convex in the network’s predictions, is still generally non-convex in the network parameters . Also, we remind that due to the last layer being linear, multiplying its parameters by some scalar causes the output to change by . Building on this simple observation, we have the following theorem.
For some and any , there exists some such that .
The initial point satisfies .
Intuitively, this result stems from the linear dependence of the network’s output on the parameters of the last layer. Given the initial non-monotonic path , we rescale the last layer’s parameters at each by some positive factor depending on (moving it closer or further from the origin), which changes its output and hence its objective value. We show it is possibly to do this rescaling, so that the rescaled path is continuous and has a monotonically decreasing objective value. In fact, although we focus here on ReLU networks, the theorem itself is quite general and holds even for networks with other activation functions. A formal proof and a more detailed intuition is provided in Subsection B.1.
The first condition in the theorem is satisfied by losses which get sufficiently large (as a function of the network predictions) sufficiently far away from the origin. In particular, it is generally satisfied by both the squared loss and the cross-entropy loss with softmax activations, assuming data points and initialization in general positionFor the squared loss, a sufficient condition is that for any , there is some data point on which the prediction of is non-zero. For the cross-entropy loss, a sufficient condition is that for any , there is some data point on which outputs an ‘incorrect’ prediction vector , in the sense that if is the correct label, then .. The second condition requires the random initialization to be such that the initialized network has worse objective value than the all-zeros predictor. However, it can be shown to hold with probability close to (over the network’s random initialization), for losses such as those discussed earlier:
If corresponds to the squared loss or cross-entropy loss with softmax activation, and the network parameters are initialized as described in Assumption 1, then
where is the number of neurons in the last layer before the output neurons.
This proposition (whose proof appears in appendix B.2) is a straightforward corollary of the following result, which can be applied to other losses as well:
Suppose the network parameters are initialized randomly as described in Assumption 1. Suppose furthermore that is such that
for some (where the probability is with respect to ). Then
Intuitively, the strict convexity property means that by initializing the neurons from a zero-mean distribution (such as a spherically symmetric one), we are likely to begin at a point with higher objective value than initializing at the mean of the distribution (corresponding to zero weights and zero predictions on all data points). A formal proof appears in Appendix B.3.
Two-layer ReLU Networks
We now turn to consider a more specific network architecture, namely two-layer networks with scalar output. While simpler than deeper architectures, two-layer networks still possess universal approximation capabilities (Cybenko, 1989), and encapsulate the challenge of optimizing a highly non-convex objective.
(Basin Partition) For any and , define as the topological closure of a set of the form
We will ignore corresponding to empty sets, since these are irrelevant to our analysis.
For any such that is non-empty, is a basin as defined in Definition 1.
The reader is referred to Appendix A.1 for the proof of the lemma.
Note that Definition 2 refers to a partition of the parameter space into a finite number of convex polytopes. Recalling Assumption 1 on the initialization distribution (basically, that it is a Cartesian product of spherically-symmetric distributions), it is easy to verify that we will initialize in an interior of a basin with probability . Therefore, we may assume that we always initialize in some unique basin.
We now focus on understanding when are we likely to initialize at a basin with a low minimal value (which we refer to as the basin value). We stress that this is a purely geometric argument on the structure on the objective function. In particular, even though every local minimum in a basin is also global on the basin, it does not necessarily entail that an optimization algorithm such as stochastic gradient descent will necessarily converge to the basin’s global minima (for example, it may drift to a different basin). However, we believe this type of geometric property is indicative of the optimization susceptibility of the objective function, and provides some useful insights on its structure.
We now turn to state a simple but key technical lemma, which will be used to prove the results presented later in this section. Moreover, this lemma also provides some insight into the geometry of the objective function for two-layer networks:
Let denote a two-layer network of size , and let
be in the interior of some arbitrary basin. Then for any subset we have
Where the right hand side is with respect to an architecture of size .
This lemma captures in a way the power overspecification has in the context of two-layer networks: In terms of basin values, any initialization made using a network of width (i.e. with neurons in the first layer) is at least as good as if we had used only a width network. This is because in our definition of the basin partition, clamping the weights of any neurons to still keeps us in the same basin, while only increasing the minimal value we can obtain using the non-clamped neurons. Therefore, if we had only a -width network to begin with, the corresponding basin value can only be larger. We refer the reader to Appendix A.2 for the proof of the lemma.
The training objective function of neural network is known to be highly non-convex, even for simple networks. A classic and stark illustration of this was provided in (Auer et al., 1996) who showed that even for a network comprised of a single neuron (with certain types of non-ReLU activation functions, and with or without bias), the objective function can contain a huge number of local minima (exponentially many in the input dimension). In Appendix C, we provide an extension of this result by proving that with a similar construction, and for a neuron with ReLU activation, not only is the number of local minima very large, but the probability of initializing at a basin with good local minimum (using the natural analogue of the basin partition from Definition 2 for a single neuron) is exponentially small in the dimension.
It is natural to study what happens to such a hardness construction under overspecification, which here means replacing a single neuron by a two-layer network of some width , and training on the same dataset. Surprisingly, it turns out that in this case, the probability of reaching a sub-optimal basin decays exponentially in and becomes arbitrarily small already when . Intuitively, this is because for such constructions, for each coordinate it is enough that one of the neurons in the first layer will have the corresponding weight initialized in the right basin. This will happen with overwhelming probability if is moderately large. More formally, we have the following theorem:
The reader is referred to Appendix B.4 for the full proof.
We note that cannot be larger than the optimal value attained using a single neuron architecture. Also, we emphasize that the purpose of Thm. 2 is not to make a statement about neural networks for singleton datasets (which are not common in practice), but rather to demonstrate the brittleness of hardness constructions such as in (Auer et al., 1996) to overspecification, as more neurons are added to the first layer. This motivates us in further studying overspecification in the following subsections.
2 Data With Low Intrinsic Dimension
We now turn to provide a result, which demonstrates that for any dataset which is realizable using a two-layer network of a given width (i.e. for some ), the probability of initializing from a basin containing a good minimum increases as we add more neurons to the first layer, corresponding to the idea of overspecification. We note that this result holds without significant additional assumptions, but on the flip side, the number of neurons required to guarantee a constant success probability increases exponentially with the intrinsic dimension of the data (, where is the data matrix whose rows are ), so a magnitude of neurons is required. Thus, the result is only meaningful when the intrinsic dimension and are modest. In the next subsection, we provide results which require a more moderate amount of overspecification, under other assumptions.
where is some constant. For all , if
and we initialize a two-layer, width network (for some ), using a distribution satisfying Assumption 1, then
The proof idea is that with a large enough amount of overspecification, with high probability, there will be a subset of the neurons in the first layer for which the signs of their outputs on the data and the signs of their weights in the output neuron will resemble those of . Then, by using Lemma 2 we are able to argue that the initialization made in the remaining neurons does not degrade the value obtained in the aforementioned subset. We refer the reader to Appendix B.5 for the full proof.
3 Clustered or Full-rank Data
In this subsection, we will first show that when training on instances residing in high dimension (specifically, when the dimension satisfies , where is the number of training examples), we initialize at a good basin with high probability. Building on this result, we show that even when , we still initialize at a good basin with high probability, as long as the data is clustered into sufficiently small clusters.
Specifically, we begin by assuming that our data matrix satisfies . We note that this immediately implies . This refers to data of very high intrinsic dimension, which is in a sense the opposite regime to the one considered in the previous subsection (where the data was assumed to have low intrinsic dimension). Even though this regime might be strongly prone to overfitting, this allows us to investigate the surface area of the objective function effectively, while also serving as a base for the clustered data scenario that we will be studying in Thm. 5.
We now state our formal result for such datasets, which implies that under the rank assumption, a two-layer network of size is sufficient to initialize in a basin with a global minimum with overwhelming probability.
We refer the reader to Appendix B.6 for the full proof of the theorem.
As mentioned earlier, training on examples, without imposing any regularization, is prone to overfitting. Thus, to say something meaningful in the regime, we will consider an extension of the previous result, where instead of having fewer data points than dimensions , we assume that the training instances are composed of relatively small clusters in general position. Intuitively, if the clusters are sufficiently small, the surface of the objective function will resemble that of having data points, and will have a similar favorable structure.
We also point out that in a similar manner to as we did in Thm. 3, the theorem statement assumes that the objective function refers to the average squared loss over the data. However, the proof does not rely on special properties of this loss, and it is possible to generalize it to other convex losses (perhaps with a somewhat different resulting bound).
s.t. for all , there is a unique such that .
and for some .
For some fixed , it holds that for any such that are in the same cluster.
Where the big notation hides quadratic dependencies on (see the proof provided in Appendix B.7 for an explicit expression).
Note that measures how tight the clusters are, whereas and can be thought of as constants assuming the cluster centers are in general position. So, the theorem implies that for sufficiently tight clusters, with overwhelming probability, we will initialize from a basin containing a low-valued minimum, as long as the network size is .
This research is supported in part by an FP7 Marie Curie CIG grant, Israel Science Foundation grant 425/13, and the Intel ICRI-CI Institute. We thank Lukasz Kaiser for pointing out a bug (as well as the fix) in an earlier version of the paper.
References
Appendix A Proofs of Basin Partition Properties
We will need the following three auxiliary lemmas.
Let be some basin as defined in Definition 2, and define . Then
is convex in on .
If for some , then the neuron is canceled and we can linearly rescale to , and then rescale to , so we may assume without loss of generality that for all . We have for all ,
Where we used the positive homogeneity of in the last equality. So by linearly scaling to , i.e. , we obtain the desired path
Can be shown using a straightforward computation.
Clearly, is a closed set, and is convex as an intersection of halfspaces.
has connected sublevel sets: Let . Using Lemma 4 we may assume without loss of generality that . By linearly interpolating , i.e. by taking
we get a continuous path connecting . This path remains in the same basin as a result of Lemma 5.3. Moreover, by Lemma 3, the objective is convex in , so we get for all
Any local minimum in is global: Suppose is a local minimum in , let
Where the first transition comes from being a local minimum and Lemma 5.2,5.3, the second and third from Lemma 5.1, and the fourth from Lemma 3.
A.2 Proof of Lemma 2
Appendix B Proofs of Main Theorems
Before delving into the proof of the theorem, we provide some intuition in the special case of the squared loss, where . Fix some , and consider the objective function along the ray in the parameter space, corresponding to multiplying the last layer weights in by some scalar . Since the output layer is linear, the objective function (as we vary ) will have the form
Thus, the objective function, as a parameter of (where is fixed) is just a quadratic function. Moreover, by the intermediate value theorem, as long as is not for all , then by picking different values of , we can find points along the ray taking any value between (when ) and (as ). Therefore, as long as we start from a point whose objective value is larger than , we can re-scale each by some factor , so that the new path is continuous, as well as monotonically decreasing in value, remaining above . When we reach the ray belonging to the endpoint of the original path, we simply re-scale back towards , with the objective function continuing to decrease due to the convex quadratic form of the objective function along the ray.
We now turn to the formal proof in the general setting of Thm. 1. For technical reasons, we will extend the interval to a strictly larger interval, and define certain quantities with respect to that larger interval. Specifically, for any , define
and note that it strictly monotonically decreases with , and satisfies the chain of inequalities
By assumption, for any , there exists some such that . Since for any , it follows that for any such ,
where denote clipping of to the interval $\lambda\in$,
Since is convex and real-valued, it is continuous, hence is convex and continuous in . Combining this with Eq. (2) and Eq. (3), it follows from the intermediate value theorem that
which cannot be satisfied by a convex function .
B.2 Proof of Proposition 1
It is enough to verify that for both losses, proposition 2 holds with .
For the squared loss, if , then consider the first training example for which . In that case, it is easily verified that is strictly convex in (for any ), and therefore is also strictly convex, as an average of convex functions where at least one of them is strictly convex. Therefore, strict convexity holds with probability .
For the cross-entropy loss, it is enough to consider the first training example on which the prediction vector of is non-zero, and show strict convexity on that example with probability . Since the loss on other examples are convex as well, we get overall strict convexity with probability as required. Specifically, we need to show strict convexity in of the function
where is the correct class. To do so, consider the function . A straightforward calculation reveals that its Hessian equals
so the second derivative of the function in Eq. (6) w.r.t. at some value equals
We now argue that this is strictly positive, unless is a constant vector , in which case the function in Eq. (6) is indeed strictly convex. To see this, note that the Hessian of is a rank-1 perturbation of the positive definite matrix , so its rank is at least . Thus, there is only a -dimensional subspace of vectors , for which , which can be verified to be exactly the subspace of constant vectors. Thus, Eq. (7) is positive unless is a constant vector.
To finish the proof for the cross-entropy loss, it remains to show that the probability that is non-constant (conditioned on is . To simplify the notation, let be the event that , let be the event that conditioned on , (the first non-zero prediction vector over the training examples) is also non-constant. Also, let be the event that conditioned on , then for the same training example as , the input vector to the output neurons is non-zero. Then it holds that
B.3 Proof of Proposition 2
B.4 Proof of Thm. 2
and observe the objective value on satisfies for all ,
The probability of this condition not to hold for a single neuron is at most .
The probability of this condition not to hold for all neurons (since by Assumption 1 all neurons are independent) is at most .
By using the union bound, the probability that exists some such that no neuron can obtain the minimal value over it is at most
We conclude that when initializing using a distribution satisfying Assumption 1 then
B.5 Proof of Thm. 3
We will need the following two auxiliary lemmas:
is -Lipschitz in each .
We leave this lemma without proof, and note that it is immediate from the definition of .
The following lemma provides a lower bound on the probability that the neuron is initialized from a region with a point of distance at most from .
Let , let satisfying , and let be a point on an origin-centered sphere chosen uniformly at random. Then
Before turning to prove the lemma, we first prove the following auxiliary claim.
This claim suffices for proving a weaker version of Thm. 3 where is replaced with . However, utilizing a simple observation on the structure of the basin partition allows us to prove Lemma 7 which strengthens the result.
The surface area of a hyperspherical cap of radius is given by the formula: ([Li, 2011])
where the last inequality holds for all . Since we have that .
Using the identities , and , we have
Finally, can be shown to be monotonically increasing for all , so , thus yielding
which concludes the proof of the claim. ∎
Let , and define where for . First, we observe that for any initialization of , that and where both belong to the same basin, since
Thus both belong to the same basin, achieving the same minimal value. Since any rotation under which is invariant commutes with , we have for any measurable set
where denotes the -dimensional Lebesgue measure. So initializing uniformly on an origin-centered sphere of dimension is equivalent to initializing uniformly on an origin-centered sphere of dimension in the sense of the region we initialize from. We complete the proof by invoking Claim 1 with respect to a -dimensional sphere. ∎
We first argue that since our initialization distribution satisfies Assumption 1, we may rescale each neuron once initialized to the unit sphere. This is justified since a linear rescaling of the weight of each neuron does not change the basin we initialized from, so the basin value remains the same. For this reason, we assume without loss of generality the distribution where each neuron is distributed uniformly and independently on the unit sphere. Define
Using the positive homogeneity of the ReLU, we can rescale each to satisfy , and rescale accordingly, so we may also assume . From Lemma 7 we have
Since the two events are independent, we have that both occur w.p. at least . Also, this event is independent for each neuron, so we have w.p. at least for each neuron to initialize ‘close‘ enough to . In this sense, we can lower bound the number of good initializations from below using , where is the binomial distribution. By using Chernoff‘s bound we bound the tail of as follows
Let be the indices of the well initialized neurons, and let
We compute the value of the basin corresponding to these neurons as follows:
where the second inequality in the triangle inequality and the third inequality is from Lemma 6. We now finish the proof by invoking Lemma 2 to conclude
B.6 Proof of Thm. 4
we want to show that for well chosen values of , belongs to the same basin as , and achieves the desired prediction over a certain subset of , while achieving a prediction of over the rest of the sample instances, effectively predicting the subset without affecting the prediction over the rest of the sample. By combining enough neurons in this manner, we are able to obtain the minimal objective value over the data. Namely, an objective value of . Define the vector , where
and choose such that the equality
is of rank , and therefore exists and is well-defined.
Assuming that for any there exists some neuron such that (We will later analyze the probability of this actually happening), we compute the prediction of our network with weights on :
Where the last equality comes from our assumption that there exists some neuron s.t. , and from the definition of which asserts that at most a single neuron will predict . Thus, we have
To put this result in different words, if is positive on the hyperplane induced by and if has the same sign as , then predicts correctly, given that was not previously predicted by a neuron where .
Finally, we define the event , i.e. the neuron is able to predict correctly. Since are independent, and since is drawn from a spherically symmetric distribution for all , we have
Using the union bound on for we get
Thus, the probability of initializing from a basin achieving a global minimum with value is at least
B.7 Proof of Thm. 5
The idea behind the proof is comprised of two parts. The first is that by predicting the clusters’ centers well, we are able to obtain a good objective value over the data. The second is that the basin partition of the clustered data is similar to the basin partition of the clusters’ centers. So by approximating a good solution for the clusters’ centers, we are able to reach a good objective value.
To approximate a good solution for the clusters’ centers, we need to initialize from a basin where such an approximation exists. Note that if , then the result will hold as a corollary of Thm. 4. Alternatively, if is small enough, then we would expect such an approximation to exist in the basins comprised of non-noisy regions, as these vary slightly when is small. Therefore, we would like to assert that we initialize from these basins to guarantee the existence of a good solution.
Before delving into the proof of Thm. 5, we first prove two auxiliary lemmas (Lemma 8 and Lemma 9). The following lemma provides an upper bound on initializing a single neuron from a noisy region, for distributions satisfying Assumption 1.
Define the set of noisy regions with respect to the cluster,
Where is the -dimensional Lebesgue measure, and is the surface area of the -dimensional unit sphere.
To prove the lemma we will need two auxiliary claims.
Where the same argument works for and . ∎
Consider the function , it is monotonically increasing in since
And since we have that . ∎
Using Claims 2 and 3, Eq. (10) and the fact that ([Leopardi, 2007], Lemma 2.3.20), we have the following:
Before proving the lemma, we state and prove the following two auxiliary claims.
is -Lipschitz in .
The proof of this claim follows the same idea behind Lemma 6, and is therefore omitted.
where the last inequality comes from being the target values of points belonging to a ball of diameter at most and the target values being -Lipschitz.
Equipped with the above lemmas, we are now ready to prove Thm. 5.
Using Lemma 8, we have for all
We stress that by using Lemma 2, for the purpose of analyzing the objective value, we can ignore initializations made from noisy regions, as we may just consider the neurons that were properly initialized. By our assumption that the clusters’ centers are in general position, namely that the matrix with rows satisfies , we have that it is in particular of rank , and the conditions in Lemma 9 are met, so we compute
Thus we conclude that when is initialized using a distribution satisfying Assumption 1, we have
Appendix C Poor Basin Structure for Single Neurons
In this appendix, we prove a hardness result for initializing ReLU single neuron nets with convex losses from a basin (as will shortly be defined for the single neuron architecture context) with a good basin value, and then provide an explicit construction for the squared loss.
Building on the work of [Auer et al., 1996], we provide a construction of a dataset which results in exponentially many poor local minima in the dimension. Moreover, we provide in subsection Appendix 3 an explicit construction for the squared loss. The results extend those of [Auer et al., 1996] by showing that they hold for a single neuron with the ReLU activation function (for which the technical conditions assumed in [Auer et al., 1996] do not apply).
From an optimization point of view, having exponentially many local minima is not necessarily problematic as many of which may obtain good objective values. However, following our initialization scheme throughout this work, we modify the result obtained in [Auer et al., 1996] to satisfy that when the weight vector of the neuron is initialized from a distribution satisfying Assumption 1, then the distribution of the minimal value in the basin we initialize from is strongly concentrated around a sub-optimal value as the dimension increases. More formally, we have the following Theorem.
Where is initialized according to Assumption 1.
In other words, we have exponentially many local minima, where the probability of initializing from a sub-optimal basin converges exponentially fast (in the dimension) to , yet there exists a solution which obtains a value of .
We now extend our sample to be -dimensional in a similar manner as did the authors in [Auer et al., 1996] as follows: For and , we use the mapping where the non-zero coordinate is the coordinate. It is straightforward to show that the partial derivative is for with , so the geometry of the surface of the objective function is independent for each coordinate. Now, every Cartesian product of local minima in the one-dimensional setting form a -dimensional local minimum. Since we have exactly two local minima, a good and another bad one in each coordinate, this combines into local minima, where each minimum’s value would be the average of the one-dimensional minima forming it. Note that the combination of all good minima forms the global minimum with value . Following standard convention, we say that the data in this case is -realizable using a single neuron architecture. We stress that an important property of this initialization scheme is that the signs of the coordinates of the initialization point is uniformly distributed on the Boolean cube, as it implies that on each coordinate, independently, we have a probability of reaching a bad basin, hence the number of bad basins we initialize from is distributed according to a Binomial distribution . Letting , we have from Chernoff‘s bound that
which concludes the proof of the theorem. ∎
C.2 An Explicit Construction With the Squared Loss
We illustrate a specific construction of Thm. 6, for ReLU paired with the squared loss.
Given , consider the following sample:
are both local minima, and thus is -realizable. As evident in Fig. 2 and Fig. 3, if we are using a distribution corresponding to Assumption 1, then we have a chance to initialize from the bad basin. Extending the sample into a -dimensional one as we did in Thm. 6, we have an -realizable dataset with local minima. Furthermore, we have that