Towards Training and Inference of Graph Neural Networks in Graph Databases

Victor Pekkari, Harry Wik, Alfred Clemedtson, Borun Shi, Xuan-Son Vu
10/13/2026
cs.LGcs.DB

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pekkari2026towards,
  title  = {Towards Training and Inference of Graph Neural Networks in Graph Databases},
  author = {Victor Pekkari and Harry Wik and Alfred Clemedtson and Borun Shi and Xuan-Son Vu},
  year   = {2026},
  eprint = {2610.19142},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.19142v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.19142.svg)](https://codeofpaper.com/paper/2610.19142)

Discussion