Skip to main content
QUICK REVIEW

[Paper Review] Positive-Negative Momentum: Manipulating Stochastic Gradient Noise to Improve Generalization

Zeke Xie, Yuan Li|arXiv (Cornell University)|Mar 31, 2021
Stochastic Gradient Optimization TechniquesComputer Science58 references6 citations
TL;DR

This paper proposes Positive-Negative Momentum (PNM), a novel optimization method that enhances stochastic gradient noise (SGN) in deep learning by maintaining two independent momentum terms whose difference controls SGN magnitude. PNM significantly improves generalization over SGD and Adam with minimal computational cost, outperforming conventional momentum-based optimizers across image classification, language modeling, and noisy-label learning benchmarks.

ABSTRACT

It is well-known that stochastic gradient noise (SGN) acts as implicit regularization for deep learning and is essentially important for both optimization and generalization of deep networks. Some works attempted to artificially simulate SGN by injecting random noise to improve deep learning. However, it turned out that the injected simple random noise cannot work as well as SGN, which is anisotropic and parameter-dependent. For simulating SGN at low computational costs and without changing the learning rate or batch size, we propose the Positive-Negative Momentum (PNM) approach that is a powerful alternative to conventional Momentum in classic optimizers. The introduced PNM method maintains two approximate independent momentum terms. Then, we can control the magnitude of SGN explicitly by adjusting the momentum difference. We theoretically prove the convergence guarantee and the generalization advantage of PNM over Stochastic Gradient Descent (SGD). By incorporating PNM into the two conventional optimizers, SGD with Momentum and Adam, our extensive experiments empirically verified the significant advantage of the PNM-based variants over the corresponding conventional Momentum-based optimizers.

Motivation & Objective

  • To address the limitation of artificial random noise in improving generalization, which fails to replicate the anisotropic and parameter-dependent nature of real stochastic gradient noise (SGN).
  • To develop a low-cost, effective method for enhancing SGN without modifying learning rate or batch size, which are constrained by computational and convergence trade-offs.
  • To provide a theoretically grounded and empirically robust alternative to conventional momentum in optimizers like SGD and Adam.
  • To improve generalization and robustness to hyperparameters such as learning rate and weight decay in deep neural network training.

Proposed method

  • Proposes Positive-Negative Momentum (PNM) as a replacement for conventional momentum, using two independent momentum terms with a controllable difference.
  • The difference between the two momentum terms explicitly controls the magnitude of SGN, enabling targeted manipulation of gradient noise for improved generalization.
  • The method is integrated into existing optimizers (SGD with Momentum and Adam) as PNM-based variants without altering learning rate or batch size.
  • Theoretical analysis proves convergence and generalization advantages of PNM over standard SGD, particularly in favoring flatter minima.
  • Empirically, PNM is applied as Stochastic PNM and AdaPNM, with hyperparameters tuned to enhance SGN while maintaining training stability.
  • The approach is designed to be plug-and-play, compatible with popular optimizers like Adam, AdamW, and AMSGrad.

Experimental results

Research questions

  • RQ1Can a simple modification to momentum dynamics effectively enhance stochastic gradient noise (SGN) to improve generalization in deep learning?
  • RQ2Does the proposed Positive-Negative Momentum method outperform conventional momentum-based optimizers in terms of test accuracy and robustness?
  • RQ3Can PNM maintain superior performance across diverse datasets (CIFAR-10, CIFAR-100, ImageNet) and tasks (image classification, language modeling, noisy-label learning) without hyperparameter tuning?
  • RQ4How sensitive is PNM to key hyperparameters like β₀, and does it exhibit robustness to learning rate and weight decay variations?

Key findings

  • PNM-based optimizers achieve significantly better generalization than their conventional momentum-based counterparts, with test error reductions of up to 20 points on CIFAR-10 with 40% label noise.
  • On CIFAR-10 with ResNet18, PNM achieves a test error of 4.48% ± 0.09, outperforming SGD (5.01% ± 0.03) and Adam (6.53% ± 0.03).
  • On ImageNet, Stochastic PNM consistently achieves lower test error than SGD across all learning rate decay phases, indicating both faster convergence and better generalization.
  • AdaPNM outperforms Adam on language modeling tasks, showing improved test performance and faster training speed.
  • PNM demonstrates robustness to learning rate and weight decay, with a significantly wider and deeper basin of optimal hyperparameters compared to SGD.
  • The method is robust to β₀ when β₀ > 0, achieving strong performance across a wide range of values, while performance degrades when β₀ ≤ 0, confirming theoretical expectations.

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.