True Asymptotic Natural Gradient Optimization

Yann OllivierarXiv 2017

Abstract: TANGO (True Asymptotic Natural Gradient Optimization) is a novel optimization algorithm designed to approximate Natural Gradient Descent (NGD) without the prohibitive computational cost of calculating or inverting the Fisher Information Matrix (FIM). By employing a two-timescale velocity update based on model-sampled pseudo-gradients, TANGO asymptotically tracks the true natural gradient trajectory. This paper demonstrates TANGO's theoretical convergence and its ability to follow complex parameter-space geodesics in toy models, offering a memory-efficient alternative to traditional second-order methods.

Introduction

In machine learning, the efficiency of standard Stochastic Gradient Descent (SGD) is often hampered by its sensitivity to model parameterization. Changes in input units or weight representations can lead to inefficient "zig-zagging" paths toward the minimum. Natural Gradient Descent (NGD) addresses this by following the steepest descent on the manifold of probability distributions, ensuring invariance to reparameterization. However, NGD requires the Fisher Information Matrix (FIM), which is $d \times d$ for $d$ parameters, making it computationally infeasible for modern large-scale neural networks. TANGO, introduced by Yann Ollivier, provides a lightweight solution that achieves the benefits of NGD without explicitly calculating or inverting the FIM.

The TANGO Algorithm

The core of TANGO is a "two-timescale" update rule that maintains a velocity vector $v$ to implicitly solve for the natural gradient direction. The algorithm computes two gradients at each step:

  1. Standard Gradient ($g_k$): Computed from a real data sample $(x, y)$.
  2. Pseudo-gradient ($\tilde{g}_k$): Computed by sampling a target $\tilde{y}$ from the model's own current predictions $p_\theta(y|x)$.

The velocity $v$ is updated using a formula that resembles momentum but incorporates the pseudo-gradient to track the natural gradient: $$v_k = (1 - \delta t)v_{k-1} + \gamma g_k - \gamma(1 - \delta t)(v_{k-1}^\top \tilde{g}_k)\tilde{g}_k$$ Where $\gamma$ is a "fast" learning rate for the velocity, and $\delta t$ is the "slow" learning rate for the parameters. The parameters are then updated via $\theta_k = \theta_{k-1} - \delta t v_k$. This mechanism essentially performs a stochastic gradient descent to solve the linear system $Jv = g$ on the fly, where $J$ is the Fisher matrix.

Geometric Fidelity in Gaussian Models

To evaluate TANGO, the author utilizes a 2D Gaussian model (learning mean $\mu$ and variance $\sigma$). This is a classic test case because the natural gradient follows a specific curved path—a geodesic on a hyperbolic plane—which standard Euclidean SGD fails to capture.

Figure 1: Comparison of optimization trajectories for learning the mean (mu) and variance (sigma) of a Gaussian distribution.

As shown in Figure 1, TANGO successfully follows the curved natural gradient path. In contrast, standard Euclidean SGD and even standard Averaged SGD (on non-quadratic parts of the model) deviate significantly from the optimal manifold trajectory.

Key Results and Theoretical Insights

TANGO proves that implicit inversion of the Fisher matrix is possible using rank-1 updates provided by $\tilde{g}_k$. A significant finding is that for quadratic losses (such as linear regression), TANGO is mathematically identical to Averaged SGD (ASGD). This provides a deep geometric justification for why Polyak-Ruppert averaging works: it is implicitly performing natural gradient descent.

Furthermore, Theorem 3 in the paper provides a formal proof that as the learning rate $\delta t$ tends to zero, the TANGO trajectory converges in probability to the exact natural gradient ordinary differential equation (ODE). The algorithm acts as an interpolation tool; if $\delta t = 1$, it behaves like standard SGD, but as $\delta t \to 0$, it converges to the "True" Natural Gradient trajectory.

Limitations and Future Work

While memory-efficient—requiring only one extra vector of the same size as the parameters—TANGO requires careful tuning of the "fast" timescale $\gamma$. In very high dimensions, the velocity vector $v$ might take many iterations to accurately reflect the natural gradient direction, potentially slowing down the "slow" parameter updates. Future work is needed to establish practical "rules of thumb" for deep learning and to determine if these asymptotic benefits translate to faster wall-clock training times in complex, non-convex landscapes.

Summary updated

BibTeX
@misc{ollivier2017true,
  author = {Yann Ollivier},
  title = {{True Asymptotic Natural Gradient Optimization}},
  year = {2017},
  eprint = {1712.08449},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.08449},
}
Figure