Compiling Structured Tensor Algebra

11/18/2022
by   Mahdi Ghorbani, et al.
0

Tensor algebra is essential for data-intensive workloads in various computational domains. Computational scientists face a trade-off between the specialization degree provided by dense tensor algebra and the algorithmic efficiency that leverages the structure provided by sparse tensors. This paper presents StructTensor, a framework that symbolically computes structure at compilation time. This is enabled by Structured Tensor Unified Representation (STUR), an intermediate language that can capture tensor computations as well as their sparsity and redundancy structures. Through a mathematical view of lossless tensor computations, we show that our symbolic structure computation and the related optimizations are sound. Finally, for different tensor computation workloads and structures, we experimentally show how capturing the symbolic structure can result in outperforming state-of-the-art frameworks for both dense and sparse tensor algebra.

READ FULL TEXT

page 4

page 5

research
02/28/2018

Sparse Tensor Algebra Optimizations with Workspaces

This paper shows how to optimize sparse tensor algebraic expressions by ...
research
01/04/2022

TAMM: Tensor Algebra for Many-body Methods

Tensor contraction operations in computational chemistry consume signifi...
research
08/13/2022

Tensor Algebra on an Optoelectronic Microchip

Tensor algebra lies at the core of computational science and machine lea...
research
03/10/2021

Functional Collection Programming with Semi-Ring Dictionaries

This paper introduces semi-ring dictionaries, a powerful class of compos...
research
06/16/2022

Deinsum: Practically I/O Optimal Multilinear Algebra

Multilinear algebra kernel performance on modern massively-parallel syst...
research
08/31/2022

The Sparse Abstract Machine

We propose the Sparse Abstract Machine (SAM), an intermediate representa...
research
06/15/2021

Tensors in computations

The notion of a tensor captures three great ideas: equivariance, multili...

Please sign up or login with your details

Forgot password? Click here to reset