AsymptoticNG: A regularized natural gradient optimization algorithm with look-ahead strategy

Zedong Tang, Fenlong Jiang, Maoguo Gong, Hao Li, Fan Yu, Zidong Wang, Min WangarXiv 2020

Abstract

Optimizers that further adjust the scale of gradient, such as Adam, Natural Gradient (NG), etc., despite widely concerned and used by the community, are often found poor generalization performance, compared with Stochastic Gradient Descent (SGD). They tend to converge excellently at the beginning of training but are weak at the end. An immediate idea is to complement the strengths of these algorithms with SGD. However, a truncated replacement of optimizer often leads to a crash of the update pattern, and new algorithms often require many iterations to stabilize their search direction. Driven by this idea and to address this problem, we design and present a regularized natural gradient optimization algorithm with look-ahead strategy, named asymptotic natural gradient (ANG). According to the total iteration step, ANG dynamic assembles NG and Euclidean gradient, and updates parameters along the new direction using the intensity of NG. Validation experiments on CIFAR10 and CIFAR100 data sets show that ANG can update smoothly and stably at the second-order speed, and achieve better generalization performance.

Introduction

Deep learning optimization often involves a trade-off between the rapid initial convergence of second-order methods (like Natural Gradient) and the superior final generalization of Stochastic Gradient Descent (SGD). While second-order methods leverage the curvature of the loss landscape to make faster early progress, they frequently underperform SGD in final validation accuracy.

A common attempt to solve this is "truncated replacement"—switching from a fast optimizer to SGD mid-training. However, this abrupt transition typically causes a "crash" in the update pattern, where the model's progress stalls or oscillates as it adjusts to the new search direction. This paper introduces Asymptotic Natural Gradient (ANG) to bridge this gap through a smooth, asymptotic transition that preserves stability and enhances generalization.

Methods: The ANG Framework

The ANG algorithm is built upon three core components designed to ensure stability and efficiency:

1. Look-Ahead Regularization

Instead of relying solely on the local gradient, ANG employs a "look-ahead" strategy. It evaluates a "test position" further in the search space and uses a regularizer that encourages movement toward regions maximizing model change. This helps the optimizer escape flat regions and saddle points that often trap standard methods.

2. Spherical Linear Blending

To avoid the "optimizer crash," ANG transitions from Natural Gradient (NG) to SGD asymptotically. It uses a blending parameter, $\lambda$, to interpolate between the two directions. Unlike simple linear addition, ANG utilizes spherical interpolation. This ensures that the norm (intensity) of the update vector remains consistent, preventing the "underestimated steps" that occur during hard switches.

Three different blending strategies for the parameter λ over training epochs.

3. Inverse-Free ANG (IFANG)

To address the computational bottleneck of second-order methods—the inversion of the Fisher Information Matrix—the authors developed IFANG. By using low-rank approximations and the Sherman-Morrison-Woodbury formula, IFANG reduces matrix inversion to simple scalar division, making second-order benefits accessible on standard hardware.

Experimental Evaluation

The researchers evaluated ANG using ResNet architectures on two standard computer vision benchmarks:

  • CIFAR-10: 60,000 images across 10 classes.
  • CIFAR-100: 60,000 images across 100 classes.

Key Results and Insights

The experimental results demonstrate that ANG successfully combines the strengths of both optimization paradigms.

  • Superior Generalization: ANG matched or exceeded the final validation accuracy of SGD, outperforming standard K-FAC (Kronecker-factored Approximate Curvature) which often suffered from overfitting.
  • Training Stability: As shown in the loss and accuracy curves, ANG avoids the spikes and oscillations characteristic of truncated methods. The transition is smooth, maintaining the momentum established early in training.
  • Efficiency: The IFANG variant proved highly efficient, offering a 90% improvement in per-iteration efficiency over K-FAC and reducing epoch time by approximately 23%, nearly matching the speed of SGD.
Validation loss and accuracy on CIFAR-10 (a, b) and CIFAR-100 (c, d) comparing ANG strategies against K-FAC, SGD, and truncated K-FAC.

Smoothness and Plateaus

The primary insight is that discontinuity causes optimizer failure. By treating the transition as an asymptotic process, the model maintains stability. Furthermore, the look-ahead strategy acts as a "scout," proactively avoiding plateau regions where training typically slows down.

Limitations and Future Work

While ANG offers significant improvements, some challenges remain:

  • Hyperparameter Selection: The choice of the $\lambda$ decay strategy (e.g., linear vs. exponential) may require architecture-specific tuning.
  • Scalability: Future work should evaluate ANG on larger datasets like ImageNet and in the context of Large Language Models (LLMs).
  • Curvature Approximation: The extreme low-rank approximation in IFANG results in a slight loss of curvature information, leading to marginally lower accuracy compared to the full ANG version.

Summary updated

BibTeX
@misc{tang2020asymptoticng,
  author = {Zedong Tang and Fenlong Jiang and Maoguo Gong and Hao Li and Fan Yu and Zidong Wang and Min Wang},
  title = {{AsymptoticNG: A regularized natural gradient optimization algorithm with look-ahead strategy}},
  year = {2020},
  eprint = {2012.13077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13077},
}
Figure