Boolean Matrix Logic Programming

๐Ÿ“… 2024-08-19
๐Ÿ›๏ธ arXiv.org
๐Ÿ“ˆ Citations: 1
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Traditional logic programming relies on CPU-based symbolic computation, limiting scalability for large-scale Datalog inference. Method: This paper introduces Boolean Matrix Logic Programming (BMLP), the first approach to model bottom-up Datalog evaluation as Boolean matrix operations, supporting arbitrary binary recursive rulesโ€”including both linear and nonlinear variants. Its core innovation is a composable Boolean matrix inference framework: it defines modular logical operators and establishes a rigorous, semantics-preserving mapping from Datalog programs to sparse Boolean matrix transformations. Optimization of Boolean matrix multiplication and sparse storage further enhances efficiency. Results: On datasets with millions of facts, BMLP achieves 30ร— speedup over general-purpose systems (e.g., LogicBlox) and 9ร— over specialized systems (e.g., RDFox), significantly improving both scalability and execution efficiency of logic programming.

Technology Category

Application Category

๐Ÿ“ Abstract
We describe a datalog query evaluation approach based on efficient and composable boolean matrix manipulation modules. We first define an overarching problem, Boolean Matrix Logic Programming (BMLP), which uses boolean matrices as an alternative computation to evaluate datalog programs. We develop two novel BMLP modules for bottom-up inferences on linear dyadic recursive datalog programs, and show how additional modules can extend this capability to compute both linear and non-linear recursive datalog programs of arity two. Our empirical results demonstrate that these modules outperform general-purpose and specialised systems by factors of 30x and 9x, respectively, when evaluating large programs with millions of facts. This boolean matrix approach significantly enhances the efficiency of datalog querying to support logic programming techniques.
Problem

Research questions and friction points this paper is trying to address.

Accelerating datalog query evaluation using GPU matrix operations
Enabling efficient bottom-up inference for linear recursive programs
Scaling logic programming performance on large knowledge graphs
Innovation

Methods, ideas, or system contributions that make the work stand out.

GPU-accelerated Boolean matrix logic programming
Novel datalog evaluation using Boolean algebra
Extended framework supporting binary predicate recursion
๐Ÿ”Ž Similar Papers
No similar papers found.