通过反斜杠进行回代的反向传播
Backpropagation through Back Substitution with a Backslash
AI总结:
本文提出一种基于线性代数的反向传播方法,利用反斜杠或高斯消元在三角系统上计算梯度,引入转置点算子实现算子反转,并展示在Julia中通过通用编程实现算子作为矩阵元素,避免算子重载。
摘要:
我们提出了一种线性代数形式的反向传播,它允许通过使用通用编写的“反斜杠”或高斯消元法在三角方程组上计算梯度。通常,矩阵元素是算子。本文有三个贡献:(i)用(左作用的)算子理论、基于图的方法取代自动微分的传统处理具有智力价值;(ii)算子可以很容易地在诸如Julia之类的编程语言的软件中放置在矩阵中,作为一种实现选项;(iii)我们引入了一种新颖的记号,“转置点”算子“$\boldsymbol{\{}^{T_\bullet}\}$”,它允许算子的反转。我们进一步展示了在合适的编程语言(如Julia \ref{bezanson2017julia})中,由通用线性代数算子组成的算子方法的优雅性,并且这种抽象可以在代码中实现。我们的实现展示了通用线性代数如何允许算子作为矩阵的元素。与“算子重载”相比,在“算子重载”中,反斜杠通常必须被重写以利用算子,而在“通用编程”中则没有这种需要。
英文摘要:
We present a linear algebra formulation of backpropagation which allows the calculation of gradients by using a generically written ``backslash'' or Gaussian elimination on triangular systems of equations. Generally, the matrix elements are operators. This paper has three contributions: (i) it is of intellectual value to replace traditional treatments of automatic differentiation with a (left acting) operator theoretic, graph-based approach; (ii) operators can be readily placed in matrices in software in programming languages such as Julia as an implementation option; (iii) we introduce a novel notation, ``transpose dot'' operator ``$\{\}^{T_\bullet}$'' that allows for the reversal of operators. We further demonstrate the elegance of the operators approach in a suitable programming language consisting of generic linear algebra operators such as Julia \cite{bezanson2017julia}, and that it is possible to realize this abstraction in code. Our implementation shows how generic linear algebra can allow operators as elements of matrices. In contrast to ``operator overloading,'' where backslash would normally have to be rewritten to take advantage of operators, with ``generic programming'' there is no such need.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。