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

前馈和循环神经网络的反向传播与Hessian矩阵形式

Feedforward and Recurrent Neural Networks Backward Propagation and Hessian in Matrix Form

NVIDIA(英伟达)

Maxim Naumov

AI总结:

本文研究了前馈和循环神经网络的线性代数理论,推导了Hessian的精确表达式,并展示了权重梯度和Hessian的矩阵形式。

摘要:

本文聚焦于前馈(FNN)和循环(RNN)神经网络背后的线性代数理论。我们回顾了反向传播,包括通过时间反向传播(BPTT)。此外,我们推导出Hessian的新的精确表达式,代表了二次效应。我们证明,对于t个时间步,权重梯度可以表示为秩-t矩阵,而权重Hessian则可以表示为t²个Kronecker积之和,这些Kronecker积由秩-1和W^TAW矩阵组成,其中A和W是某些矩阵。此外,我们还证明,对于大小为r的mini-batch,权重更新可以表示为秩-rt矩阵。最后,我们简要评论了Hessian矩阵的特征值。

英文摘要:

In this paper we focus on the linear algebra theory behind feedforward (FNN) and recurrent (RNN) neural networks. We review backward propagation, including backward propagation through time (BPTT). Also, we obtain a new exact expression for Hessian, which represents second order effects. We show that for $t$ time steps the weight gradient can be expressed as a rank-$t$ matrix, while the weight Hessian is as a sum of $t^{2}$ Kronecker products of rank-$1$ and $W^{T}AW$ matrices, for some matrix $A$ and weight matrix $W$. Also, we show that for a mini-batch of size $r$, the weight update can be expressed as a rank-$rt$ matrix. Finally, we briefly comment on the eigenvalues of the Hessian matrix.

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

↑