The Duck's Brain: Training and Inference of Neural Networks in Modern Database Engines
Not on the map. Why?
Abstract (arXiv)
Although database systems perform well in data access and manipulation, their relational model hinders data scientists from formulating machine learning algorithms in SQL. Nevertheless, we argue that modern database systems perform well for machine learning algorithms expressed in relational algebra. To overcome the barrier of the relational model, this paper shows how to transform data into a relational representation for training neural networks in SQL: We first describe building blocks for data transformation, model training and inference in SQL-92 and their counterparts using an extended array data type. Then, we compare the implementation for model training and inference using array data types to the one using a relational representation in SQL-92 only. The evaluation in terms of runtime and memory consumption proves the suitability of modern database systems for matrix algebra, although specialised array data types perform better than matrices in relational representation.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 18 of its 62 references that are in the map. First posted on arXiv 28 Dec 2023.
Builds on
18 of 62 references.
References · 18
- 2019SystemDS: A Declarative Machine Learning System for the End-to-End Data Science Lifecyclecited by 19
- 2018On Optimizing Operator Fusion Plans for Large-Scale Machine Learning in SystemMLcited by 13
- 2022Optimizing Machine Learning Inference Queries with Correlative Proxy Modelscited by 13
- 2019Declarative Recursive Computation on an RDBMS, or, Why You Should Use a Database For Distributed Machine Learningcited by 12
- 2019A Layered Aggregate Engine for Analytics Workloadscited by 12
- 2022Query Processing on Tensor Computation Runtimescited by 12
- 2021A Critical Analysis of Recursive Model Indexescited by 9
- 2022Optimizing Tensor Programs on Flexible Storagecited by 9
- 2021NuPS: A Parameter Server for Machine Learning with Non-Uniform Parameter Accesscited by 7
- 2022Share the Tensor Tea: How Databases can Leverage the Machine Learning Ecosystemcited by 7
- 2022Zero-Shot Cost Models for Distributed Stream Processingcited by 4
- 2022Improving Matrix-vector Multiplication via Lossless Grammar-Compressed Matricescited by 3
6 more
- 2019Compiling PL/SQL Awaycited by 2
- 2022Extensible Database Simulator for Fast Prototyping In-Database Algorithmscited by 2
- 2020In-Machine-Learning Database: Reimagining Deep Learning with Old-School SQLcited by 1
- 2020High-Level ETL for Semantic Data Warehouses -- Full Versioncited by 1
- 2022Density-optimized Intersection-free Mapping and Matrix Multiplication for Join-Project Operations (extended version)cited by 1
- 2023Auto-Differentiation of Relational Computations for Very Large Scale Machine Learningcited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.