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

Florian Fervers, Sebastian Bullinger, Christoph Bodensteiner, Michael Arens
7/30/2026
1 citation
cs.LG

Official code: fferflo/einx (533 stars, Python, MIT, last commit 2026-06-06).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

fferflo/einxOfficial100%
MIT

Universal Notation for Tensor Operations in Python

53318PythonJul 19, 20235 months agoMIT

Similar Papers

Cite this paper

@article{fervers2026its,
  title  = {It's All Just Vectorization: einx, a Universal Notation for Tensor Operations},
  author = {Florian Fervers and Sebastian Bullinger and Christoph Bodensteiner and Michael Arens},
  year   = {2026},
  eprint = {2607.27987},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.27987v1},
  journal = {ICLR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.27987.svg)](https://codeofpaper.com/paper/2607.27987)

Discussion