Graph explorer

Named Tensor Notation

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.

6 nodes7 linksoverview previewNamed Tensor Notation
6 nodes7 links
Named Tensor Notation6 visible / 6 total nodes / 10 links
Related contextCo-authorshipCo-authorshipCo-authorshipAuthorshipWorks onAuthorshipAuthorshipTopic signalTopic signalWNamed Tensor Notationpreprint / 2023ADavid ChiangResearcherAAlexander M. RushResearcherABoaz BarakResearcherTMachine Learning49008 worksTComputation and Language14115 works
PaperSignal 105 links

Named Tensor Notation

preprint / 2023

Open