The Fisher Information Matrix and Natural Gradient Descent: How Information Geometry, Riemannian Manifolds, and Curvature Invariance Reshape Neural Optimization

The Fisher Information Matrix and Natural Gradient Descent: How Information Geometry, Riemannian Manifolds, and Curvature Invariance Reshape Neural Optimization Standard gradient descent operates under an implicit, often unexamined assumption: that parameter space is Euclidean. When an optimizer updates network weights via $\theta_{t+1} = \theta_t - \eta \nabla_\theta \mathcal{L}(\theta)$, it calculates the direction of steepest descent within an arbitrary coordinate system. If the network is r

10 min
The Fisher Information Matrix and Natural Gradient Descent: How Information Geometry, Riemannian Manifolds, and Curvature Invariance Reshape Neural Optimization

The Fisher Information Matrix and Natural Gradient Descent: How Information Geometry, Riemannian Manifolds, and Curvature Invariance Reshape Neural Optimization

Standard gradient descent operates under an implicit, often unexamined assumption: that parameter space is Euclidean. When an optimizer updates network weights via θt+1=θtηθL(θ)\theta_{t+1} = \theta_t - \eta \nabla_\theta \mathcal{L}(\theta), it calculates the direction of steepest descent within an arbitrary coordinate system. If the network is reparameterized without changing its input-output mapping, the Euclidean gradient vector changes direction and magnitude, leading to different optimization trajectories and variable convergence rates.

Natural gradient descent, introduced to neural networks by Shun-ichi Amari (1998), resolves this parameterization dependence. By treating the neural network as a statistical model that defines a family of probability distributions, natural gradient optimization replaces the Euclidean metric with a Riemannian metric tensor derived from information geometry: the Fisher Information Matrix (FIM).

Natural Gradient Descent vs Euclidean Gradient Descent on a Statistical Manifold

The Parameterization Problem in Euclidean Optimization

In standard first-order optimization, the update direction is defined by the steepest descent problem under an L2L_2 norm constraint on the parameter displacement vector dθd\theta:

mindθL(θ+dθ)subject todθ22ϵ2\min_{d\theta} \mathcal{L}(\theta + d\theta) \quad \text{subject to} \quad \|d\theta\|_2^2 \le \epsilon^2

Using a first-order Taylor expansion $\mathcal{L}(\theta + d\theta) \approx \mathcal{L}(\theta) + \nabla_\theta \mathcal{L}(\theta)^T d\theta$, the solution yields dθθL(θ)d\theta \propto -\nabla_\theta \mathcal{L}(\theta).

The fundamental limitation of this formulation is that the constraint dθ22=i(dθi)2ϵ2\|d\theta\|_2^2 = \sum_i (d\theta_i)^2 \le \epsilon^2 measures distance purely in coordinate space. Consider an invertible, smooth parameter transformation ϕ=g(θ)\phi = g(\theta). By the chain rule, the gradient in the new coordinate system is:

ϕL=JTθL\nabla_\phi \mathcal{L} = J^T \nabla_\theta \mathcal{L}

where J=θϕJ = \frac{\partial \theta}{\partial \phi} is the Jacobian matrix of the coordinate transformation. A standard gradient step in ϕ\phi-coordinates produces:

ϕt+1=ϕtηϕL=ϕtηJTθL\phi_{t+1} = \phi_t - \eta \nabla_\phi \mathcal{L} = \phi_t - \eta J^T \nabla_\theta \mathcal{L}

Mapping this update back to the original θ\theta-coordinates via θ=g1(ϕ)\theta = g^{-1}(\phi) does not yield θtηθL(θ)\theta_t - \eta \nabla_\theta \mathcal{L}(\theta). The optimization path is coupled to the arbitrary choice of coordinates rather than the underlying predictive function.

Information Geometry and the Statistical Manifold

In deep learning, a parameterized model defines a conditional probability distribution pθ(yx)p_\theta(y|x) over target outputs yy given inputs xx. The set of all such distributions forms a statistical manifold:

M={pθ(yx):θΘRD}\mathcal{M} = \left\{ p_\theta(y|x) : \theta \in \Theta \subseteq \mathbb{R}^D \right\}

Points on this manifold are probability distributions, not parameter vectors. To measure the true distance between two nearby models parameterized by θ\theta and θ+dθ\theta + d\theta, the natural metric is the Kullback-Leibler (KL) divergence averaged over the data distribution pdata(x)p_{data}(x):

DKL(pθpθ+dθ)=Expdata(x)[pθ(yx)logpθ(yx)pθ+dθ(yx)dy]D_{KL}(p_\theta \parallel p_{\theta + d\theta}) = \mathbb{E}_{x \sim p_{data}(x)} \left[ \int p_\theta(y|x) \log \frac{p_\theta(y|x)}{p_{\theta + d\theta}(y|x)} \, dy \right]

The KL divergence is invariant to any invertible reparameterization of θ\theta because the probability densities p(yx)p(y|x) remain unchanged.

Mathematical Derivation of the Fisher Information Matrix

To understand local distances on the manifold, consider the second-order Taylor expansion of DKL(pθpθ+dθ)D_{KL}(p_\theta \parallel p_{\theta + d\theta}) with respect to the parameter perturbation dθd\theta around dθ=0d\theta = 0.

Let f(dθ)=DKL(pθpθ+dθ)f(d\theta) = D_{KL}(p_\theta \parallel p_{\theta + d\theta}). Evaluating the zeroth and first-order terms:

  1. At dθ=0d\theta = 0, DKL(pθpθ)=0D_{KL}(p_\theta \parallel p_\theta) = 0, so the zeroth-order term vanishes: f(0)=0f(0) = 0.
  2. Because DKL(PQ)0D_{KL}(P \parallel Q) \ge 0 with a global minimum at P=QP = Q, the gradient with respect to dθd\theta at dθ=0d\theta = 0 is zero: dθf(0)=0\nabla_{d\theta} f(0) = 0.

The first non-vanishing term is the second-order Hessian matrix dθ2f(0)\nabla_{d\theta}^2 f(0). Differentiating inside the expectation:

dθlogpθ+dθ(yx)dθ=0=θlogpθ(yx)\nabla_{d\theta} \log p_{\theta + d\theta}(y|x) \Big|_{d\theta = 0} = \nabla_\theta \log p_\theta(y|x)

dθ2logpθ+dθ(yx)dθ=0=θ2logpθ(yx)\nabla_{d\theta}^2 \log p_{\theta + d\theta}(y|x) \Big|_{d\theta = 0} = \nabla_\theta^2 \log p_\theta(y|x)

Expanding the log-ratio inside the divergence:

DKL(pθpθ+dθ)=ExpdataEypθ(x)[logpθ+dθ(yx)logpθ(yx)]D_{KL}(p_\theta \parallel p_{\theta + d\theta}) = -\mathbb{E}_{x \sim p_{data}} \mathbb{E}_{y \sim p_\theta(\cdot|x)} \left[ \log p_{\theta + d\theta}(y|x) - \log p_\theta(y|x) \right]

Taking the second derivative with respect to dθd\theta:

dθ2DKL(pθpθ+dθ)dθ=0=ExpdataEypθ(x)[θ2logpθ(yx)]\nabla_{d\theta}^2 D_{KL}(p_\theta \parallel p_{\theta + d\theta}) \Big|_{d\theta = 0} = -\mathbb{E}_{x \sim p_{data}} \mathbb{E}_{y \sim p_\theta(\cdot|x)} \left[ \nabla_\theta^2 \log p_\theta(y|x) \right]

Using the Bartlett identity, differentiating the normalization condition pθ(yx)dy=1\int p_\theta(y|x) dy = 1 twice yields the equivalence between the negative expected Hessian of the log-likelihood and the outer product of score vectors:

Eypθ(x)[θ2logpθ(yx)]=Eypθ(x)[θlogpθ(yx)θlogpθ(yx)T]\mathbb{E}_{y \sim p_\theta(\cdot|x)} \left[ -\nabla_\theta^2 \log p_\theta(y|x) \right] = \mathbb{E}_{y \sim p_\theta(\cdot|x)} \left[ \nabla_\theta \log p_\theta(y|x) \nabla_\theta \log p_\theta(y|x)^T \right]

This defines the Fisher Information Matrix F(θ)RD×DF(\theta) \in \mathbb{R}^{D \times D}:

F(θ)=ExpdataEypθ(x)[θlogpθ(yx)θlogpθ(yx)T]F(\theta) = \mathbb{E}_{x \sim p_{data}} \mathbb{E}_{y \sim p_\theta(\cdot|x)} \left[ \nabla_\theta \log p_\theta(y|x) \nabla_\theta \log p_\theta(y|x)^T \right]

The local KL divergence between two infinitesimally close models is therefore given by the quadratic form:

DKL(pθpθ+dθ)=12dθTF(θ)dθ+O(dθ3)D_{KL}(p_\theta \parallel p_{\theta + d\theta}) = \frac{1}{2} d\theta^T F(\theta) d\theta + \mathcal{O}(\|d\theta\|^3)

Chentsov's Theorem (1982) established that the Fisher Information Matrix defines the unique Riemannian metric tensor (up to a scaling factor) on the statistical manifold that is invariant under sufficient statistics and Markov embeddings.

Natural Gradient Descent Formulation

With the Riemannian metric established, steepest descent on the statistical manifold is formulated by constraining the change in model distribution via KL divergence rather than Euclidean parameter distance:

mindθL(θ+dθ)subject toDKL(pθpθ+dθ)c\min_{d\theta} \mathcal{L}(\theta + d\theta) \quad \text{subject to} \quad D_{KL}(p_\theta \parallel p_{\theta + d\theta}) \le c

Substituting the first-order approximation for the loss and the quadratic approximation for the KL divergence:

mindθ{L(θ)+θL(θ)Tdθ}subject to12dθTF(θ)dθc\min_{d\theta} \left\{ \mathcal{L}(\theta) + \nabla_\theta \mathcal{L}(\theta)^T d\theta \right\} \quad \text{subject to} \quad \frac{1}{2} d\theta^T F(\theta) d\theta \le c

Formulating the Lagrangian with multiplier λ>0\lambda > 0:

LLagrange(dθ,λ)=θL(θ)Tdθ+λ(12dθTF(θ)dθc)\mathcal{L}_{Lagrange}(d\theta, \lambda) = \nabla_\theta \mathcal{L}(\theta)^T d\theta + \lambda \left( \frac{1}{2} d\theta^T F(\theta) d\theta - c \right)

Taking the derivative with respect to dθd\theta and setting it to zero:

θL(θ)+λF(θ)dθ=0    dθ=1λF(θ)1θL(θ)\nabla_\theta \mathcal{L}(\theta) + \lambda F(\theta) d\theta = 0 \implies d\theta = -\frac{1}{\lambda} F(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)

Setting the learning rate η=1λ\eta = \frac{1}{\lambda}, the natural gradient update rule is:

θt+1=θtηF(θt)1θL(θt)\theta_{t+1} = \theta_t - \eta F(\theta_t)^{-1} \nabla_\theta \mathcal{L}(\theta_t)

The vector $\tilde{\nabla} \mathcal{L}(\theta) = F(\theta)^{-1} \nabla_\theta \mathcal{L}(\theta)$ is termed the natural gradient.

Proof of Reparameterization Invariance

To verify that natural gradient descent is invariant to coordinate transformations, let ϕ=g(θ)\phi = g(\theta) with Jacobian J=θϕJ = \frac{\partial \theta}{\partial \phi}.

Transforming the score function:

ϕlogp(yx,ϕ)=JTθlogp(yx,θ)\nabla_\phi \log p(y|x, \phi) = J^T \nabla_\theta \log p(y|x, \theta)

The Fisher Information Matrix in ϕ\phi-coordinates becomes:

Fϕ=E[ϕlogpϕlogpT]=JTFθJF_\phi = \mathbb{E} \left[ \nabla_\phi \log p \nabla_\phi \log p^T \right] = J^T F_\theta J

The loss gradient transforms as ϕL=JTθL\nabla_\phi \mathcal{L} = J^T \nabla_\theta \mathcal{L}. Computing the natural gradient in ϕ\phi-coordinates:

~ϕL=Fϕ1ϕL=(JTFθJ)1JTθL=J1Fθ1(JT)1JTθL=J1Fθ1θL=J1~θL\tilde{\nabla}_\phi \mathcal{L} = F_\phi^{-1} \nabla_\phi \mathcal{L} = (J^T F_\theta J)^{-1} J^T \nabla_\theta \mathcal{L} = J^{-1} F_\theta^{-1} (J^T)^{-1} J^T \nabla_\theta \mathcal{L} = J^{-1} F_\theta^{-1} \nabla_\theta \mathcal{L} = J^{-1} \tilde{\nabla}_\theta \mathcal{L}

Multiplying both sides by JJ:

J~ϕL=~θLJ \tilde{\nabla}_\phi \mathcal{L} = \tilde{\nabla}_\theta \mathcal{L}

By the chain rule, dθ=Jdϕd\theta = J d\phi. The parameter updates describe the exact same displacement in the space of predictive distributions, guaranteeing invariance to any smooth, invertible coordinate transformation to first order.

Natural Gradient vs. Generalized Gauss-Newton vs. Hessian

Natural gradient descent is closely connected to classical second-order optimization, but exhibits distinct geometric and numerical properties analyzed by James Martens (2020).

Consider a network with output f(x;θ)f(x; \theta) trained under negative log-likelihood loss:

L(θ)=E(x,y)pdata[logp(yf(x;θ))]\mathcal{L}(\theta) = \mathbb{E}_{(x, y) \sim p_{data}} [-\log p(y | f(x; \theta))]

The true Hessian of this loss function with respect to parameters θ\theta decomposes into two components via the chain rule:

θ2L(θ)=E(x,y)[JfTf2L(f,y)Jf]+E(x,y)[kLfkθ2fk(x;θ)]\nabla_\theta^2 \mathcal{L}(\theta) = \mathbb{E}_{(x, y)} \left[ J_f^T \nabla_f^2 L(f, y) J_f \right] + \mathbb{E}_{(x, y)} \left[ \sum_{k} \frac{\partial L}{\partial f_k} \nabla_\theta^2 f_k(x; \theta) \right]

where Jf=fθJ_f = \frac{\partial f}{\partial \theta} is the Jacobian of network outputs with respect to parameters.

  1. The Generalized Gauss-Newton (GGN) Matrix: The first term dropped the second-order network derivatives θ2fk\nabla_\theta^2 f_k. When the loss function L(f,y)L(f, y) corresponds to the negative log-likelihood of an exponential family distribution (such as softmax cross-entropy or mean squared error), the expectation of the GGN under the model's predictive distribution ypθ(yx)y \sim p_\theta(y|x) exactly equals the Fisher Information Matrix:

F(θ)=GGN(θ)=Expdata[JfTf2L(f,y)Jf]F(\theta) = GGN(\theta) = \mathbb{E}_{x \sim p_{data}} \left[ J_f^T \nabla_f^2 L(f, y) J_f \right]

  1. Curvature Stability: While the true Hessian θ2L(θ)\nabla_\theta^2 \mathcal{L}(\theta) can have negative eigenvalues in non-convex regions (leading unconstrained Newton steps toward saddle points or local maxima), the Fisher Information Matrix is an expectation of outer products:

vTF(θ)v=E[(vTθlogpθ)2]0vv^T F(\theta) v = \mathbb{E} \left[ (v^T \nabla_\theta \log p_\theta)^2 \right] \ge 0 \quad \forall v

The FIM is guaranteed to be positive semi-definite (PSD) everywhere on the parameter manifold. Natural gradient steps always move in a descent direction for the loss.

The Empirical Fisher vs. True Fisher Dilemma

In practical implementations, calculating the true Fisher Information Matrix requires computing expectations over model predictions:

F(θ)=Expdata[ypθ(yx)θlogpθ(yx)θlogpθ(yx)T]F(\theta) = \mathbb{E}_{x \sim p_{data}} \left[ \sum_{y} p_\theta(y|x) \nabla_\theta \log p_\theta(y|x) \nabla_\theta \log p_\theta(y|x)^T \right]

Because sampling from pθ(yx)p_\theta(y|x) or summing over all output classes adds computational overhead, many empirical studies historically substituted the "Empirical Fisher" matrix Fˉ(θ)\bar{F}(\theta):

Fˉ(θ)=1Ni=1Nθlogpθ(yixi)θlogpθ(yixi)T\bar{F}(\theta) = \frac{1}{N} \sum_{i=1}^N \nabla_\theta \log p_\theta(y_i|x_i) \nabla_\theta \log p_\theta(y_i|x_i)^T

where yiy_i is the actual ground truth training label rather than a sample from pθ(yxi)p_\theta(y|x_i).

In a critical analysis, Frederik Kunstner, Lukas Balles, and Philipp Hennig (2019) demonstrated that the Empirical Fisher is not a valid approximation of either the Fisher Information Matrix or the Hessian:

  • Lack of Second-Order Information: The Empirical Fisher coincides with the true Fisher if and only if the model's predictive distribution perfectly matches the data distribution (pθ(yx)=pdata(yx)p_\theta(y|x) = p_{data}(y|x)), which occurs only at zero training error.
  • Pathological Scaling: Away from the optimum, the Empirical Fisher is simply the sample covariance of the gradients around zero. In directions where gradients are large, Fˉ\bar{F} scales quadratically with gradient magnitude, causing the update step Fˉ1L\bar{F}^{-1} \nabla \mathcal{L} to damp updates precisely where strong progress is required.
  • Adaptive Optimizers (Adam) Are Not Natural Gradient: Popular diagonal adaptive optimizers like Adam scale updates by vt\sqrt{v_t}, where vtv_t is an exponential moving average of squared empirical gradients Li2\nabla \mathcal{L}_i^2. Because they utilize empirical data labels rather than model expectation sampling, they do not perform natural gradient descent or true metric-tensor Riemannian optimization.

Scalable Approximations in Modern Deep Learning

For large language models with billions of parameters (D109D \ge 10^9), storing the full D×DD \times D Fisher matrix requires petabytes of memory, and inverting it via O(D3)\mathcal{O}(D^3) matrix inversion is computationally intractable.

To make natural gradient practical, structural approximations partition and factorize the curvature:

1. Block-Diagonal Approximations

Treating parameters across different layers as mutually independent replaces the full FIM with a block-diagonal matrix, where each block corresponds to a single layer's weight matrix WlRdout×dinW_l \in \mathbb{R}^{d_{out} \times d_{in}}.

2. Kronecker-Factored Approximate Curvature (K-FAC)

Introduced by James Martens and Roger Grosse (2015), K-FAC approximates each layer's Fisher block FlF_l as the Kronecker product (\otimes) of two smaller matrices:

FlAl1SlF_l \approx A_{l-1} \otimes S_l

where:

  • Al1=E[al1al1T]A_{l-1} = \mathbb{E}[a_{l-1} a_{l-1}^T] is the covariance of input activations to layer ll.
  • Sl=E[slslT]S_l = \mathbb{E}[s_l s_l^T] is the covariance of pre-activation loss derivatives for layer ll.

Using the Kronecker inversion identity (AB)1=A1B1(A \otimes B)^{-1} = A^{-1} \otimes B^{-1}, inverting an otherwise intractable (dindout)×(dindout)(d_{in} d_{out}) \times (d_{in} d_{out}) matrix reduces to inverting two small matrices of size din×dind_{in} \times d_{in} and dout×doutd_{out} \times d_{out}:

(Al1Sl)1vec(WlL)=vec(Sl1WlLAl11)(A_{l-1} \otimes S_l)^{-1} \text{vec}(\nabla_{W_l} \mathcal{L}) = \text{vec}\left( S_l^{-1} \nabla_{W_l} \mathcal{L} A_{l-1}^{-1} \right)

This formulation scales natural gradient preconditioning to deep neural networks with minimal computational overhead per training step.

3. Beyond K-FAC: Shampoo and Matrix Orthogonalization

Recent post-Adam optimization methods extend these geometric insights. Shampoo (Gupta et al., 2018) and Distributed Shampoo (Anil et al., 2020) compute roots of layer-wise activation and gradient covariance matrices to construct block-wise preconditioned tensor updates. Modern matrix optimizers like Muon (Bernstein et al., 2025) employ Newton-Schulz iterations to directly orthogonalize parameter updates, enforcing spectral bounds on updates across weight matrices.

Summary

Natural gradient descent re-anchors optimization from coordinate-space mechanics to the intrinsic geometry of probability distributions. By preconditioning parameter updates with the inverse Fisher Information Matrix:

  1. Parameter updates become invariant to arbitrary reparameterizations and scale shifts.
  2. The optimizer measures trajectory step lengths in Kullback-Leibler divergence on the statistical manifold rather than Euclidean distance.
  3. The Fisher Information Matrix serves as a guaranteed positive semi-definite surrogate for the Hessian, matching the Generalized Gauss-Newton matrix under log-likelihood objectives.
  4. Structured factorizations like K-FAC, Shampoo, and spectral preconditioning bridge information-theoretic natural gradients with the extreme scale requirements of modern foundation model pre-training.

Sources

Written by

More to read

  • Cross-Model KV Cache Transfer in Production: Architecture, Closed-Form Ridge Projections, and Cascaded Serving Economics

    Modern enterprise LLM serving architectures frequently rely on multi-model pipelines to balance inference cost, generation latency, and output quality. In model routing cascades, lightweight 8B models triage incoming queries and escalate complex reasoning tasks to 70B or MoE models. In speculative decoding pipelines, smaller draft models propose token sequences verified by larger target models. In long-horizon AI agent swarms, sub-agents frequently switch between specialized models across multi-

    1 min
  • Instinct AI Assistant Faces Scrutiny Over Data Training Terms and Autonomous Transaction Permissions

    Instinct, an autonomous personal AI assistant currently in private beta, has drawn scrutiny across the developer and security community regarding its data collection policies and broad operational permissions. The service is developed by San Francisco-based Spear Street Technology Inc., led by former Sierra research scientist and Reflexion paper co-author Noah Shinn. Operating via SMS and WhatsApp interfaces, Instinct executes multi-step personal workflows by directly interfacing with user devi

    1 min
  • UK and Ukraine Sign AI Defense Pact to Share Battlefield Sensor Data and Target Detection Models

    The United Kingdom and Ukraine have signed a bilateral artificial intelligence defense partnership, granting British researchers and defense contractors access to Ukraine's battlefield data platform, Avengers AI Labs. The agreement was signed in Kyiv by British Prime Minister Andy Burnham and Ukrainian President Volodymyr Zelenskyy during Burnham's first official overseas visit. Under the framework, Britain becomes the first international partner permitted to access Ukraine's operational datase

    1 min