Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Gradient Descent with Nonlinear Conjugate Gradient-Style Adaptive Momentum

Bao Wang, Qiang Ye|arXiv (Cornell University)|Dec 3, 2020
Adversarial Robustness in Machine LearningComputer Science30 references9 citations
TL;DR

This paper proposes FRSGD, a stochastic gradient descent method with nonlinear conjugate gradient-style adaptive momentum that eliminates the need for manual momentum hyperparameter tuning. By dynamically adjusting momentum based on gradient history, it enables larger learning rates, accelerates training, and improves both clean and adversarial accuracy in ResNet models, reducing CIFAR-10 test error from 5.25% to 4.64% and CIFAR-100 from 23.75% to 20.03%.

ABSTRACT

Momentum plays a crucial role in stochastic gradient-based optimization algorithms for accelerating or improving training deep neural networks (DNNs). In deep learning practice, the momentum is usually weighted by a well-calibrated constant. However, tuning hyperparameters for momentum can be a significant computational burden. In this paper, we propose a novel \emph{adaptive momentum} for improving DNNs training; this adaptive momentum, with no momentum related hyperparameter required, is motivated by the nonlinear conjugate gradient (NCG) method. Stochastic gradient descent (SGD) with this new adaptive momentum eliminates the need for the momentum hyperparameter calibration, allows a significantly larger learning rate, accelerates DNN training, and improves final accuracy and robustness of the trained DNNs. For instance, SGD with this adaptive momentum reduces classification errors for training ResNet110 for CIFAR10 and CIFAR100 from $5.25\%$ to $4.64\%$ and $23.75\%$ to $20.03\%$, respectively. Furthermore, SGD with the new adaptive momentum also benefits adversarial training and improves adversarial robustness of the trained DNNs.

Motivation & Objective

  • To address the computational burden of tuning momentum hyperparameters in SGD for deep neural network (DNN) training.
  • To improve training convergence speed and final model accuracy in DNNs without increasing computational cost.
  • To enhance adversarial robustness in DNNs through a novel adaptive momentum mechanism.
  • To develop a simple, effective alternative to existing adaptive optimization methods like Adam or Nesterov momentum.

Proposed method

  • Introduces a new adaptive momentum term inspired by the nonlinear conjugate gradient (NCG) method, replacing the fixed momentum coefficient β with a dynamically computed value.
  • The momentum update uses a formula derived from NCG that depends on the current and previous gradients, ensuring descent direction adaptivity.
  • The method maintains a fixed learning rate while allowing significantly larger step sizes due to improved convergence properties.
  • The algorithm is designed to be backward compatible with standard SGD, requiring minimal code changes.
  • It avoids line search by using a simplified, efficient approximation of the NCG momentum update suitable for mini-batch training.
  • The method is integrated into SGD as a replacement for constant β, with no additional hyperparameters to tune.

Experimental results

Research questions

  • RQ1Can an NCG-inspired adaptive momentum mechanism improve training speed and convergence in stochastic gradient descent for DNNs?
  • RQ2Does eliminating the momentum hyperparameter β lead to better generalization and robustness in DNNs without increased computational cost?
  • RQ3Can this adaptive momentum enable larger learning rates while maintaining or improving model accuracy?
  • RQ4How does the proposed method compare to SGD with Nesterov momentum and Adam in terms of clean and adversarial accuracy?
  • RQ5Can the adaptive momentum improve adversarial robustness in DNNs under various adversarial attacks?

Key findings

  • FRSGD reduces CIFAR-10 test error for ResNet110 from 5.25% to 4.64%, a relative improvement of 11.6%.
  • For CIFAR-100, the test error is reduced from 23.75% to 20.03%, a relative improvement of 15.6%.
  • With extended training (400 epochs), FRSGD achieves a test error of 4.26% on CIFAR-10 and 19.89% on CIFAR-100, outperforming both SGD and SGD with Nesterov momentum.
  • The training loss of FRSGD on PreResNet290 for CIFAR-10 is 0.00138, significantly lower than SGD’s 0.0048 and SGD+NM’s 0.0052.
  • In adversarial training, FRSGD achieves 52.15% robust accuracy on CIFAR-10 under IFGSM-100 attack, compared to 51.08% for SGD+NM, demonstrating improved robustness.
  • FRSGD improves adversarial robustness across all tested attacks (FGSM, IFGSM, C&W), with consistent gains over baseline SGD and SGD+NM.

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.