Skip to main content
QUICK REVIEW

[Paper Review] A Coordinate-Free Construction of Scalable Natural Gradient

Kevin Luk, Roger Grosse|arXiv (Cornell University)|Aug 30, 2018
Model Reduction and Neural NetworksPhysics and Astronomy29 references8 citations
TL;DR

This paper presents a coordinate-free construction of the K-FAC algorithm as the exact natural gradient under a newly defined Riemannian metric on neural network weight space. By formulating K-FAC in terms of differential geometry—specifically, pullbacks and affine transformations—it establishes that the update rule is invariant to affine reparameterizations of activations, providing a principled geometric foundation for its invariance properties without relying on coordinate-based approximations.

ABSTRACT

Most neural networks are trained using first-order optimization methods, which are sensitive to the parameterization of the model. Natural gradient descent is invariant to smooth reparameterizations because it is defined in a coordinate-free way, but tractable approximations are typically defined in terms of coordinate systems, and hence may lose the invariance properties. We analyze the invariance properties of the Kronecker-Factored Approximate Curvature (K-FAC) algorithm by constructing the algorithm in a coordinate-free way. We explicitly construct a Riemannian metric under which the natural gradient matches the K-FAC update; invariance to affine transformations of the activations follows immediately. We extend our framework to analyze the invariance properties of K-FAC applied to convolutional networks and recurrent neural networks, as well as metrics other than the usual Fisher metric.

Motivation & Objective

  • To provide a geometric, coordinate-free interpretation of the K-FAC algorithm that explains its invariance properties.
  • To construct a Riemannian metric on the weight space of neural networks such that the K-FAC update is the exact natural gradient under this metric.
  • To extend the invariance analysis of K-FAC to recurrent and convolutional networks using intrinsic geometric objects.
  • To demonstrate that K-FAC’s invariance to affine transformations of activations follows directly from its coordinate-free construction.
  • To unify the understanding of K-FAC as a natural gradient method under a structured, approximate metric, rather than an ad hoc approximation.

Proposed method

  • Model neural networks as sequences of affine maps between abstract affine spaces (activations and pre-activations), treating weights and biases as elements of a space of affine maps.
  • Define a Riemannian metric on the weight space using the pullback of the output Fisher metric via network maps, leading to the K-FAC metric.
  • Construct the K-FAC metric as a sum over time steps (in recurrent networks) or layers (in feedforward networks), using expectations of activation outer products and Jacobian outer products.
  • Prove that the resulting metric is nondegenerate under standard assumptions, ensuring the natural gradient is well-defined.
  • Show that the K-FAC update rule corresponds exactly to the natural gradient under this K-FAC metric, using functorial properties of pullbacks.
  • Use coordinate-free reasoning to prove invariance: any affine change of basis in activations or pre-activations preserves the metric and thus the update rule.

Experimental results

Research questions

  • RQ1Can the K-FAC algorithm be interpreted as a natural gradient method under a well-defined Riemannian metric, independent of coordinate systems?
  • RQ2What geometric structure underlies K-FAC’s invariance to affine transformations of activations?
  • RQ3How can the K-FAC metric be extended to recurrent and convolutional networks using intrinsic geometric constructions?
  • RQ4Does the coordinate-free formulation explain why K-FAC is invariant to certain reparameterizations but not others?
  • RQ5Can the invariance properties of K-FAC be derived directly from the metric structure, rather than through algebraic manipulation of coordinate-based update rules?

Key findings

  • The K-FAC update rule is the exact natural gradient with respect to a coordinate-free Riemannian metric constructed via pullbacks of the output Fisher metric.
  • The K-FAC metric is defined as $ g_{\text{KFAC}}(\omega) = T \cdot \mathbb{E}_{\mathbb{T}}[\alpha_{t-1} \otimes \alpha_{t-1}] \otimes \mathbb{E}_{\mathbb{T}}[\varphi_{\xi,t}^*g(\zeta_t)] $, which matches the standard K-FAC approximation in coordinate form.
  • Invariance of K-FAC to affine transformations of activations follows immediately from the coordinate-free construction, as such transformations preserve the metric structure.
  • The K-FAC metric is nondegenerate when the expected pullback of the output metric is nondegenerate, ensuring the natural gradient is well-defined.
  • The framework extends naturally to recurrent networks by summing over time steps and using time-averaged activation and Jacobian statistics.
  • The coordinate-free proof shows that K-FAC is invariant to affine reparameterizations because the metric is constructed from geometric objects (pullbacks, tensor products) that are invariant under such transformations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.