Lune

KDD2022Top-tier venue

Demystify Hyperparameters for Stochastic Optimization with Transferable Representations

Jianhui Sun, Mengdi Huai, Kishlay Jha, Aidong Zhang

Abstract

This paper studies the convergence and generalization of a large class of Stochastic Gradient Descent (SGD) momentum schemes, in both learning from scratch and transferring representations with fine-tuning. Momentum-based acceleration of SGD is the default optimizer for many deep learning models. However, there is a lack of general convergence guarantees for many existing momentum variants in conjunction withstochastic gradient. It is also unclear how the momentum methods may affect thegeneralization error. In this paper, we give a unified analysis of several popular optimizers, e.g., Polyak's heavy ball momentum and Nesterov's accelerated gradient. Our contribution is threefold. First, we give a unified convergence guarantee for a large class of momentum variants in thestochastic setting. Notably, our results cover both convex and nonconvex objectives. Second, we prove a generalization bound for neural networks trained by momentum variants. We analyze how hyperparameters affect the generalization bound and consequently propose guidelines on how to tune these hyperparameters in various momentum schemes to generalize well. We provide extensive empirical evidence to our proposed guidelines. Third, this study fills the vacancy of a formal analysis of fine-tuning in literature. To our best knowledge, our work is the first systematic generalizability analysis on momentum methods that cover both learning from scratch and fine-tuning. Our codes are available https://github.com/jsycsjh/Demystify-Hyperparameters-for-Stochastic-Optimization-with-Transferable-Representations .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Serverless Federated AUPRC Optimization for Multi-Party Collaborative Imbalanced Data Mining cites Decentralized Riemannian Algorithm for Nonconvex Minimax Problems
  • Serverless Federated AUPRC Optimization for Multi-Party Collaborative Imbalanced Data Mining cites Faster Adaptive Federated Learning
  • Decentralized Riemannian Algorithm for Nonconvex Minimax Problems cites Faster Adaptive Federated Learning
  • Faster Adaptive Federated Learning cites Decentralized Riemannian Algorithm for Nonconvex Minimax Problems
  • Enhance Diffusion to Improve Robust Generalization cites Correlation Networks for Extreme Multi-label Text Classification
  • Enhance Diffusion to Improve Robust Generalization cites Decentralized Riemannian Algorithm for Nonconvex Minimax Problems
  • Enhance Diffusion to Improve Robust Generalization cites Malicious Attacks against Deep Reinforcement Learning Interpretations
  • Enhance Diffusion to Improve Robust Generalization cites A Stagewise Hyperparameter Scheduler to Improve Generalization
  • A Stagewise Hyperparameter Scheduler to Improve Generalization cites Correlation Networks for Extreme Multi-label Text Classification
  • A Stagewise Hyperparameter Scheduler to Improve Generalization cites An Improved Analysis of Stochastic Gradient Descent with Momentum
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Faster Adaptive Federated LearningXidong Wu, Feihu Huang, Zhengmian Hu, Heng HuangAAAI 2023 · 99 citations
  2. Decentralized Riemannian Algorithm for Nonconvex Minimax ProblemsXidong Wu, Zhengmian Hu, Heng HuangAAAI 2023 · 15 citations
  3. Serverless Federated AUPRC Optimization for Multi-Party Collaborative Imbalanced Data MiningXidong Wu, Zhengmian Hu, Jian Pei, Heng HuangKDD 2023 · 13 citations
  4. Enhance Diffusion to Improve Robust GeneralizationJianhui Sun, Sanchit Sinha, Aidong ZhangKDD 2023 · 1 citation

Builds on5

  1. An Improved Analysis of Stochastic Gradient Descent with MomentumYanli Liu, Yuan Gao, Wotao YinNeurIPS 2020 · 328 citations
  2. On the Convergence of Nesterov's Accelerated Gradient Method in Stochastic SettingsMahmoud Assran, Mike RabbatICML 2020 · 71 citations
  3. Correlation Networks for Extreme Multi-label Text ClassificationGuangxu Xun, Kishlay Jha, Jianhui Sun, Aidong ZhangKDD 2020 · 60 citations
  4. Malicious Attacks against Deep Reinforcement Learning InterpretationsMengdi Huai, Jianhui Sun, Renqin Cai, Liuyi Yao et al.KDD 2020 · 27 citations
  5. A Stagewise Hyperparameter Scheduler to Improve GeneralizationJianhui Sun, Ying Yang, Guangxu Xun, Aidong ZhangKDD 2021 · 8 citations

Related papers

  1. Adaptive Momentum by Momentum for Deep Neural Network TrainingTao Sun, Huaming Ling, Zuoqiang Shi, Dongsheng Li et al.KDD 2026 · 1 citation
  2. The Role of Momentum Parameters in the Optimal Convergence of Adaptive Polyak's Heavy-ball MethodsWei Tao, Sheng Long, Gaowei Wu, Qing TaoICLR 2021 · 17 citations
  3. The Marginal Value of Momentum for Small Learning Rate SGDRunzhe Wang, Sadhika Malladi, Tianhao Wang, Kaifeng Lyu et al.ICLR 2024 · 14 citations
  4. Dynamics of Stochastic Momentum Methods on Large-scale, Quadratic ModelsCourtney Paquette, Elliot PaquetteNeurIPS 2021 · 20 citations
  5. High Probability Bounds for Non-Convex Stochastic Optimization with MomentumShaojie Li, Pengwei Tang, Bowei Zhu, Yong LiuICLR 2026 · 100 citations
Dusk over the sea between two cliffs drawn in fine vertical lines