arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.02172cs.AIcs.SE
收藏

KGCompiler:面向知识图谱复杂逻辑查询回答的深度学习编译优化

KGCompiler: Deep Learning Compilation Optimization for Knowledge Graph Complex Logical Query Answering

University of Chinese Academy of Sciences(中国科学院大学);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Beijing University of Posts and Telecommunications(北京邮电大学)

Hongyu Lin, Haoran Luo, Hanghang Cao, Yang Liu, Shihao Gao, Kaichun Yao, Libo Zhang, Mingjie Xing, Yanjun Wu

AI总结:

针对知识图谱复杂逻辑查询回答中推理时间和内存随算子数量显著增加的问题,提出首个专为CLQA任务设计的深度学习编译器KGCompiler,通过KG特定优化在无需人工修改代码的前提下提升推理性能并降低内存,实现平均3.71倍加速。

摘要:

复杂逻辑查询回答(CLQA)涉及在大规模且可能不完整的知识图谱(KGs)上进行复杂的多跳逻辑推理。尽管现有的CLQA算法在回答此类查询时达到了较高的准确率,但它们的推理时间和内存使用量随着所涉及的一阶逻辑(FOL)算子数量的增加而显著扩展,给实际部署带来了严峻挑战。此外,当前的研究主要集中在CLQA任务的算法级优化上,往往忽略了编译器级优化,而后者能提供更强的通用性和可扩展性。为了解决这些局限性,我们引入了知识图谱编译器,即KGCompiler,这是首个专为CLQA任务设计的深度学习编译器。通过结合本文提出的KG特定优化,KGCompiler提升了CLQA算法的推理性能,且无需对其实现进行额外的人工修改。同时,它显著降低了内存使用量。大量实验表明,KGCompiler将CLQA算法加速了1.04倍至8.26倍,平均加速达到3.71倍。我们还提供了一个接口以便亲身体验KGCompiler。

英文摘要:

Complex Logical Query Answering (CLQA) involves intricate multi-hop logical reasoning over large-scale and potentially incomplete Knowledge Graphs (KGs). Although existing CLQA algorithms achieve high accuracy in answering such queries, their reasoning time and memory usage scale significantly with the number of First-Order Logic (FOL) operators involved, creating serious challenges for practical deployment. In addition, current research primarily focuses on algorithm-level optimizations for CLQA tasks, often overlooking compiler-level optimizations, which can offer greater generality and scalability. To address these limitations, we introduce a Knowledge Graph Compiler, namely KGCompiler, the first deep learning compiler specifically designed for CLQA tasks. By incorporating KG-specific optimizations proposed in this paper, KGCompiler enhances the reasoning performance of CLQA algorithms without requiring additional manual modifications to their implementations. At the same time, it significantly reduces memory usage. Extensive experiments demonstrate that KGCompiler accelerates CLQA algorithms by factors ranging from 1.04x to 8.26x, with an average speedup of 3.71x. We also provide an interface to enable hands-on experience with KGCompiler.

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

↑