Subscribe
AI
11 min read

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

Standard gradient descent relies on Euclidean assumptions that cause parameterization dependence. Natural Gradient Descent uses the Fisher Information Matrix to define a Riemannian metric based on KL divergence, ensuring invariance and stable convergence through approximations like K-FAC.

Diagram illustrating the statistical manifold, Fisher Information Matrix curvature, and natural gradient update paths versus Euclidean gradient descent in neural network optimization
Diagram illustrating the statistical manifold, Fisher Information Matrix curvature, and natural gradient update paths versus Euclidean gradient descent in neural network optimization

Natural Gradient Descent resolves the parameterization dependence of standard Euclidean optimization by utilizing the Fisher Information Matrix (FIM) as a Riemannian metric tensor. This approach ensures that optimization trajectories remain invariant to coordinate transformations by measuring distance via Kullback-Leibler divergence rather than arbitrary parameter displacement. Key implementations include Kronecker-Factored Approximate Curvature (K-FAC) to scale this method for large models.

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:

min⁡dθL(θ+dθ)subject to∥dθ∥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 θ=g−1(ϕ)\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θ(y∣x)p_\theta(y|x) over target outputs yy given inputs xx. The set of all such distributions forms a statistical manifold:

M={pθ(y∣x):θ∈Θ⊆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θ)=Ex∼pdata(x)[∫pθ(y∣x)log⁡pθ(y∣x)pθ+dθ(y∣x) 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(y∣x)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(P∥Q)≥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θlog⁡pθ+dθ(y∣x)∣dθ=0=∇θlog⁡pθ(y∣x)\nabla_{d\theta} \log p_{\theta + d\theta}(y|x) \Big|_{d\theta = 0} = \nabla_\theta \log p_\theta(y|x)

∇dθ2log⁡pθ+dθ(y∣x)∣dθ=0=∇θ2log⁡pθ(y∣x)\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θ)=−Ex∼pdataEy∼pθ(⋅∣x)[log⁡pθ+dθ(y∣x)−log⁡pθ(y∣x)]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=−Ex∼pdataEy∼pθ(⋅∣x)[∇θ2log⁡pθ(y∣x)]\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θ(y∣x)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:

Ey∼pθ(⋅∣x)[−∇θ2log⁡pθ(y∣x)]=Ey∼pθ(⋅∣x)[∇θlog⁡pθ(y∣x)∇θlog⁡pθ(y∣x)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(θ)=Ex∼pdataEy∼pθ(⋅∣x)[∇θlog⁡pθ(y∣x)∇θlog⁡pθ(y∣x)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:

min⁡dθ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:

min⁡dθ{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:

∇ϕlog⁡p(y∣x,ϕ)=JT∇θlog⁡p(y∣x,θ)\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[∇ϕlog⁡p∇ϕlog⁡pT]=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=J−1Fθ−1(JT)−1JT∇θL=J−1Fθ−1∇θL=J−1∇~θ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[−log⁡p(y∣f(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)[JfT∇f2L(f,y)Jf]+E(x,y)[∑k∂L∂fk∇θ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 y∼pθ(y∣x)y \sim p_\theta(y|x) exactly equals the Fisher Information Matrix:

F(θ)=GGN(θ)=Ex∼pdata[JfT∇f2L(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∇θlog⁡pθ)2]≥0∀vv^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(θ)=Ex∼pdata[∑ypθ(y∣x)∇θlog⁡pθ(y∣x)∇θlog⁡pθ(y∣x)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θ(y∣x)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ˉ(θ)=1N∑i=1N∇θlog⁡pθ(yi∣xi)∇θlog⁡pθ(yi∣xi)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θ(y∣xi)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θ(y∣x)=pdata(y∣x)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ˉ−1∇L\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 (D≥109D \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 Wl∈Rdout×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:

Fl≈Al−1⊗SlF_l \approx A_{l-1} \otimes S_l

where:

  • Al−1=E[al−1al−1T]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 (A⊗B)−1=A−1⊗B−1(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}:

(Al−1⊗Sl)−1vec(∇WlL)=vec(Sl−1∇WlLAl−1−1)(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

Frequently asked questions

What problem does Natural Gradient Descent solve compared to standard gradient descent?

Standard gradient descent assumes an Euclidean parameter space, causing optimization paths to change arbitrarily if the network is reparameterized. Natural Gradient Descent resolves this by using the Fisher Information Matrix, making the optimization process invariant to smooth, invertible coordinate transformations.

How is the Fisher Information Matrix derived in this context?

The FIM is derived as the second-order Taylor expansion approximation of the Kullback-Leibler (KL) divergence between probability distributions defined by parameters θ\theta and θ+dθ\theta + d\theta. It is calculated as the expectation of the outer product of the score vector (gradient of the log-likelihood).

Why is the Empirical Fisher not considered a valid approximation of the True Fisher?

Research by Kunstner et al. (2019) shows the Empirical Fisher coincides with the true Fisher only at zero training error. Away from the optimum, it scales quadratically with gradient magnitude, potentially dampening updates exactly where strong progress is needed, unlike the True Fisher which accounts for model expectations.

How can Natural Gradient Descent be scaled for large language models?

For models with billions of parameters, full matrix inversion is computationally intractable. Scalability is achieved through structural approximations like Block-Diagonal approximations and Kronecker-Factored Approximate Curvature (K-FAC), which factorize the curvature matrix into smaller, manageable covariance matrices.

AILLMMachine LearningOptimizationEducation