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

ReLU'(0)对反向传播的数值影响

Numerical influence of ReLU'(0) on backpropagation

IRT Saint Exupéry(圣埃克苏佩里研究所);ISAE-SUPAERO(法国国立高等航空航天学院);ANITI(图卢兹人工智能跨学科研究所);Toulouse School of Economics(图卢兹经济学院);Université Toulouse 1 Capitole(图卢兹第一大学);Institut de Mathématiques de Toulouse(图卢兹数学研究所);CNRS(法国国家科学研究中心);IRIT, Université Paul Sabatier(图卢兹计算机科学研究所,保罗·萨巴捷大学)

David Bertoin, Jérôme Bolte, Sébastien Gerchinovitz, Edouard Pauwels

AI总结:

该研究发现非光滑激活函数ReLU在0点的导数值是影响神经网络训练的超参数,在不同精度、网络和数据集上表现出差异,且重调整方法可缓冲其影响,提示非光滑问题的算法微分潜藏可调优参数。

摘要:

理论上,为神经网络选取[0,1]区间内的ReLU(0)取值,对反向传播和训练的影响都可忽略不计。但在实际场景中,32位默认精度结合深度学习问题的规模,使其成为训练方法的一个超参数。我们研究了ReLU'(0)的取值在16、32、64位不同精度水平下,对全连接网络、VGG、ResNet等各类网络以及MNIST、CIFAR10、SVHN、ImageNet等数据集的重要性。我们观察到反向传播输出存在显著差异,在32位精度下约有一半的时间会出现这种情况。双精度下该效应消失,而16位精度下则会系统性出现。对于普通SGD训练,选择ReLU'(0)=0似乎效率最高。在我们的ImageNet实验中,其测试准确率相比ReLU'(0)=1的提升超过10个百分点(两次运行)。我们还证实,批量归一化(batch-norm)或ADAM这类重调整方法往往会缓冲ReLU'(0)取值的影响。总体而言,我们传达的核心信息是:非光滑问题的算法微分可能潜藏着可被有利调优的参数。

英文摘要:

In theory, the choice of ReLU(0) in [0, 1] for a neural network has a negligible influence both on backpropagation and training. Yet, in the real world, 32 bits default precision combined with the size of deep learning problems makes it a hyperparameter of training methods. We investigate the importance of the value of ReLU'(0) for several precision levels (16, 32, 64 bits), on various networks (fully connected, VGG, ResNet) and datasets (MNIST, CIFAR10, SVHN, ImageNet). We observe considerable variations of backpropagation outputs which occur around half of the time in 32 bits precision. The effect disappears with double precision, while it is systematic at 16 bits. For vanilla SGD training, the choice ReLU'(0) = 0 seems to be the most efficient. For our experiments on ImageNet the gain in test accuracy over ReLU'(0) = 1 was more than 10 points (two runs). We also evidence that reconditioning approaches as batch-norm or ADAM tend to buffer the influence of ReLU'(0)'s value. Overall, the message we convey is that algorithmic differentiation of nonsmooth problems potentially hides parameters that could be tuned advantageously.

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

↑