Lune

SIGMOD2020Top-tier venue

DB4ML - An In-Memory Database Kernel with Machine Learning Support

Matthias Jasny, Tobias Ziegler, Tim Kraska, Uwe Röhm, Carsten Binnig

Abstract

In this paper, we revisit the question of how ML algorithms can be best integrated into existing DBMSs to not only avoid expensive data copies to external ML tools but also to comply with regulatory reasons. The key observation is that database transactions already provide an execution model that allows DBMSs to efficiently mimic the execution model of modern parallel ML algorithms. As a main contribution, this paper presents DB4ML, an in-memory database kernel that allows applications to implement user-defined ML algorithms and efficiently run them inside a DBMS. Thereby, the ML algorithms are implemented using a programming model based on the idea of so called iterative transactions. Our experimental evaluation shows that DB4ML can support user-defined ML algorithms inside a DBMS with the efficiency of modern specialized ML engines. In contrast to DB4ML, these engines not only need to transfer data out of the DBMS but also hardcode the ML algorithms and thus are not extensible.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • End-to-end Optimization of Machine Learning Prediction Queries cites Tensor Relational Algebra for Distributed Machine Learning System Design
  • End-to-end Optimization of Machine Learning Prediction Queries cites Distributed Deep Learning on Data Systems: A Comparative Analysis of Approaches
  • BAGUA: Scaling up Distributed Learning with System Relaxations cites Tensor Relational Algebra for Distributed Machine Learning System Design
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Towards Demystifying Serverless Machine Learning TrainingJiawei Jiang, Shaoduo Gan, Yue Liu, Fanlin Wang et al.SIGMOD 2021 · 107 citations
  2. End-to-end Optimization of Machine Learning Prediction QueriesKwanghyun Park, Karla Saur, Dalitso Banda, Rathijit Sen et al.SIGMOD 2022 · 50 citations
  3. BAGUA: Scaling up Distributed Learning with System RelaxationsShaoduo Gan, Xiangru Lian, Rui Wang, Jianbin Chang et al.VLDB 2022 · 35 citations
  4. Distributed Deep Learning on Data Systems: A Comparative Analysis of ApproachesYuhao Zhang, Frank Mcquillan, Nandish Jayaram, Nikhil Kak et al.VLDB 2021 · 35 citations
  5. Tensor Relational Algebra for Distributed Machine Learning System DesignBinhang Yuan, Dimitrije Jankov, Jia Zou, Yuxin Tang et al.VLDB 2021 · 33 citations

Related papers

  1. DistVec: Efficient Distributed Machine Learning in Parallel Database SystemsXinyi Zhang, Liangzu Liu, Xupeng Miao, Yinjun Wu et al.ICDE 2026
  2. InferDB: In-Database Machine Learning Inference Using IndexesRicardo Salazar-Díaz, Boris Glavic, Tilmann RablVLDB 2024 · 13 citations
  3. User-Defined Operators: Efficiently Integrating Custom Algorithms into Modern DatabasesMoritz Sichert, Thomas NeumannVLDB 2022 · 23 citations
  4. Adda: Towards Efficient in-Database Feature Generation via LLM-based AgentsKuan Lu, Zhihui Yang, Sai Wu, Ruichen Xia et al.SIGMOD 2025 · 6 citations
  5. P4DB - The Case for In-Network OLTPMatthias Jasny, Lasse Thostrup, Tobias Ziegler, Carsten BinnigSIGMOD 2022 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines