JOURNAL ARTICLE

Optimizing Tensor Programs on Flexible Storage

Maximilian SchleichAmir ShaikhhaDan Suciu

Year: 2023 Journal:   Proceedings of the ACM on Management of Data Vol: 1 (1)Pages: 1-27   Publisher: Association for Computing Machinery

Abstract

Tensor programs often need to process large tensors (vectors, matrices, or higher order tensors) that require a specialized storage format for their memory layout. Several such layouts have been proposed in the literature, such as the Coordinate Format, the Compressed Sparse Row format, and many others, that were especially designed to optimally store tensors with specific sparsity properties. However, existing tensor processing systems require specialized extensions in order to take advantage of every new storage format. In this paper we describe a system that allows users to define flexible storage formats in a declarative tensor query language, similar to the language used by the tensor program. The programmer only needs to write storage mappings, which describe, in a declarative way, how the tensors are laid out in main memory. Then, we describe a cost-based optimizer that optimizes the tensor program for the specific memory layout. We demonstrate empirically significant performance improvements compared to state-of-the-art tensor processing systems.

Keywords:
Programmer Computer science Tensor (intrinsic definition) Process (computing) Programming language Computer data storage Theoretical computer science State (computer science) Computer hardware Mathematics

Metrics

17
Cited By
8.19
FWCI (Field Weighted Citation Impact)
49
Refs
0.97
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Parallel Computing and Optimization Techniques
Physical Sciences →  Computer Science →  Hardware and Architecture
Advanced Data Storage Technologies
Physical Sciences →  Computer Science →  Computer Networks and Communications
Distributed and Parallel Computing Systems
Physical Sciences →  Computer Science →  Computer Networks and Communications
© 2026 ScienceGate Book Chapters — All rights reserved.