Matrix-Free Natural Gradient via Stochastic Truncated Metrics
Ke Sun
Abstract
Natural gradient descent has been a theoretical pillar of second-order optimization for neural networks. Existing implementations either rely on structural approximations of the metric or incur substantial computational and memory overhead. Direct application of the natural gradient remains difficult at deep-network scale. We build an optimizer based on an unbiased stochastic estimator of the Fisher information matrix. It employs a truncated exponential moving average metric with damping, which we call the Stochastic Truncated Metric (STM), and is otherwise closely aligned with Amari's original natural gradient. This gives a parameter update with $O(Kd)$ time and memory per step for fixed small $K$, and is matrix-free in the sense that no dense $d\times d$ or layer-wise metric matrix is constructed or inverted. It is applicable across network architectures without layer-wise assumptions. We bound the error induced by the finite-memory truncation. On two benchmarks, STM achieves mean test accuracy within 0.7 percentage points of K-FAC, with comparable or lower per-epoch training cost.
Successful Page Load