paper-with-me

홈 › Papers

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

2026-07-30 · Florian Fervers, Sebastian Bullinger, Christoph Bodensteiner, Michael Arens 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

📄 PDF Abstract BibTeX arXiv:2607.27987

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Enabling Fast Differentially Private SGD via Just-in-Time Compilation and Vectorization

2020-10-18 · NeurIPS 2021 12 · Pranav Subramani, Nicholas Vadivelu, Gautam Kamath

A common pain point in differentially private machine learning is the significant runtime overhead incurred when executing Differentially Private Stochastic Gradient Descent (DPSGD), which may be as large as two orders o…

Heterogeneous Tensor Decomposition for Clustering via Manifold Optimization

2015-04-07 · Yanfeng Sun, Junbin Gao, Xia Hong, Bamdev Mishra 외

Tensors or multiarray data are generalizations of matrices. Tensor clustering has become a very important research topic due to the intrinsically rich structures in real-world multiarray datasets. Subspace clustering bas…

ClusteringTensor Decomposition

Rank-R FNN: A Tensor-Based Learning Model for High-Order Data Classification

2021-04-11 · Konstantinos Makantasis, Alexandros Georgogiannis, Athanasios Voulodimos, Ioannis Georgoulas 외

An increasing number of emerging applications in data science and engineering are based on multidimensional and structurally rich data. The irregularities, however, of high-dimensional data often compromise the effective…

BIG-bench Machine LearningGeneral Classification

Generalized Image Reconstruction over T-Algebra

2021-01-17 · Liang Liao, Xuechun Zhang, Xinqiang Wang, Sen Lin 외

Principal Component Analysis (PCA) is well known for its capability of dimension reduction and data compression. However, when using PCA for compressing/reconstructing images, images need to be recast to vectors. The vec…

Data CompressionDimensionality ReductionImage Reconstruction

Tensor Programs IIb: Architectural Universality of Neural Tangent Kernel Training Dynamics

2021-05-08 · Greg Yang, Etai Littwin

Yang (2020a) recently showed that the Neural Tangent Kernel (NTK) at initialization has an infinite-width limit for a large class of architectures including modern staples such as ResNet and Transformers. However, their …