Which Way Is Down? First-Order Optimizers as a Choice of Norm
We consider the general optimization problem
(1)
where is a vector space and is differentiable. First-order methods solve it iteratively: starting from , they take steps , where each step is computed from the derivative , and possibly from earlier ones. This post is about how to choose , and in particular how the choice of a norm on affects it.
1. Derivatives and gradients
The derivative maps a direction to a number, so it is an element of the dual space of linear maps , and we write its value at as the pairing . Both and the pairing come with itself, so nothing is chosen here. An inner product on , on the other hand, is a choice, for example the Frobenius inner product. With an inner product chosen, the linearization reads
(2)
The second form holds because every linear map is for exactly one , its Riesz representative,11 This is the Riesz representation theorem, as in Batched Backpropagation as a Linear Solve: is linear and one-to-one, and and have the same dimension. and the gradient is the representative of . Unlike the derivative, the gradient lies in , but it depends on the inner product: another inner product gives another gradient of the same function. Only the gradient needs an inner product. The derivative and the steps below need none.
ExampleΒ 1: Two inner products, two gradients
Example 1 (Two inner products, two gradients)Β Β Let and , so that .22 This follows from alone, as the directional derivative , with no inner product involved. Writing the derivative as the array uses the coordinates of , but the value of the pairing does not depend on them. Then
(3)
since both give .
2. Two surrogates
The linearization , with , is a good model of only for small , and on its own it has no minimizer: unless , it decreases without bound along any direction with . A step therefore needs a second ingredient that says how large we allow. The length of is measured by a norm , which is something that we again have to choose. There are two natural ways to combine the norm with the linearization: as a constraint, or as a penalty,33 The norm here can be any norm on , not just the one induced by the inner product on .
(4)
The first is a trust-region model: it trusts the linearization only within a radius , which caps the length of the step. The second instead penalizes long steps, and as the penalty grows faster than the linearization can decrease, it always has a minimum.44 If is -smooth with respect to , meaning that for all , then for the second surrogate is an upper bound on , and decreases by at least the decrease of the surrogate. Convergence analyses use this; in practice is often chosen smaller.
Interactive figureΒ 1: The two surrogates over many steps
Interactive figure 1 (The two surrogates over many steps)Β Β The graph shows both steps for
(5)
with the norm . In one dimension every norm is a multiple of , so the choice of norm only matters from two dimensions on. The constrained step always has length , since the linearization has no minimum inside the trust region, so close to the minimum it jumps back and forth over it. The penalized step shrinks with the derivative, but with set by the largest curvature it crawls where is flat. Constrained methods such as sign descent and Muon therefore let decrease over the iterations, while adaptive norms, later in the post, take longer steps where is flat.
At iteration , the dashed line is the linearization at the constrained iterate , with the trust region shaded, and the dashed parabola is the quadratic model at the penalized iterate . Drag , change and , and step through the iterations with .
3. The dual norm and the sharp operator
To write the solutions of the constrained and penalized problems in (4) explicitly, we need two things: the dual norm, which measures the size of a derivative in , and the sharp operator, which maps a derivative back to an element of . In both cases it is important to note that they depend on the choice of a norm on , rather than the inner product on .
DefinitionΒ 1: Dual norm and sharp operator
Definition 1 (Dual norm and sharp operator)Β Β For a norm on , the dual norm of and the sharp of , , are
(6)
The dual norm is the slope of the linearization in its steepest direction; that is, a step of unit length with respect to the chosen norm changes the linearization by at most , so that for all . The sharp operator, the map , takes back to : is the penalized step for , and its direction and length are set by the dual norm,55 Write with and . For a fixed , the best has , which leaves , smallest at .
(7)
The minus sign is a convention. Like a gradient, points where increases, and a step subtracts it. When the minimizer is not unique, is any one of them.
The sharp operator is the map from back to that a norm provides, while the Riesz map is the one that an inner product provides.66 The two coincide exactly when the norm comes from the inner product, . The naming convention and notation follow Kelner et al. [1].77 Bernstein and Newhouse [2] call the duality map. Both the constrained and the penalized steps can be written explicitly using the sharp operator. The constrained problem is bounded below by ,88 The first inequality is the bound from the definition of the dual norm. The second holds because the constraint gives and . which the step below attains, and writing turns the penalized problem into the definition. For ,
(8)
Here is the unit vector, in the chosen norm, along , so goes straight to the border of the trust region. Both steps point along , which depends on the chosen norm, and differ only in length: for and for , so they coincide for .
ExampleΒ 2: The dual norm and the sharp operator in the plane
Example 2 (The dual norm and the sharp operator in the plane)Β Β Let and . For the Euclidean norm ,
(9)
By the CauchyβSchwarz inequality, , with equality at , and in the problem for , setting the derivative of the objective to zero gives the minimizer , so , the gradient for the Euclidean inner product. For the max-norm ,
(10)
Both coordinates can be moved as far as allowed, so the maximum is at . For the minimum, fix : the linear part is then smallest at , which leaves , smallest at . In both cases and . The same derivative gives different directions for different norms.99 The same argument gives for the max-norm, and this map is not linear: , while . So the max-norm is not the norm of any inner product, whose sharp operator, the Riesz map, is linear.
Interactive figureΒ 2: The sharp operator
Interactive figure 2 (The sharp operator)Β Β The graph shows the definition for of the example above and the -norms , which give the Euclidean norm for and the max-norm for . Its contours are those of , which is smallest at . The dual norm shows in two places: lies on the border of the ball , and the level set , a line in the plane, touches the ball there. Only comes from an inner product. For every other the sharp operator is nonlinear, and for near or it jumps between corners of the ball as is dragged, which no linear map can do.
The ball is shaded and the line dashed, with drawn from the origin. Drag , change from to , and drag the point to check that no point has a smaller value than .
4. The effect of the chosen norm
Once the norm is chosen, the step is fixed. To write the steps down, we need coordinates. Let , so that is a matrix, for example the weights of a layer in a neural network. The derivative is then represented by the matrix of partial derivatives , with
(11)
This uses the Frobenius inner product, which makes the Riesz representative of : the gradient for the Frobenius inner product.1010 This might seem like a limitation, but as shown in SectionΒ 4.1 every inner product on can be written using the Frobenius inner product. Some norms on , such as the max-norm, only look at the entries of , as if the matrix were one long vector of numbers. Others, such as the spectral norm, use that is a matrix, a linear map from inputs to outputs, which is what the weights of a layer are. For matrices, and act on the entries as for vectors, while is the spectral norm, the largest singular value. Each norm then gives a dual norm and a sharp operator in terms of , and with them a known method. Since both the constrained and the penalized steps follow from and , each example shows only the one that gives the known method. The other step is a rescaled version of it, for example normalized gradient descent in place of gradient descent. The table below collects the norms of this section.1111 The downloadable code computes for the Frobenius norm, a diagonal inner product, the max-norm, and the spectral norm by solving the defining problem as a small conic program [3], and prints it next to the closed form.
TableΒ 1: Three norms and the methods they give. For the first row the method is the penalized step , and for the last two it is the constrained step .
| Norm on | Method | ||
|---|---|---|---|
| Inner product | Gradient descent | ||
| Max-norm | Sign descent | ||
| Spectral | Muon |
The norms fall into two families. A norm from an inner product has a linear sharp operator, the Riesz map, and its step is a preconditioned gradient step. Every other norm has a nonlinear sharp operator, and its step is not the gradient for any fixed inner product, one that does not depend on .
4.1. Norms from an inner product
Every inner product on can be written as
(12)
where the linear map is symmetric and positive definite, i.e.,
(13)
Since ,1212 We look for the with for all . By the definition of , the left side is , so for all , which gives and . The inverse exists because is positive definite. the gradient for is .1313 In Example 1, the second inner product is , and its gradient is applied to the first. The inverse may look unusual, but it is the familiar preconditioner of scientific computing, where a problem is rescaled before it is solved: a gradient step with is plain gradient descent in the rescaled variables .1414 With , the derivative of is represented by , so a gradient step in changes by , and by . With close to the curvature of , the rescaled problem is well conditioned, and the step comes close to Newtonβs method.
ExampleΒ 3: Preconditioned gradient descent
Example 3 (Preconditioned gradient descent)Β Β Let , so that with the gradient . Then
(14)
By the CauchyβSchwarz inequality, , with equality at . In the problem for , completing the square gives
(15)
which is smallest at , so . The sharp operator is the Riesz map, and the penalized step
(16)
is preconditioned gradient descent with the preconditioner , and for the Frobenius norm, , plain gradient descent.
Interactive figureΒ 3: A norm from an inner product
Interactive figure 3 (A norm from an inner product)Β Β The graph shows the constrained step for an inner product on , , where
(17)
has the eigenvalues and , with eigenvectors turned by the angle . The unit ball is an ellipse, and the step , for , is where the line touches it. Unlike the steps for and , it never jumps between corners, and unlike the steps of the other -norms, its direction depends linearly on , since the sharp operator is linear.
Currently,
The Euclidean unit circle and the Euclidean step are dotted.
4.2. Norms not from inner products
Recall that the norm need not come from an inner product. Every method still minimizes the same linearization , with the derivative . What changes is the norm that limits the step, and with it the sharp operator, the map from back to . For a norm that does not come from an inner product, the sharp operator is nonlinear,1515 If were linear, then would be a quadratic form in , so the dual norm would come from an inner product on , and then so would the norm on , its dual. so it is not the Riesz map of any fixed inner product, and the step is not a gradient for any inner product that does not depend on . The max-norm is one such norm: as in the plane, , and its constrained step is sign descent. The example below shows the spectral norm, whose constrained step is Muon.
ExampleΒ 4: The spectral norm: Muon
Example 4 (The spectral norm: Muon)Β Β The spectral norm of a matrix is its largest singular value, . Let be the weights of a linear layer . A step changes the outputs by , and the spectral norm is the largest such change relative to the inputs,
(18)
As such, bounding the spectral norm effectively bounds the change of the outputs for every input. The dual norm and the sharp follow from the compact singular value decomposition , which keeps only the nonzero singular values,
(19)
By the cyclic property of the trace,
(20)
since each diagonal entry of is at most its spectral norm, . Equality holds at , where . For the minimum, fix : the linear part is then smallest at , which leaves , smallest at . The nuclear norm, the sum of the singular values, is therefore not chosen but appears as the dual of the spectral norm. The constrained step
(21)
is minus the matrix with the singular vectors of and all its nonzero singular values set to , while the zero ones stay zero. It is the update of Muon [4], applied to an averaged derivative as in the next section. In a network, the constraint is applied to each block.1616 That is, the norm is , as in Bernstein and Newhouse [2]. Its dual norm is , and each block takes the step . In practice, Muon computes with a few matrix products by a NewtonβSchulz iteration, whose polynomials are improved by The Polar Express Algorithm, and uses only for the weight matrices of the hidden layers. Avoiding the SVD is what makes Muon practical for large networks: an SVD runs poorly on GPUs and needs high precision, while matrix products are fast even in low precision.
Interactive figureΒ 4: The Muon step
Interactive figure 4 (The Muon step)Β Β Unlike the graphs above, this plane is not , which here is four-dimensional: it holds the vectors a block acts on, and each matrix is shown through its image of the unit circle. The block maps the unit circle to an ellipse with the semi-axes and . The matrix keeps the singular vectors and sets both singular values to : it maps the circle to itself, and its columns and , which take the place of and , are orthonormal.
5. Incorporating the past
The surrogates above have no memory of the past. The linearization is created using only the current iterate and its derivative , and the norm is fixed. Methods with memory use past iterations in two ways: momentum methods change the linearization, and adaptive methods change the norm.
5.1. Momentum
The idea behind momentum is to build the linearization from past derivatives as well. The surrogates keep their form, with a chosen derivative in place of ,
(22)
The derivative enters before the sharp operator, in . When the sharp operator is linear, as for a norm from an inner product, averaging the derivatives is the same as averaging the steps they give.1717 A linear sharp operator commutes with averaging, . A nonlinear one does not: for Muon, the orthogonalized average of the derivatives is not the average of the orthogonalized derivatives.
ExampleΒ 5: Averaged linearizations: Adam and Muon
Example 5 (Averaged linearizations: Adam and Muon)Β Β Average the past derivatives with weights for , giving
(23)
The pairing is linear in for any norm, so is the same weighted average of the past linearizations . Both steps keep their form with in place of ,
(24)
The past derivatives were taken at earlier points, so as a model of near this is worse than the linearization with . But when each is computed from a minibatch, is a less noisy estimate of the expected derivative. In coordinates, . Muon takes the step of Example 4 with in place of , and Adam does the same with the adaptive norm of Example 6.
5.2. Adaptive norms
Past information can also enter the norm. An adaptive method builds an inner product from past derivatives, so that the norm changes at every step. Each step is still the one of Example 3, with in place of ,
(25)
Storing a general is out of the question for a network, so two cheap structures are used: a diagonal one, which stores as many numbers as , and a Kronecker-factored one.
ExampleΒ 6: A diagonal norm: AdaGrad and Adam
Example 6 (A diagonal norm: AdaGrad and Adam)Β Β AdaGrad [5] sums the squared partial derivatives of all past iterations, and Adam [6] takes a moving average of them instead,
(26)
where the square, like the square root below, acts entry by entry. So has the same shape as , one number per entry. Both measure the step with the weighted norm
(27)
where runs over all entries of , and multiplies two elements of entry by entry, so that multiplies each by . As comes from an inner product, Example 3 gives
(28)
which divides each by , and the penalized step with is . Adam also uses the averaged derivative of SectionΒ 5.1 in place of , so it carries memory in both the linearization and the norm, and its step, without bias correction,1818 Adam starts both averages at zero, so after steps their weights sum to , and early averages are too small. It divides by and by , which scales the step by when is ignored. The factor approaches on the time scale of steps. is .
Interactive figureΒ 5: The adaptive norm of AdaGrad
Interactive figure 5 (The adaptive norm of AdaGrad)Β Β The graph shows AdaGrad on the quadratic , next to gradient descent with . At each iterate, the ellipse is the ball of through the next iterate, which the step reaches where a line of constant linearization touches the ball. Already the first derivative makes the ball narrow in the steep direction , where the derivatives are large, and wide along the flat coordinate . As accumulates, the ball, and with it the step, shrinks. AdaGrad thereby takes long steps where gradient descent crawls.
Gradient descent is dotted and AdaGrad solid, with thirty steps each. Drag , change and , and step through the iterations with .
ExampleΒ 7: A Kronecker-factored norm: K-FAC and Shampoo
Example 7 (A Kronecker-factored norm: K-FAC and Shampoo)Β Β Let be the weights of a linear layer with inputs . A step changes the outputs by . Measuring this change, weighted on the output side by a symmetric positive definite , gives1919 In a network, each layer has its own and .
(29)
which is positive definite only if is. Unlike the spectral norm of Example 4, which is the worst case over all inputs, this norm measures the change on the given inputs. Its inverse, , needs only an and an matrix, not a general one of size .2020 Stacking the columns of into one long vector gives , so is the Kronecker product . This is why such norms and preconditioners are called Kronecker-factored, the KF in K-FAC. Since the inputs change from batch to batch, K-FAC [7] takes moving averages over the iterations of and of , where holds the derivatives of the loss with respect to the outputs ,2121 In K-FAC, has an extra row of ones for the bias, and is computed with targets sampled from the networkβs own predictive distribution rather than taken from the data, so that approximates a block of the Fisher information matrix.
(30)
and its basic step is . K-FAC also adds damping to and , and takes the step with , where and are chosen at every step by minimizing a quadratic model. This is a momentum term whose coefficients change from step to step. Shampoo [8] instead sums the products of the derivative with itself, starting from and ,
(31)
and takes the step , so its norm uses the fourth roots of and .
6. Summary
TableΒ 2 summarizes the methods of the post by their norm and by where past information enters.
TableΒ 2: The methods of the post as choices of the norm and of where past information enters: the linearization through , and the norm. K-FAC also uses the previous step, and implementations of Shampoo often add momentum as well.
| Method | Norm | Norm memory | |
|---|---|---|---|
| Gradient descent | Inner product | β | |
| AdaGrad | Diagonal | Sum | |
| Adam | Diagonal | Average | Average |
| K-FAC | Kronecker-factored | Average | |
| Shampoo | Kronecker-factored | Sum | |
| Sign descent | Max-norm | β | |
| Muon | Spectral | Average | β |
Cite this post
@misc{paltorp2026steepestdescent, author = {Paltorp, Mikkel}, title = {{Which Way Is Down? First-Order Optimizers as a Choice of Norm}}, year = {2026}, month = oct, url = {https://mipals.github.io/pdf/2026/10-13-steepest-descent/steepest-descent.pdf}, note = {Blog post}}Bibliography
- [1] J. A. Kelner, Y. T. Lee, L. Orecchia, and A. Sidford, βAn Almost-Linear-Time Algorithm for Approximate Max Flow in Undirected Graphs, and its Multicommodity Generalizations,β in Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2014, pp. 217β226. doi: 10.1137/1.9781611973402.16.
- [2] J. Bernstein and L. Newhouse, βModular Duality in Deep Learning.β [Online]. Available: https://arxiv.org/abs/2410.21265
- [3] P. J. Goulart and Y. Chen, βClarabel: An interior-point solver for conic programs with quadratic objectives.β [Online]. Available: https://arxiv.org/abs/2405.12762
- [4] K. Jordan et al., βMuon: An optimizer for hidden layers in neural networks.β [Online]. Available: https://kellerjordan.github.io/posts/muon/
- [5] J. Duchi, E. Hazan, and Y. Singer, βAdaptive Subgradient Methods for Online Learning and Stochastic Optimization,β Journal of Machine Learning Research, vol. 12, no. 61, pp. 2121β2159, 2011, [Online]. Available: https://jmlr.org/papers/v12/duchi11a.html
- [6] D. P. Kingma and J. Ba, βAdam: A Method for Stochastic Optimization,β in International Conference on Learning Representations (ICLR), 2015. [Online]. Available: https://arxiv.org/abs/1412.6980
- [7] J. Martens and R. Grosse, βOptimizing Neural Networks with Kronecker-factored Approximate Curvature,β in Proceedings of the 32nd International Conference on Machine Learning, in Proceedings of Machine Learning Research, vol. 37. 2015, pp. 2408β2417. [Online]. Available: https://proceedings.mlr.press/v37/martens15.html
- [8] V. Gupta, T. Koren, and Y. Singer, βShampoo: Preconditioned Stochastic Tensor Optimization,β in Proceedings of the 35th International Conference on Machine Learning, in Proceedings of Machine Learning Research, vol. 80. 2018, pp. 1842β1850. [Online]. Available: https://proceedings.mlr.press/v80/gupta18a.html