Towards Linear Algebra over Normalized Data
Not on the map. Why?
Abstract (arXiv)
Providing machine learning (ML) over relational data is a mainstream requirement for data analytics systems. While almost all the ML tools require the input data to be presented as a single table, many datasets are multi-table, which forces data scientists to join those tables first, leading to data redundancy and runtime waste. Recent works on "factorized" ML mitigate this issue for a few specific ML algorithms by pushing ML through joins. But their approaches require a manual rewrite of ML implementations. Such piecemeal methods create a massive development overhead when extending such ideas to other ML algorithms. In this paper, we show that it is possible to mitigate this overhead by leveraging a popular formal algebra to represent the computations of many ML algorithms: linear algebra. We introduce a new logical data type to represent normalized data and devise a framework of algebraic rewrite rules to convert a large set of linear algebra operations over denormalized data into operations over normalized data. We show how this enables us to automatically "factorize" several popular ML algorithms, thus unifying and generalizing several prior works. We prototype our framework in the popular ML environment R and an industrial R-over-RDBMS tool. Experiments with both synthetic and real normalized data show that our framework also yields significant speed-ups, up to 36x on real data.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Dec 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 1; 2024: 2; 2025: 2; 2026: 3.
12 papers.
- 2021ARM-Net: Adaptive Relation Modeling Network for Structured Datacited by 24
- 2021Functional Collection Programming with Semi-Ring Dictionariescited by 6
- 2023JoinBoost: Grow Trees Over Normalized Data Using Only SQLcited by 4
- 2024In-Database Data Imputationcited by 3
- 2025TranSQL+: Serving Large Language Models with SQL on Low-Resource Hardwarecited by 3
- 2022Stochastic Gradient Descent without Full Data Shufflecited by 2
- 2026Incorporating Deep Learning Design in Database Queriescited by 1
- 2021Fine-Tuning Data Structures for Analytical Query Processingcited by 0
- 2024TablePuppet: A Generic Framework for Relational Federated Learningcited by 0
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joinscited by 0
- 2026Data Flow Control: Data Safety Policies for AI Agentscited by 0
- 2026InferQ: A Database-Oriented Benchmark for Quantum Circuits Simulationcited by 0
- 2026InferQ: A Database-Oriented Benchmark for Quantum Circuits Simulation31 Jul 2026
- 2026Data Flow Control: Data Safety Policies for AI Agents4 Jun 2026
- 2026Incorporating Deep Learning Design in Database Queries22 May 2026
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joins25 Nov 2025
- 2025TranSQL+: Serving Large Language Models with SQL on Low-Resource Hardware5 Feb 2025
- 2024TablePuppet: A Generic Framework for Relational Federated Learning23 Mar 2024
- 2024In-Database Data Imputation7 Jan 2024
- 2023JoinBoost: Grow Trees Over Normalized Data Using Only SQL1 Jul 2023
- 2022Stochastic Gradient Descent without Full Data Shuffle12 Jun 2022
- 2021Fine-Tuning Data Structures for Analytical Query Processing24 Dec 2021
- 2021ARM-Net: Adaptive Relation Modeling Network for Structured Data5 Jul 2021
- 2021Functional Collection Programming with Semi-Ring Dictionaries10 Mar 2021