DrMAD:提取反向模式自动微分以优化深度神经网络的超参数
DrMAD: Distilling Reverse-Mode Automatic Differentiation for Optimizing Hyperparameters of Deep Neural Networks
摘要:
众所周知,深度神经网络的性能对其超参数的设置很敏感。反向模式自动微分的最新进展允许用梯度优化超参数。计算这些梯度的标准方法涉及向前和向后的计算过程。然而,反向传递通常需要消耗无法承受的内存来存储所有中间变量,以准确地逆转正向训练过程。在这项工作中,我们提出了一种简单但有效的方法DrMAD,将向前传递的知识提取到一个捷径路径中,通过它我们近似地逆转了训练轨迹。在几个图像基准数据集上的实验表明,与最先进的优化超参数的方法相比,DrMAD至少快45倍,占用的内存少100倍,同时对其有效性的影响最小。据我们所知,DrMAD是第一次尝试自动调整深度神经网络的数千个超参数的研究。代码可以从https://github.com/bigaidream-projects/drmad下载
英文摘要:
The performance of deep neural networks is well-known to be sensitive to the setting of their hyperparameters. Recent advances in reverse-mode automatic differentiation allow for optimizing hyperparameters with gradients. The standard way of computing these gradients involves a forward and backward pass of computations. However, the backward pass usually needs to consume unaffordable memory to store all the intermediate variables to exactly reverse the forward training procedure. In this work we propose a simple but effective method, DrMAD, to distill the knowledge of the forward pass into a shortcut path, through which we approximately reverse the training trajectory. Experiments on several image benchmark datasets show that DrMAD is at least 45 times faster and consumes 100 times less memory compared to state-of-the-art methods for optimizing hyperparameters with minimal compromise to its effectiveness. To the best of our knowledge, DrMAD is the first research attempt to make it practical to automatically tune thousands of hyperparameters of deep neural networks. The code can be downloaded from https://github.com/bigaidream-projects/drmad
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。