Minimum Cost Loop Nests for Contraction of a Sparse Tensor with a Tensor Network

Raghavendra Kanakagiri, Edgar Solomonik

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Sparse tensor decomposition and completion are common in numerous applications, ranging from machine learning to computational quantum chemistry. Typically, the main bottleneck in optimization of these models are contractions of a single large sparse tensor with a network of several dense matrices or tensors (SpTTN). Prior works on high-performance tensor decomposition and completion have focused on performance and scalability optimizations for specific SpTTN kernels. We present algorithms and a runtime system for identifying and executing the most efficient loop nest for any SpTTN kernel. We consider both enumeration of such loop nests for autotuning and efficient algorithms for finding the lowest cost loop nest for simpler metrics, such as buffer size or cache miss models. Our runtime system identifies the best choice of loop nest without user guidance, and also provides a distributed-memory parallelization of SpTTN kernels. We evaluate our framework using both real-world and synthetic tensors. Our results demonstrate that our approach outperforms available generalized state-of-the-art libraries and matches the performance of specialized codes.

Original languageEnglish (US)
Title of host publicationSPAA 2024 - Proceedings of the 36th ACM Symposium on Parallelism in Algorithms and Architectures
PublisherAssociation for Computing Machinery
Pages169-181
Number of pages13
ISBN (Electronic)9798400704161
DOIs
StatePublished - Jun 17 2024
Externally publishedYes
Event36th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2024 - Nantes, France
Duration: Jun 17 2024Jun 21 2024

Publication series

NameAnnual ACM Symposium on Parallelism in Algorithms and Architectures
ISSN (Print)1548-6109

Conference

Conference36th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2024
Country/TerritoryFrance
CityNantes
Period6/17/246/21/24

Keywords

  • sparse tensor algebra
  • tensor contraction
  • tensor decomposition and completion

ASJC Scopus subject areas

  • Software
  • Theoretical Computer Science
  • Hardware and Architecture

Fingerprint

Dive into the research topics of 'Minimum Cost Loop Nests for Contraction of a Sparse Tensor with a Tensor Network'. Together they form a unique fingerprint.

Cite this