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

面向数学专业学生的反向传播算法

The Backpropagation algorithm for a math student

University of Maryland, Baltimore County(马里兰大学巴尔的摩郡分校)

Saeed Damadi, Golnaz Moharrer, Mostafa Cham

AI总结:

本文用 Jacobian 矩阵和链式法则将 DNN 损失梯度表述为矩阵乘积,以数学化方式解释反向传播算法。

摘要:

深度神经网络(DNN)是向量值函数的复合函数;为了训练 DNN,必须计算损失函数相对于所有参数的梯度。由于 DNN 的损失函数由若干非线性函数复合而成,且每个函数都包含大量参数,这一计算可能并不简单。反向传播(BP)算法利用 DNN 的复合结构来高效计算梯度。因此,网络层数不会显著影响计算复杂度。本文的目标是利用 Jacobian(雅可比)算子,将损失函数的梯度表示为矩阵乘法。这可以通过考察每一层相对于其参数的全导数,并将其表示为 Jacobian 矩阵来实现。随后,梯度可表示为这些 Jacobian 矩阵的矩阵乘积。该方法是有效的,因为链式法则可应用于向量值函数的复合,而使用 Jacobian 矩阵还能够纳入多个输入和输出。通过提供简洁的数学论证,这些结果可以被来自不同学科的广泛受众所理解并发挥作用。

英文摘要:

A Deep Neural Network (DNN) is a composite function of vector-valued functions, and in order to train a DNN, it is necessary to calculate the gradient of the loss function with respect to all parameters. This calculation can be a non-trivial task because the loss function of a DNN is a composition of several nonlinear functions, each with numerous parameters. The Backpropagation (BP) algorithm leverages the composite structure of the DNN to efficiently compute the gradient. As a result, the number of layers in the network does not significantly impact the complexity of the calculation. The objective of this paper is to express the gradient of the loss function in terms of a matrix multiplication using the Jacobian operator. This can be achieved by considering the total derivative of each layer with respect to its parameters and expressing it as a Jacobian matrix. The gradient can then be represented as the matrix product of these Jacobian matrices. This approach is valid because the chain rule can be applied to a composition of vector-valued functions, and the use of Jacobian matrices allows for the incorporation of multiple inputs and outputs. By providing concise mathematical justifications, the results can be made understandable and useful to a broad audience from various disciplines.

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

↑