mlsanityData to 7 Oct 2026

Query Processing on Tensor Computation Runtimes

arXiv 2203.01877 ↗First posted 3 Mar 2022cs.DB cs.AI cs.LGcited by 12

Not on the map. Why?

Abstract (arXiv)

The huge demand for computation in artificial intelligence (AI) is driving unparalleled investments in hardware and software systems for AI. This leads to an explosion in the number of specialized hardware devices, which are now offered by major cloud vendors. By hiding the low-level complexity through a tensor-based interface, tensor computation runtimes (TCRs) such as PyTorch allow data scientists to efficiently exploit the exciting capabilities offered by the new hardware. In this paper, we explore how database management systems can ride the wave of innovation happening in the AI space. We design, build, and evaluate Tensor Query Processor (TQP): TQP transforms SQL queries into tensor programs and executes them on TCRs. TQP is able to run the full TPC-H benchmark by implementing novel algorithms for relational operators on the tensor routines. At the same time, TQP can support various hardware while only requiring a fraction of the usual development effort. Experiments show that TQP can improve query execution time by up to 10× over specialized CPU- and GPU-only systems. Finally, TQP can accelerate queries mixing ML predictions and SQL end-to-end, and deliver up to 9× speedup over CPU baselines.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 20 of its 136 references that are in the map. First posted on arXiv 3 Mar 2022.

Builds on

20 of 136 references.

References · 20

  1. 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
  2. 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 64
  3. 2018TVM: An Automated End-to-End Optimizing Compiler for Deep Learningcited by 62
  4. 2015MLlib: Machine Learning in Apache Sparkcited by 55
  5. 2018Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sourcescited by 24
  6. 2019SystemDS: A Declarative Machine Learning System for the End-to-End Data Science Lifecyclecited by 19
  7. 2020A Tensor Compiler for Unified Machine Learning Prediction Servingcited by 19
  8. 2020Towards Scalable Dataframe Systemscited by 17
  9. 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
  10. 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
  11. 2019Extending Relational Query Processing with ML Inferencecited by 15
  12. 2019Declarative Recursive Computation on an RDBMS, or, Why You Should Use a Database For Distributed Machine Learningcited by 12
8 more
  1. 2020Tensor Relational Algebra for Machine Learning System Designcited by 11
  2. 2020SPORES: Sum-Product Optimization via Relational Equality Saturation for Large Scale Linear Algebracited by 5
  3. 2017Fixpoint Semantics and Optimization of Recursive Datalog Programs with Aggregatescited by 4
  4. 2018JANUS: Fast and Flexible Deep Learning via Symbolic Graph Execution of Imperative Programscited by 4
  5. 2021TCUDB: Accelerating Database with Tensor Processorscited by 4
  6. 2017Generating Custom Code for Efficient Query Execution on Heterogeneous Processorscited by 2
  7. 2020A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics (Extended Version)cited by 2
  8. 2020Modularis: Modular Relational Analytics over Heterogeneous Distributed Platformscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 4; 2023: 4; 2024: 2; 2025: 0; 2026: 2.

12 papers.