mlsanityData to 14 Oct 2026

The Syntax and Semantics of einsum

arXiv 2509.20020 ↗First posted 24 Sep 2025cs.PL cs.LG cs.MScited by 0

Not on the map. Why?

Abstract (arXiv)

In 2011, einsum was introduced to NumPy as a practical and convenient notation for tensor expressions in machine learning, quantum circuit simulation, and other fields. It has since been implemented in additional Python frameworks such as PyTorch and TensorFlow, as well as in other programming languages such as Julia. Despite its practical success, the einsum notation still lacks a solid theoretical basis, and is not unified across the different frameworks, limiting opportunities for formal reasoning and systematic optimization. In this work, we discuss the terminology of tensor expressions and provide a formal definition of the einsum language. Based on this definition, we formalize and prove important equivalence rules for tensor expressions and highlight their relevance in practical applications.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 12 references that are in the map. First posted on arXiv 24 Sep 2025.

Builds on

5 of 12 references.

References · 5

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2016TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systemscited by 664
  3. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 85
  4. 2020A Tensor Network based Decision Diagram for Representation of Quantum Circuitscited by 1
  5. 2023How to enumerate trees from a context-free grammarcited by 1

Built on by

Not cited yet.