arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15646cs.LGcs.NAmath.NA
收藏

深度学习中梯度的数学分析

Mathematical analysis of the gradients in deep learning

The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳));Vietnam Academy of Science and Technology(越南科学技术研究院);Shenzhen Research Institute of Big Data(深圳大数据研究院)

Steffen Dereich, Thang Do, Arnulf Jentzen, Frederic Weber

AI总结:

本文针对深度神经网络中因 ReLU 等激活函数导致的不可微问题,为全连接前馈 ANN 训练中的广义梯度提供了严谨的数学描述,证明其为代价泛函的极限 Fréchet 次梯度,并在连续可微处与标准梯度一致。

摘要:

深度学习算法——通常由一类通过随机梯度下降(SGD)优化方法训练的深度人工神经网络(ANN)组成——如今已成为科学、工业以及我们日常生活中许多领域不可或缺的一部分。粗略地说,在其最基本的形式中,ANN 可以被视为由一系列仿射线性函数与所谓激活函数的多维版本的复合所组成的函数。此类激活函数中最受欢迎的一种是修正线性单元(ReLU)函数 $\mathbb{R} \ni x \mapsto \max\{ x, 0 \} \in \mathbb{R}$。然而,ReLU 函数是不可微的,并且通常这种正则性的缺失会传递到所考虑的监督学习问题的代价函数中。尽管存在不可微的问题,深度学习实践者仍在 TensorFlow 或 Pytorch 等标准深度学习库中应用基于适当广义梯度的 SGD 方法。在这项工作中,我们揭示了在训练深度全连接前馈 ANN 时此类广义梯度的准确且简洁的数学描述,并解析地研究了所得的广义梯度函数。具体而言,我们提供了一种唯一描述广义梯度函数的适当近似过程,证明了广义梯度是代价泛函的极限 Fréchet 次梯度,并得出结论:在代价泛函连续可微的每个开集上,广义梯度必须与代价泛函的标准梯度相一致。

英文摘要:

Deep learning algorithms -- typically consisting of a class of deep artificial neural networks (ANNs) trained by a stochastic gradient descent (SGD) optimization method -- are nowadays an integral part in many areas of science, industry, and also our day to day life. Roughly speaking, in their most basic form, ANNs can be regarded as functions that consist of a series of compositions of affine-linear functions with multidimensional versions of so-called activation functions. One of the most popular of such activation functions is the rectified linear unit (ReLU) function $\mathbb{R} \ni x \mapsto \max\{ x, 0 \} \in \mathbb{R}$. The ReLU function is, however, not differentiable and, typically, this lack of regularity transfers to the cost function of the supervised learning problem under consideration. Regardless of this lack of differentiability issue, deep learning practioners apply SGD methods based on suitably generalized gradients in standard deep learning libraries like {\sc TensorFlow} or {\sc Pytorch}. In this work we reveal an accurate and concise mathematical description of such generalized gradients in the training of deep fully-connected feedforward ANNs and we also study the resulting generalized gradient function analytically. Specifically, we provide an appropriate approximation procedure that uniquely describes the generalized gradient function, we prove that the generalized gradients are limiting Fréchet subgradients of the cost functional, and we conclude that the generalized gradients must coincide with the standard gradient of the cost functional on every open sets on which the cost functional is continuously differentiable.

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

↑