Source-linked AI summary

Gradient descent aligns the layers of deep linear networks

Ziwei Ji, Matus Telgarsky

arXiv:1810.02032v2cs.LGmath.OCstat.ML

TL;DR

The paper analyzes implicit regularization in gradient descent and gradient flow for deep linear networks on linearly separable data. It proves global risk convergence and asymptotic rank-1 alignment of weight matrices, with logistic-loss predictors aligning with the maximum-margin direction.

  • Problem

    The paper studies how gradient descent and gradient flow implicitly regularize solutions in deep linear networks on linearly separable data.

  • Method

    The paper analyzes gradient descent and gradient flow under strictly decreasing losses, establishing alignment phenomena as the optimization dynamics approach infinity.

  • Results

    The risk converges to 0, normalized weight matrices asymptotically become rank 1, and under logistic loss the induced predictor aligns with the maximum-margin direction.

  • Takeaways & Limitations

    Asymptotic rank-1 weight structure acts as implicit regularization, while logistic-loss training yields a predictor aligned with the data's unique maximum-margin solution.

  • Takeaways & Limitations

    The paper proves only asymptotic convergence for adaptive step sizes depending on current weight-matrix norms, not practical constant step sizes.

Abstract

from arXiv · show

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.

1 Introduction

The paper analyzes implicit regularization in gradient flow and gradient descent for deep linear networks on linearly separable data. It proves risk convergence together with layerwise rank-1 collapse, inter-layer alignment, and maximum-margin behavior for logistic loss.

  • Main contributions: Each normalized weight matrix asymptotically equals a rank-1 approximation, with ∥Wi∥2/∥Wi∥F → 1 and ∥Wi∥F →∞.Only the rank-1 component asymptotically contributes to the final predictor.
  • Maximum-margin behavior: For logistic loss, the first layer’s right singular vector and the network predictor converge in direction to the data-defined maximum margin solution.The induced predictor is wprod := WL · · · W1, and its normalized direction converges to the unique maximum margin predictor.
  • Main contributions: Gradient flow and gradient descent drive the risk to 0 while simultaneously producing aligned weight matrices.The proofs establish risk convergence and alignment together rather than as separate phenomena.
  • Implicit regularization: The aligned normalized layers asymptotically solve a maximum margin problem that requires every weight matrix—not only their product—to remain small.This layerwise viewpoint interprets alignment as a minimum norm solution without norm spent on components eliminated by multiplication.
  • Empirical visualizations: On synthetic separable data, 4-layer and 1-layer networks converge to the same margin-maximizing linear predictor, while each layer’s spectral-to-Frobenius norm ratio approaches 1.Figure 1 compares a deep linear network with a linear predictor and plots ∥Wi∥2/∥Wi∥F against risk.
  • Setting and assumptions: The analysis assumes linearly separable data and strictly decreasing losses, including exponential and logistic losses, with initialization that is noncritical and no worse than the zero predictor.The setting uses yi ∈ {−1,+1}, bounded inputs, and a positive maximum margin.

2 Results for gradient flow

For deep linear networks on linearly separable data, gradient flow drives risk toward zero while layer norms diverge and the layers become asymptotically aligned. Under additional data conditions and exponential or logistic losses, the induced predictor also converges toward the maximum-margin direction.

  • Risk convergence: Gradient flow minimizes the risk to zero while all layer norms and the induced predictor diverge.The risk has no finite optimum, so convergence requires unbounded parameter norms.
  • Layer alignment: Each weight matrix becomes asymptotically rank one after Frobenius normalization, with leading singular vectors defining the alignment structure.The theorem characterizes the normalized matrices through their first left and right singular vectors.
  • Layer alignment: Adjacent layers become increasingly aligned as their norms grow, ensuring that the product norm also becomes large.This alignment connects layerwise implicit regularization to the proof of risk convergence.
  • Maximum-margin convergence: For exponential and logistic losses, the first-layer right singular vector and the network predictor converge toward the unique maximum-margin solution under Assumption 2.7.The result holds for almost all data when the support vectors span the whole space.

3 Results for gradient descent

With suitable smoothness and adaptive step-size conditions, gradient descent inherits the gradient-flow results: risk decreases to zero and the network exhibits asymptotic alignment, including maximum-margin direction for logistic loss.

  • Risk control: Gradient flow never increases risk, whereas gradient descent requires controlled step sizes because its risk can otherwise increase.For smooth losses, adaptive step sizes preserve non-increasing risk while allowing the iterates to escape bounded regions.
  • Assumptions: The logistic loss satisfies the smoothness and bounded-derivative condition required for the gradient-descent analysis.The assumption requires a β-Lipschitz derivative and a bounded derivative magnitude.
  • Step-size control: Constant-step gradient descent eventually leaves every fixed bounded region, so the analysis adaptively increases the radius while decreasing the step size.A constant step size 1/β(R) eventually produces max_k ∥W_k(t)∥F > R.
  • Main results: Under the additional assumptions, gradient descent satisfies the same theorems as gradient flow, including risk convergence and alignment results.The paper states that exactly the same theorems can be proved for gradient descent under Assumptions 3.1 and 3.5.
  • Logistic-loss consequence: For logistic loss and almost all data, the first-layer right singular vector and the normalized network predictor converge to the maximum-margin direction.The relevant conclusions identify v1(t) and wprod(t)/∏_k ∥W_k(t)∥F with the data-determined maximum-margin predictor.

4 Summary and future directions

The paper concludes that gradient flow and gradient descent achieve zero risk and alignment in deep linear networks, while identifying limits and extensions for future work. A preliminary CIFAR-10 experiment suggests reduced alignment can also occur in AlexNet’s dense layers.

  • Gradient flow and gradient descent minimize risk to 0, align adjacent weight matrices, and align the first layer’s right singular vector with the data’s maximum margin solution.
  • Future directions: The analysis only proves asymptotic convergence for adaptive step sizes depending on current weight norms, leaving rates and practical step sizes such as constant steps unresolved.
  • Future directions: The analysis is tied to linearly separable data and does not yet explain the corresponding implicit regularization for nonseparable data or nonlinear networks.
  • Preliminary experiment: A preliminary stochastic-gradient-descent experiment on CIFAR-10 tested whether alignment extends beyond deep linear networks using AlexNet.
  • Preliminary experiment: In AlexNet’s last three dense layers, spectral-to-Frobenius norm ratios were much larger than their respective lower bounds despite ReLUs, pooling, and convolutional layers.

A Regarding Assumption 1.2

The assumption can fail when initialization makes the network’s product zero even though downstream layers are nonzero. In that case, gradient flow or descent may never reduce the risk to 0.

  • If W1(0)=0 while WL(0)···W2(0)≠0, then the initial network product is zero.
  • Under this initialization, gradient flow or descent may never minimize the risk to 0.
  • A two-layer scalar network with exponential risk provides an example of this failure mode.

B Omitted proofs from Section 2

The omitted gradient-flow proofs establish risk convergence and unbounded layer growth, then use singular-value and singular-vector relations to derive alignment and maximum-margin structure.

  • Gradient flow cannot remain indefinitely in a bounded region because its risk gradient stays sufficiently large there.
  • Singular-vector estimates show that adjacent layers become aligned as their norms grow.
  • Once all layers have large norms, the product of downstream layers is large, preventing nonzero residual risk through a gradient-based contradiction.
  • Risk converges to 0, and every layer’s Frobenius norm diverges because the risk has no finite optimum.
  • For logistic loss, the first-layer component orthogonal to the maximum-margin direction cannot persist above a fixed relative size.

C Omitted proofs from Section 3

The omitted gradient-descent proofs adapt the gradient-flow argument using bounded norm differences, controlled step sizes, and monotone risk. They establish divergence, risk convergence, and alignment under the stated assumptions.

  • With suitable step-size assumptions, iterates leave every bounded region, and the layer norms become unbounded.
  • Gradient-descent singular-vector estimates imply increasing alignment between adjacent layers as their norms grow.
  • Gradient descent maintains bounded differences between the squared Frobenius norms of different layers.
  • A contradiction argument then proves that the risk converges to 0 and every layer norm diverges.
  • After margins become nonnegative, the first-layer norm is nondecreasing while its component orthogonal to the maximum-margin direction remains controlled.
Loading 1810.02032v2…