mlsanityData to 14 Oct 2026

It's All Just Vectorization: einx, a Universal Notation for Tensor Operations

arXiv 2607.27987 ↗First posted 30 Jul 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Tensor operations represent a cornerstone of modern scientific computing. However, the Numpy-like notation adopted by predominant tensor frameworks is often difficult to read and write and prone to so-called shape errors, i.a., due to following inconsistent rules across a large, complex collection of operations. Alternatives like einsum and einops have gained popularity, but are inherently restricted to few operations and lack the generality required for a universal model of tensor programming. To derive a better paradigm, we revisit vectorization as a function for transforming tensor operations, and use it to both lift lower-order operations to higher-order operations, and conceptually decompose higher-order operations to lower-order operations and their vectorization. Building on the universal nature of vectorization, we introduce einx, a universal notation for tensor operations. It uses declarative, pointful expressions that are defined by analogy with loop notation and represent the vectorization of tensor operations. The notation reduces the large APIs of existing frameworks to a small set of elementary operations, applies consistent rules across all operations, and enables a clean, readable and writable representation in code. We provide an implementation of einx that is embedded in Python and integrates seamlessly with existing tensor frameworks: https://github.com/fferflo/einx

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 23 references that are in the map. First posted on arXiv 30 Jul 2026.

Builds on

8 of 23 references.

References · 8

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2016Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Networkcited by 1,204
  4. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 85
  5. 2021Named Tensor Notationcited by 11
  6. 2021Getting to the Point. Index Sets and Parallelism-Preserving Autodiff for Pointful Array Programmingcited by 10
  7. 2024Penzai + Treescope: A Toolkit for Interpreting, Visualizing, and Editing Models As Datacited by 5
  8. 2017Typesafe Abstractions for Tensor Operationscited by 1

Built on by

Not cited yet.