Column-Oriented Datalog on the GPU

Authors

  • Yihao Sun Syracuse University
  • Sidharth Kumar University of Illinois at Chicago
  • Thomas Gilray Washington State University
  • Kristopher Micinski Syracuse University

DOI:

https://doi.org/10.1609/aaai.v39i14.33665

Abstract

Datalog is a logic programming language widely used in knowledge representation and reasoning (KRR), program analysis, and social media mining due to its expressiveness and high performance. Traditionally, Datalog engines use either row-oriented or column-oriented storage. Engines like VLog and Nemo favor column-oriented storage for efficiency on limited-resource machines, while row-oriented engines like Soufflé use advanced datastructures with locking to perform better on multi-core CPUs. The advent of modern datacenter GPUs, such as the NVIDIA H100 with its ability to run over 16k threads simultaneously and high memory bandwidth, has reopened the debate on which storage layout is more effective. This paper presents the first column-oriented Datalog engines tailored to the strengths of modern GPUs. We present VFLog, a CUDA-based Datalog runtime library with a column-oriented GPU datastructure that supports all necessary relational algebra operations. Our results demonstrate over 200x performance gains over SOTA CPU-based column-oriented Datalog engines and a 2.5x speedup over GPU Datalog engines in various workloads, including KRR.

Published

2025-04-11

How to Cite

Sun, Y., Kumar, S., Gilray, T., & Micinski, K. (2025). Column-Oriented Datalog on the GPU. Proceedings of the AAAI Conference on Artificial Intelligence, 39(14), 15177–15185. https://doi.org/10.1609/aaai.v39i14.33665

Issue

Section

AAAI Technical Track on Knowledge Representation and Reasoning