Skip to main navigation Skip to search Skip to main content

Database is All You Need: Serving LLMs with Relational Queries

Research output: Chapter in Book/Conference proceedings/Edited volume › Conference contribution › Scientific › peer-review

1   Link opens in a new tab Citation (SciVal)
10 Downloads (Pure)

Abstract

Large language models (LLMs) have become central to many applications, but their deployment often requires high-performance hardware, specialized libraries, and complex engineering, limiting accessibility for smaller organizations. Meanwhile, relational database systems (RDBMS) are widely used for portability, efficiency, and native support for managing large-scale data operations. This paper presents TranSQL1, a toolkit that enables transformerbased LLM inference within RDBMS. By translating neural operations into SQL queries and representing model weights as relational tables, TranSQL leverages database features like dynamic disk-to-memory data management and caching to reduce hardware and engineering demands for serving LLMs. Using the LLaMA3 8B model, we demonstrate TranSQL's ability to implement attention layers, KV-cache, and end-to-end text generation through SQL queries. TranSQL offers a cost-effective, portable, and scalable approach to making advanced AI technologies more accessible.

Original languageEnglish
Title of host publicationAdvances in Database Technology - EDBT
PublisherOpenProceedings.org
Pages1118-1121
Number of pages4
Edition3
ISBN (Electronic)9783893180981, 9783893180998
DOIs
Publication statusPublished - 2025
Event28th International Conference on Extending Database Technology, EDBT 2025 - Barcelona, Spain
Duration: 25 Mar 2025 → 28 Mar 2025

Publication series

NameAdvances in Database Technology - EDBT
Number3
Volume28
ISSN (Electronic)2367-2005

Conference

Conference28th International Conference on Extending Database Technology, EDBT 2025
Country/TerritorySpain
CityBarcelona
Period25/03/25 → 28/03/25

Bibliographical note

Green Open Access added to TU Delft Institutional Repository as part of the Taverne amendment. More information about this copyright law amendment can be found at https://www.openaccess.nl. Otherwise as indicated in the copyright section: the publisher is the copyright holder of this work and the author uses the Dutch legislation to make this work public.

Fingerprint

Dive into the research topics of 'Database is All You Need: Serving LLMs with Relational Queries'. Together they form a unique fingerprint.

Cite this