Simple Algorithm
Machine Learning · Convergence · 28 min

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 d\sqrt d to log⁡d\sqrt{\log d}. 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 RG2T/ρRG\sqrt{2T/\rho} for a ρ\rho-strongly convex mirror map.
  • Show that entropic mirror descent on the simplex is exponentiated gradient (multiplicative weights), with an O(Tlog⁡d)\order{\sqrt{T\log d}} guarantee against O(Td)\order{\sqrt{Td}} 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:

xt+1=arg min⁡x{η gt⊤x+12∥x−xt∥22}=xt−η gt.\mathbf x_{t+1}=\argmin_{\mathbf x}\Big\{\eta\,\mathbf g_t^\top\mathbf x+\tfrac12\norm{\mathbf x-\mathbf x_t}_2^2\Big\}=\mathbf x_t-\eta\,\mathbf g_t.

The penalty encodes a geometry, and the Euclidean one is a choice. Replace it by 12(x−xt)⊤A(x−xt)\frac12(\mathbf x-\mathbf x_t)^\top A(\mathbf x-\mathbf x_t) and the step becomes preconditioned, xt−ηA−1gt\mathbf x_t-\eta A^{-1}\mathbf g_t; measure steps in the ℓ∞\ell_\infty norm and the steepest direction becomes −sign⁡(gt)-\sign(\mathbf g_t), 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 ψ(x)\psi(\mathbf x)DomainDψ(x,y)D_\psi(\mathbf x,\mathbf y)Unconstrained mirror step
12∥x∥22\frac12\norm{\mathbf x}_2^2Rd\R^d12∥x−y∥22\frac12\norm{\mathbf x-\mathbf y}_2^2gradient descent, x−ηg\mathbf x-\eta\mathbf g
12x⊤Ax\frac12\mathbf x^\top A\mathbf x, A≻0A\succ0Rd\R^d12(x−y)⊤A(x−y)\frac12(\mathbf x-\mathbf y)^\top A(\mathbf x-\mathbf y)preconditioned step, x−ηA−1g\mathbf x-\eta A^{-1}\mathbf g
∑ixilog⁡xi\sum_ix_i\log x_i (negative entropy)positive orthant∑i(xilog⁡xiyi−xi+yi)\sum_i\big(x_i\log\frac{x_i}{y_i}-x_i+y_i\big), the KL divergence on the simplexxi←xi e−ηgix_i\leftarrow x_i\,e^{-\eta g_i}
−∑ilog⁡xi-\sum_i\log x_i (log barrier)positive orthant∑i(xiyi−log⁡xiyi−1)\sum_i\big(\frac{x_i}{y_i}-\log\frac{x_i}{y_i}-1\big) (Itakura–Saito)1/xi←1/xi+ηgi1/x_i\leftarrow1/x_i+\eta g_i
The mirror step solves ∇ψ(x+)=∇ψ(x)−ηg\nabla\psi(\mathbf x^+)=\nabla\psi(\mathbf x)-\eta\mathbf g before any projection back onto the feasible set. Entropy turns additive updates into multiplicative ones; the log barrier turns them into updates of reciprocals.
DerivationThe three-point identity and the Bregman projection
  1. Dψ(z,x)+Dψ(x,y)−Dψ(z,y)=(∇ψ(y)−∇ψ(x))⊤(z−x)D_\psi(\mathbf z,\mathbf x)+D_\psi(\mathbf x,\mathbf y)-D_\psi(\mathbf z,\mathbf y)=\big(\nabla\psi(\mathbf y)-\nabla\psi(\mathbf x)\big)^\top(\mathbf z-\mathbf x)

    Expand the three divergences from the definition: the values ψ(x),ψ(y),ψ(z)\psi(\mathbf x),\psi(\mathbf y),\psi(\mathbf z) cancel, leaving only gradient terms. For ψ=12∥⋅∥2\psi=\frac12\norm{\cdot}^2 this is the law of cosines.

  2. Dψ(z,y) ≥ Dψ(z,x^)+Dψ(x^,y)for all z∈X,x^=ΠXψ(y)D_\psi(\mathbf z,\mathbf y)\ \ge\ D_\psi(\mathbf z,\hat{\mathbf x})+D_\psi(\hat{\mathbf x},\mathbf y)\qquad\text{for all }\mathbf z\in\mathcal X,\quad\hat{\mathbf x}=\Pi^\psi_{\mathcal X}(\mathbf y)

    The Bregman projection ΠXψ(y)=arg min⁡x∈XDψ(x,y)\Pi^\psi_{\mathcal X}(\mathbf y)=\argmin_{\mathbf x\in\mathcal X}D_\psi(\mathbf x,\mathbf y) onto a closed convex set satisfies the optimality condition (∇ψ(x^)−∇ψ(y))⊤(z−x^)≥0\big(\nabla\psi(\hat{\mathbf x})-\nabla\psi(\mathbf y)\big)^\top(\mathbf z-\hat{\mathbf x})\ge0 for z∈X\mathbf z\in\mathcal X. 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 ∇ψ\nabla\psi, then maps back and projects:

∇ψ(yt+1)=∇ψ(xt)−η gt,xt+1=ΠXψ(yt+1).\nabla\psi(\mathbf y_{t+1})=\nabla\psi(\mathbf x_t)-\eta\,\mathbf g_t,\qquad\mathbf x_{t+1}=\Pi^\psi_{\mathcal X}(\mathbf y_{t+1}).

Beck & Teboulle (2003) showed that this is equivalent to a proximal step with a Bregman penalty, xt+1=arg min⁡x∈X{η gt⊤x+Dψ(x,xt)}\mathbf x_{t+1}=\argmin_{\mathbf x\in\mathcal X}\big\{\eta\,\mathbf g_t^\top\mathbf x+D_\psi(\mathbf x,\mathbf x_t)\big\}: the template of the previous step with the squared distance replaced.

DerivationProof
  1. η gt⊤(xt−x)=Dψ(x,xt)−Dψ(x,yt+1)+Dψ(xt,yt+1)\eta\,\mathbf g_t^\top(\mathbf x_t-\mathbf x)=D_\psi(\mathbf x,\mathbf x_t)-D_\psi(\mathbf x,\mathbf y_{t+1})+D_\psi(\mathbf x_t,\mathbf y_{t+1})

    The dual step. By definition η gt=∇ψ(xt)−∇ψ(yt+1)\eta\,\mathbf g_t=\nabla\psi(\mathbf x_t)-\nabla\psi(\mathbf y_{t+1}), so the three-point identity applied to (x,xt,yt+1)(\mathbf x,\mathbf x_t,\mathbf y_{t+1}) rewrites the linearized regret:

  2. η gt⊤(xt−x) ≤ Dψ(x,xt)−Dψ(x,xt+1)+[Dψ(xt,yt+1)−Dψ(xt+1,yt+1)]\eta\,\mathbf g_t^\top(\mathbf x_t-\mathbf x)\ \le\ D_\psi(\mathbf x,\mathbf x_t)-D_\psi(\mathbf x,\mathbf x_{t+1})+\Big[D_\psi(\mathbf x_t,\mathbf y_{t+1})-D_\psi(\mathbf x_{t+1},\mathbf y_{t+1})\Big]

    The projection. The Pythagorean inequality gives Dψ(x,yt+1)≥Dψ(x,xt+1)+Dψ(xt+1,yt+1)D_\psi(\mathbf x,\mathbf y_{t+1})\ge D_\psi(\mathbf x,\mathbf x_{t+1})+D_\psi(\mathbf x_{t+1},\mathbf y_{t+1}), hence:

  3. [⋯] ≤ η gt⊤(xt−xt+1)−ρ2∥xt−xt+1∥2 ≤ ηG∥xt−xt+1∥−ρ2∥xt−xt+1∥2 ≤ η2G22ρ\Big[\cdots\Big]\ \le\ \eta\,\mathbf g_t^\top(\mathbf x_t-\mathbf x_{t+1})-\frac\rho2\norm{\mathbf x_t-\mathbf x_{t+1}}^2\ \le\ \eta G\norm{\mathbf x_t-\mathbf x_{t+1}}-\frac\rho2\norm{\mathbf x_t-\mathbf x_{t+1}}^2\ \le\ \frac{\eta^2G^2}{2\rho}

    The leftover. Expand the bracket and use strong convexity, ψ(xt)−ψ(xt+1)≤∇ψ(xt)⊤(xt−xt+1)−ρ2∥xt−xt+1∥2\psi(\mathbf x_t)-\psi(\mathbf x_{t+1})\le\nabla\psi(\mathbf x_t)^\top(\mathbf x_t-\mathbf x_{t+1})-\frac\rho2\norm{\mathbf x_t-\mathbf x_{t+1}}^2, then Hölder's inequality and ab−ρ2b2≤a22ρab-\frac\rho2b^2\le\frac{a^2}{2\rho}:

  4. ∑t=1T(ft(xt)−ft(x)) ≤ R2η+η G2T2ρ=RG2Tρ\sum_{t=1}^T\big(f_t(\mathbf x_t)-f_t(\mathbf x)\big)\ \le\ \frac{R^2}\eta+\frac{\eta\,G^2T}{2\rho}=RG\sqrt{\frac{2T}\rho}

    Sum. The divergences telescope, Dψ(x,x1)≤ψ(x)−ψ(x1)≤R2D_\psi(\mathbf x,\mathbf x_1)\le\psi(\mathbf x)-\psi(\mathbf x_1)\le R^2 because x1\mathbf x_1 minimizes ψ\psi on X\mathcal X, and convexity gives ft(xt)−ft(x)≤gt⊤(xt−x)f_t(\mathbf x_t)-f_t(\mathbf x)\le\mathbf g_t^\top(\mathbf x_t-\mathbf x). The stated η\eta balances the two terms; averaging and Jensen's inequality give the second claim.

Exponentiated gradient and multiplicative weights

DerivationEntropy on the simplex
  1. xt+1,i=xt,i e−ηgt,i∑jxt,j e−ηgt,jx_{t+1,i}=\frac{x_{t,i}\,e^{-\eta g_{t,i}}}{\sum_jx_{t,j}\,e^{-\eta g_{t,j}}}

    Take X=Δd={x≥0:∑ixi=1}\mathcal X=\Delta_d=\{\mathbf x\ge\mathbf 0:\sum_ix_i=1\} and ψ(x)=∑ixilog⁡xi\psi(\mathbf x)=\sum_ix_i\log x_i, the negative entropy. The dual step log⁡yt+1=log⁡xt−η gt\log\mathbf y_{t+1}=\log\mathbf x_t-\eta\,\mathbf g_t multiplies each coordinate by e−ηgt,ie^{-\eta g_{t,i}}, and the KL projection onto the simplex simply renormalizes:

  2. ρ=1,R2=max⁡x∈Δdψ(x)−ψ(1d1)=0−(−log⁡d)=log⁡d\rho=1,\qquad R^2=\max_{\mathbf x\in\Delta_d}\psi(\mathbf x)-\psi\big(\tfrac1d\mathbf 1\big)=0-(-\log d)=\log d

    The constants. By Pinsker's inequality, DKL(x ∥ y)≥12∥x−y∥12\KL(\mathbf x\,\|\,\mathbf y)\ge\frac12\norm{\mathbf x-\mathbf y}_1^2, so ψ\psi is 11-strongly convex with respect to ∥⋅∥1\norm{\cdot}_1 on the simplex, whose dual norm is ∥⋅∥∞\norm{\cdot}_\infty. The uniform distribution minimizes ψ\psi, and ψ\psi ranges from −log⁡d-\log d there to 00 at a vertex:

  3. ∑t=1T(ft(xt)−ft(x)) ≤ G2Tlog⁡d\sum_{t=1}^T\big(f_t(\mathbf x_t)-f_t(\mathbf x)\big)\ \le\ G\sqrt{2T\log d}

    With ∥gt∥∞≤G\norm{\mathbf g_t}_\infty\le G, the theorem gives the bound below. Euclidean projected gradient on the simplex, with R2≤12R^2\le\frac12 and ∥gt∥2≤d G\norm{\mathbf g_t}_2\le\sqrt d\,G, guarantees only GdTG\sqrt{dT} when gradients are dense.

Predict before you look

With d=106d=10^6 coordinates and dense gradients bounded by GG in every coordinate, how many times smaller is the entropic guarantee G2Tlog⁡dG\sqrt{2T\log d} than the Euclidean guarantee GdTG\sqrt{dT}?

Show the answer

190

The ratio is d/(2log⁡d)=106/27.6≈190\sqrt{d/(2\log d)}=\sqrt{10^6/27.6}\approx190. The same algorithm with only the geometry changed turns a guarantee that grows like d\sqrt d into one that grows like log⁡d\sqrt{\log d}, which is why multiplicative weights can track a million experts.

Check your understanding

Starting from a point with every coordinate positive, can exponentiated gradient on the simplex set a coordinate exactly to zero after finitely many steps?

  1. Yes, whenever that coordinate's gradient is large enough
  2. No: each update multiplies by e−ηgi>0e^{-\eta g_i}>0 and renormalizes, so every coordinate stays positive
  3. Yes: the Bregman projection clips negative coordinates to zero
  4. Only if η\eta exceeds 1/G1/G
Show the answer

B. No: each update multiplies by e−ηgi>0e^{-\eta g_i}>0 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 DψD_\psi (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 pθp_{\boldsymbol\theta}, 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:

DKL(pθ ∥ pθ+δ)=12 δ⊤F(θ) δ+O(∥δ∥3),F(θ)=Epθ[∇log⁡pθ ∇log⁡pθ⊤].\KL\big(p_{\boldsymbol\theta}\,\|\,p_{\boldsymbol\theta+\boldsymbol\delta}\big)=\tfrac12\,\boldsymbol\delta^\top F(\boldsymbol\theta)\,\boldsymbol\delta+\order{\norm{\boldsymbol\delta}^3},\qquad F(\boldsymbol\theta)=\E_{p_{\boldsymbol\theta}}\big[\nabla\log p_{\boldsymbol\theta}\,\nabla\log p_{\boldsymbol\theta}^\top\big].

The first-order term vanishes because the score has mean zero, and F=−E ∇2log⁡pθF=-\E\,\nabla^2\log p_{\boldsymbol\theta} (Asymptotics of Maximum Likelihood). For a conditional model pθ(y∣x)p_{\boldsymbol\theta}(y\mid\mathbf x) the expectation runs over inputs from the data and labels drawn from the model itself.

DerivationThe natural gradient (Amari, 1998)
  1. min⁡δ ∇L(θ)⊤δsubject to12 δ⊤F(θ) δ≤ϵ\min_{\boldsymbol\delta}\ \nabla\loss(\boldsymbol\theta)^\top\boldsymbol\delta\quad\text{subject to}\quad\tfrac12\,\boldsymbol\delta^\top F(\boldsymbol\theta)\,\boldsymbol\delta\le\epsilon

    Choose the step that decreases a loss L\loss fastest for a given change of distribution: minimize the linearized loss over a small KL ball.

  2. ∇L+ν Fδ=0⟹θt+1=θt−η F(θt)−1∇L(θt)\nabla\loss+\nu\,F\boldsymbol\delta=\mathbf 0\quad\Longrightarrow\quad\boldsymbol\theta_{t+1}=\boldsymbol\theta_t-\eta\,F(\boldsymbol\theta_t)^{-1}\nabla\loss(\boldsymbol\theta_t)

    The Lagrange condition makes δ\boldsymbol\delta proportional to F−1∇LF^{-1}\nabla\loss, which gives the natural gradient update:

Predict before you look

A Bernoulli model with success probability pp has Fisher information F(p)=1/(p(1−p))F(p)=1/\big(p(1-p)\big). What is F(p)F(p) at p=0.01p=0.01?

Show the answer

101

1/(0.01⋅0.99)≈1011/(0.01\cdot0.99)\approx101. Near the boundary a small change in pp is a large change of distribution (going from 0.010.01 to 0.020.02 roughly doubles the odds), so the natural gradient F−1∂pL=p(1−p) ∂pLF^{-1}\partial_p\loss=p(1-p)\,\partial_p\loss takes small steps there. In the logit parameterization θ=log⁡p1−p\theta=\log\frac p{1-p} the Fisher information is p(1−p)p(1-p), consistent with Fθ=Fp (dp/dθ)2F_\theta=F_p\,(dp/d\theta)^2.

Connections. (1) Mirror descent. For an exponential family with log-partition function A(θ)A(\boldsymbol\theta), F(θ)=∇2A(θ)F(\boldsymbol\theta)=\nabla^2A(\boldsymbol\theta), and mirror descent with mirror map AA on the natural parameters is exactly natural gradient descent in the mean parameters μ=∇A(θ)\boldsymbol\mu=\nabla A(\boldsymbol\theta) (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 F−1F^{-1} 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 DψD_\psi: a gradient step in the dual coordinates ∇ψ\nabla\psi, then a Bregman projection. With ψ\psi ρ\rho-strongly convex its regret is at most RG2T/ρRG\sqrt{2T/\rho}, where GG bounds the gradients in the dual norm.
  • Negative entropy on the simplex turns the step into multiplicative weights, xi∝xie−ηgix_i\propto x_ie^{-\eta g_i}, with regret G2Tlog⁡dG\sqrt{2T\log d} against GdTG\sqrt{dT} for Euclidean projection: the right geometry trades d\sqrt d for log⁡d\sqrt{\log d}.
  • The natural gradient F−1∇LF^{-1}\nabla\loss 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.

Question 1

What is the Bregman divergence Dψ(x,y)D_\psi(\mathbf x,\mathbf y) of the negative entropy ψ(x)=∑ixilog⁡xi\psi(\mathbf x)=\sum_ix_i\log x_i between two points of the probability simplex?

  1. 12∥x−y∥22\frac12\norm{\mathbf x-\mathbf y}_2^2
  2. DKL(y ∥ x)\KL(\mathbf y\,\|\,\mathbf x)
  3. DKL(x ∥ y)=∑ixilog⁡(xi/yi)\KL(\mathbf x\,\|\,\mathbf y)=\sum_ix_i\log(x_i/y_i)
  4. The total variation distance 12∥x−y∥1\frac12\norm{\mathbf x-\mathbf y}_1
Show the answer

C. DKL(x ∥ y)=∑ixilog⁡(xi/yi)\KL(\mathbf x\,\|\,\mathbf y)=\sum_ix_i\log(x_i/y_i)

Dψ(x,y)=∑ixilog⁡xi−∑iyilog⁡yi−∑i(1+log⁡yi)(xi−yi)=∑ixilog⁡xiyiD_\psi(\mathbf x,\mathbf y)=\sum_ix_i\log x_i-\sum_iy_i\log y_i-\sum_i(1+\log y_i)(x_i-y_i)=\sum_ix_i\log\frac{x_i}{y_i}, since ∑ixi=∑iyi=1\sum_ix_i=\sum_iy_i=1. The first argument is the point being chosen, which is why the exponentiated-gradient step is a KL-proximal step.

Question 2

On the simplex in dimension dd, with gradients bounded by GG in every coordinate, how does the regret guarantee of exponentiated gradient scale with dd?

  1. Like d\sqrt d
  2. Like dd
  3. It does not depend on dd
  4. Like log⁡d\sqrt{\log d}
Show the answer

D. Like log⁡d\sqrt{\log d}

Entropy started at the uniform point has R2=log⁡dR^2=\log d, with ρ=1\rho=1 for ∥⋅∥1\norm{\cdot}_1 and the dual norm ∥⋅∥∞\norm{\cdot}_\infty, which gives G2Tlog⁡dG\sqrt{2T\log d}. Euclidean projected gradient pays d\sqrt d when gradients are dense.

Question 3

You reparameterize a model, θ=ϕ(ζ)\boldsymbol\theta=\phi(\boldsymbol\zeta), and take one small step in the new parameters. Which statement is true?

  1. Plain gradient steps in ζ\boldsymbol\zeta and in θ\boldsymbol\theta change the model in the same way
  2. Natural-gradient steps change the distribution in the same way to first order, because Fζ=J⊤FθJF_{\boldsymbol\zeta}=J^\top F_{\boldsymbol\theta}J
  3. The natural gradient is exactly invariant, even for large steps
  4. 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 Fζ=J⊤FθJF_{\boldsymbol\zeta}=J^\top F_{\boldsymbol\theta}J

Fζ−1∇ζL=J−1Fθ−1∇θLF_{\boldsymbol\zeta}^{-1}\nabla_{\boldsymbol\zeta}\loss=J^{-1}F_{\boldsymbol\theta}^{-1}\nabla_{\boldsymbol\theta}\loss, so the induced change of θ\boldsymbol\theta agrees to first order. For finite steps the curvature of ϕ\phi breaks exact invariance, one reason practical methods add damping or trust regions.

Question 4

What is the "empirical Fisher", and why be careful with it?

  1. The average of ∇log⁡pθ(yi∣xi) ∇log⁡pθ(yi∣xi)⊤\nabla\log p_{\boldsymbol\theta}(y_i\mid\mathbf x_i)\,\nabla\log p_{\boldsymbol\theta}(y_i\mid\mathbf x_i)^\top over the observed labels; it differs from the Fisher, which draws yy from the model, and can make a poor preconditioner
  2. The Fisher matrix estimated from more data, which is always more accurate
  3. Another name for the Hessian of the training loss
  4. The diagonal of the Fisher matrix
Show the answer

A. The average of ∇log⁡pθ(yi∣xi) ∇log⁡pθ(yi∣xi)⊤\nabla\log p_{\boldsymbol\theta}(y_i\mid\mathbf x_i)\,\nabla\log p_{\boldsymbol\theta}(y_i\mid\mathbf x_i)^\top over the observed labels; it differs from the Fisher, which draws yy from the model, and can make a poor preconditioner

The Fisher averages over labels drawn from the model, y∼pθ(⋅∣x)y\sim p_{\boldsymbol\theta}(\cdot\mid\mathbf x); 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).