Tensor Evolution: A Framework for Fast Evaluation of Tensor Computations using Recurrences
Javed Absar, Samarth Narang, Muthu Baskaran

TL;DR
This paper presents Tensor Evolution, a new framework extending Scalar Evolution to analyze and optimize tensor computations in high-performance computing and machine learning, enabling faster evaluation of tensor expressions.
Contribution
It introduces Tensor Evolution, a novel mathematical framework that adapts Scalar Evolution's recurrence theory to tensors, addressing new tensor operations for compiler optimization.
Findings
Framework extends Scalar Evolution to tensors
Handles tensor-specific operations like concatenation and reshape
Potential to improve tensor computation analysis in compilers
Abstract
This paper introduces a new mathematical framework for analysis and optimization of tensor expressions within an enclosing loop. Tensors are multi-dimensional arrays of values. They are common in high performance computing (HPC) and machine learning domains. Our framework extends Scalar Evolution - an important optimization pass implemented in both LLVM and GCC - to tensors. Scalar Evolution (SCEV) relies on the theory of `Chain of Recurrences' for its mathematical underpinnings. We use the same theory for Tensor Evolution (TeV). While some concepts from SCEV map easily to TeV -- e.g. element-wise operations; tensors introduce new operations such as concatenation, slicing, broadcast, reduction, and reshape which have no equivalent in scalars and SCEV. Not all computations are amenable to TeV analysis but it can play a part in the optimization and analysis parts of ML and HPC compilers.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputational Physics and Python Applications · Tensor decomposition and applications · Parallel Computing and Optimization Techniques
