Einsum Benchmark: Enabling the Development of Next-Generation Tensor Execution Engines

Mark Blacher, Christoph Staudt, Julien Klaus, Maurice Wenig, Niklas Merk +4 more
2/3/2026

No official code found. Best implementation: ti2-group/einsum_benchmark (9 stars, MIT, last commit 2024-08-22).

Abstract

Modern artificial intelligence and machine learning workflows rely on efficient tensor libraries. However, tuning tensor libraries without considering the actual problems they are meant to execute can lead to a mismatch between expected performance and the actual performance. Einsum libraries are tuned to efficiently execute tensor expressions with only a few, relatively large, dense, floating-point tensors. But, practical applications of einsum cover a much broader range of tensor expressions than those that can currently be executed efficiently. For this reason, we have created a benchmark dataset that encompasses this broad range of tensor expressions, allowing future implementations of einsum to build upon and be evaluated against. In addition, we also provide generators for einsum expressions and converters to einsum expressions in our repository, so that additional data can be generated as needed. The benchmark dataset, the generators and converters are released openly and are publicly available at https://benchmark.einsum.org .

DOISemantic Scholar

Code Implementations(1)

MIT

Benchmark data repository accompanying the paper: "Einsum Benchmark: Enabling the Development of Next-Generation Tensor Execution Engines"

91PythonJun 3, 20242 years agoMIT

Cite this paper

@article{blacher2026einsum,
  title  = {Einsum Benchmark: Enabling the Development of Next-Generation Tensor Execution Engines},
  author = {Mark Blacher and Christoph Staudt and Julien Klaus and Maurice Wenig and Niklas Merk and Alexander Breuer and Max Engel and Soren Laue and Joachim Giesen},
  year   = {2026},
  doi    = {10.52202/079017-3111},
  url    = {https://doi.org/10.52202/079017-3111},
  journal = {NEURIPS 2024 2024}
}

Discussion