Proceedings

Graph Neural Networks for Databases: A Survey

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Survey Track. Pages 10555-10563.

https://doi.org/10.24963/ijcai.2025/1172

Abstract

Graph neural networks (GNNs) are powerful deep learning models for graph-structured data, demonstrating remarkable success across diverse domains. Recently, the database (DB) community has increasingly recognized the potentiality of GNNs, prompting a surge of researches focusing on improving database systems through GNN-based approaches. However, despite notable advances, There is a lack of a comprehensive review and understanding of how GNNs could improve DB systems.

Therefore, this survey aims to bridge this gap by providing a structured and in-depth overview of GNNs for DB systems. Specifically, we propose a new taxonomy that classifies existing methods into two key categories: (1) Relational Databases, which includes tasks like performance prediction, query optimization, and Text-to-SQL, and (2) Graph Databases, addressing challenges like efficient graph query processing and graph similarity computation. We systematically review key methods in each category, highlighting their contributions and practical implications.

Finally, we suggest promising avenues for integrating GNNs into Database systems.

  1. [Bai et al., 2019] Yunsheng Bai, Hao Ding, Song Bian, Ting Chen, Yizhou Sun, and Wei Wang. Simgnn: A neural network approach to fast graph similarity computation. In WSDM, 2019.
  2. [Bai et al., 2020a] Yunsheng Bai, Hao Ding, Ken Gu, Yizhou Sun, and Wei Wang. Learning-based efficient graph similarity com- putation via multi-scale convolutional set matching. In AAAI, 2020.
  3. [Bai et al., 2020b] Yunsheng Bai, Hao Ding, Ken Gu, Yizhou Sun, and Wei Wang. Learning-based efficient graph similarity com- putation via multi-scale convolutional set matching. In AAAI, 2020.
  4. [Bogin et al., 2019a] Ben Bogin, Jonathan Berant, and Matt Gardner. Representing schema structure with graph neural networks for text-to-sql parsing. In ACL, 2019.
  5. [Bogin et al., 2019b] Ben Bogin, Matt Gardner, and Jonathan Be- rant. Global reasoning over database structures for text-to-sql parsing. In EMNLP, 2019.
  6. [Cai et al., 2021] Ruichu Cai, Jinjie Yuan, Boyan Xu, and Zhifeng Hao. SADGA: structure-aware dual graph aggregation network for text-to-sql. In NIPS, 2021.
  7. [Cao et al., 2021] Ruisheng Cao, Lu Chen, Zhi Chen, Yanbin Zhao, Su Zhu, and Kai Yu. LGESQL: line graph enhanced text-to-sql model with mixed local and non-local relations. In ACL, 2021.
  8. [Chen et al., 2020] Zhengdao Chen, Lei Chen, Soledad Villar, and Joan Bruna. Can graph neural networks count substructures? In NIPS, 2020.
  9. [Chen et al., 2021] Zhi Chen, Lu Chen, Yanbin Zhao, Ruisheng Cao, Zihan Xu, Su Zhu, and Kai Yu. Shadowgnn: Graph projection neural network for text-to-sql parser. In ACL, 2021.
  10. [Chen et al., 2022] Jin Chen, Guanyu Ye, Yan Zhao, Shuncheng Liu, Liwei Deng, Xu Chen, Rui Zhou, and Kai Zheng. Efficient join order selection learning with graph-based representation. In KDD, 2022.
  11. [Chen et al., 2023] Tianyi Chen, Jun Gao, Hedui Chen, and Yaofeng Tu. LOGER: A learned optimizer towards generating efficient and robust query execution plans. VLDB, 2023.
  12. [Doan et al., 2021] Khoa D. Doan, Saurav Manchanda, Suchismit Mahapatra, and Chandan K. Reddy. Interpretable graph simi- larity computation via differentiable optimal alignment of node embeddings. In SIGIR, 2021.
  13. [Duong et al., 2021] Chi Thang Duong, Dung Hoang, Hongzhi Yin, Matthias Weidlich, Quoc Viet Hung Nguyen, and Karl Aberer. Efficient streaming subgraph isomorphism with graph neural net- works. VLDB, 2021.
  14. [Fan et al., 2024] Shuhuan Fan, Mengshu Hou, Rui Xi, and Wenwen Ma. Precision meets resilience: Cross-database generalization with uncertainty quantification for robust cost estimation. In CIKM, 2024.
  15. [Fu et al., 2024] Tianyu Fu, Chiyue Wei, Yu Wang, and Rex Ying. Desco: Towards generalizable and scalable deep subgraph count- ing. In WSDM, 2024.
  16. [Gao et al., 2022] Jianling Gao, Nan Zhao, Ning Wang, and Shuang Hao. Smartindex: An index advisor with learned cost estimator. In CIKM, 2022.
  17. [Gong and Sun, 2024] Zheng Gong and Ying Sun. Graph reasoning enhanced language models for text-to-sql. In SIGIR, 2024.
  18. [Guia et al., 2017] José Guia, Valéria Gonc ¸alves Soares, and Jorge Bernardino. Graph databases: Neo4j analysis. In ICEIS, 2017.
  19. [He et al., 2024] Yaozhen He, Enpei Huang, and Rongzhi Qi. Tffsql: Enhancing graph neural network through text feature fusion for text-to-sql. In AIAHPC, 2024.
  20. [Hou et al., 2024] Wenzhe Hou, Xiang Zhao, and Bo Tang. Learnsc: An efficient and unified learning-based framework for subgraph counting problem. In ICDE, 2024.
  21. [Hui et al., 2022] Binyuan Hui, Ruiying Geng, Lihan Wang, Bowen Qin, Yanyang Li, Bowen Li, Jian Sun, and Yongbin Li. S 2 SQL: Injecting syntax to question-schema interaction graph encoder for text-to-SQL parsers. In ACL, 2022.
  22. [Kipf and Welling, 2016] Thomas N. Kipf and Max Welling. Semi- supervised classification with graph convolutional networks. arxiv, 2016.
  23. [Li et al., 2019] Yujia Li, Chenjie Gu, Thomas Dullien, Oriol Vinyals, and Pushmeet Kohli. Graph matching networks for learn- ing the similarity of graph structured objects. In ICML, 2019.
  24. [Li et al., 2021] Guoliang Li, Xuanhe Zhou, Ji Sun, Xiang Yu, Yue Han, Lianyuan Jin, Wenbo Li, Tianqing Wang, and Shifu Li. opengauss: An autonomous database system. VLDB, 2021.
  25. [Li et al., 2023] Jinyang Li, Binyuan Hui, Reynold Cheng, Bowen Qin, Chenhao Ma, Nan Huo, Fei Huang, Wenyu Du, Luo Si, and Yongbin Li. Graphix-t5: Mixing pre-trained transformers with graph-aware layers for text-to-sql parsing. In AAAI, 2023.
  26. [Ling et al., 2023] Xiang Ling, Lingfei Wu, Saizhuo Wang, Tengfei Ma, Fangli Xu, Alex X. Liu, Chunming Wu, and Shouling Ji. Multilevel graph matching networks for deep graph similarity learning. TNNLS, 2023.
  27. [Liu et al., 2020] Xin Liu, Haojie Pan, Mutian He, Yangqiu Song, Xin Jiang, and Lifeng Shang. Neural subgraph isomorphism counting. In KDD, 2020.
  28. [Liu et al., 2022] Aiwei Liu, Xuming Hu, Li Lin, and Lijie Wen. Semantic enhanced text-to-sql parsing via iteratively learning schema linking graph. In KDD, 2022.
  29. [Liu et al., 2023] Junfeng Liu, Min Zhou, Shuai Ma, and Lujia Pan. Mata*: Combining learnable node matching with a* algorithm for approximate graph edit distance computation. In CIKM, 2023.
  30. [Liu et al., 2024] Xinyu Liu, Shuyu Shen, Boyan Li, Peixian Ma, Runzhi Jiang, Yuxin Zhang, Ju Fan, Guoliang Li, Nan Tang, and Yuyu Luo. A survey of nl2sql with large language models: Where are we, and where are we going?, 2024.
  31. [Luo et al., 2018] Yuyu Luo, Xuedi Qin, Nan Tang, Guoliang Li, and Xinran Wang. Deepeye: Creating good data visualizations by keyword search. In SIGMOD, 2018.
  32. [Luo et al., 2021] Yuyu Luo, Nan Tang, Guoliang Li, Chengliang Chai, Wenbo Li, and Xuedi Qin. Synthesizing natural language to visualization (NL2VIS) benchmarks from NL2SQL benchmarks. In SIGMOD, 2021.
  33. [Mao et al., 2019] Hongzi Mao, Malte Schwarzkopf, Shaileshh Bo- jja Venkatakrishnan, Zili Meng, and Mohammad Alizadeh. Learn- ing scheduling algorithms for data processing clusters. In SIG- COMM, 2019.
  34. [Marcus et al., 2019] Ryan Marcus, Parimarjan Negi, Hongzi Mao, Chi Zhang, Mohammad Alizadeh, Tim Kraska, Olga Papaem- manouil, and Nesime Tatbul. Neo: A learned query optimizer. VLDB, 2019.
  35. [Marcus et al., 2021] Ryan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul, Mohammad Alizadeh, and Tim Kraska. Bao: Making learned query optimization practical. In SIGMOD, 2021.
  36. [Piao et al., 2023] Chengzhi Piao, Tingyang Xu, Xiangguo Sun, Yu Rong, Kangfei Zhao, and Hong Cheng. Computing graph edit distance via neural graph matching. VLDB, 2023.
  37. [Qin et al., 2018] Xuedi Qin, Yuyu Luo, Nan Tang, and Guoliang Li. Deepeye: Visualizing your data by keyword search. In EDBT, 2018.
  38. [Qin et al., 2020] Zongyue Qin, Yunsheng Bai, and Yizhou Sun. Ghashing: Semantic graph hashing for approximate similarity search in graph databases. In KDD, 2020.
  39. [Ranjan et al., 2022] Rishabh Ranjan, Siddharth Grover, Sourav Me- dya, Venkatesan T. Chakaravarthy, Yogish Sabharwal, and Sayan Ranu. GREED: A neural framework for learning graph distance functions. In NIPS, 2022.
  40. [Roy et al., 2022] Indradyumna Roy, Venkata Sai Baba Reddy Vel- ugoti, Soumen Chakrabarti, and Abir De. Interpretable neural subgraph matching for graph retrieval. In AAAI, 2022.
  41. [Schlichtkrull et al., 2018] Michael Sejr Schlichtkrull, Thomas N. Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional net- works. In ESWC, 2018.
  42. [Schwabe and Acosta, 2024] Tim Schwabe and Maribel Acosta. Cardinality estimation over knowledge graphs with embeddings and graph neural networks. SIGMOD, 2024.
  43. [Song et al., 2022] Yuanfeng Song, Yuqiang Li, Shuhuan Fan, Dong- sheng He, and Jianming Liao. A new graph neural network-based join optimization algorithm. In ADMIT, 2022.
  44. [Song et al., 2024] Yuan Feng Song, Xiao Dong Li, Dan Ni Zhang, Shu Huan Fan, and Dong Sheng He. A new cardinality estimation method based on graph neural networks. In FAIML, 2024.
  45. [Stonebraker and Rowe, 1986] Michael Stonebraker and Lawrence A. Rowe. The design of postgres. In SIGMOD, 1986.
  46. [Tang et al., 2024] Nan Tang, Chenyu Yang, Ju Fan, Lei Cao, Yuyu Luo, and Alon Y. Halevy. Verifai: Verified generative AI. In CIDR, 2024.
  47. [Teng et al., 2024] Fei Teng, Haoyang Li, Shimin Di, and Lei Chen. Cardinality estimation on hyper-relational knowledge graphs. arxiv, 2024.
  48. [Veličković et al., 2018] Petar Veličković, Guillem Cucurull, Aran- txa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks, 2018.
  49. [Wang et al., 2021a] Runze Wang, Zhen-Hua Ling, Jingbo Zhou, and Yu Hu. Tracking interaction states for multi-turn text-to-sql semantic parsing. In AAAI, 2021.
  50. [Wang et al., 2021b] Runzhong Wang, Tianqi Zhang, Tianshu Yu, Junchi Yan, and Xiaokang Yang. Combinatorial learning of graph edit distance via dynamic embedding. In CVPR, 2021.
  51. [Wang et al., 2022a] Hanchen Wang, Rong Hu, Ying Zhang, Lu Qin, Wei Wang, and Wenjie Zhang. Neural subgraph counting with wasserstein estimator. In SIGMOD, 2022.
  52. [Wang et al., 2022b] Hanchen Wang, Ying Zhang, Lu Qin, Wei Wang, Wenjie Zhang, and Xuemin Lin. Reinforcement learn- ing based query vertex ordering model for subgraph matching. In ICDE, 2022.
  53. [Wu et al., 2024] Ziniu Wu, Ryan Marcus, Zhengchun Liu, Parimar- jan Negi, Vikram Nathan, Pascal Pfeil, Gaurav Saxena, Moham- mad Rahman, Balakrishnan Narayanaswamy, and Tim Kraska. Stage: Query execution time prediction in amazon redshift. In SIGMOD, 2024.
  54. [Xie et al., 2024] Yupeng Xie, Yuyu Luo, Guoliang Li, and Nan Tang. Haichart: Human and AI paired visualization system. VLDB, 2024.
  55. [Yang and Zou, 2021] Lei Yang and Lei Zou. Noah: Neural- optimized a* search algorithm for graph edit distance computation. In ICDE, 2021.
  56. [Ye et al., 2024] Yutong Ye, Xiang Lian, and Mingsong Chen. Ef- ficient exact subgraph matching via gnn-based path dominance embedding. VLDB, 2024.
  57. [Ying et al., 2020] Rex Ying, Zhaoyu Lou, Jiaxuan You, Chengtao Wen, Arquimedes Canedo, and Jure Leskovec. Neural subgraph matching. arxiv, 2020.
  58. [Yu et al., 2020] Xiang Yu, Guoliang Li, Chengliang Chai, and Nan Tang. Reinforcement learning with tree-lstm for join order selec- tion. In ICDE, 2020.
  59. [Yu et al., 2023] Xingtong Yu, Zemin Liu, Yuan Fang, and Xinming Zhang. Learning to count isomorphisms with graph neural net- works. In AAAI, 2023.
  60. [Yu et al., 2024] Geoffrey X. Yu, Ziniu Wu, Ferdi Kossmann, Tianyu Li, Markos Markakis, Amadou Ngom, Samuel Madden, and Tim Kraska. Blueprinting the cloud: Unifying and automat- ically optimizing cloud data infrastructures with brad. VDLB, 2024.
  61. [Zhang et al., 2019] Chuxu Zhang, Dongjin Song, Chao Huang, Ananthram Swami, and Nitesh V. Chawla. Heterogeneous graph neural network. In KDD, 2019.
  62. [Zhang et al., 2021] Zhen Zhang, Jiajun Bu, Martin Ester, Zhao Li, Chengwei Yao, Zhi Yu, and Can Wang. H2MN: graph similarity learning with hierarchical hypergraph matching networks. In KDD, 2021.
  63. [Zhang et al., 2023a] Jintao Zhang, Chao Zhang, Guoliang Li, and Chengliang Chai. Autoce: An accurate and efficient model advisor for learned cardinality estimation. In ICDE, 2023.
  64. [Zhang et al., 2023b] Jintao Zhang, Chao Zhang, Guoliang Li, and Chengliang Chai. Dynamic materialized view management using graph neural network. In ICDE, 2023.
  65. [Zhao et al., 2021] Kangfei Zhao, Jeffrey Xu Yu, Hao Zhang, Qiyan Li, and Yu Rong. A learned sketch for subgraph counting. In SIGMOD, 2021.
  66. [Zhou et al., 2020] Xuanhe Zhou, Ji Sun, Guoliang Li, and Jianhua Feng. Query performance prediction for concurrent queries using graph embedding. VLDB, 2020.
  67. [Zhou et al., 2022] Weiqing Zhou, Siyu Zhan, Bo Dai, and Lei Guo. SOAR: A learned join order selector with graph attention mecha- nism. In IJCNN, 2022.
  68. [Zhou et al., 2023] Xuanhe Zhou, Guoliang Li, Jianhua Feng, Luyang Liu, and Wei Guo. Grep: A graph learning based database partitioning system. SIGMOD, 2023.
  69. [Zhuo and Tan, 2022] Wei Zhuo and Guang Tan. Efficient graph similarity computation with alignment regularization. In NIPS, 2022.
  70. [Zwolak et al., 2022] Michal Zwolak, Zainab Abbas, Sonia Horchi- dan, Paris Carbone, and Vasiliki Kalavri. GCNSplit: bounding the state of streaming graph partitioning. In aiDM, 2022.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards