Spectral Analysis of the Dynamics of Gradients and Updates
Abstract
Let and denote the sequences of gradient and update vectors. Each pair is recorded at the -th iteration of an optimization algorithm. For a deep neural network (DNN), these vectors may instead represent the full optimizer-visible state at the -th training step on input-label pair , including the gradients produced by backpropagating the prediction error. We study the spectral properties of and across a collection of convex optimization problems and DNNs, including convolutional neural networks (CNNs) and residual networks (ResNets). Our experiments show that the spectral energy of these histories is sharply concentrated in a small number of directions. Now, focusing only on optimization algorithms, for a given choice of descent such as Nesterov accelerated gradient descent (NAG), we define a corresponding Nesterov-Ramanujan descent in which vectors from the gradient and update histories are transformed according to Here, is a sparse mixing operator supported on a randomly directed, two-colored Ramanujan graph designed to be ergodic, rapidly mixing, and large-girth. Ordinary NAG corresponds to . At iteration , our update rule uses the histories and to determine a step size and then computes The intervention broadens the spectrum of at least one of the two histories. We use this spectral change to increase the step size through a safeguarded adaptive rule, which typically enables faster convergence in our experiments. Surprisingly, the update history is often more informative than the gradient history , even though classical momentum methods are usually formulated primarily in terms of gradients.
est. 32% chance this paper gets accepted at ICLR 2027.
What do you think this paper will get?
All positions stay anonymous.