arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.03845cs.LGphysics.ao-ph
收藏

两步超参数优化方法:利用训练数据集的一小部分加速超参数搜索

Two-step hyperparameter optimization method: Accelerating hyperparameter search by using a fraction of a training dataset

University of California Irvine(加利福尼亚大学欧文分校);Pacific Northwest National Laboratory(西北太平洋国家实验室);University of Southern California(南加州大学)

Sungduk Yu, Mike Pritchard, Po-Lun Ma, Balwinder Singh, Sam Silva

AI总结:

提出两步超参数优化方法,先用少量数据初步评估,再全量数据重训,实现高达135倍加速,并应用于气溶胶活化模拟器。

摘要:

超参数优化(HPO)是机器学习(ML)模型开发中的重要步骤,但常见做法较为陈旧——主要依赖手动或网格搜索。部分原因是采用先进的HPO算法会给工作流程增加复杂性,导致计算时间更长。这对机器学习应用构成了显著挑战,因为次优的超参数选择会削弱机器学习模型性能的潜力,最终阻碍机器学习技术的充分利用。在本文中,我们提出了一种两步HPO方法,作为降低计算需求和等待时间的策略性解决方案,该方法源自应用机器学习参数化工作中的实践经验。初始阶段涉及在训练数据集的一小部分子集上对超参数进行初步评估,随后在使用整个训练数据集重新训练后,对表现最佳的候选模型进行重新评估。这种两步HPO方法普遍适用于各种HPO搜索算法,我们认为它具有吸引人的效率提升。作为案例研究,我们展示了最近将两步HPO方法应用于开发气溶胶活化的神经网络模拟器。尽管我们的主要用例是数据丰富的极限情况,拥有数百万个样本,但我们发现,在初始步骤中使用高达0.0025%的数据(几千个样本)就足以从更广泛的采样中找到最佳超参数配置,实现了高达135倍的加速。该方法的好处通过超参数和模型性能的评估得以体现,揭示了实现最佳性能所需的最小模型复杂度。从HPO过程中收集的各种表现最佳的模型使我们能够选择具有低推理成本的高性能模型,以便在全球气候模型(GCMs)中高效使用。

英文摘要:

Hyperparameter optimization (HPO) is an important step in machine learning (ML) model development, but common practices are archaic -- primarily relying on manual or grid searches. This is partly because adopting advanced HPO algorithms introduces added complexity to the workflow, leading to longer computation times. This poses a notable challenge to ML applications, as suboptimal hyperparameter selections curtail the potential of ML model performance, ultimately obstructing the full exploitation of ML techniques. In this article, we present a two-step HPO method as a strategic solution to curbing computational demands and wait times, gleaned from practical experiences in applied ML parameterization work. The initial phase involves a preliminary evaluation of hyperparameters on a small subset of the training dataset, followed by a re-evaluation of the top-performing candidate models post-retraining with the entire training dataset. This two-step HPO method is universally applicable across HPO search algorithms, and we argue it has attractive efficiency gains. As a case study, we present our recent application of the two-step HPO method to the development of neural network emulators for aerosol activation. Although our primary use case is a data-rich limit with many millions of samples, we also find that using up to 0.0025% of the data (a few thousand samples) in the initial step is sufficient to find optimal hyperparameter configurations from much more extensive sampling, achieving up to 135-times speedup. The benefits of this method materialize through an assessment of hyperparameters and model performance, revealing the minimal model complexity required to achieve the best performance. The assortment of top-performing models harvested from the HPO process allows us to choose a high-performing model with a low inference cost for efficient use in global climate models (GCMs).

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

↑