cs.LGOct 13, 2026

Towards Training and Inference of Graph Neural Networks in Graph Databases

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

Organizations: Lund University, Faculty of Engineering, Lund, Sweden · Neo4j, London, England

Abstract

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.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Taurus: Accelerating Out-of-Core Graph Neural Network Inference on Billion-Scale Graphs

    Jul 19, 2026Pranjal Naman, Yogesh SimmhanEfficient Neural Network InferenceGraph Neural Networks

  2. SNI-GNN: SmartNIC-Assisted Full-Graph GNN Training with In-Network Embedding Prediction

    Aug 6, 2026Guofan Yu, Sitian Chen, Zhenheng Tang +2Graph Neural NetworksCommunication-Efficient Distributed Training

  3. An LLM-Guided Query-Aware Inference System for GNN Models on Large Knowledge Graphs

    Mar 4, 2026Waleed Afandi, Hussein Abdallah, Ashraf Aboulnaga +1Efficient Neural Network InferenceGraph Neural Networks