WorksEconomics, Econometrics and Finance
Critical step size of stochastic gradient descent for a linear neuron: an exact solution and the role of the input spectrum
Abstract
We study online stochastic gradient descent for a single linear neuron in a teacher-student setting with Gaussian inputs of arbitrary covariance. The mean-square errors of the weights obey a closed linear recursion of dimension , which we solve exactly. We prove that the dynamics converges if and only if the step size is below a critical value , given by an explicit scalar equation that involves all the eigenvalues of the input covariance, and we obtain the stationary error of each weight, which diverges at . This condition coincides with the classical mean-square stability condition of the least-mean-squares filter; our derivation is elementary and self-contained. We then show that is controlled by the effective rank of the input covariance rather than by the number of parameters, in rescaled units: the critical step size is inversely proportional to only for isotropic inputs, whereas it decays more slowly, or saturates, for power-law spectra. Finally, we extend the solution to mini-batches of size : the critical step size grows linearly with and saturates once exceeds the effective rank.