Skip to content

Read-only version: For security reasons, the Research Information System (FIS) has been temporarily replaced by this read-only version. All public content and full texts remain available; login, editing, submission and statistics are not available. Questions: fis@uni-bamberg.de

Home › Publications › Recursive SQL and GPU-Support for In-Database Machine Learning

Publication

Recursive SQL and GPU-Support for In-Database Machine Learning

Schüle, Maximilian (2023): Recursive SQL and GPU-Support for In-Database Machine Learning, in: Bamberg: Otto-Friedrich-Universität, S. 931.

Details

Faculty/Chair
Faculty/Professorship
Author
Publisher Information
Otto-Friedrich-Universität : Bamberg
Year of publication
2023
Source/Other editions
Lecture Notes in Informatics (LNI) : Proceedings ; P-331 / Birgitta König-Ries, Stefanie Scherzinger, Wolfgang Lehner, Gottfried Vossen (Hg.). Bonn: Gesellschaft für Informatik e.V. , 2023, S. 931 - ISBN: 978-3-88579-725-8
Year of first publication
2023
Language
English
Licence
URN
Abstract

But to retrieve the latest data from a database, time-consuming extraction is necessary as database systems have rarely been used for operations such as matrix algebra and gradient descent.In this work, we demonstrate that SQL with recursive tables makes it possible to express a complete machine learning pipeline out of data preprocessing, model training and its validation.To facilitate the specification of loss functions, we extend the code-generating database system Umbra by an operator for automatic differentiation for use within recursive tables:With the loss function expressed in SQL as a lambda function, Umbra generates machine code for each partial derivative.We further use automatic differentiation for a dedicated gradient descent operator, which generates LLVM code to train a user-specified model on GPUs.We fine-tune GPU kernels at hardware level to allow a higher throughput and propose non-blocking synchronisation of multiple units.In our evaluation, automatic differentiation accelerated the runtime by the number of cached subexpressions compared to compiling each derivative separately.Our GPU kernels with independent models allowed maximal throughput even for small batch sizes, making machine learning pipelines within SQL more competitive.

GND Keywords
SQL
Grafikprozessor
Maschinelles Lernen
Keywords
SQL
Machine Learning
DDC Classification
004 Computer science
RVK Classification
ST 270
Type
Conferenceobject
URI
Activation date
2023-05-26

Permalink: https://fis.uni-bamberg.de/handle/uniba/59173 · Data as JSON · Cite: BibTeX · RIS

Data as of: 2026-11-16

Restricted read-only access: login, editing and submission are temporarily disabled.