Steepest Descent Under a Norm

Steepest descent under a norm picks each update by minimizing a linear model of the loss over a small ball. Near the current parameters , a first-order Taylor expansion gives the linearized loss

The approximation holds only for small steps. So the step must stay inside a ball of radius in a chosen norm :

Here is the dual norm of . For a weight matrix with gradient , the linear term is . Write the reduced SVD as , keeping only the nonzero singular values . Four norms give four known updates:

  • ball: , called normalized gradient descent. The decrease is .
  • ball: , called sign descent, or sign SGD with minibatch gradients. Every coordinate moves by , and the decrease is .
  • Spectral-norm ball on a matrix: . The decrease is , the nuclear norm of . Shampoo (Gupta et al., 2018) computes this step when it keeps no gradient history. A Shampoo variant won the AlgoPerf competition for training algorithms, a benchmark described by Dahl et al. (2023).
  • Frobenius ball on a matrix: , normalized gradient descent on the flattened matrix. The decrease is .

The penalized form, or Lagrange form, adds a penalty on the size of the step instead of a cap:

With the squared norm it gives , which is plain gradient descent with step size . For any norm, it gives the constrained step with radius . So the two forms sweep out the same family of steps as and vary.

The lecture’s optimizer recipe, which follows Bernstein and Newhouse (2024), builds an optimizer from two choices. First choose a norm, which fixes the direction. Then choose the step size , which requires a sweep.

Not Taught in Lecture

The ball in the figure below is not covered in lecture. Its steepest step is , where is the -th unit vector. The index marks the largest . Only that one coordinate moves, so the method is a greedy form of coordinate descent. The decrease is , because is the dual of . Source: Boyd and Vandenberghe, Convex Optimization, Section 9.4.

Intuition

Gradient descent is often said to move in the direction of steepest descent. This holds for only one way of measuring step length. Steepest means the largest drop in loss per unit of step length, and step length depends on the norm. The gradient gives the steepest direction only under the Euclidean norm. Every other norm has its own steepest direction. The radius also sets how far the linear model is trusted. A larger step makes faster progress, but the linear model gets less accurate as the step grows.

The linear model is constant along lines perpendicular to . To minimize it over a unit ball, slide such a line across the ball in the direction of . The last point of the ball that the line touches is the minimizer , and the steepest step is . The figure shows this for . The circle is touched straight opposite . The square is touched at the corner , so both coordinates move by the full amount. The diamond is touched at the vertex on the axis of the largest gradient entry. In each case equals minus the dual norm of .

\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{grn}{HTML}{2F9E44}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=1.5cm,y=1.5cm,>={Stealth[length=7pt]}]
\draw[mid,->] (-1.5,0) -- (2.5,0) node[right,black] {$x_1$};
\draw[mid,->] (0,-1.5) -- (0,1.5) node[above,black] {$x_2$};
\draw[hot,line width=1.1pt] (-1,-1) rectangle (1,1);
\draw[cold,line width=1.1pt] (0,0) circle (1);
\draw[grn,line width=1.1pt] (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
\draw[->,very thick] (0,0) -- (2,1) node[above] {$\mathbf g=(2,1)$};
\draw[->,very thick,hot] (0,0) -- (-1,-1);
\draw[->,very thick,cold] (0,0) -- (-0.8944,-0.4472);
\draw[->,very thick,grn] (0,0) -- (-1,0);
\node[below left] at (-1,-1) {$(-1,-1)$};
\node[left] at (-1,0.12) {$(-1,0)$};
\node[left] at (-0.98,-0.5) {$(-0.89,-0.45)$};
\draw[cold,very thick] (2.75,-0.25) -- (3.05,-0.25);
\node[right] at (3.05,-0.25) {$\ell_2$ ball, $\mathbf g^T\mathbf x^*=-\sqrt5$};
\draw[hot,very thick] (2.75,-0.65) -- (3.05,-0.65);
\node[right] at (3.05,-0.65) {$\ell_\infty$ ball, $\mathbf g^T\mathbf x^*=-3$};
\draw[grn,very thick] (2.75,-1.05) -- (3.05,-1.05);
\node[right] at (3.05,-1.05) {$\ell_1$ ball, $\mathbf g^T\mathbf x^*=-2$};
\end{tikzpicture}
\end{document}

For a weight matrix, a norm measures the size of a change to the layer. The spectral norm bounds the change in the layer’s output: for every input . A spectral ball therefore limits how much the function computed by the layer can change. The Frobenius ball limits the sum of squared entries and treats the matrix as a long vector. The two balls give different steps, as the Medium example below shows.

Properties

(Dual Norm Pairs) Each norm comes with a dual, and one value of means a different step size under each norm.

Every pair satisfies , with equality at . The norm is its own dual by Cauchy-Schwarz, and so is the Frobenius norm. The dual of is . With , the sum is largest at , where it equals . The dual of the spectral norm is the nuclear norm , proved in the Derivation below. In dimensions, . So with the same , sign descent can promise up to times the decrease of normalized gradient descent. Its step is also times longer in Euclidean length when no is zero. The corners of the ball sit at distance from the origin. A tuned therefore does not carry over when the norm changes.

(Penalty Versus Ball) The penalized form moves in the constrained direction, with a length that grows with the gradient.

Write a step as with length and . For any fixed , the best is the constrained direction, which gives . The penalized objective becomes , which is smallest at . The two forms differ over many steps. A fixed radius gives steps of length even near a minimum, where is small. The iterates then oscillate around the minimum unless decays. A fixed shrinks the step as shrinks, which lets plain gradient descent settle.

(Sign Descent Is Memoryless Adam) Adam with both moving averages switched off takes the sign-descent step.

Set in 6.4.3. Adam. For each coordinate , the first moment becomes and the second moment becomes . The bias corrections divide by . Ignoring the stabilizer , the update direction is whenever . Adam is therefore a smoothed form of steepest descent. Pure sign steps have a fixed length, so near a minimum they jump back and forth across it. Adam’s moving averages damp this. A coordinate with a steady gradient keeps a step near . A coordinate whose gradient keeps flipping sign gets a smaller step.

(Equal Steps in All Directions) The spectral step keeps the singular vectors of and sets every nonzero singular value to .

For a right singular vector , the spectral step changes the output by . This change has the same size for every . The Frobenius step changes it by , which is tiny when is small. Gradient matrices in neural networks often have a few large singular values and many small ones. Gradient descent then moves mostly along the top directions and barely along the rest. The spectral step moves every direction with by the same amount. 4.2. Muon applies this step to a momentum average of the gradients and approximates without an SVD.

(Norms Pick Different Solutions) A different norm gives a different path, and with many minimizers it can reach a different one.

The norm fixes the direction of every step, while has no formula. A sweep trains with several values of on a log grid and keeps the best one. When the training loss has many minimizers, the direction matters beyond speed. An overparameterized model that fits every training point is the usual case. Gradient descent from zero on least squares moves only within the span of the inputs. It reaches the minimizer with the smallest norm. Sign descent moves every coordinate by the same amount at each step, so it can reach a different minimizer. The two models then usually predict differently on new inputs. The right norm may depend on the geometry and architecture of the network.

(Layer-Specific Rates) The RMS-to-RMS norm turns one global into a different spectral step for each layer.

Since , the steepest step in an RMS-to-RMS ball of radius is . 4.3. Maximal Update Parameterization builds width scaling on this idea, and 4.2. Muon uses the same factor.

(Shampoo Without Memory) Shampoo computes the spectral step when it keeps no gradient history.

Not Taught in Lecture

The Shampoo update rule is from Gupta, Koren and Singer (2018). Its reduction to is from Bernstein and Newhouse (2024).

Shampoo keeps two running sums, and . It updates . With only the current gradient in the sums, and . Their inverse fourth roots are and , taken on the nonzero singular values. The product is . The inverse fourth roots need eigendecompositions, which are slow for large layers.

Derivation

We want to show that the spectral ball gives . Minimizing over is the same as maximizing over and setting . Write the SVD as a sum of rank-one terms, , where is the rank. The trace is linear and satisfies , so

By Cauchy-Schwarz and the definition of the spectral norm, each term obeys . Hence

The choice has spectral norm and gives for every , so it attains the bound. The nuclear norm is therefore the dual of the spectral norm. The minimizer is , with linear decrease . When is smaller than both dimensions of , other maximizers exist. They agree with on every and differ only on inputs that sends to zero.

Examples

(Easy) One Step, Two Balls

A model with three parameters has gradient at its current parameters. The step radius is .

(Medium) Spectral Versus Frobenius

A weight matrix has gradient

Both steps use the radius in their own norm.

(Hard) When the Linear Model Fails

A two-parameter model has loss and current parameters . The first coordinate is almost at its minimum, but its valley is steep.

See Also