A Theory of Saddle Escape in Deep Nonlinear Networks
When do neural networks first learn features? [arXiv]
[NOTE] Still a work in progress; some parts are rough.
Generally, when a network is trained from small initialization (i.e. all its weights are initially very small), we tend to see a pretty characteristic pattern: long plateaus where loss barely drops, with sharp drops as new features are acquired. This "saddle-to-saddle" structure is pretty well understood for deep linear networks (where the activation function is ). For nonlinear networks, why this happens remains mysterious; here we try to provide a result that shows that deep nonlinear networks are not that different than their linear counterparts.

Background#
Deep Linear Networks#
Much of the existing theory for optimization dynamics is based in the deep linear network model: an -layer network without any activation function, just a long chain of matrix multiplications . Although the model is simple, deep linear networks exhibit surprisingly nontrivial dynamics during gradient flow () and many features of deep learning (e.g. saddle-to-saddle structure, low-rank bias, progressive feature learning) appear here in an analytically tractable form [SMG14].
A lot of the reason deep linear networks are so nice to analyze is due to the conservation law of the imbalance of the weight matrix norms between adjacent layers: For linear networks, one can show for all [DHL18]. Intuitively, the network only ever sees the composition , so if is linear we can shrink by any factor and grow by without changing the output function. The loss then has a flat direction, and gradient flow cannot move along a direction in which the loss doesn't change, so whatever that rescaling moves is frozen.
In a broader sense, this follows for any activation function that satisfies Euler's homogeneity identity: , e.g. for or ReLU.1 So, if we define the functional for a 1-homogeneous function, it vanishes exactly. This is actually a much bigger deal than it seems; this conserved quantity is what makes linear network analysis work!
Nonlinear Activations#
For a general nonlinear activation , and our neat conservation law is not guaranteed.
To remedy this, let us study the Taylor expansion of near zero. Writing with , the linear part cancels in (that is what Euler's identity says), and the first surviving term has order : For , , so , giving . For a quadratic activation one gets , so .
That's kinda the main idea underlying the whole paper. Near the origin (where our network is initialized, since we take initialization tending to zero), the pre-activations (i.e. the values passed into the activation) are small, so is high order small. Thus, the conservation law is only "slightly broken" and we can track exactly its drift to order , which gives us enough control to do what we want to with our analysis. A similar argument in principle is the physics small angle approximation; , but the error is cubic, so for small swings we may use the linear theory and carry a correction to be bounded later.
Imbalance and Drift#
Consider an -layer network with pre-activations and population loss .
Theorem 1. For any smooth activation and any differentiable loss ,
The proof is quite natural; it follows by considering scaling before and after activation is applied; we outline it below.
Scaling layer and scaling layer both act on the same object , but they enter in different places; one multiplies the argument of , the other multiplies its output. Differentiating each at , Subtracting gives that the difference is . The imbalance drifts at the rate by which fails to commute with scaling.
Some important comments on the above: (1) the identity is exact and assumes basically nothing, and (2) the right-hand side is a correlation between the upstream gradient at layer and applied to the pre-activations at layer . When we recover exact conservation; when it doesn't vanish, the drift is controlled by how large is, and near the saddle that is .2
Note that we are using an approximation that is valid near the origin in order to analyze the event which is fundamentally defined as taking the network away from the origin (learning features). So, "escape" is declared at a small fixed threshold rather than at the end of training. Then the time integral we take is dominated by the early part, where the network is deepest inside the regime the approximation covers.3 Most of the actual work in the paper is showing that this defect stays negligible along the entire trajectory, and not just at initialization.
Reducing the ODE#
Approximate conservation now gives us the same thing the linear theory has, plus an error we need to control. If the bottleneck layers (those initialized at scale ) start at comparable scales, they will stay comparable for the whole escape, so instead of tracking matrices we can reduce the problem to only tracking their shared gain.
Note that these layer gains have no real reason to agree with each other, and once the escape is over they definitely don't, but through the transition itself they move in unison.
The other neat reduction we will want to make is that near the saddle every layer's gradient collapses to rank one, and every layer points along the same rank-one direction. So, we also want to track the network's overlap with the one direction it's being pushed in; call it . Then, we have the following relation between the layer gain and the overlap: where is the squared gain of the first bottleneck layer and is the strength of the signal the data presents (we'll pin it down in a moment). This is fundamentally a feedback loop! The network can only grow its channel as fast as it is correlated with the target, and it can only become correlated with the target as fast as the channel lets signal through.4 Near the origin both are tiny, which is what causes the plateau. Integrating this loop gives us the main escape time law.
Critical-Depth Law#
Suppose of the layers initialize at scale (call these the bottleneck layers) and the remaining initialize at scale . By the reduction above, all bottleneck layers share a magnitude , with .
Now, note that the gradient driving any one bottleneck layer is the product of the signals passing through all of the other bottleneck layers, so it scales as (a layer does not appear in its own gradient). The full-size layers contribute factors and only really change the prefactor. So the scalar ODE for the shared bottleneck magnitude is and the time to get from out to a small fixed threshold is given by Then, everything we need follows immediately from the behavior of that integral!
Theorem 2 (Critical-Depth Escape Law). As , the escape time satisfies
The exponent has a pretty neat interpretation: one power of is consumed because each layer's gradient is rather than , and a second is absorbed by the integral. The threshold at is pretty interesting since it's the minimal bottleneck for which the escape time diverges at all as .

It is also worth remarking on the absence of width or total depth in the asymptotic theorem. In addition, the escape time law does not depend on the activation or number of features in the target. At first, this is somewhat surprising: width multiplies the number of directions the flow could move in, extra depth multiplies the number of compositions, and changing the activation changes the loss landscape. However, none of these matter because of the rank-one structure from the earlier section; since we can reduce the high-dimensional ODE to a 1D ODE, the only things that matter are the quantities given in the escape law.
Data Contribution#
Near the origin the activations are all evaluated close to zero, where , so the network is a linear map to leading order. A linear map can only correlate with the linear part of the target, so every nonlinearity in the target is invisible to the network until it has already moved. So the only property of the data that can possibly set the initial clock is the input-output correlation
It is important to note that is the norm of a vector sum. If the target is built from several features with amplitudes , each one contributes a vector , where is the direction of , and these add with signs: Here is the input covariance, the target is for unit vectors with , , and is the linear part of for a standardized input . Thus, two features whose covariance images point in opposing directions partially cancel one another. If you rotate them in favor of them cancelling out, decreases, and the network sits on the plateau proportionally longer, even though neither feature has become any weaker on its own. This also has the interesting consequence that a teacher direction that is misaligned with gets presented to the network more strongly than its own variance would suggest.5

Because is just a correlation, you never really need to decompose the target into features to compute it, and nothing in the definition dictates whether expectation is over a population or a finite sample. So, on a real dataset it is , which is computable from real data without any knowledge of the true data-generating function.

Feature Arrival Timing#
Looking at the first figure (the loss staircase), the obvious interpretation is that a single step corresponds to a single feature being learned. Our theory says when the network leaves the first saddle, but the picture above makes it tempting to assume that departure is really several departures, one per feature, that are averaged together. This isn't necessarily the case, however!
This part is a bit difficult to explain why without getting quite technical, but if you're interested, this is covered in Section 5 of the paper.
- This should be quite easy to verify yourself. β©
- The scalar relation controls the relative size of adjacent layers, which isn't enough on its own; we can in fact lift the theorem to a matrix version, which is what we actually use. β©
- It also means "escape time" is defined up to the choice of threshold. Changing the threshold only affects the constant, not the exponent. β©
- The control-theoretic reading of this (a loop gain, and the question of determining when it exceeds one) is largely inspired by a discussion in one of my classes, summed up really nicely in [Rec20]. β©
- Concretely, writing for the variance along the unit direction , Cauchy-Schwarz gives , with equality exactly when is an eigenvector of . The gap is , where weights each eigenvalue of by the squared component of along its eigenvector, i.e. the spread of across the eigenvalues of the covariance. β©
References#
- [DHL18]Simon S. Du, Wei Hu, and Jason D. Lee. Algorithmic regularization in learning deep homogeneous models: layers are automatically balanced. 2018. [link] β©
- [Rec20]Ben Recht. There are none. 2020. [link] β©
- [SMG14]Andrew M. Saxe, James L. McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. 2014. [link] β©