arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19142cs.LGcs.DB
收藏

面向图数据库中图神经网络的训练与推理

Towards Training and Inference of Graph Neural Networks in Graph Databases

Lund University, Faculty of Engineering(隆德大学工程学院);Neo4j

Victor Pekkari, Harry Wik, Alfred Clemedtson, Borun Shi, Xuan-Son Vu

AI总结:

本文研究图数据库在GNN训练与推理中的适用性,提出用Cypher实现实时采样与检索并优化训练速度约2.5倍,实现数据库内推理速度提升10倍以上且无额外内存开销,为相关应用奠定基础。

摘要:

大规模图上的图神经网络(GNN)通常依赖内存图存储以及专门的训练和推理数据处理流水线。图数据库为随时间演化的图提供了可扩展的存储和高效遍历,但其在GNN训练与推理中的适用性却鲜有研究。本文表明,图数据库可直接用于GNN的训练与推理,能执行采样、特征检索乃至完整前向传播。不同的GNN训练流水线可通过Cypher在图数据库中执行实时采样与检索;本文进一步提出优化方案,将训练速度提升约2.5倍,同时保持相同的准确率。本文还证明,完全在数据库内进行推理是可行的,且与GNN的训练方式无关;在真实图数据上,该推理设置相比将图冷加载到内存中速度可提升10倍以上,且无额外内存开销。本文的工作为图数据库内的GNN训练与推理奠定了基础。

英文摘要:

Graph Neural Networks on large graphs commonly rely on in-memory graph storage with ad hoc data processing pipelines for both training and inference. Graph databases provide scalable storage and efficient traversal for graphs that can evolve over time, but their applicability in GNN training and inference are rarely studied. We show that graph DBs can be used in GNN training and inference directly, executing sampling, feature retrieval, and even the full forward pass. We show different GNN training pipelines can perform on-the-fly sampling and retrieval in graph DBs using Cypher. We further provide optimisations that speed up the training process by \~2.5x while maintaining the same accuracy. We illustrate that fully in-DB inference is possible, independent of how the GNNs are trained. Our inference setup can be >10x faster than cold loading the graph into RAM with no extra memory overhead on real-world graphs. Our work lays the foundation for in-graph-DB GNN training and inference.

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

↑