Gradient descent aligns the layers of deep linear networks
Ziwei Ji, Matus Telgarsky
TL;DR
The paper investigates why gradient-based optimization biases deep linear networks toward simple, generalizable solutions when trained on linearly separable data. By analyzing both gradient flow and gradient descent, it proves that the empirical risk vanishes, layer weights become unbounded yet align to rank-1 forms, and adjacent layers converge to mutually aligned singular directions. For exponential and logistic losses with appropriate data assumptions, the first-layer singular vector and the overall network predictor converge in direction to the maximum-margin solution, revealing an implicit regularization mechanism that favors margin-maximizing configurations across layers. These results illuminate the role of depth in steering representations toward low-complexity, margin-optimal solutions and motivate extensions to nonlinear settings and rate analyses with practical step sizes.
Abstract
This paper establishes risk convergence and asymptotic weight matrix alignment --- a form of implicit regularization --- of gradient flow and gradient descent when applied to deep linear networks on linearly separable data. In more detail, for gradient flow applied to strictly decreasing loss functions (with similar results for gradient descent with particular decreasing step sizes): (i) the risk converges to 0; (ii) the normalized i-th weight matrix asymptotically equals its rank-1 approximation $u_iv_i^{\top}$; (iii) these rank-1 matrices are aligned across layers, meaning $|v_{i+1}^{\top}u_i|\to1$. In the case of the logistic loss (binary cross entropy), more can be said: the linear function induced by the network --- the product of its weight matrices --- converges to the same direction as the maximum margin solution. This last property was identified in prior work, but only under assumptions on gradient descent which here are implied by the alignment phenomenon.
