Towards Training and Inference of Graph Neural Networks in Graph Databases
Victor Pekkari, Harry Wik, Alfred Clemedtson, Borun Shi, Xuan-Son Vu
Key points
From the paper's conclusion- We show that graph DBs can be used in GNN training and inference directly, executing sampling, feature retrieval, and even the full forward pass.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Graph Memory for LLM Agents: At What Cost? A Comparative Evaluation of Query, Ingest, and Update Performance Across Graph Database EnginesarXiv · 2026
- GARDEN: Efficient GPU-Accelerated Billion-Scale GNN Training via Caching-Sampling-Batching Co-DesignarXiv · 2026
- A Survey on Graph Neural Network Acceleration: Algorithms, Systems, and Customized HardwareACM Computing Surveys · 2026
- LPS-GNN: Deploying Graph Neural Networks on Graphs with 100-Billion EdgesACM Transactions on Knowledge Discovery from Data · 2026
- Prompting large language models based on semantic schema for text-to-Cypher transformation towards domain Q&ADecision Support Systems · 2025
- GraphLLM: Boosting Graph Reasoning Ability of Large Language ModelIEEE Transactions on Big Data · 2025