Tensor Relational Algebra for Machine Learning System Design
Not on the map. Why?
Abstract (arXiv)
We consider the question: what is the abstraction that should be implemented by the computational engine of a machine learning system? Current machine learning systems typically push whole tensors through a series of compute kernels such as matrix multiplications or activation functions, where each kernel runs on an AI accelerator (ASIC) such as a GPU. This implementation abstraction provides little built-in support for ML systems to scale past a single machine, or for handling large models with matrices or tensors that do not easily fit into the RAM of an ASIC. In this paper, we present an alternative implementation abstraction called the tensor relational algebra (TRA). The TRA is a set-based algebra based on the relational algebra. Expressions in the TRA operate over binary tensor relations, where keys are multi-dimensional arrays and values are tensors. The TRA is easily executed with high efficiency in a parallel or distributed environment, and amenable to automatic optimization. Our empirical study shows that the optimized TRA-based back-end can significantly outperform alternatives for running ML workflows in distributed clusters.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 2; 2024: 2; 2025: 1; 2026: 3.
11 papers.
- 2021BAGUA: Scaling up Distributed Learning with System Relaxationscited by 13
- 2022Query Processing on Tensor Computation Runtimescited by 12
- 2024MEMO: Fine-grained Tensor Management For Ultra-long Context LLM Trainingcited by 5
- 2022Stochastic Gradient Descent without Full Data Shufflecited by 2
- 2023Serving Deep Learning Model in Relational Databasescited by 2
- 2023AMULET: Adaptive Matrix-Multiplication-Like Taskscited by 0
- 2024Transformer Architecture for NetsDBcited by 0
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joinscited by 0
- 2026Automated Tensor-Relational Decomposition for Large-Scale Sparse Tensor Computationcited by 0
- 2026A Typed Tensor Language for Shared-State Federated Computationcited by 0
- 2026InferQ: A Database-Oriented Benchmark for Quantum Circuits Simulationcited by 0
- 2026InferQ: A Database-Oriented Benchmark for Quantum Circuits Simulation31 Jul 2026
- 2026A Typed Tensor Language for Shared-State Federated Computation20 May 2026
- 2026Automated Tensor-Relational Decomposition for Large-Scale Sparse Tensor Computation9 Mar 2026
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joins25 Nov 2025
- 2024MEMO: Fine-grained Tensor Management For Ultra-long Context LLM Training16 Jul 2024
- 2024Transformer Architecture for NetsDB8 May 2024
- 2023Serving Deep Learning Model in Relational Databases7 Oct 2023
- 2023AMULET: Adaptive Matrix-Multiplication-Like Tasks12 May 2023
- 2022Stochastic Gradient Descent without Full Data Shuffle12 Jun 2022
- 2022Query Processing on Tensor Computation Runtimes3 Mar 2022
- 2021BAGUA: Scaling up Distributed Learning with System Relaxations3 Jul 2021