arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.01504cs.LGcs.AIcs.DMmath.OCstat.ML
收藏

基于模拟退火的嵌入式超参数整定

Embedded hyper-parameter tuning by Simulated Annealing

University of Padova(帕多瓦大学)

Matteo Fischetti, Matteo Stringher

摘要:

我们提出了一种新的元启发式训练方案,结合了随机梯度下降(SGD)和离散优化的非常规方式。我们的想法是定义一个离散邻域的当前SGD点包含一些"潜在的好动作",利用梯度信息,并搜索这个邻域使用经典的元启发式计划借用离散优化。在本文中,我们研究了使用一个简单的模拟退火(SA)元启发式,接受/拒绝候选新的解决方案在附近的概率,这取决于新的解决方案的质量和参数(温度),这是随着时间的推移,以降低接受恶化的移动的概率。我们使用这个计划作为一种自动的方式来执行超参数调整,因此论文的标题。我们的方案的一个显著特点是,超参数在单个SGD执行中修改(而不是像惯例那样在外部循环中),并在当前minibatch上动态评估,即,它们的调谐完全嵌入SGD算法中。使用SA进行训练并不新鲜,但以前的建议主要是针对不可微的目标函数,由于缺乏梯度,SGD不适用于这些目标函数。相反,我们的SA方法需要损失函数(的代理)的可微性,并利用梯度方向的可用性来定义具有较大概率的局部移动以改善当前解。报告了图像分类(CIFAR-10)的计算结果,表明所提出的方法提高了现代深度神经网络(如ResNet34和VGG16)的最终验证准确性。

英文摘要:

We propose a new metaheuristic training scheme that combines Stochastic Gradient Descent (SGD) and Discrete Optimization in an unconventional way. Our idea is to define a discrete neighborhood of the current SGD point containing a number of "potentially good moves" that exploit gradient information, and to search this neighborhood by using a classical metaheuristic scheme borrowed from Discrete Optimization. In the present paper we investigate the use of a simple Simulated Annealing (SA) metaheuristic that accepts/rejects a candidate new solution in the neighborhood with a probability that depends both on the new solution quality and on a parameter (the temperature) which is modified over time to lower the probability of accepting worsening moves. We use this scheme as an automatic way to perform hyper-parameter tuning, hence the title of the paper. A distinctive feature of our scheme is that hyper-parameters are modified within a single SGD execution (and not in an external loop, as customary) and evaluated on the fly on the current minibatch, i.e., their tuning is fully embedded within the SGD algorithm. The use of SA for training is not new, but previous proposals were mainly intended for non-differentiable objective functions for which SGD is not applied due to the lack of gradients. On the contrary, our SA method requires differentiability of (a proxy of) the loss function, and leverages on the availability of a gradient direction to define local moves that have a large probability to improve the current solution. Computational results on image classification (CIFAR-10) are reported, showing that the proposed approach leads to an improvement of the final validation accuracy for modern Deep Neural Networks such as ResNet34 and VGG16.

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

↑