Learning Dynamics of Deep Linear Networks
Exact solutions, stage-like learning and the implicit pull toward low rank.
Remove every nonlinearity from a deep network and the function it computes is just one matrix. Training it, though, is a genuinely nonlinear dynamical system, with plateaus, sudden drops, saddle points and a preference for simple solutions, and it can be solved exactly. Deep linear networks are deep learning's harmonic oscillator: the simplest model in which depth changes how a network learns, not what it can represent.
What you’ll learn
- Derive the gradient-flow dynamics of a two-layer linear network with whitened inputs, decouple them into singular modes, and solve each mode's logistic equation (Saxe, McClelland & Ganguli, 2014).
- Explain stage-like learning: why a mode's learning time scales like , and why plateaus from small initialization lengthen exponentially with depth.
- State what is proven about the landscape (every local minimum is global; saddles, some without negative curvature) and the end-to-end dynamics under balanced initialization.
- Derive the singular-value dynamics of deep matrix factorization and explain the implicit bias toward low rank, including the evidence that no norm captures it.
A linear function, a nonconvex loss
A deep linear network computes , where is the end-to-end matrix. It can represent only linear maps, exactly what one matrix can. But the loss is a function of the factors, and products make it nonconvex. The scalar case shows everything: fit with two weights, . The global minima form the hyperbola , a continuum, because changes nothing; and the origin is a critical point with Hessian , eigenvalues : a saddle. With three factors, , the Hessian at the origin vanishes altogether.
So the obstacle is not bad minima but time: how long gradient descent lingers near saddles. The rest of the lesson computes it.
The exact solution for two layers
Take with loss and whitened inputs, . Everything the data says is in the input–output correlation , with singular value decomposition . Gradient flow with time constant reads and .
Start from weights aligned with the data's singular vectors: and with orthonormal hidden directions , so that . Substituting, the flow keeps this form and every mode evolves on its own:
The two layers are tied by a conservation law, , the scalar case of the matrix law (Du, Hu & Lee, 2018; see Symmetries & Conservation Laws). From a balanced start , the mode strength obeys a logistic equation:
Solve it: each mode follows a sigmoid in time, from its initial strength to the singular value , and the time to travel from to is inversely proportional to :
Two modes start at the same small strength , with singular values and . How many times longer does the weaker mode take to reach half its final value? (Use .)
Show the answer
3.33
and : a ratio of about . The leading factor gives ; the logarithm, larger for the stronger mode, shaves it down. Strong correlations in the data are learned first.
Compare a single linear layer trained on the same data: , so every mode relaxes exponentially, , all at the same rate and with no plateau. The sigmoidal trajectories, the long plateaus followed by rapid transitions, and the ordering of modes by strength are produced by depth, by the product structure of the parameters, not by the data. Saxe, McClelland and Ganguli (2019) used exactly these dynamics as a model of stage-like semantic development, in which broad distinctions (strong modes) are learned before fine ones.
Depth, initialization and the length of plateaus
With weight matrices and the same balanced, aligned modes, each factor of a mode has the same strength and the mode strength is . Gradient flow on each factor gives , hence:
Differentiate :
For this is the logistic equation again. For the growth rate near is , superlinear: the origin is a degenerate saddle. While , separate variables and integrate from the initial strength :
If each layer starts at strength , then and : the plateau grows exponentially with depth. With , ten layers already wait eight times longer than six ( against ). Shamir (2019) proved that for one-dimensional deep linear networks under standard random initializations, the number of gradient-descent iterations needed to converge grows exponentially with depth.
The cure is to start with modes of order one: , as with orthogonal weights at gain or with pretraining. Then the plateau no longer grows with depth, which is Saxe et al.'s result that learning time can stay finite as depth goes to infinity under these initial conditions, but not under scaled random Gaussian ones.
With , the factors move by and , so by the product rule:
Balancedness lets each factor's Gram matrix be written through : and likewise . Taking positive semidefinite square roots:
The pull toward low rank
Depth also changes which solution gradient descent finds. In matrix completion or matrix sensing, you observe a few linear measurements of an unknown low-rank matrix and fit with full-size factors, so infinitely many fit the data exactly. Started from small initialization, gradient descent nevertheless tends to recover the low-rank truth: an implicit bias that no explicit penalty requested. Gunasekar et al. (2017) conjectured that for two factors and vanishing initialization the limit is the minimum-nuclear-norm solution, and proved it when the measurement matrices commute.
Write . For distinct singular values, . In the end-to-end dynamics, and , so all terms carry the same power:
For the factor is : every singular value moves at a speed set only by the gradient. For the speed is multiplied by : large singular values grow fast while small ones barely move, and the effect strengthens with depth (exponent for , for , approaching ). From a small start this produces incremental, rank-by-rank learning, which Arora et al. found recovers low-rank matrices more accurately as depth increases, in ways a nuclear-norm explanation does not capture.
Is the bias a norm in disguise? Razin and Cohen (2020) constructed matrix completion problems in which gradient flow on a deep factorization drives every norm and quasi-norm of toward infinity while its rank goes down, so no norm-minimization account can describe it; they proposed rank minimization as the better language. With small initialization, gradient descent appears to pass near a sequence of saddles of increasing rank before reaching a sparse, low-rank minimum: Jacot et al. (2021) conjectured this saddle-to-saddle picture for deep linear networks and proved its first transition.
In a depth-3 matrix factorization, singular value and see gradient components of the same size. How do their growth rates compare?
- Equal, since the gradient components are equal
- grows 10 times faster, to catch up
- grows about times faster
- grows exactly 10 times faster
Show the answer
C. grows about times faster
The rate carries for , and . Depth turns a small head start into a large lead, the mechanism of the low-rank bias. With the ratio would be exactly ; with one factor, .
What a model with no nonlinearity teaches
Deep linear networks earn their place because their phenomena survive in nonlinear networks, where they cannot be solved exactly: loss curves with plateaus and sudden drops; features learned in order of their strength in the data; a dependence on initialization scale, with small initializations giving staged, low-complexity solutions and large ones giving near-kernel behavior (in Jacot et al.'s analysis, the large-initialization regime is the neural tangent kernel regime); conservation laws that tie layers together; and implicit biases that select among the many zero-loss solutions.
Key takeaways
- A deep linear network represents only linear maps, but its loss is nonconvex in the factors: every local minimum is global, and the difficulty lies in saddles, some with no negative curvature.
- With whitened inputs and aligned, balanced initialization, two-layer gradient flow decouples into singular modes obeying : sigmoidal learning, plateaus and strong modes first, with transition time .
- With factors, : plateaus from a small start grow like , exponentially in depth, while starts of order one (orthogonal, pretrained) keep learning time finite.
- Under balanced initialization the end-to-end matrix follows a depth-dependent preconditioned flow, and its singular values obey : the rich get richer, which biases deep factorizations toward low rank in a way no norm captures.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
A two-layer linear network is trained from a small, balanced, aligned initialization on whitened data. In what order does it learn the singular modes of ?
- All at once, at the same rate
- Largest singular value first: each mode follows a sigmoid whose transition time scales like
- Smallest singular value first, because small modes need smaller weights
- In random order, set by the initialization
Show the answer
B. Largest singular value first: each mode follows a sigmoid whose transition time scales like
Each mode obeys , with transition time . Strong input–output correlations are picked up first, weak ones after long plateaus.
What is proven about the critical points of a deep linear network with squared loss (Kawaguchi, 2016)?
- The loss is convex, so there are no saddles
- There are poor local minima, but they are rare
- Every local minimum is global, every other critical point is a saddle, and with more than one hidden layer some saddles have no direction of negative curvature
- Every critical point is a global minimum
Show the answer
C. Every local minimum is global, every other critical point is a saddle, and with more than one hidden layer some saddles have no direction of negative curvature
No spurious minima, but degenerate saddles, such as the origin of where the Hessian vanishes, make escape slow and invisible to second-order tests.
A deep linear network is initialized with every factor of a mode at strength . How does the plateau before that mode is learned scale with the number of factors ?
- It shrinks, since more layers mean more parameters moving at once
- It is independent of depth
- It grows linearly in
- It grows roughly like , exponentially in depth
Show the answer
D. It grows roughly like , exponentially in depth
The mode obeys with , which gives an escape time of about . Starting the factors near strength (orthogonal weights, pretraining) removes the exponential.
What did Razin and Cohen (2020) show about the implicit regularization of deep matrix factorization?
- It always finds the minimum nuclear norm solution
- There are matrix completion problems where gradient flow drives every norm toward infinity while the rank decreases, so no norm explains the bias
- It has no bias: the solution depends only on the initialization's random seed
- It minimizes the Frobenius norm, like gradient descent on a linear model
Show the answer
B. There are matrix completion problems where gradient flow drives every norm toward infinity while the rank decreases, so no norm explains the bias
Their constructions rule out any norm (or quasi-norm) minimization account, and they proposed rank minimization as the better description, consistent with the rich-get-richer singular-value dynamics.
Further reading
- A. M. Saxe, J. L. McClelland & S. Ganguli, "Exact solutions to the nonlinear dynamics of learning in deep linear neural networks," ICLR (2014).
- K. Kawaguchi, "Deep learning without poor local minima," NeurIPS (2016).
- S. Arora, N. Cohen & E. Hazan, "On the optimization of deep networks: Implicit acceleration by overparameterization," ICML (2018).
- S. Arora, N. Cohen, W. Hu & Y. Luo, "Implicit regularization in deep matrix factorization," NeurIPS (2019).
- N. Razin & N. Cohen, "Implicit regularization in deep learning may not be explainable by norms," NeurIPS (2020).