arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.10369cs.SCcs.AIcs.LO
收藏

GPU上的布尔矩阵逻辑编程

Boolean Matrix Logic Programming on the GPU

Department of Computing, Imperial College London, London, UK(计算系,伦敦帝国学院,伦敦,英国);Department of Life Sciences, Imperial College London, London, UK(生命科学系,伦敦帝国学院,伦敦,英国)

Lun Ai

AI总结:

本文提出GPU加速的布尔矩阵逻辑编程方法,通过布尔矩阵代数实现datalog查询的高效并行推理,在大规模图可达性和Freebase 15K上相比现有系统实现1到4个数量级加速。

摘要:

传统逻辑编程依赖CPU上的符号计算,这在大规模推理任务中可能限制性能。GPU硬件的最新进展使得高吞吐量矩阵运算成为可能,推动了向并行逻辑推理的转变。布尔矩阵逻辑编程(BMLP)引入了一种利用布尔矩阵代数进行datalog查询评估的新方法,非常适合GPU加速。基于这一范式,我们提出了两种GPU加速的BMLP算法,用于线性二元递归datalog程序的自底向上推理。我们进一步扩展了BMLP理论框架,以支持具有二元谓词的一般线性递归。在大规模有向图的可达性查询和Freebase 15K数据集上的实证评估表明,我们的方法相比最先进的系统实现了1到4个数量级的加速。这些结果表明,基于布尔矩阵的推理能够显著提升逻辑编程在现代硬件上的可扩展性和效率。源代码可在https://github.com/lun-ai/BMLP.git获取。

英文摘要:

Traditional logic programming relies on symbolic computation on the CPU, which can limit performance for large-scale inference tasks. Recent advances in GPU hardware enable high-throughput matrix operations, motivating a shift toward parallel logic inference. Boolean Matrix Logic Programming (BMLP) introduces a novel approach to datalog query evaluation using Boolean matrix algebra, well-suited to GPU acceleration. Building on this paradigm, we present two GPU-accelerated BMLP algorithms for bottom-up inference over linear dyadic recursive datalog programs. We further extend the BMLP theoretical framework to support general linear recursion with binary predicates. Empirical evaluations on reachability queries in large directed graphs and the Freebase 15K dataset show that our methods achieve 1-4 orders of magnitude speed up over state-of-the-art systems. These results demonstrate that Boolean matrix-based reasoning can significantly advance the scalability and efficiency of logic programming on modern hardware. Source code is available on https://github.com/lun-ai/BMLP.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑