Affiliation:
1. RelationalAI, Berkeley, CA, USA
2. University of Edinburgh, Edinburgh, United Kingdom
3. University of Washington, Seattle, WA, USA
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.
Publisher
Association for Computing Machinery (ACM)
Reference56 articles.
1. The Design and Implementation of Modern Column-Oriented Database Systems
2. Learning to optimize halide with tree search and random programs
3. Rana Alotaibi , Bogdan Cautis , Alin Deutsch , and Ioana Manolescu . 2021 . HADAD: A Lightweight Approach for Optimizing Hybrid Complex Analytics Queries . Association for Computing Machinery , New York, NY, USA , 23--35. https://doi.org/10.1145/3448016.3457311 10.1145/3448016.3457311 Rana Alotaibi, Bogdan Cautis, Alin Deutsch, and Ioana Manolescu. 2021. HADAD: A Lightweight Approach for Optimizing Hybrid Complex Analytics Queries. Association for Computing Machinery, New York, NY, USA, 23--35. https://doi.org/10.1145/3448016.3457311
4. System R;Astrahan Morton M.;A Relational Data Base Management System. Computer,1979
5. Efficient MATLAB Computations with Sparse and Factored Tensors
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献