arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.11532cs.LGcs.AI
收藏

微调自适应随机优化器:通过梯度幅度直方图分析确定最优超参数$\varepsilon$

Fine-Tuning Adaptive Stochastic Optimizers: Determining the Optimal Hyperparameter $ε$ via Gradient Magnitude Histogram Analysis

Pontificia Universidad Católica del Perú(秘鲁天主教大学)

Gustavo Silva, Paul Rodriguez

AI总结:

本研究提出基于梯度幅度直方图的框架分析自适应随机优化器超参数$\varepsilon$的影响,并设计算法自动估计其更窄的最优搜索空间,提升超参数调优效率。

摘要:

随机优化器对深度神经网络模型的成功训练至关重要。为实现最优模型性能,设计者必须精心选择模型和优化器的超参数。然而,这一过程通常会耗费大量计算资源与处理时间。尽管为达到峰值性能调整整套优化器超参数已是成熟做法,但对于Adam等主流自适应随机优化器中被错标为“低优先级”的超参数(包括保护因子$\varepsilon$和衰减率$\beta$)的个体影响,目前仍缺乏清晰认知。在本文中,我们提出一种基于损失梯度幅度的经验概率密度函数(被称为“梯度幅度直方图”)的新框架,用于全面分析自适应随机优化器及保护超参数$\varepsilon$。该框架揭示并验证了超参数之间与分类、语言建模、机器翻译等不同任务的最优性能相关的重要关系与依赖关系。此外,我们提出了一种利用梯度幅度直方图的新算法,可自动估计最优保护超参数$\varepsilon$的精确细化搜索空间,通过构建窄一倍的最坏情况搜索空间,超越了传统的试错方法。

英文摘要:

Stochastic optimizers play a crucial role in the successful training of deep neural network models. To achieve optimal model performance, designers must carefully select both model and optimizer hyperparameters. However, this process is frequently demanding in terms of computational resources and processing time. While it is a well-established practice to tune the entire set of optimizer hyperparameters for peak performance, there is still a lack of clarity regarding the individual influence of hyperparameters mislabeled as "low priority", including the safeguard factor $ε$ and decay rate $β$, in leading adaptive stochastic optimizers like the Adam optimizer. In this manuscript, we introduce a new framework based on the empirical probability density function of the loss' gradient magnitude, termed as the "gradient magnitude histogram", for a thorough analysis of adaptive stochastic optimizers and the safeguard hyperparameter $ε$. This framework reveals and justifies valuable relationships and dependencies among hyperparameters in connection to optimal performance across diverse tasks, such as classification, language modeling and machine translation. Furthermore, we propose a novel algorithm using gradient magnitude histograms to automatically estimate a refined and accurate search space for the optimal safeguard hyperparameter $ε$, surpassing the conventional trial-and-error methodology by establishing a worst-case search space that is two times narrower.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑