Mirror Descent & Natural Gradient
Optimizing in the right geometry.
Gradient descent measures distance with the Euclidean norm, but nothing forces that choice. On the probability simplex, entropy is the natural yardstick: using it turns gradient descent into multiplicative weights and shrinks the dimension dependence of its guarantee from to . For probability models, the Fisher metric makes an update independent of how the model is parameterized. This lesson derives both from one template.
What you’ll learn
- Define Bregman divergences, compute them for the Euclidean, entropic and log-barrier mirror maps, and prove the three-point identity.
- Derive mirror descent and prove its regret bound for a -strongly convex mirror map.
- Show that entropic mirror descent on the simplex is exponentiated gradient (multiplicative weights), with an guarantee against for Euclidean projection.
- Derive the natural gradient from the Fisher information, prove its first-order invariance to reparameterization, and relate it to mirror descent, Gauss–Newton and K-FAC.
Gradient descent is a choice of geometry
A gradient step minimizes a linear model of the loss plus a proximity penalty:
The penalty encodes a geometry, and the Euclidean one is a choice. Replace it by and the step becomes preconditioned, ; measure steps in the norm and the steepest direction becomes , as in Adam's sign-like steps (Adaptive Methods in Depth). Mirror descent goes further and replaces the squared distance by a divergence generated by a convex function.
| Mirror map | Domain | Unconstrained mirror step | |
|---|---|---|---|
| gradient descent, | |||
| , | preconditioned step, | ||
| (negative entropy) | positive orthant | , the KL divergence on the simplex | |
| (log barrier) | positive orthant | (Itakura–Saito) |
Expand the three divergences from the definition: the values cancel, leaving only gradient terms. For this is the law of cosines.
The Bregman projection onto a closed convex set satisfies the optimality condition for . Plugged into the identity, it gives a generalized Pythagorean inequality:
Mirror descent and its guarantee
Mirror descent (Nemirovski & Yudin, 1983) takes the gradient step in the dual coordinates , then maps back and projects:
Beck & Teboulle (2003) showed that this is equivalent to a proximal step with a Bregman penalty, : the template of the previous step with the squared distance replaced.
The dual step. By definition , so the three-point identity applied to rewrites the linearized regret:
The projection. The Pythagorean inequality gives , hence:
The leftover. Expand the bracket and use strong convexity, , then Hölder's inequality and :
Sum. The divergences telescope, because minimizes on , and convexity gives . The stated balances the two terms; averaging and Jensen's inequality give the second claim.
Exponentiated gradient and multiplicative weights
Take and , the negative entropy. The dual step multiplies each coordinate by , and the KL projection onto the simplex simply renormalizes:
The constants. By Pinsker's inequality, , so is -strongly convex with respect to on the simplex, whose dual norm is . The uniform distribution minimizes , and ranges from there to at a vertex:
With , the theorem gives the bound below. Euclidean projected gradient on the simplex, with and , guarantees only when gradients are dense.
With coordinates and dense gradients bounded by in every coordinate, how many times smaller is the entropic guarantee than the Euclidean guarantee ?
Show the answer
190
The ratio is . The same algorithm with only the geometry changed turns a guarantee that grows like into one that grows like , which is why multiplicative weights can track a million experts.
Starting from a point with every coordinate positive, can exponentiated gradient on the simplex set a coordinate exactly to zero after finitely many steps?
- Yes, whenever that coordinate's gradient is large enough
- No: each update multiplies by and renormalizes, so every coordinate stays positive
- Yes: the Bregman projection clips negative coordinates to zero
- Only if exceeds
Show the answer
B. No: each update multiplies by and renormalizes, so every coordinate stays positive
Weights decay geometrically but never vanish, unlike Euclidean projection onto the simplex, which produces exact zeros. That is why entropic methods hedge: a coordinate that looked bad can recover if its losses improve. Exactly sparse solutions need a different geometry or an explicit thresholding step.
Geometry also decides which solution is found when many fit equally well. On underdetermined least squares, mirror descent converges to the interpolating solution closest to its starting point in (Gunasekar, Lee, Soudry & Srebro, 2018): the minimum Euclidean norm solution for gradient descent started at zero, the solution of minimum KL divergence from the start for exponentiated gradient (The Implicit Bias of Gradient Descent).
The natural gradient: steepest descent in distribution space
For a probabilistic model , the parameters are only a coordinate system on a family of distributions, and the natural yardstick for a step is how much the distribution changes. To second order, the KL divergence between nearby models is a quadratic form in the Fisher information:
The first-order term vanishes because the score has mean zero, and (Asymptotics of Maximum Likelihood). For a conditional model the expectation runs over inputs from the data and labels drawn from the model itself.
Choose the step that decreases a loss fastest for a given change of distribution: minimize the linearized loss over a small KL ball.
The Lagrange condition makes proportional to , which gives the natural gradient update:
A Bernoulli model with success probability has Fisher information . What is at ?
Show the answer
101
. Near the boundary a small change in is a large change of distribution (going from to roughly doubles the odds), so the natural gradient takes small steps there. In the logit parameterization the Fisher information is , consistent with .
Connections. (1) Mirror descent. For an exponential family with log-partition function , , and mirror descent with mirror map on the natural parameters is exactly natural gradient descent in the mean parameters (Raskutti & Mukherjee, 2015). (2) Gauss–Newton. When the loss is the negative log-likelihood of an exponential family whose natural parameters are the network's outputs, as for softmax cross-entropy or squared error with Gaussian noise, the Fisher matrix equals the generalized Gauss–Newton matrix (Martens, 2020).
(3) The empirical Fisher, built from the observed labels instead of labels sampled from the model, is a different matrix and can make a poor preconditioner (Kunstner, Balles & Hennig, 2019). Adam's second moment resembles its diagonal, which is why calling Adam an approximate natural-gradient method is misleading. (4) In practice, exact is out of reach for large networks; K-FAC's Kronecker factors (Newton & Quasi-Newton Methods) are a widely used approximation, and in reinforcement learning the natural policy gradient underlies trust-region policy methods.
Key takeaways
- Mirror descent replaces the squared Euclidean distance with a Bregman divergence : a gradient step in the dual coordinates , then a Bregman projection. With -strongly convex its regret is at most , where bounds the gradients in the dual norm.
- Negative entropy on the simplex turns the step into multiplicative weights, , with regret against for Euclidean projection: the right geometry trades for .
- The natural gradient is steepest descent under the KL divergence. It is invariant to reparameterization to first order, equals mirror descent in dual coordinates for exponential families, and coincides with generalized Gauss–Newton for common losses.
- The empirical Fisher is not the Fisher, so Adam is not an approximate natural-gradient method; Kronecker-factored approximations such as K-FAC are the practical route to natural gradient in networks.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
What is the Bregman divergence of the negative entropy between two points of the probability simplex?
- The total variation distance
Show the answer
C.
, since . The first argument is the point being chosen, which is why the exponentiated-gradient step is a KL-proximal step.
On the simplex in dimension , with gradients bounded by in every coordinate, how does the regret guarantee of exponentiated gradient scale with ?
- Like
- Like
- It does not depend on
- Like
Show the answer
D. Like
Entropy started at the uniform point has , with for and the dual norm , which gives . Euclidean projected gradient pays when gradients are dense.
You reparameterize a model, , and take one small step in the new parameters. Which statement is true?
- Plain gradient steps in and in change the model in the same way
- Natural-gradient steps change the distribution in the same way to first order, because
- The natural gradient is exactly invariant, even for large steps
- Only Newton's method is invariant to reparameterization
Show the answer
B. Natural-gradient steps change the distribution in the same way to first order, because
, so the induced change of agrees to first order. For finite steps the curvature of breaks exact invariance, one reason practical methods add damping or trust regions.
What is the "empirical Fisher", and why be careful with it?
- The average of over the observed labels; it differs from the Fisher, which draws from the model, and can make a poor preconditioner
- The Fisher matrix estimated from more data, which is always more accurate
- Another name for the Hessian of the training loss
- The diagonal of the Fisher matrix
Show the answer
A. The average of over the observed labels; it differs from the Fisher, which draws from the model, and can make a poor preconditioner
The Fisher averages over labels drawn from the model, ; the empirical version plugs in the training labels. The two agree only in special circumstances, such as a well-specified model at its true parameters, and Kunstner, Balles & Hennig (2019) showed that the empirical version can distort natural-gradient updates badly.
Further reading
- A. S. Nemirovski & D. B. Yudin, Problem Complexity and Method Efficiency in Optimization (Wiley, 1983).
- A. Beck & M. Teboulle, "Mirror descent and nonlinear projected subgradient methods for convex optimization," Operations Research Letters 31(3), 167–175 (2003).
- J. Kivinen & M. K. Warmuth, "Exponentiated gradient versus gradient descent for linear predictors," Information and Computation 132(1), 1–63 (1997).
- S. Amari, "Natural gradient works efficiently in learning," Neural Computation 10(2), 251–276 (1998).
- J. Martens, "New insights and perspectives on the natural gradient method," Journal of Machine Learning Research 21(146), 1–76 (2020).