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

命名张量记法

Named Tensor Notation

University of Notre Dame(圣母大学);Cornell University(康奈尔大学);Harvard University(哈佛大学)

David Chiang, Alexander M. Rush, Boaz Barak

摘要:

我们提出了一种带命名轴的张量的表示法,它减轻了机器学习模型的作者、读者和未来实现者跟踪轴的顺序和每个轴的目的的负担。该符号使得将低阶张量上的操作提升到高阶张量上变得容易,例如,从图像到小批量图像,或者从注意力机制到多个注意力头。在简要概述和符号的正式定义之后,我们通过现代机器学习的几个例子来说明它,从注意力和卷积等构建模块到Transformers和LeNet等完整模型。然后,我们讨论微分在我们的符号和比较与一些替代符号。我们的建议建立在许多以前的论文和软件库的想法。我们希望我们的符号能鼓励更多的作者使用命名张量,从而产生更清晰的论文和更精确的实现。

英文摘要:

We propose a notation for tensors with named axes, which relieves the author, reader, and future implementers of machine learning models from the burden of keeping track of the order of axes and the purpose of each. The notation makes it easy to lift operations on low-order tensors to higher order ones, for example, from images to minibatches of images, or from an attention mechanism to multiple attention heads. After a brief overview and formal definition of the notation, we illustrate it through several examples from modern machine learning, from building blocks like attention and convolution to full models like Transformers and LeNet. We then discuss differential calculus in our notation and compare with some alternative notations. Our proposals build on ideas from many previous papers and software libraries. We hope that our notation will encourage more authors to use named tensors, resulting in clearer papers and more precise implementations.

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

↑