On the Performance Analysis of Momentum Method: A Frequency Domain Perspective
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);University of California, Berkeley(加州大学伯克利分校);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Sun Yat-sen University(中山大学);Shanghai Astronomical Observatory, Chinese Academy of Sciences(中国科学院上海天文台);University of Luxembourg(卢森堡大学)
Xianliang Li, Jun Luo, Zhiwei Zheng, Hanxiao Wang, Li Luo, Lingkun Wen, Linlong Wu, Sheng Xu
备注:
ICLR 2025. 22 pages, 14 figures. Keywords: Momentum Method, Stochastic Gradient Descent, Z-Transform, Frequency Domain Analysis, Deep Learning
基于动量的优化器被广泛用于神经网络训练,但动量系数的最优选择仍未明确,这一不确定性阻碍了人们清晰理解动量在随机梯度方法中的作用。本文提出一种频域分析框架,将动量方法解释为针对梯度的时变滤波器,其中动量系数的调整会改变滤波器的特性。我们的实验支持这一观点,并为相关机制提供了更深入的理解。此外,分析揭示了以下重要发现:训练后期的高频梯度分量是不利的;训练早期保留原始梯度、训练过程中逐步放高低频梯度分量均能提升性能。基于这些洞见,我们提出了频域随机梯度动量下降法(Frequency Stochastic Gradient Descent with Momentum, FSGDM),这是一种启发式优化器,通过经验上有效的动态幅度响应动态调整动量滤波特性。实验结果表明,FSGDM的性能优于传统动量优化器。
英文摘要:
Momentum-based optimizers are widely adopted for training neural networks. However, the optimal selection of momentum coefficients remains elusive. This uncertainty impedes a clear understanding of the role of momentum in stochastic gradient methods. In this paper, we present a frequency domain analysis framework that interprets the momentum method as a time-variant filter for gradients, where adjustments to momentum coefficients modify the filter characteristics. Our experiments support this perspective and provide a deeper understanding of the mechanism involved. Moreover, our analysis reveals the following significant findings: high-frequency gradient components are undesired in the late stages of training; preserving the original gradient in the early stages, and gradually amplifying low-frequency gradient components during training both enhance performance. Based on these insights, we propose Frequency Stochastic Gradient Descent with Momentum (FSGDM), a heuristic optimizer that dynamically adjusts the momentum filtering characteristic with an empirically effective dynamic magnitude response. Experimental results demonstrate the superiority of FSGDM over conventional momentum optimizers.
Revisiting VAE for Unsupervised Time Series Anomaly Detection: A Frequency Perspective
University of Chinese Academy of Sciences(中国科学院大学);Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心);Microsoft(微软公司);Stony Brook University(石溪大学);Kuaishou Technology(快手科技);Tsinghua University(清华大学)
Enhancing Membership Inference Attacks on Diffusion Models from a Frequency-Domain Perspective
Southeast University(东南大学);The University of Queensland(昆士兰大学);Hefei University of Technology(合肥工业大学);Engineering Research Center of Blockchain Application, Supervision and Management (Southeast University), Ministry of Education(区块链应用、监督与管理工程研究中心(东南大学),教育部)
STFNets: Learning Sensing Signals from the Time-Frequency Perspective with Short-Time Fourier Neural Networks
University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Washington(华盛顿大学);State University of New York at Buffalo(纽约州立大学布法罗分校);IBM(国际商业机器公司)