Query Processing on Tensor Computation Runtimes
Dong He, Supun Chathuranga Nakandala, Dalitso Banda, Rathijit Sen, Karla Saur, Kwanghyun Park, Carlo Curino, Jesús Camacho-Rodríguez, Konstantinos Karanasos, Matteo Interlandi
摘要
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 10X over specialized CPU- and GPU-only systems. Finally, TQP can accelerate queries mixing ML predictions and SQL end-to-end, and deliver up to 9X speedup over CPU baselines.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Scaling your Hybrid CPU-GPU DBMS to Multiple GPUs 引用了 Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
- Scaling GPU-Accelerated Databases beyond GPU Memory Size 引用了 A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
- Scaling GPU-Accelerated Databases beyond GPU Memory Size 引用了 Scaling your Hybrid CPU-GPU DBMS to Multiple GPUs
- Efficiently Processing Joins and Grouped Aggregations on GPUs 引用了 A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
- Efficiently Processing Joins and Grouped Aggregations on GPUs 引用了 A Tensor Compiler for Unified Machine Learning Prediction Serving
- Efficiently Processing Joins and Grouped Aggregations on GPUs 引用了 Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
- Vortex: Overcoming Memory Capacity Limitations in GPU-Accelerated Large-Scale Data Analytics 引用了 A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
- Vortex: Overcoming Memory Capacity Limitations in GPU-Accelerated Large-Scale Data Analytics 引用了 Pump Up the Volume: Processing Large Data on GPUs with Fast Interconnects
- Tensors: An abstraction for general data processing 引用了 A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics
- Tensors: An abstraction for general data processing 引用了 A Tensor Compiler for Unified Machine Learning Prediction Serving
引用它的顶会 Paper23
- Efficiently Processing Joins and Grouped Aggregations on GPUsBowen Wu, Dimitrios Koutsoukos, Gustavo AlonsoSIGMOD 2025 · 15 次引用
- Vortex: Overcoming Memory Capacity Limitations in GPU-Accelerated Large-Scale Data AnalyticsYichao Yuan, Advait Iyer, Lin Ma, Nishil TalatiVLDB 2025 · 11 次引用
- Scaling your Hybrid CPU-GPU DBMS to Multiple GPUsBobbi W. Yogatama, Weiwei Gong, Xiangyao YuVLDB 2024 · 9 次引用
- Scaling Package Queries to a Billion Tuples via Hierarchical Partitioning and Customized OptimizationAnh L. Mai, Pengyu Wang, Azza Abouzied, Matteo Brucato 等VLDB 2024 · 9 次引用
- Scaling GPU-Accelerated Databases beyond GPU Memory SizeYinan Li, Bailu Ding, Ziyun Wei, Lukas M. Maas 等VLDB 2025 · 7 次引用
它引用的 Paper11
- A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database AnalyticsAnil Shanbhag, Samuel Madden, Xiangyao YuSIGMOD 2020 · 112 次引用
- Towards Scalable Dataframe SystemsDevin Petersohn, William W. Ma, Doris Jung Lin Lee, Stephen Macke 等VLDB 2020 · 109 次引用
- Pump Up the Volume: Processing Large Data on GPUs with Fast InterconnectsClemens Lutz, Sebastian Breß, Steffen Zeuch, Tilmann Rabl 等SIGMOD 2020 · 99 次引用
- A Tensor Compiler for Unified Machine Learning Prediction ServingSupun Nakandala, Karla Saur, Gyeong-In Yu, Konstantinos Karanasos 等OSDI 2020 · 60 次引用
- Tensors: An abstraction for general data processingDimitrios Koutsoukos, Supun Nakandala, Konstantinos Karanasos, Karla Saur 等VLDB 2021 · 38 次引用
相关 Paper
- TQEx: Tensor-based Query Engine Enhanced by Bridging the GapHaitao Zhang, Ran Pang, Yuanyuan Zhu, Hao Zhang 等SIGMOD 2026
- PystachIO: Efficient Distributed GPU Query Processing with PyTorch over Fast Networks & Fast StorageJigao Luo, Nils Boeschen, Muhammad El-Hindi, Carsten BinnigVLDB 2026
- Improving GPU Tensor Query Processing for Resource-Constrained EnvironmentsQian Xu, Feng Zhang, Shijie Gao, Kun Chen 等ICDE 2026
- TCUDB: Accelerating Database with Tensor ProcessorsYu-Ching Hu, Yuliang Li, Hung-Wei TsengSIGMOD 2022 · 32 次引用
- TenGraph: A Tensor-Based Graph Query EngineGuanghua Li, Hao Zhang, Xibo Sun, Qiong Luo 等VLDB 2024 · 4 次引用
